]> code.delx.au - gnu-emacs/blob - configure
configure.in (HAVE_RANDOM_HEAPSTART): Move output of warning message to end
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SETARCH SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576 fi
1577
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1580
1581 ### Canonicalize the configuration name.
1582
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1597 fi
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 canonical=$host
1663 configuration=${host_alias-$host}
1664
1665
1666
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1670
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1679 ###
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1685 ###
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1689
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1692
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1700 ;;
1701
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1706
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1710
1711 fi
1712
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1729 ;;
1730
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1743 ;;
1744
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1748 ;;
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1753 ;;
1754
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1770 ;;
1771
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1780 ;;
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1783 ;;
1784
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1800 ;;
1801
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1804 ;;
1805
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1808 ;;
1809
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1813 ;;
1814
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1818 ;;
1819
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1823 ;;
1824
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1828 ;;
1829
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1833 ;;
1834
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1838 ;;
1839
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1843 ;;
1844
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1848 ;;
1849
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1853 ;;
1854
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1856
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1863 ;;
1864
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1872 ;;
1873
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1877 ;;
1878
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1884 ;;
1885
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1889 ;;
1890
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1894 ;;
1895
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1904 ;;
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1909 ;;
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1912 ;;
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1915 ;;
1916
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1922 ;;
1923
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1927 ;;
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1930 ;;
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1933 ;;
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1936 ;;
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1939 ;;
1940
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1949 fi
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1954 fi
1955 fi
1956 ;;
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1963 ;;
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1966 ;;
1967
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1971 ;;
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1974 ;;
1975
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1979 ;;
1980
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1984 ;;
1985
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1988
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1992 ;;
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1995 ;;
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
1998 ;;
1999
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2009 ;;
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2013 ;;
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2018 ;;
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2022 ;;
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2025 ;;
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2029 ;;
2030
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2034 ;;
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2046 ;;
2047
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2051 ;;
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2054 ;;
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2057 ;;
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2060 ;;
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2063 ;;
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2066 ;;
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2069 ;;
2070
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2086 ;;
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2089 ;;
2090
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2094 ;;
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2097 ;;
2098
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2102 ;;
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2105 ;;
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2108 ;;
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2111 ;;
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2114 ;;
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2117 ;;
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2120 ;;
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2123 ;;
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2126 ;;
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2129 ;;
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2132 ;;
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2135 ;;
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2138 ;;
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2141 ;;
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2144 ;;
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2147 ;;
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2150 ;;
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2156 ;;
2157
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2161 ;;
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2164 ;;
2165
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2169 ;;
2170
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2174 ;;
2175
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2179 ;;
2180
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2185 ;;
2186
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2192 ;;
2193
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2197 ;;
2198
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2203 ;;
2204
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2208 ;;
2209
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2215 ;;
2216
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2220 ;;
2221
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2225 ;;
2226
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2230 ;;
2231
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2235
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2246 ;;
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2251 ;;
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2256 ;;
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2259 ;;
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2262 ;;
2263
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2267 ;;
2268
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2272 ;;
2273
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2277 ;;
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2280 ;;
2281
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2285 ;;
2286
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2290 ;;
2291
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2295 ;;
2296
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2300 ;;
2301
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2307 ;;
2308
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2312 ;;
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2315 ;;
2316
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2322 ;;
2323
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2328 ;;
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2331 ;;
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2335 ;;
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2338 ;;
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2346 ;;
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2354 ;;
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2357 ;;
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2360 ;;
2361
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2365 ;;
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2368 ;;
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2371 ;;
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2374 ;;
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2377 ;;
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2380 ;;
2381
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2385 ;;
2386
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2390 ;;
2391
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2417 ;;
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2421 ;;
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2430 ;;
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2435 ;;
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2440 ;;
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2445 ;;
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2449 ;;
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2459 fi
2460 ;;
2461 *) ;;
2462 esac
2463 ;;
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2466 ;;
2467
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2471 ;;
2472
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2476 ;;
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2479 ;;
2480
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2484 ;;
2485
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2489 ;;
2490
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2494 ;;
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2499 ;;
2500
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2505 ;;
2506
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2510 ;;
2511
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2524 ;;
2525
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2531 ;;
2532
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2536 ;;
2537
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2541 ;;
2542
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2555 ;;
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2567 ;;
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2575 ;;
2576
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2580 ;;
2581
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2585 ;;
2586
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2592 ;;
2593
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2597 ;;
2598
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2609 fi
2610 ;;
2611
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2615 ;;
2616
2617 * )
2618 unported=yes
2619 ;;
2620 esac
2621
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2650 fi
2651 fi
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658 fi
2659
2660
2661
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2668 fi
2669
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2672
2673
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2676
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2679
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2683 * )
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 fi
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2762 fi
2763
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2847 fi
2848
2849 fi
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 fi
2902
2903 fi
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2907 do
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2941 fi
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985 test -n "$ac_ct_CC" && break
2986 done
2987
2988 CC=$ac_ct_CC
2989 fi
2990
2991 fi
2992
2993
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
2999
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3019
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3051
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3057 do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3061 ;;
3062 conftest.$ac_ext )
3063 # This is the source file.
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3076 * )
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3089 fi
3090
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3094
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120 fi
3121 fi
3122 fi
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3125
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3134
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 fi
3214
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_compiler_gnu=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 ac_compiler_gnu=no
3272 fi
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 CFLAGS="-g"
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_g=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 ac_cv_prog_cc_g=no
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3343 fi
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_prog_cc_stdc=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372 char **p;
3373 int i;
3374 {
3375 return p[i];
3376 }
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3378 {
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3385 }
3386
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3402 int
3403 main ()
3404 {
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc=$ac_arg
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 fi
3449 rm -f conftest.err conftest.$ac_objext
3450 done
3451 rm -f conftest.$ac_ext conftest.$ac_objext
3452 CC=$ac_save_CC
3453
3454 fi
3455
3456 case "x$ac_cv_prog_cc_stdc" in
3457 x|xno)
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3460 *)
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC="$CC $ac_cv_prog_cc_stdc" ;;
3464 esac
3465
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #ifndef __cplusplus
3472 choke me
3473 #endif
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3498 '' \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3503 'void exit (int);'
3504 do
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_declaration
3512 #include <stdlib.h>
3513 int
3514 main ()
3515 {
3516 exit (42);
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 :
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 continue
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_declaration
3558 int
3559 main ()
3560 {
3561 exit (42);
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 rm -f conftest*
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3601 fi
3602
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 fi
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618 CPP=
3619 fi
3620
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3625 then
3626 CPP="$NON_GNU_CPP"
3627 fi
3628
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3633 test x$cc_specified != xyes
3634 then
3635 CC="$NON_GNU_CC"
3636 fi
3637
3638 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3639 then
3640 CC="$CC $GCC_TEST_OPTIONS"
3641 fi
3642
3643 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3644 then
3645 CC="$CC $NON_GCC_TEST_OPTIONS"
3646 fi
3647
3648 #### Some other nice autoconf tests.
3649
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652 LN_S=$as_ln_s
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3659 fi
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670 CPP=
3671 fi
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678 do
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699 Syntax error
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715 else
3716 ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719 :
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 # Broken: fails on valid input.
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null; then
3747 if test -s conftest.err; then
3748 ac_cpp_err=$ac_c_preproc_warn_flag
3749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 else
3751 ac_cpp_err=
3752 fi
3753 else
3754 ac_cpp_err=yes
3755 fi
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773 break
3774 fi
3775
3776 done
3777 ac_cv_prog_CPP=$CPP
3778
3779 fi
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3783 fi
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3788 do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3821 fi
3822 else
3823 ac_cpp_err=yes
3824 fi
3825 if test -z "$ac_cpp_err"; then
3826 :
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 # Broken: fails on valid input.
3832 continue
3833 fi
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3859 fi
3860 else
3861 ac_cpp_err=yes
3862 fi
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3873 fi
3874 rm -f conftest.err conftest.$ac_ext
3875
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then
3880 :
3881 else
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in
3921 ./ | .// | /cC/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3924 /usr/ucb/* ) ;;
3925 *)
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3935 :
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3939 :
3940 else
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 break 3
3943 fi
3944 fi
3945 done
3946 done
3947 ;;
3948 esac
3949 done
3950
3951
3952 fi
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3955 else
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3961 fi
3962 fi
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3965
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3969
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3971
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3973
3974 if test "x$RANLIB" = x; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999
4000 fi
4001 fi
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011 fi
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4039 fi
4040 fi
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 RANLIB=$ac_ct_RANLIB
4051 else
4052 RANLIB="$ac_cv_prog_RANLIB"
4053 fi
4054
4055 fi
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $INSTALL_INFO in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4066 ;;
4067 *)
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081
4082 ;;
4083 esac
4084 fi
4085 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4086
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093 fi
4094
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 case $INSTALL_INFO in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4105 ;;
4106 *)
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in /usr/sbin
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120
4121 ;;
4122 esac
4123 fi
4124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4125
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 case $INSTALL_INFO in
4142 [\\/]* | ?:[\\/]*)
4143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4144 ;;
4145 *)
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in /sbin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4161 ;;
4162 esac
4163 fi
4164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4165
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174
4175
4176 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4177 then
4178 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4179 fi
4180
4181 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4182 then
4183 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4184 fi
4185
4186
4187 late_LDFLAGS=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4190 else
4191 LDFLAGS="$LDFLAGS -znocombreloc"
4192 fi
4193
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4196
4197 cat >conftest.$ac_ext <<_ACEOF
4198 main(){return 0;}
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 LDFLAGS=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4234
4235
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242 then ac_cv_prog_egrep='grep -E'
4243 else ac_cv_prog_egrep='egrep'
4244 fi
4245 fi
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4249
4250
4251
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef _AIX
4261 yes
4262 #endif
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev/null 2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h <<\_ACEOF
4270 #define _ALL_SOURCE 1
4271 _ACEOF
4272
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277 rm -f conftest*
4278
4279
4280
4281
4282 #### Extract some information from the operating system and machine files.
4283
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4290
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4297
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4300
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4303 ### anyway.
4304 tempcname="conftest.c"
4305
4306 echo '
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4311 #endif
4312 #ifndef LIBS_SYSTEM
4313 #define LIBS_SYSTEM
4314 #endif
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4317 #endif
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4320 #endif
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4324
4325 #ifndef LIB_X11_LIB
4326 #define LIB_X11_LIB -lX11
4327 #endif
4328
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4331 #endif
4332
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4335 #endif
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4337
4338 #ifdef UNEXEC
4339 configure___ unexec=UNEXEC
4340 #else
4341 configure___ unexec=unexec.o
4342 #endif
4343
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4346 #else
4347 configure___ system_malloc=no
4348 #endif
4349
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4352 #else
4353 configure___ use_mmap_for_buffers=no
4354 #endif
4355
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4358 #endif
4359
4360 #ifndef C_OPTIMIZE_SWITCH
4361 #ifdef __GNUC__
4362 #define C_OPTIMIZE_SWITCH -O2
4363 #else
4364 #define C_OPTIMIZE_SWITCH -O
4365 #endif
4366 #endif
4367
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4370 #endif
4371
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4374 #endif
4375
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4378 #endif
4379
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4382
4383 #ifdef THIS_IS_CONFIGURE
4384
4385 /* Get the CFLAGS for tests in configure. */
4386 #ifdef __GNUC__
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4388 #else
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4390 #endif
4391
4392 #else /* not THIS_IS_CONFIGURE */
4393
4394 /* Get the CFLAGS for real compilation. */
4395 #ifdef __GNUC__
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4400
4401 #endif /* not THIS_IS_CONFIGURE */
4402 ' > ${tempcname}
4403
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4412 else
4413 REAL_CFLAGS="$CFLAGS"
4414 fi
4415 rm ${tempcname}
4416
4417 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4418
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4420
4421 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4422 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4423 else
4424 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4425 fi
4426
4427
4428
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define _GNU_SOURCE 1
4432 _ACEOF
4433
4434
4435
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval="$enable_largefile"
4439
4440 fi;
4441 if test "$enable_largefile" != no; then
4442
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_cv_sys_largefile_CC=no
4449 if test "$GCC" != yes; then
4450 ac_save_CC=$CC
4451 while :; do
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4468 ? 1 : -1];
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 break
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 fi
4505 rm -f conftest.err conftest.$ac_objext
4506 CC="$CC -n32"
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC=' -n32'; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 fi
4535 rm -f conftest.err conftest.$ac_objext
4536 break
4537 done
4538 CC=$ac_save_CC
4539 rm -f conftest.$ac_ext
4540 fi
4541 fi
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no; then
4545 CC=$CC$ac_cv_sys_largefile_CC
4546 fi
4547
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 while :; do
4554 ac_cv_sys_file_offset_bits=no
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4569 ? 1 : -1];
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 break
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 fi
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4622 ? 1 : -1];
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits=64; break
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 fi
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660 break
4661 done
4662 fi
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no; then
4666
4667 cat >>confdefs.h <<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4669 _ACEOF
4670
4671 fi
4672 rm -f conftest*
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 while :; do
4679 ac_cv_sys_large_files=no
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 break
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 fi
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4747 ? 1 : -1];
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files=1; break
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 break
4786 done
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no; then
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4794 _ACEOF
4795
4796 fi
4797 rm -f conftest*
4798 fi
4799
4800
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <stdlib.h>
4815 #include <stdarg.h>
4816 #include <string.h>
4817 #include <float.h>
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_header_stdc=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <string.h>
4867
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev/null 2>&1; then
4871 :
4872 else
4873 ac_cv_header_stdc=no
4874 fi
4875 rm -f conftest*
4876
4877 fi
4878
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then
4892 :
4893 else
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4903 :
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ctype.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4922
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 int
4925 main ()
4926 {
4927 int i;
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4931 exit(2);
4932 exit (0);
4933 }
4934 _ACEOF
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 :
4947 else
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ( exit $ac_status )
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4965 _ACEOF
4966
4967 fi
4968
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980 inttypes.h stdint.h unistd.h
4981 do
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4995
4996 #include <$ac_header>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 eval "$as_ac_Header=no"
5026 fi
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034 _ACEOF
5035
5036 fi
5037
5038 done
5039
5040
5041
5042
5043
5044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5045 do
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 fi
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 else
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ac_header_compiler=no
5096 fi
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5100
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5111 _ACEOF
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null; then
5120 if test -s conftest.err; then
5121 ac_cpp_err=$ac_c_preproc_warn_flag
5122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123 else
5124 ac_cpp_err=
5125 fi
5126 else
5127 ac_cpp_err=yes
5128 fi
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_header_preproc=no
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5140
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143 yes:no: )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc=yes
5149 ;;
5150 no:yes:* )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163 (
5164 cat <<\_ASBOX
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5168 _ASBOX
5169 ) |
5170 sed "s/^/$as_me: WARNING: /" >&2
5171 ;;
5172 esac
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=\$ac_header_preproc"
5179 fi
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182
5183 fi
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 fi
5190
5191 done
5192
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lossaudio $LIBS"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char _oss_ioctl ();
5215 int
5216 main ()
5217 {
5218 _oss_ioctl ();
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_cv_lib_ossaudio__oss_ioctl=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5259 LIBSOUND=-lossaudio
5260 else
5261 LIBSOUND=
5262 fi
5263
5264
5265 fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5291 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5293 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5294 do
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 fi
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304 else
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler=yes
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 ac_header_compiler=no
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5349
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5360 _ACEOF
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_c_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 else
5373 ac_cpp_err=
5374 fi
5375 else
5376 ac_cpp_err=yes
5377 fi
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_header_preproc=no
5385 fi
5386 rm -f conftest.err conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5389
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 yes:no: )
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc=yes
5398 ;;
5399 no:yes:* )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5412 (
5413 cat <<\_ASBOX
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5417 _ASBOX
5418 ) |
5419 sed "s/^/$as_me: WARNING: /" >&2
5420 ;;
5421 esac
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 eval "$as_ac_Header=\$ac_header_preproc"
5428 fi
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431
5432 fi
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 _ACEOF
5437
5438 fi
5439
5440 done
5441
5442
5443 for ac_header in term.h
5444 do
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <$ac_header>
5458 _ACEOF
5459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5470 else
5471 ac_cpp_err=
5472 fi
5473 else
5474 ac_cpp_err=yes
5475 fi
5476 if test -z "$ac_cpp_err"; then
5477 eval "$as_ac_Header=yes"
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 eval "$as_ac_Header=no"
5483 fi
5484 rm -f conftest.err conftest.$ac_ext
5485 fi
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 _ACEOF
5492
5493 fi
5494
5495 done
5496
5497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5499 if test "${ac_cv_header_stdc+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <stdlib.h>
5509 #include <stdarg.h>
5510 #include <string.h>
5511 #include <float.h>
5512
5513 int
5514 main ()
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_header_stdc=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <string.h>
5561
5562 _ACEOF
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 $EGREP "memchr" >/dev/null 2>&1; then
5565 :
5566 else
5567 ac_cv_header_stdc=no
5568 fi
5569 rm -f conftest*
5570
5571 fi
5572
5573 if test $ac_cv_header_stdc = yes; then
5574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <stdlib.h>
5582
5583 _ACEOF
5584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585 $EGREP "free" >/dev/null 2>&1; then
5586 :
5587 else
5588 ac_cv_header_stdc=no
5589 fi
5590 rm -f conftest*
5591
5592 fi
5593
5594 if test $ac_cv_header_stdc = yes; then
5595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5596 if test "$cross_compiling" = yes; then
5597 :
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <ctype.h>
5606 #if ((' ' & 0x0FF) == 0x020)
5607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5609 #else
5610 # define ISLOWER(c) \
5611 (('a' <= (c) && (c) <= 'i') \
5612 || ('j' <= (c) && (c) <= 'r') \
5613 || ('s' <= (c) && (c) <= 'z'))
5614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5615 #endif
5616
5617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5618 int
5619 main ()
5620 {
5621 int i;
5622 for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i))
5624 || toupper (i) != TOUPPER (i))
5625 exit(2);
5626 exit (0);
5627 }
5628 _ACEOF
5629 rm -f conftest$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 :
5641 else
5642 echo "$as_me: program exited with status $ac_status" >&5
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 ( exit $ac_status )
5647 ac_cv_header_stdc=no
5648 fi
5649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 fi
5652 fi
5653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5655 if test $ac_cv_header_stdc = yes; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define STDC_HEADERS 1
5659 _ACEOF
5660
5661 fi
5662
5663 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5665 if test "${ac_cv_header_time+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 #include <sys/time.h>
5676 #include <time.h>
5677
5678 int
5679 main ()
5680 {
5681 if ((struct tm *) 0)
5682 return 0;
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_header_time=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_cv_header_time=no
5715 fi
5716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5719 echo "${ECHO_T}$ac_cv_header_time" >&6
5720 if test $ac_cv_header_time = yes; then
5721
5722 cat >>confdefs.h <<\_ACEOF
5723 #define TIME_WITH_SYS_TIME 1
5724 _ACEOF
5725
5726 fi
5727
5728 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5729 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5730 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 int
5741 main ()
5742 {
5743 #ifndef sys_siglist
5744 char *p = (char *) sys_siglist;
5745 #endif
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_have_decl_sys_siglist=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_have_decl_sys_siglist=no
5779 fi
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5783 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5784 if test $ac_cv_have_decl_sys_siglist = yes; then
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define HAVE_DECL_SYS_SIGLIST 1
5788 _ACEOF
5789
5790
5791 else
5792 cat >>confdefs.h <<_ACEOF
5793 #define HAVE_DECL_SYS_SIGLIST 0
5794 _ACEOF
5795
5796
5797 fi
5798
5799
5800 if test $ac_cv_have_decl_sys_siglist != yes; then
5801 # For Tru64, at least:
5802 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5803 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5804 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5814 int
5815 main ()
5816 {
5817 #ifndef __sys_siglist
5818 char *p = (char *) __sys_siglist;
5819 #endif
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_have_decl___sys_siglist=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cv_have_decl___sys_siglist=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5857 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5858 if test $ac_cv_have_decl___sys_siglist = yes; then
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_DECL___SYS_SIGLIST 1
5862 _ACEOF
5863
5864
5865 else
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_DECL___SYS_SIGLIST 0
5868 _ACEOF
5869
5870
5871 fi
5872
5873
5874 if test $ac_cv_have_decl___sys_siglist = yes; then
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define sys_siglist __sys_siglist
5878 _ACEOF
5879
5880 fi
5881 fi
5882 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5883 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5884 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 #include <sys/wait.h>
5895 #ifndef WEXITSTATUS
5896 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5897 #endif
5898 #ifndef WIFEXITED
5899 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5900 #endif
5901
5902 int
5903 main ()
5904 {
5905 int s;
5906 wait (&s);
5907 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_header_sys_wait_h=yes
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_cv_header_sys_wait_h=no
5940 fi
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5944 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5945 if test $ac_cv_header_sys_wait_h = yes; then
5946
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_SYS_WAIT_H 1
5949 _ACEOF
5950
5951 fi
5952
5953
5954 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5955 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5956 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #ifdef TIME_WITH_SYS_TIME
5966 #include <sys/time.h>
5967 #include <time.h>
5968 #else
5969 #ifdef HAVE_SYS_TIME_H
5970 #include <sys/time.h>
5971 #else
5972 #include <time.h>
5973 #endif
5974 #endif
5975 #ifdef HAVE_UTIME_H
5976 #include <utime.h>
5977 #endif
5978 int
5979 main ()
5980 {
5981 static struct utimbuf x; x.actime = x.modtime;
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 emacs_cv_struct_utimbuf=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 emacs_cv_struct_utimbuf=no
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6018 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6019 if test $emacs_cv_struct_utimbuf = yes; then
6020
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_STRUCT_UTIMBUF 1
6023 _ACEOF
6024
6025 fi
6026
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <signal.h>
6040 #ifdef signal
6041 # undef signal
6042 #endif
6043 #ifdef __cplusplus
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6045 #else
6046 void (*signal ()) ();
6047 #endif
6048
6049 int
6050 main ()
6051 {
6052 int i;
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal=void
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_cv_type_signal=int
6085 fi
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6090
6091 cat >>confdefs.h <<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6093 _ACEOF
6094
6095
6096
6097 echo "$as_me:$LINENO: checking for speed_t" >&5
6098 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6099 if test "${emacs_cv_speed_t+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <termios.h>
6109 int
6110 main ()
6111 {
6112 speed_t x = 1;
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 emacs_cv_speed_t=yes
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 emacs_cv_speed_t=no
6145 fi
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6149 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6150 if test $emacs_cv_speed_t = yes; then
6151
6152 cat >>confdefs.h <<\_ACEOF
6153 #define HAVE_SPEED_T 1
6154 _ACEOF
6155
6156 fi
6157
6158 echo "$as_me:$LINENO: checking for struct timeval" >&5
6159 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6160 if test "${emacs_cv_struct_timeval+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #ifdef TIME_WITH_SYS_TIME
6170 #include <sys/time.h>
6171 #include <time.h>
6172 #else
6173 #ifdef HAVE_SYS_TIME_H
6174 #include <sys/time.h>
6175 #else
6176 #include <time.h>
6177 #endif
6178 #endif
6179 int
6180 main ()
6181 {
6182 static struct timeval x; x.tv_sec = x.tv_usec;
6183 ;
6184 return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_struct_timeval=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 emacs_cv_struct_timeval=no
6215 fi
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6219 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6220 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6221 if test $emacs_cv_struct_timeval = yes; then
6222
6223 cat >>confdefs.h <<\_ACEOF
6224 #define HAVE_TIMEVAL 1
6225 _ACEOF
6226
6227 fi
6228
6229 echo "$as_me:$LINENO: checking for struct exception" >&5
6230 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_exception+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <math.h>
6241 int
6242 main ()
6243 {
6244 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 emacs_cv_struct_exception=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 emacs_cv_struct_exception=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 fi
6280 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6281 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6282 HAVE_EXCEPTION=$emacs_cv_struct_exception
6283 if test $emacs_cv_struct_exception != yes; then
6284
6285 cat >>confdefs.h <<\_ACEOF
6286 #define NO_MATHERR 1
6287 _ACEOF
6288
6289 fi
6290
6291
6292 for ac_header in sys/socket.h
6293 do
6294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 fi
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6303 else
6304 # Is the header compilable?
6305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6314 #include <$ac_header>
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_header_compiler=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_header_compiler=no
6344 fi
6345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347 echo "${ECHO_T}$ac_header_compiler" >&6
6348
6349 # Is the header present?
6350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <$ac_header>
6359 _ACEOF
6360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } >/dev/null; then
6368 if test -s conftest.err; then
6369 ac_cpp_err=$ac_c_preproc_warn_flag
6370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371 else
6372 ac_cpp_err=
6373 fi
6374 else
6375 ac_cpp_err=yes
6376 fi
6377 if test -z "$ac_cpp_err"; then
6378 ac_header_preproc=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_header_preproc=no
6384 fi
6385 rm -f conftest.err conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387 echo "${ECHO_T}$ac_header_preproc" >&6
6388
6389 # So? What about this header?
6390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6391 yes:no: )
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396 ac_header_preproc=yes
6397 ;;
6398 no:yes:* )
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6411 (
6412 cat <<\_ASBOX
6413 ## ------------------------------------------ ##
6414 ## Report this to the AC_PACKAGE_NAME lists. ##
6415 ## ------------------------------------------ ##
6416 _ASBOX
6417 ) |
6418 sed "s/^/$as_me: WARNING: /" >&2
6419 ;;
6420 esac
6421 echo "$as_me:$LINENO: checking for $ac_header" >&5
6422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 eval "$as_ac_Header=\$ac_header_preproc"
6427 fi
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430
6431 fi
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 _ACEOF
6436
6437 fi
6438
6439 done
6440
6441
6442 for ac_header in net/if.h
6443 do
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457 #if HAVE_SYS_SOCKET_H
6458 #include <sys/socket.h>
6459 #endif
6460
6461 #include <$ac_header>
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 eval "$as_ac_Header=yes"
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 eval "$as_ac_Header=no"
6491 fi
6492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499 _ACEOF
6500
6501 fi
6502
6503 done
6504
6505
6506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6508 if test "${ac_cv_struct_tm+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <sys/types.h>
6518 #include <time.h>
6519
6520 int
6521 main ()
6522 {
6523 struct tm *tp; tp->tm_sec;
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_struct_tm=time.h
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_cv_struct_tm=sys/time.h
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6560 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6561 if test $ac_cv_struct_tm = sys/time.h; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define TM_IN_SYS_TIME 1
6565 _ACEOF
6566
6567 fi
6568
6569 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6570 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6571 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <$ac_cv_struct_tm>
6582
6583
6584 int
6585 main ()
6586 {
6587 static struct tm ac_aggr;
6588 if (ac_aggr.tm_zone)
6589 return 0;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_member_struct_tm_tm_zone=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6629
6630
6631 int
6632 main ()
6633 {
6634 static struct tm ac_aggr;
6635 if (sizeof ac_aggr.tm_zone)
6636 return 0;
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_member_struct_tm_tm_zone=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ac_cv_member_struct_tm_tm_zone=no
6669 fi
6670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6675 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6676 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6677
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_STRUCT_TM_TM_ZONE 1
6680 _ACEOF
6681
6682
6683 fi
6684
6685 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_TM_ZONE 1
6689 _ACEOF
6690
6691 else
6692 echo "$as_me:$LINENO: checking for tzname" >&5
6693 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6694 if test "${ac_cv_var_tzname+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <time.h>
6704 #ifndef tzname /* For SGI. */
6705 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6706 #endif
6707
6708 int
6709 main ()
6710 {
6711 atoi(*tzname);
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_var_tzname=yes
6739 else
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743 ac_cv_var_tzname=no
6744 fi
6745 rm -f conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6747 fi
6748 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6749 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6750 if test $ac_cv_var_tzname = yes; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_TZNAME 1
6754 _ACEOF
6755
6756 fi
6757 fi
6758
6759 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6760 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6761 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <time.h>
6771
6772 int
6773 main ()
6774 {
6775 static struct tm ac_aggr;
6776 if (ac_aggr.tm_gmtoff)
6777 return 0;
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_member_struct_tm_tm_gmtoff=yes
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <time.h>
6816
6817 int
6818 main ()
6819 {
6820 static struct tm ac_aggr;
6821 if (sizeof ac_aggr.tm_gmtoff)
6822 return 0;
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_member_struct_tm_tm_gmtoff=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_cv_member_struct_tm_tm_gmtoff=no
6855 fi
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6862 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6863
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_TM_GMTOFF 1
6866 _ACEOF
6867
6868 fi
6869
6870 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6871 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6872 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6884 #endif
6885 #if HAVE_NET_IF_H
6886 #include <net/if.h>
6887 #endif
6888
6889 int
6890 main ()
6891 {
6892 static struct ifreq ac_aggr;
6893 if (ac_aggr.ifr_flags)
6894 return 0;
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_member_struct_ifreq_ifr_flags=yes
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 #if HAVE_SYS_SOCKET_H
6934 #include <sys/socket.h>
6935 #endif
6936 #if HAVE_NET_IF_H
6937 #include <net/if.h>
6938 #endif
6939
6940 int
6941 main ()
6942 {
6943 static struct ifreq ac_aggr;
6944 if (sizeof ac_aggr.ifr_flags)
6945 return 0;
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_ifreq_ifr_flags=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ac_cv_member_struct_ifreq_ifr_flags=no
6978 fi
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6986
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6989 _ACEOF
6990
6991
6992 fi
6993 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7007 #endif
7008 #if HAVE_NET_IF_H
7009 #include <net/if.h>
7010 #endif
7011
7012 int
7013 main ()
7014 {
7015 static struct ifreq ac_aggr;
7016 if (ac_aggr.ifr_hwaddr)
7017 return 0;
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7058 #endif
7059 #if HAVE_NET_IF_H
7060 #include <net/if.h>
7061 #endif
7062
7063 int
7064 main ()
7065 {
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_hwaddr)
7068 return 0;
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7101 fi
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7107 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7108 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7109
7110 cat >>confdefs.h <<_ACEOF
7111 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7112 _ACEOF
7113
7114
7115 fi
7116 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7117 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7118 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #if HAVE_SYS_SOCKET_H
7129 #include <sys/socket.h>
7130 #endif
7131 #if HAVE_NET_IF_H
7132 #include <net/if.h>
7133 #endif
7134
7135 int
7136 main ()
7137 {
7138 static struct ifreq ac_aggr;
7139 if (ac_aggr.ifr_netmask)
7140 return 0;
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_member_struct_ifreq_ifr_netmask=yes
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #if HAVE_SYS_SOCKET_H
7180 #include <sys/socket.h>
7181 #endif
7182 #if HAVE_NET_IF_H
7183 #include <net/if.h>
7184 #endif
7185
7186 int
7187 main ()
7188 {
7189 static struct ifreq ac_aggr;
7190 if (sizeof ac_aggr.ifr_netmask)
7191 return 0;
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_member_struct_ifreq_ifr_netmask=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 ac_cv_member_struct_ifreq_ifr_netmask=no
7224 fi
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228 fi
7229 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7230 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7231 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7232
7233 cat >>confdefs.h <<_ACEOF
7234 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7235 _ACEOF
7236
7237
7238 fi
7239 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7240 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7241 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7251 #if HAVE_SYS_SOCKET_H
7252 #include <sys/socket.h>
7253 #endif
7254 #if HAVE_NET_IF_H
7255 #include <net/if.h>
7256 #endif
7257
7258 int
7259 main ()
7260 {
7261 static struct ifreq ac_aggr;
7262 if (ac_aggr.ifr_broadaddr)
7263 return 0;
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #if HAVE_SYS_SOCKET_H
7303 #include <sys/socket.h>
7304 #endif
7305 #if HAVE_NET_IF_H
7306 #include <net/if.h>
7307 #endif
7308
7309 int
7310 main ()
7311 {
7312 static struct ifreq ac_aggr;
7313 if (sizeof ac_aggr.ifr_broadaddr)
7314 return 0;
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7347 fi
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7353 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7354 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7355
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7358 _ACEOF
7359
7360
7361 fi
7362 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7363 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7364 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 #if HAVE_SYS_SOCKET_H
7375 #include <sys/socket.h>
7376 #endif
7377 #if HAVE_NET_IF_H
7378 #include <net/if.h>
7379 #endif
7380
7381 int
7382 main ()
7383 {
7384 static struct ifreq ac_aggr;
7385 if (ac_aggr.ifr_addr)
7386 return 0;
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_member_struct_ifreq_ifr_addr=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 $ac_includes_default
7425 #if HAVE_SYS_SOCKET_H
7426 #include <sys/socket.h>
7427 #endif
7428 #if HAVE_NET_IF_H
7429 #include <net/if.h>
7430 #endif
7431
7432 int
7433 main ()
7434 {
7435 static struct ifreq ac_aggr;
7436 if (sizeof ac_aggr.ifr_addr)
7437 return 0;
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_member_struct_ifreq_ifr_addr=yes
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_cv_member_struct_ifreq_ifr_addr=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7476 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7477 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7478
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7481 _ACEOF
7482
7483
7484 fi
7485
7486
7487
7488 echo "$as_me:$LINENO: checking for function prototypes" >&5
7489 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7490 if test "$ac_cv_prog_cc_stdc" != no; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492 echo "${ECHO_T}yes" >&6
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define PROTOTYPES 1
7496 _ACEOF
7497
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define __PROTOTYPES 1
7501 _ACEOF
7502
7503 else
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 fi
7507
7508 echo "$as_me:$LINENO: checking for working volatile" >&5
7509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7510 if test "${ac_cv_c_volatile+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519
7520 int
7521 main ()
7522 {
7523
7524 volatile int x;
7525 int * volatile y;
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_c_volatile=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 ac_cv_c_volatile=no
7558 fi
7559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7563 if test $ac_cv_c_volatile = no; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define volatile
7567 _ACEOF
7568
7569 fi
7570
7571 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7572 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7573 if test "${ac_cv_c_const+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582
7583 int
7584 main ()
7585 {
7586 /* FIXME: Include the comments suggested by Paul. */
7587 #ifndef __cplusplus
7588 /* Ultrix mips cc rejects this. */
7589 typedef int charset[2];
7590 const charset x;
7591 /* SunOS 4.1.1 cc rejects this. */
7592 char const *const *ccp;
7593 char **p;
7594 /* NEC SVR4.0.2 mips cc rejects this. */
7595 struct point {int x, y;};
7596 static struct point const zero = {0,0};
7597 /* AIX XL C 1.02.0.0 rejects this.
7598 It does not let you subtract one const X* pointer from another in
7599 an arm of an if-expression whose if-part is not a constant
7600 expression */
7601 const char *g = "string";
7602 ccp = &g + (g ? g-g : 0);
7603 /* HPUX 7.0 cc rejects these. */
7604 ++ccp;
7605 p = (char**) ccp;
7606 ccp = (char const *const *) p;
7607 { /* SCO 3.2v4 cc rejects this. */
7608 char *t;
7609 char const *s = 0 ? (char *) 0 : (char const *) 0;
7610
7611 *t++ = 0;
7612 }
7613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7614 int x[] = {25, 17};
7615 const int *foo = &x[0];
7616 ++foo;
7617 }
7618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7619 typedef const int *iptr;
7620 iptr p = 0;
7621 ++p;
7622 }
7623 { /* AIX XL C 1.02.0.0 rejects this saying
7624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7625 struct s { int j; const int *ap[3]; };
7626 struct s *b; b->j = 5;
7627 }
7628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7629 const int foo = 10;
7630 }
7631 #endif
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 ac_cv_c_const=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_c_const=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7669 echo "${ECHO_T}$ac_cv_c_const" >&6
7670 if test $ac_cv_c_const = no; then
7671
7672 cat >>confdefs.h <<\_ACEOF
7673 #define const
7674 _ACEOF
7675
7676 fi
7677
7678 echo "$as_me:$LINENO: checking for void * support" >&5
7679 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7680 if test "${emacs_cv_void_star+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689
7690 int
7691 main ()
7692 {
7693 void * foo;
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 emacs_cv_void_star=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 emacs_cv_void_star=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7730 echo "${ECHO_T}$emacs_cv_void_star" >&6
7731 if test $emacs_cv_void_star = yes; then
7732 cat >>confdefs.h <<\_ACEOF
7733 #define POINTER_TYPE void
7734 _ACEOF
7735
7736 else
7737 cat >>confdefs.h <<\_ACEOF
7738 #define POINTER_TYPE char
7739 _ACEOF
7740
7741 fi
7742
7743
7744 echo "$as_me:$LINENO: checking whether heap start address is randomized" >&5
7745 echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6
7746 if test x"$ac_cv_header_unistd_h" != x && test x"$ac_cv_header_stdlib_h" != x
7747 then
7748 if test "$cross_compiling" = yes; then
7749 emacs_cv_randomheap='assuming no'
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 #include <stdio.h>
7758 #include <unistd.h>
7759 #include <stdlib.h>
7760 int main (int argc, char *argv[])
7761 {
7762 unsigned long old_sbrk = 0;
7763 unsigned long this_sbrk = (unsigned long) sbrk(0);
7764 int nr = 1;
7765 if (argc != 1) {
7766 old_sbrk = strtoul (argv[1], 0, 0);
7767 nr = atoi (argv[2])+1;
7768 }
7769 if (argc == 1 || (old_sbrk == this_sbrk && nr < 3))
7770 {
7771 char buf1[32], buf2[32];
7772 sprintf (buf1, "%lu", this_sbrk);
7773 sprintf (buf2, "%d", nr);
7774 execl (argv[0], argv[0], buf1, buf2, 0);
7775 exit (-1);
7776 }
7777 exit (this_sbrk == old_sbrk);
7778 }
7779 _ACEOF
7780 rm -f conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_randomheap=yes
7792 else
7793 echo "$as_me: program exited with status $ac_status" >&5
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ( exit $ac_status )
7798 emacs_cv_randomheap=no
7799 fi
7800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 else
7803 emacs_cv_randomheap='assuming no'
7804 fi
7805 echo "$as_me:$LINENO: result: $emacs_cv_randomheap" >&5
7806 echo "${ECHO_T}$emacs_cv_randomheap" >&6
7807
7808 if test "$emacs_cv_randomheap" = yes; then
7809 # Extract the first word of "setarch", so it can be a program name with args.
7810 set dummy setarch; ac_word=$2
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813 if test "${ac_cv_path_SETARCH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 case $SETARCH in
7817 [\\/]* | ?:[\\/]*)
7818 ac_cv_path_SETARCH="$SETARCH" # Let the user override the test with a path.
7819 ;;
7820 *)
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_SETARCH="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834
7835 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH="no"
7836 ;;
7837 esac
7838 fi
7839 SETARCH=$ac_cv_path_SETARCH
7840
7841 if test -n "$SETARCH"; then
7842 echo "$as_me:$LINENO: result: $SETARCH" >&5
7843 echo "${ECHO_T}$SETARCH" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7847 fi
7848
7849
7850 if test "$SETARCH" != no && test "$machine" = "intel386"; then
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_RANDOM_HEAPSTART 1
7854 _ACEOF
7855
7856 else
7857 emacs_cv_randomheap=warn
7858 fi
7859 fi
7860
7861
7862
7863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.make <<\_ACEOF
7870 all:
7871 @echo 'ac_maketemp="$(MAKE)"'
7872 _ACEOF
7873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7875 if test -n "$ac_maketemp"; then
7876 eval ac_cv_prog_make_${ac_make}_set=yes
7877 else
7878 eval ac_cv_prog_make_${ac_make}_set=no
7879 fi
7880 rm -f conftest.make
7881 fi
7882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7885 SET_MAKE=
7886 else
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 SET_MAKE="MAKE=${MAKE-make}"
7890 fi
7891
7892
7893 echo "$as_me:$LINENO: checking for long file names" >&5
7894 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7895 if test "${ac_cv_sys_long_file_names+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 ac_cv_sys_long_file_names=yes
7899 # Test for long file names in all the places we know might matter:
7900 # . the current directory, where building will happen
7901 # $prefix/lib where we will be installing things
7902 # $exec_prefix/lib likewise
7903 # eval it to expand exec_prefix.
7904 # $TMPDIR if set, where it might want to write temporary files
7905 # if $TMPDIR is not set:
7906 # /tmp where it might want to write temporary files
7907 # /var/tmp likewise
7908 # /usr/tmp likewise
7909 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7910 ac_tmpdirs=$TMPDIR
7911 else
7912 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7913 fi
7914 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7915 test -d $ac_dir || continue
7916 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7917 ac_xdir=$ac_dir/cf$$
7918 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7919 ac_tf1=$ac_xdir/conftest9012345
7920 ac_tf2=$ac_xdir/conftest9012346
7921 (echo 1 >$ac_tf1) 2>/dev/null
7922 (echo 2 >$ac_tf2) 2>/dev/null
7923 ac_val=`cat $ac_tf1 2>/dev/null`
7924 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7925 ac_cv_sys_long_file_names=no
7926 rm -rf $ac_xdir 2>/dev/null
7927 break
7928 fi
7929 rm -rf $ac_xdir 2>/dev/null
7930 done
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7933 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7934 if test $ac_cv_sys_long_file_names = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_LONG_FILE_NAMES 1
7938 _ACEOF
7939
7940 fi
7941
7942
7943 #### Choose a window system.
7944
7945 echo "$as_me:$LINENO: checking for X" >&5
7946 echo $ECHO_N "checking for X... $ECHO_C" >&6
7947
7948
7949 # Check whether --with-x or --without-x was given.
7950 if test "${with_x+set}" = set; then
7951 withval="$with_x"
7952
7953 fi;
7954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7955 if test "x$with_x" = xno; then
7956 # The user explicitly disabled X.
7957 have_x=disabled
7958 else
7959 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7960 # Both variables are already set.
7961 have_x=yes
7962 else
7963 if test "${ac_cv_have_x+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 # One or both of the vars are not set, and there is no cached value.
7967 ac_x_includes=no ac_x_libraries=no
7968 rm -fr conftest.dir
7969 if mkdir conftest.dir; then
7970 cd conftest.dir
7971 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7972 cat >Imakefile <<'_ACEOF'
7973 acfindx:
7974 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7975 _ACEOF
7976 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7978 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7980 for ac_extension in a so sl; do
7981 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7982 test -f $ac_im_libdir/libX11.$ac_extension; then
7983 ac_im_usrlibdir=$ac_im_libdir; break
7984 fi
7985 done
7986 # Screen out bogus values from the imake configuration. They are
7987 # bogus both because they are the default anyway, and because
7988 # using them would break gcc on systems where it needs fixed includes.
7989 case $ac_im_incroot in
7990 /usr/include) ;;
7991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7992 esac
7993 case $ac_im_usrlibdir in
7994 /usr/lib | /lib) ;;
7995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7996 esac
7997 fi
7998 cd ..
7999 rm -fr conftest.dir
8000 fi
8001
8002 # Standard set of common directories for X headers.
8003 # Check X11 before X11Rn because it is often a symlink to the current release.
8004 ac_x_header_dirs='
8005 /usr/X11/include
8006 /usr/X11R6/include
8007 /usr/X11R5/include
8008 /usr/X11R4/include
8009
8010 /usr/include/X11
8011 /usr/include/X11R6
8012 /usr/include/X11R5
8013 /usr/include/X11R4
8014
8015 /usr/local/X11/include
8016 /usr/local/X11R6/include
8017 /usr/local/X11R5/include
8018 /usr/local/X11R4/include
8019
8020 /usr/local/include/X11
8021 /usr/local/include/X11R6
8022 /usr/local/include/X11R5
8023 /usr/local/include/X11R4
8024
8025 /usr/X386/include
8026 /usr/x386/include
8027 /usr/XFree86/include/X11
8028
8029 /usr/include
8030 /usr/local/include
8031 /usr/unsupported/include
8032 /usr/athena/include
8033 /usr/local/x11r5/include
8034 /usr/lpp/Xamples/include
8035
8036 /usr/openwin/include
8037 /usr/openwin/share/include'
8038
8039 if test "$ac_x_includes" = no; then
8040 # Guess where to find include files, by looking for Intrinsic.h.
8041 # First, try using that file with no special directory specified.
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Intrinsic.h>
8049 _ACEOF
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null; then
8058 if test -s conftest.err; then
8059 ac_cpp_err=$ac_c_preproc_warn_flag
8060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8061 else
8062 ac_cpp_err=
8063 fi
8064 else
8065 ac_cpp_err=yes
8066 fi
8067 if test -z "$ac_cpp_err"; then
8068 # We can compile using X headers with no special include directory.
8069 ac_x_includes=
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 for ac_dir in $ac_x_header_dirs; do
8075 if test -r "$ac_dir/X11/Intrinsic.h"; then
8076 ac_x_includes=$ac_dir
8077 break
8078 fi
8079 done
8080 fi
8081 rm -f conftest.err conftest.$ac_ext
8082 fi # $ac_x_includes = no
8083
8084 if test "$ac_x_libraries" = no; then
8085 # Check for the libraries.
8086 # See if we find them without any special options.
8087 # Don't add to $LIBS permanently.
8088 ac_save_LIBS=$LIBS
8089 LIBS="-lXt $LIBS"
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <X11/Intrinsic.h>
8097 int
8098 main ()
8099 {
8100 XtMalloc (0)
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 LIBS=$ac_save_LIBS
8128 # We can link X programs with no special library path.
8129 ac_x_libraries=
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 LIBS=$ac_save_LIBS
8135 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8136 do
8137 # Don't even attempt the hair of trying to link an X program!
8138 for ac_extension in a so sl; do
8139 if test -r $ac_dir/libXt.$ac_extension; then
8140 ac_x_libraries=$ac_dir
8141 break 2
8142 fi
8143 done
8144 done
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 fi # $ac_x_libraries = no
8149
8150 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8151 # Didn't find X anywhere. Cache the known absence of X.
8152 ac_cv_have_x="have_x=no"
8153 else
8154 # Record where we found X for the cache.
8155 ac_cv_have_x="have_x=yes \
8156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8157 fi
8158 fi
8159
8160 fi
8161 eval "$ac_cv_have_x"
8162 fi # $with_x != no
8163
8164 if test "$have_x" != yes; then
8165 echo "$as_me:$LINENO: result: $have_x" >&5
8166 echo "${ECHO_T}$have_x" >&6
8167 no_x=yes
8168 else
8169 # If each of the values was on the command line, it overrides each guess.
8170 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8171 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8172 # Update the cache value to reflect the command line values.
8173 ac_cv_have_x="have_x=yes \
8174 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8175 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8176 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8177 fi
8178
8179 if test "$no_x" = yes; then
8180 window_system=none
8181 else
8182 window_system=x11
8183 fi
8184
8185 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8186 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8187 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8188 x_default_search_path=""
8189 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8190 x_search_path="\
8191 ${x_library}/X11/%L/%T/%N%C%S:\
8192 ${x_library}/X11/%l/%T/%N%C%S:\
8193 ${x_library}/X11/%T/%N%C%S:\
8194 ${x_library}/X11/%L/%T/%N%S:\
8195 ${x_library}/X11/%l/%T/%N%S:\
8196 ${x_library}/X11/%T/%N%S"
8197 if test x"${x_default_search_path}" = x; then
8198 x_default_search_path=${x_search_path}
8199 else
8200 x_default_search_path="${x_search_path}:${x_default_search_path}"
8201 fi
8202 done
8203 fi
8204 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8205 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8206 fi
8207
8208 if test x"${x_includes}" = x; then
8209 bitmapdir=/usr/include/X11/bitmaps
8210 else
8211 # accumulate include directories that have X11 bitmap subdirectories
8212 bmd_acc="dummyval"
8213 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8214 if test -d "${bmd}/X11/bitmaps"; then
8215 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8216 fi
8217 if test -d "${bmd}/bitmaps"; then
8218 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8219 fi
8220 done
8221 if test ${bmd_acc} != "dummyval"; then
8222 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8223 fi
8224 fi
8225
8226 case "${window_system}" in
8227 x11 )
8228 HAVE_X_WINDOWS=yes
8229 HAVE_X11=yes
8230 case "${with_x_toolkit}" in
8231 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8232 motif ) USE_X_TOOLKIT=MOTIF ;;
8233 gtk ) with_gtk=yes
8234 USE_X_TOOLKIT=none ;;
8235 no ) USE_X_TOOLKIT=none ;;
8236 * ) USE_X_TOOLKIT=maybe ;;
8237 esac
8238 ;;
8239 none )
8240 HAVE_X_WINDOWS=no
8241 HAVE_X11=no
8242 USE_X_TOOLKIT=none
8243 ;;
8244 esac
8245
8246 ### If we're using X11, we should use the X menu package.
8247 HAVE_MENUS=no
8248 case ${HAVE_X11} in
8249 yes ) HAVE_MENUS=yes ;;
8250 esac
8251
8252 if test "${opsys}" = "hpux9"; then
8253 case "${x_libraries}" in
8254 *X11R4* )
8255 opsysfile="s/hpux9-x11r4.h"
8256 ;;
8257 esac
8258 fi
8259
8260 if test "${opsys}" = "hpux9shr"; then
8261 case "${x_libraries}" in
8262 *X11R4* )
8263 opsysfile="s/hpux9shxr4.h"
8264 ;;
8265 esac
8266 fi
8267
8268 ### Compute the unexec source name from the object name.
8269 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8270
8271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8272 # Assume not, until told otherwise.
8273 GNU_MALLOC=yes
8274 doug_lea_malloc=yes
8275 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8276 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8288 #define malloc_get_state innocuous_malloc_get_state
8289
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char malloc_get_state (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8294
8295 #ifdef __STDC__
8296 # include <limits.h>
8297 #else
8298 # include <assert.h>
8299 #endif
8300
8301 #undef malloc_get_state
8302
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 #ifdef __cplusplus
8305 extern "C"
8306 {
8307 #endif
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310 char malloc_get_state ();
8311 /* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8315 choke me
8316 #else
8317 char (*f) () = malloc_get_state;
8318 #endif
8319 #ifdef __cplusplus
8320 }
8321 #endif
8322
8323 int
8324 main ()
8325 {
8326 return f != malloc_get_state;
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 ac_cv_func_malloc_get_state=yes
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_cv_func_malloc_get_state=no
8359 fi
8360 rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8364 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8365 if test $ac_cv_func_malloc_get_state = yes; then
8366 :
8367 else
8368 doug_lea_malloc=no
8369 fi
8370
8371 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8372 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8373 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define malloc_set_state innocuous_malloc_set_state
8385
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char malloc_set_state (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8390
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8396
8397 #undef malloc_set_state
8398
8399 /* Override any gcc2 internal prototype to avoid an error. */
8400 #ifdef __cplusplus
8401 extern "C"
8402 {
8403 #endif
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char malloc_set_state ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8411 choke me
8412 #else
8413 char (*f) () = malloc_set_state;
8414 #endif
8415 #ifdef __cplusplus
8416 }
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 return f != malloc_set_state;
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_malloc_set_state=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_func_malloc_set_state=no
8455 fi
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8460 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8461 if test $ac_cv_func_malloc_set_state = yes; then
8462 :
8463 else
8464 doug_lea_malloc=no
8465 fi
8466
8467 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8468 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8469 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 extern void (* __after_morecore_hook)();
8479 int
8480 main ()
8481 {
8482 __after_morecore_hook = 0
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 emacs_cv_var___after_morecore_hook=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 emacs_cv_var___after_morecore_hook=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 fi
8519 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8520 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8521 if test $emacs_cv_var___after_morecore_hook = no; then
8522 doug_lea_malloc=no
8523 fi
8524 if test "${system_malloc}" = "yes"; then
8525 GNU_MALLOC=no
8526 GNU_MALLOC_reason="
8527 (The GNU allocators don't work with this system configuration.)"
8528 fi
8529 if test "$doug_lea_malloc" = "yes" ; then
8530 if test "$GNU_MALLOC" = yes ; then
8531 GNU_MALLOC_reason="
8532 (Using Doug Lea's new malloc from the GNU C Library.)"
8533 fi
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define DOUG_LEA_MALLOC 1
8537 _ACEOF
8538
8539 fi
8540
8541 if test x"${REL_ALLOC}" = x; then
8542 REL_ALLOC=${GNU_MALLOC}
8543 fi
8544
8545
8546
8547
8548 for ac_header in stdlib.h unistd.h
8549 do
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 fi
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559 else
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_header_compiler=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8604
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <$ac_header>
8615 _ACEOF
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev/null; then
8624 if test -s conftest.err; then
8625 ac_cpp_err=$ac_c_preproc_warn_flag
8626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8627 else
8628 ac_cpp_err=
8629 fi
8630 else
8631 ac_cpp_err=yes
8632 fi
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_header_preproc=no
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8644
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8647 yes:no: )
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652 ac_header_preproc=yes
8653 ;;
8654 no:yes:* )
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667 (
8668 cat <<\_ASBOX
8669 ## ------------------------------------------ ##
8670 ## Report this to the AC_PACKAGE_NAME lists. ##
8671 ## ------------------------------------------ ##
8672 _ASBOX
8673 ) |
8674 sed "s/^/$as_me: WARNING: /" >&2
8675 ;;
8676 esac
8677 echo "$as_me:$LINENO: checking for $ac_header" >&5
8678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682 eval "$as_ac_Header=\$ac_header_preproc"
8683 fi
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8686
8687 fi
8688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8691 _ACEOF
8692
8693 fi
8694
8695 done
8696
8697
8698 for ac_func in getpagesize
8699 do
8700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701 echo "$as_me:$LINENO: checking for $ac_func" >&5
8702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703 if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8715
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8720
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726
8727 #undef $ac_func
8728
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 {
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736 char $ac_func ();
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741 choke me
8742 #else
8743 char (*f) () = $ac_func;
8744 #endif
8745 #ifdef __cplusplus
8746 }
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 return f != $ac_func;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 eval "$as_ac_var=no"
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 _ACEOF
8795
8796 fi
8797 done
8798
8799 echo "$as_me:$LINENO: checking for working mmap" >&5
8800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 if test "$cross_compiling" = yes; then
8805 ac_cv_func_mmap_fixed_mapped=no
8806 else
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8815 #undef malloc
8816
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8833
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8838
8839 #include <fcntl.h>
8840 #include <sys/mman.h>
8841
8842 #if !STDC_HEADERS && !HAVE_STDLIB_H
8843 char *malloc ();
8844 #endif
8845
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #if !HAVE_GETPAGESIZE
8848 /* Assume that all systems that can run configure have sys/param.h. */
8849 # if !HAVE_SYS_PARAM_H
8850 # define HAVE_SYS_PARAM_H 1
8851 # endif
8852
8853 # ifdef _SC_PAGESIZE
8854 # define getpagesize() sysconf(_SC_PAGESIZE)
8855 # else /* no _SC_PAGESIZE */
8856 # if HAVE_SYS_PARAM_H
8857 # include <sys/param.h>
8858 # ifdef EXEC_PAGESIZE
8859 # define getpagesize() EXEC_PAGESIZE
8860 # else /* no EXEC_PAGESIZE */
8861 # ifdef NBPG
8862 # define getpagesize() NBPG * CLSIZE
8863 # ifndef CLSIZE
8864 # define CLSIZE 1
8865 # endif /* no CLSIZE */
8866 # else /* no NBPG */
8867 # ifdef NBPC
8868 # define getpagesize() NBPC
8869 # else /* no NBPC */
8870 # ifdef PAGESIZE
8871 # define getpagesize() PAGESIZE
8872 # endif /* PAGESIZE */
8873 # endif /* no NBPC */
8874 # endif /* no NBPG */
8875 # endif /* no EXEC_PAGESIZE */
8876 # else /* no HAVE_SYS_PARAM_H */
8877 # define getpagesize() 8192 /* punt totally */
8878 # endif /* no HAVE_SYS_PARAM_H */
8879 # endif /* no _SC_PAGESIZE */
8880
8881 #endif /* no HAVE_GETPAGESIZE */
8882
8883 int
8884 main ()
8885 {
8886 char *data, *data2, *data3;
8887 int i, pagesize;
8888 int fd;
8889
8890 pagesize = getpagesize ();
8891
8892 /* First, make a file with some known garbage in it. */
8893 data = (char *) malloc (pagesize);
8894 if (!data)
8895 exit (1);
8896 for (i = 0; i < pagesize; ++i)
8897 *(data + i) = rand ();
8898 umask (0);
8899 fd = creat ("conftest.mmap", 0600);
8900 if (fd < 0)
8901 exit (1);
8902 if (write (fd, data, pagesize) != pagesize)
8903 exit (1);
8904 close (fd);
8905
8906 /* Next, try to mmap the file at a fixed address which already has
8907 something else allocated at it. If we can, also make sure that
8908 we see the same garbage. */
8909 fd = open ("conftest.mmap", O_RDWR);
8910 if (fd < 0)
8911 exit (1);
8912 data2 = (char *) malloc (2 * pagesize);
8913 if (!data2)
8914 exit (1);
8915 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8916 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8918 exit (1);
8919 for (i = 0; i < pagesize; ++i)
8920 if (*(data + i) != *(data2 + i))
8921 exit (1);
8922
8923 /* Finally, make sure that changes to the mapped area do not
8924 percolate back to the file as seen by read(). (This is a bug on
8925 some variants of i386 svr4.0.) */
8926 for (i = 0; i < pagesize; ++i)
8927 *(data2 + i) = *(data2 + i) + 1;
8928 data3 = (char *) malloc (pagesize);
8929 if (!data3)
8930 exit (1);
8931 if (read (fd, data3, pagesize) != pagesize)
8932 exit (1);
8933 for (i = 0; i < pagesize; ++i)
8934 if (*(data + i) != *(data3 + i))
8935 exit (1);
8936 close (fd);
8937 exit (0);
8938 }
8939 _ACEOF
8940 rm -f conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_func_mmap_fixed_mapped=yes
8952 else
8953 echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ( exit $ac_status )
8958 ac_cv_func_mmap_fixed_mapped=no
8959 fi
8960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_MMAP 1
8969 _ACEOF
8970
8971 fi
8972 rm -f conftest.mmap
8973
8974 if test $use_mmap_for_buffers = yes; then
8975 REL_ALLOC=no
8976 fi
8977
8978 LIBS="$libsrc_libs $LIBS"
8979
8980
8981 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-ldnet $LIBS"
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end 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 dnet_ntoa ();
9002 int
9003 main ()
9004 {
9005 dnet_ntoa ();
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dnet_dnet_ntoa=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037 ac_cv_lib_dnet_dnet_ntoa=no
9038 fi
9039 rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9046 cat >>confdefs.h <<_ACEOF
9047 #define HAVE_LIBDNET 1
9048 _ACEOF
9049
9050 LIBS="-ldnet $LIBS"
9051
9052 fi
9053
9054
9055 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9056 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9057 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lXbsd $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068
9069
9070 int
9071 main ()
9072 {
9073 main ();
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_lib_Xbsd_main=yes
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_cv_lib_Xbsd_main=no
9106 fi
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 LIBS=$ac_check_lib_save_LIBS
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9112 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9113 if test $ac_cv_lib_Xbsd_main = yes; then
9114 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9115 fi
9116
9117
9118
9119 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9120 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-lpthreads $LIBS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132
9133 /* Override any gcc2 internal prototype to avoid an error. */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char cma_open ();
9140 int
9141 main ()
9142 {
9143 cma_open ();
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_pthreads_cma_open=yes
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_cv_lib_pthreads_cma_open=no
9176 fi
9177 rm -f conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9180 fi
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9182 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9183 if test $ac_cv_lib_pthreads_cma_open = yes; then
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_LIBPTHREADS 1
9186 _ACEOF
9187
9188 LIBS="-lpthreads $LIBS"
9189
9190 fi
9191
9192
9193 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9194 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9195 if test -d /usr/X386/include; then
9196 HAVE_XFREE386=yes
9197 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9198 else
9199 HAVE_XFREE386=no
9200 fi
9201 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9202 echo "${ECHO_T}$HAVE_XFREE386" >&6
9203
9204
9205 case ${host_os} in
9206 aix*)
9207 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9208 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9209 if test "${gdb_cv_bigtoc+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212
9213 case $GCC in
9214 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9215 *) gdb_cv_bigtoc=-bbigtoc ;;
9216 esac
9217
9218 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229 int i;
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 :
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 gdb_cv_bigtoc=
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265
9266 fi
9267 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9268 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9269 ;;
9270 esac
9271
9272 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9273 # used for the tests that follow. We set them back to REAL_CFLAGS and
9274 # REAL_CPPFLAGS later on.
9275
9276 REAL_CPPFLAGS="$CPPFLAGS"
9277
9278 if test "${HAVE_X11}" = "yes"; then
9279 DEFS="$C_SWITCH_X_SITE $DEFS"
9280 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9281 LIBS="$LIBX $LIBS"
9282 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9283 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9284
9285 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9286 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9287 # but it's more convenient here to set LD_RUN_PATH
9288 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9289 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9290 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9291 export LD_RUN_PATH
9292 fi
9293
9294 if test "${opsys}" = "gnu-linux"; then
9295 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9296 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303
9304 int
9305 main ()
9306 {
9307 XOpenDisplay ("foo");
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 xlinux_first_failure=no
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 xlinux_first_failure=yes
9340 fi
9341 rm -f conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test "${xlinux_first_failure}" = "yes"; then
9344 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9345 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9346 OLD_CPPFLAGS="$CPPFLAGS"
9347 OLD_LIBS="$LIBS"
9348 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9349 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9350 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9351 LIBS="$LIBS -b i486-linuxaout"
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358
9359 int
9360 main ()
9361 {
9362 XOpenDisplay ("foo");
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 xlinux_second_failure=no
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394 xlinux_second_failure=yes
9395 fi
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test "${xlinux_second_failure}" = "yes"; then
9399 # If we get the same failure with -b, there is no use adding -b.
9400 # So take it out. This plays safe.
9401 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9402 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9403 CPPFLAGS="$OLD_CPPFLAGS"
9404 LIBS="$OLD_LIBS"
9405 echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6
9407 else
9408 echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9410 fi
9411 else
9412 echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9414 fi
9415 fi
9416
9417 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9418 # header files included from there.
9419 echo "$as_me:$LINENO: checking for Xkb" >&5
9420 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 #include <X11/Xlib.h>
9428 #include <X11/XKBlib.h>
9429 int
9430 main ()
9431 {
9432 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 emacs_xkb=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 emacs_xkb=no
9465 fi
9466 rm -f conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9469 echo "${ECHO_T}$emacs_xkb" >&6
9470 if test $emacs_xkb = yes; then
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_XKBGETKEYBOARD 1
9474 _ACEOF
9475
9476 fi
9477
9478
9479
9480
9481
9482 for ac_func in XrmSetDatabase XScreenResourceString \
9483 XScreenNumberOfScreen XSetWMProtocols
9484 do
9485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define $ac_func innocuous_$ac_func
9500
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9505
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9511
9512 #undef $ac_func
9513
9514 /* Override any gcc2 internal prototype to avoid an error. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char $ac_func ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 choke me
9527 #else
9528 char (*f) () = $ac_func;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != $ac_func;
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 eval "$as_ac_var=no"
9570 fi
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 fi
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9579 _ACEOF
9580
9581 fi
9582 done
9583
9584 fi
9585
9586 if test "${window_system}" = "x11"; then
9587 echo "$as_me:$LINENO: checking X11 version 6" >&5
9588 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9589 if test "${emacs_cv_x11_version_6+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h. */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <X11/Xlib.h>
9599 int
9600 main ()
9601 {
9602 #if XlibSpecificationRelease < 6
9603 fail;
9604 #endif
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 emacs_cv_x11_version_6=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 emacs_cv_x11_version_6=no
9638 fi
9639 rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 fi
9642
9643 if test $emacs_cv_x11_version_6 = yes; then
9644 echo "$as_me:$LINENO: result: 6 or newer" >&5
9645 echo "${ECHO_T}6 or newer" >&6
9646
9647 cat >>confdefs.h <<\_ACEOF
9648 #define HAVE_X11R6 1
9649 _ACEOF
9650
9651 else
9652 echo "$as_me:$LINENO: result: before 6" >&5
9653 echo "${ECHO_T}before 6" >&6
9654 fi
9655 fi
9656
9657 if test "${window_system}" = "x11"; then
9658 echo "$as_me:$LINENO: checking X11 version 5" >&5
9659 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9660 if test "${emacs_cv_x11_version_5+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <X11/Xlib.h>
9670 int
9671 main ()
9672 {
9673 #if XlibSpecificationRelease < 5
9674 fail;
9675 #endif
9676
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -z "$ac_c_werror_flag"
9691 || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 emacs_cv_x11_version_5=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 emacs_cv_x11_version_5=no
9709 fi
9710 rm -f conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 fi
9713
9714 if test $emacs_cv_x11_version_5 = yes; then
9715 echo "$as_me:$LINENO: result: 5 or newer" >&5
9716 echo "${ECHO_T}5 or newer" >&6
9717 HAVE_X11R5=yes
9718
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_X11R5 1
9721 _ACEOF
9722
9723 else
9724 HAVE_X11R5=no
9725 echo "$as_me:$LINENO: result: before 5" >&5
9726 echo "${ECHO_T}before 5" >&6
9727 fi
9728 fi
9729
9730
9731
9732 HAVE_GTK=no
9733 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9734 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9735 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9736 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9737 { (exit 1); exit 1; }; };
9738 fi
9739 GLIB_REQUIRED=2.0.1
9740 GTK_REQUIRED=2.0.1
9741 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9742
9743 if test "X${with_pkg_config_prog}" != X; then
9744 PKG_CONFIG="${with_pkg_config_prog}"
9745 fi
9746
9747 succeeded=no
9748
9749 if test -z "$PKG_CONFIG"; then
9750 # Extract the first word of "pkg-config", so it can be a program name with args.
9751 set dummy pkg-config; ac_word=$2
9752 echo "$as_me:$LINENO: checking for $ac_word" >&5
9753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 case $PKG_CONFIG in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9760 ;;
9761 *)
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9764 do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9772 fi
9773 done
9774 done
9775
9776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9777 ;;
9778 esac
9779 fi
9780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9781
9782 if test -n "$PKG_CONFIG"; then
9783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9784 echo "${ECHO_T}$PKG_CONFIG" >&6
9785 else
9786 echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6
9788 fi
9789
9790 fi
9791
9792 if test "$PKG_CONFIG" = "no" ; then
9793 echo "*** The pkg-config script could not be found. Make sure it is"
9794 echo "*** in your path, or give the full path to pkg-config with"
9795 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9797 else
9798 PKG_CONFIG_MIN_VERSION=0.9.0
9799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9800 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9801 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9802
9803 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9806 succeeded=yes
9807
9808 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9809 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9810 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9811 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9812 echo "${ECHO_T}$GTK_CFLAGS" >&6
9813
9814 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9815 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9816 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9817 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9818 echo "${ECHO_T}$GTK_LIBS" >&6
9819 else
9820 GTK_CFLAGS=""
9821 GTK_LIBS=""
9822 ## If we have a custom action on failure, don't print errors, but
9823 ## do set a variable so people can do so.
9824 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9825 echo $GTK_PKG_ERRORS
9826 fi
9827
9828
9829
9830 else
9831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9833 fi
9834 fi
9835
9836 if test $succeeded = yes; then
9837 :
9838 else
9839 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9840 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9841 { (exit 1); exit 1; }; }
9842 fi
9843
9844
9845
9846 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9847 CFLAGS="$CFLAGS $GTK_CFLAGS"
9848 LIBS="$GTK_LIBS $LIBS"
9849 HAVE_GTK=yes
9850
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_GTK 1
9853 _ACEOF
9854
9855 USE_X_TOOLKIT=none
9856
9857 with_toolkit_scroll_bars=yes
9858
9859 HAVE_GTK_MULTIDISPLAY=no
9860
9861 for ac_func in gdk_display_open
9862 do
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9878
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9883
9884 #ifdef __STDC__
9885 # include <limits.h>
9886 #else
9887 # include <assert.h>
9888 #endif
9889
9890 #undef $ac_func
9891
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 {
9896 #endif
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9899 char $ac_func ();
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9904 choke me
9905 #else
9906 char (*f) () = $ac_func;
9907 #endif
9908 #ifdef __cplusplus
9909 }
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915 return f != $ac_func;
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 eval "$as_ac_var=yes"
9943 else
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 eval "$as_ac_var=no"
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9957 _ACEOF
9958 HAVE_GTK_MULTIDISPLAY=yes
9959 fi
9960 done
9961
9962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_GTK_MULTIDISPLAY 1
9966 _ACEOF
9967
9968 fi
9969 fi
9970
9971 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9972 if test x"${HAVE_X11R5}" = xyes; then
9973 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9974 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9975 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984
9985 #include <X11/Intrinsic.h>
9986 #include <X11/Xaw/Simple.h>
9987 int
9988 main ()
9989 {
9990
9991 ;
9992 return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 emacs_cv_x11_version_5_with_xaw=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 emacs_cv_x11_version_5_with_xaw=no
10023 fi
10024 rm -f conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 fi
10027
10028 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10029 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10030 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10031 USE_X_TOOLKIT=LUCID
10032 else
10033 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10034 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10035 USE_X_TOOLKIT=none
10036 fi
10037 else
10038 USE_X_TOOLKIT=none
10039 fi
10040 fi
10041
10042 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10043
10044 if test "${USE_X_TOOLKIT}" != "none"; then
10045 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10046 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10047 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <X11/Intrinsic.h>
10057 int
10058 main ()
10059 {
10060 #if XtSpecificationRelease < 6
10061 fail;
10062 #endif
10063
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 emacs_cv_x11_toolkit_version_6=yes
10091 else
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 emacs_cv_x11_toolkit_version_6=no
10096 fi
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 fi
10100
10101 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10102 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10103 echo "$as_me:$LINENO: result: 6 or newer" >&5
10104 echo "${ECHO_T}6 or newer" >&6
10105
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_X11XTR6 1
10108 _ACEOF
10109
10110 else
10111 echo "$as_me:$LINENO: result: before 6" >&5
10112 echo "${ECHO_T}before 6" >&6
10113 fi
10114
10115 OLDLIBS="$LIBS"
10116 if test x$HAVE_X11XTR6 = xyes; then
10117 LIBS="-lXt -lSM -lICE $LIBS"
10118 else
10119 LIBS="-lXt $LIBS"
10120 fi
10121
10122 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10123 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10124 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-lXmu $LIBS"
10129 cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135
10136 /* Override any gcc2 internal prototype to avoid an error. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10142 char XmuConvertStandardSelection ();
10143 int
10144 main ()
10145 {
10146 XmuConvertStandardSelection ();
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10179 fi
10180 rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10185 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10186 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_LIBXMU 1
10189 _ACEOF
10190
10191 LIBS="-lXmu $LIBS"
10192
10193 fi
10194
10195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10196 fi
10197
10198 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10199 if test "${HAVE_X11}" = "yes"; then
10200 if test "${USE_X_TOOLKIT}" != "none"; then
10201
10202 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10203 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-lXext $LIBS"
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215
10216 /* Override any gcc2 internal prototype to avoid an error. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222 char XShapeQueryExtension ();
10223 int
10224 main ()
10225 {
10226 XShapeQueryExtension ();
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_Xext_XShapeQueryExtension=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 ac_cv_lib_Xext_XShapeQueryExtension=no
10259 fi
10260 rm -f conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10265 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10266 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE_LIBXEXT 1
10269 _ACEOF
10270
10271 LIBS="-lXext $LIBS"
10272
10273 fi
10274
10275 fi
10276 fi
10277
10278 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10279 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10280 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10281 if test "${emacs_cv_lesstif+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 # We put this in CFLAGS temporarily to precede other -I options
10285 # that might be in CFLAGS temporarily.
10286 # We put this in CPPFLAGS where it precedes the other -I options.
10287 OLD_CPPFLAGS=$CPPFLAGS
10288 OLD_CFLAGS=$CFLAGS
10289 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10290 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10298 int
10299 main ()
10300 {
10301 int x = 5;
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest.$ac_objext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 emacs_cv_lesstif=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 emacs_cv_lesstif=no
10334 fi
10335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10338 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10339 if test $emacs_cv_lesstif = yes; then
10340 # Make sure this -I option remains in CPPFLAGS after it is set
10341 # back to REAL_CPPFLAGS.
10342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10343 # have those other -I options anyway. Ultimately, having this
10344 # directory ultimately in CPPFLAGS will be enough.
10345 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10346 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10347 else
10348 CFLAGS=$OLD_CFLAGS
10349 CPPFLAGS=$OLD_CPPFLAGS
10350 fi
10351 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10352 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 #include <Xm/Xm.h>
10363 int
10364 main ()
10365 {
10366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10367 int x = 5;
10368 #else
10369 Motif version prior to 2.1.
10370 #endif
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 emacs_cv_motif_version_2_1=yes
10398 else
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 emacs_cv_motif_version_2_1=no
10403 fi
10404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10407 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10408 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10409 if test $emacs_cv_motif_version_2_1 = yes; then
10410 HAVE_LIBXP=no
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_MOTIF_2_1 1
10414 _ACEOF
10415
10416 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10417 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10418 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-lXp $LIBS"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char XpCreateContext ();
10437 int
10438 main ()
10439 {
10440 XpCreateContext ();
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_Xp_XpCreateContext=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 ac_cv_lib_Xp_XpCreateContext=no
10473 fi
10474 rm -f conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10479 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10480 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10481 HAVE_LIBXP=yes
10482 fi
10483
10484 if test ${HAVE_LIBXP} = yes; then
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_LIBXP 1
10488 _ACEOF
10489
10490 fi
10491 fi
10492 fi
10493
10494 ### Is -lXaw3d available?
10495 HAVE_XAW3D=no
10496 if test "${HAVE_X11}" = "yes"; then
10497 if test "${USE_X_TOOLKIT}" != "none"; then
10498 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10499 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10500 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xaw3d/Scrollbar.h>
10510 _ACEOF
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev/null; then
10519 if test -s conftest.err; then
10520 ac_cpp_err=$ac_c_preproc_warn_flag
10521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10522 else
10523 ac_cpp_err=
10524 fi
10525 else
10526 ac_cpp_err=yes
10527 fi
10528 if test -z "$ac_cpp_err"; then
10529 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10535 fi
10536 rm -f conftest.err conftest.$ac_ext
10537 fi
10538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10539 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10540 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10541 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10542 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10543 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lXaw3d $LIBS"
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554
10555 /* Override any gcc2 internal prototype to avoid an error. */
10556 #ifdef __cplusplus
10557 extern "C"
10558 #endif
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561 char XawScrollbarSetThumb ();
10562 int
10563 main ()
10564 {
10565 XawScrollbarSetThumb ();
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10598 fi
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10604 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10605 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10606 HAVE_XAW3D=yes
10607 fi
10608
10609 fi
10610
10611
10612 if test "${HAVE_XAW3D}" = "yes"; then
10613
10614 cat >>confdefs.h <<\_ACEOF
10615 #define HAVE_XAW3D 1
10616 _ACEOF
10617
10618 fi
10619 fi
10620 fi
10621
10622
10623
10624 USE_TOOLKIT_SCROLL_BARS=no
10625 if test "${with_toolkit_scroll_bars}" != "no"; then
10626 if test "${USE_X_TOOLKIT}" != "none"; then
10627 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define USE_TOOLKIT_SCROLL_BARS 1
10630 _ACEOF
10631
10632 HAVE_XAW3D=no
10633 USE_TOOLKIT_SCROLL_BARS=yes
10634 elif test "${HAVE_XAW3D}" = "yes"; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define USE_TOOLKIT_SCROLL_BARS 1
10637 _ACEOF
10638
10639 USE_TOOLKIT_SCROLL_BARS=yes
10640 fi
10641 elif test "${HAVE_GTK}" = "yes"; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define USE_TOOLKIT_SCROLL_BARS 1
10644 _ACEOF
10645
10646 USE_TOOLKIT_SCROLL_BARS=yes
10647 fi
10648 fi
10649
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 #include <X11/Xlib.h>
10658 #include <X11/Xresource.h>
10659 int
10660 main ()
10661 {
10662 XIMProc callback;
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 HAVE_XIM=yes
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_XIM 1
10693 _ACEOF
10694
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 HAVE_XIM=no
10700 fi
10701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10702
10703
10704 if test "${with_xim}" != "no"; then
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define USE_XIM 1
10708 _ACEOF
10709
10710 fi
10711
10712
10713 if test "${HAVE_XIM}" != "no"; then
10714 late_CFLAGS=$CFLAGS
10715 if test "$GCC" = yes; then
10716 CFLAGS="$CFLAGS --pedantic-errors"
10717 fi
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724
10725 #include <X11/Xlib.h>
10726 #include <X11/Xresource.h>
10727 int
10728 main ()
10729 {
10730 Display *display;
10731 XrmDatabase db;
10732 char *res_name;
10733 char *res_class;
10734 XIMProc callback;
10735 XPointer *client_data;
10736 #ifndef __GNUC__
10737 /* If we're not using GCC, it's probably not XFree86, and this is
10738 probably right, but we can't use something like --pedantic-errors. */
10739 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10740 char*, XIMProc, XPointer*);
10741 #endif
10742 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10743 client_data);
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 emacs_cv_arg6_star=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 fi
10776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10777
10778 if test "$emacs_cv_arg6_star" = yes; then
10779 cat >>confdefs.h <<\_ACEOF
10780 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10781 _ACEOF
10782
10783 else
10784 cat >>confdefs.h <<\_ACEOF
10785 #define XRegisterIMInstantiateCallback_arg6 XPointer
10786 _ACEOF
10787
10788 fi
10789 CFLAGS=$late_CFLAGS
10790 fi
10791
10792 ### Use -lXpm if available, unless `--with-xpm=no'.
10793 HAVE_XPM=no
10794 if test "${HAVE_X11}" = "yes"; then
10795 if test "${with_xpm}" != "no"; then
10796 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10797 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10798 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10799 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 fi
10802 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10803 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10804 else
10805 # Is the header compilable?
10806 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10807 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <X11/xpm.h>
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>conftest.er1
10820 ac_status=$?
10821 grep -v '^ *+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -z "$ac_c_werror_flag"
10827 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler=yes
10840 else
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_header_compiler=no
10845 fi
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10848 echo "${ECHO_T}$ac_header_compiler" >&6
10849
10850 # Is the header present?
10851 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10852 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <X11/xpm.h>
10860 _ACEOF
10861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev/null; then
10869 if test -s conftest.err; then
10870 ac_cpp_err=$ac_c_preproc_warn_flag
10871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10872 else
10873 ac_cpp_err=
10874 fi
10875 else
10876 ac_cpp_err=yes
10877 fi
10878 if test -z "$ac_cpp_err"; then
10879 ac_header_preproc=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_header_preproc=no
10885 fi
10886 rm -f conftest.err conftest.$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888 echo "${ECHO_T}$ac_header_preproc" >&6
10889
10890 # So? What about this header?
10891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892 yes:no: )
10893 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10894 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10896 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10897 ac_header_preproc=yes
10898 ;;
10899 no:yes:* )
10900 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10905 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10907 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10909 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10911 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10912 (
10913 cat <<\_ASBOX
10914 ## ------------------------------------------ ##
10915 ## Report this to the AC_PACKAGE_NAME lists. ##
10916 ## ------------------------------------------ ##
10917 _ASBOX
10918 ) |
10919 sed "s/^/$as_me: WARNING: /" >&2
10920 ;;
10921 esac
10922 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10923 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 ac_cv_header_X11_xpm_h=$ac_header_preproc
10928 fi
10929 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10930 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10931
10932 fi
10933 if test $ac_cv_header_X11_xpm_h = yes; then
10934 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10935 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10936 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lXpm -lX11 $LIBS"
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char XpmReadFileToPixmap ();
10955 int
10956 main ()
10957 {
10958 XpmReadFileToPixmap ();
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10991 fi
10992 rm -f conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10997 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10998 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10999 HAVE_XPM=yes
11000 fi
11001
11002 fi
11003
11004
11005 if test "${HAVE_XPM}" = "yes"; then
11006 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11007 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include "X11/xpm.h"
11015 #ifndef XpmReturnAllocPixels
11016 no_return_alloc_pixels
11017 #endif
11018
11019 _ACEOF
11020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11022 HAVE_XPM=no
11023 else
11024 HAVE_XPM=yes
11025 fi
11026 rm -f conftest*
11027
11028
11029 if test "${HAVE_XPM}" = "yes"; then
11030 echo "$as_me:$LINENO: result: yes" >&5
11031 echo "${ECHO_T}yes" >&6
11032 else
11033 echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6
11035 fi
11036 fi
11037 fi
11038
11039 if test "${HAVE_XPM}" = "yes"; then
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_XPM 1
11043 _ACEOF
11044
11045 fi
11046 fi
11047
11048 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11049 HAVE_JPEG=no
11050 if test "${HAVE_X11}" = "yes"; then
11051 if test "${with_jpeg}" != "no"; then
11052 if test "${ac_cv_header_jerror_h+set}" = set; then
11053 echo "$as_me:$LINENO: checking for jerror.h" >&5
11054 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11055 if test "${ac_cv_header_jerror_h+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 fi
11058 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11059 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11060 else
11061 # Is the header compilable?
11062 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11063 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <jerror.h>
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler=yes
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_header_compiler=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6
11105
11106 # Is the header present?
11107 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11108 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <jerror.h>
11116 _ACEOF
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11128 else
11129 ac_cpp_err=
11130 fi
11131 else
11132 ac_cpp_err=yes
11133 fi
11134 if test -z "$ac_cpp_err"; then
11135 ac_header_preproc=yes
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
11141 fi
11142 rm -f conftest.err conftest.$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144 echo "${ECHO_T}$ac_header_preproc" >&6
11145
11146 # So? What about this header?
11147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11148 yes:no: )
11149 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11150 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11152 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc=yes
11154 ;;
11155 no:yes:* )
11156 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11161 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11163 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11167 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11168 (
11169 cat <<\_ASBOX
11170 ## ------------------------------------------ ##
11171 ## Report this to the AC_PACKAGE_NAME lists. ##
11172 ## ------------------------------------------ ##
11173 _ASBOX
11174 ) |
11175 sed "s/^/$as_me: WARNING: /" >&2
11176 ;;
11177 esac
11178 echo "$as_me:$LINENO: checking for jerror.h" >&5
11179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11180 if test "${ac_cv_header_jerror_h+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 ac_cv_header_jerror_h=$ac_header_preproc
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11187
11188 fi
11189 if test $ac_cv_header_jerror_h = yes; then
11190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-ljpeg $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 /* We use char because int might match the return type of a gcc2
11209 builtin and then its argument prototype would still apply. */
11210 char jpeg_destroy_compress ();
11211 int
11212 main ()
11213 {
11214 jpeg_destroy_compress ();
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag"
11229 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11247 fi
11248 rm -f conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11253 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11254 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11255 HAVE_JPEG=yes
11256 fi
11257
11258 fi
11259
11260
11261 fi
11262
11263
11264 if test "${HAVE_JPEG}" = "yes"; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_JPEG 1
11267 _ACEOF
11268
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <jpeglib.h>
11276 version=JPEG_LIB_VERSION
11277
11278 _ACEOF
11279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11280 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_JPEG 1
11283 _ACEOF
11284
11285 else
11286 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11287 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11288 HAVE_JPEG=no
11289 fi
11290 rm -f conftest*
11291
11292 fi
11293 fi
11294
11295 ### Use -lpng if available, unless `--with-png=no'.
11296 HAVE_PNG=no
11297 if test "${HAVE_X11}" = "yes"; then
11298 if test "${with_png}" != "no"; then
11299 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11300 # in /usr/include/libpng.
11301
11302
11303 for ac_header in png.h libpng/png.h
11304 do
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 fi
11312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11314 else
11315 # Is the header compilable?
11316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler=yes
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_header_compiler=no
11355 fi
11356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6
11359
11360 # Is the header present?
11361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <$ac_header>
11370 _ACEOF
11371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev/null; then
11379 if test -s conftest.err; then
11380 ac_cpp_err=$ac_c_preproc_warn_flag
11381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11382 else
11383 ac_cpp_err=
11384 fi
11385 else
11386 ac_cpp_err=yes
11387 fi
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_preproc=no
11395 fi
11396 rm -f conftest.err conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6
11399
11400 # So? What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11402 yes:no: )
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407 ac_header_preproc=yes
11408 ;;
11409 no:yes:* )
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11422 (
11423 cat <<\_ASBOX
11424 ## ------------------------------------------ ##
11425 ## Report this to the AC_PACKAGE_NAME lists. ##
11426 ## ------------------------------------------ ##
11427 _ASBOX
11428 ) |
11429 sed "s/^/$as_me: WARNING: /" >&2
11430 ;;
11431 esac
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 eval "$as_ac_Header=\$ac_header_preproc"
11438 fi
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11441
11442 fi
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 fi
11449
11450 done
11451
11452 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11453 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11454 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11455 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lpng -lz -lm $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11473 char png_get_channels ();
11474 int
11475 main ()
11476 {
11477 png_get_channels ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_lib_png_png_get_channels=yes
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_lib_png_png_get_channels=no
11510 fi
11511 rm -f conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11516 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11517 if test $ac_cv_lib_png_png_get_channels = yes; then
11518 HAVE_PNG=yes
11519 fi
11520
11521 fi
11522 fi
11523
11524 if test "${HAVE_PNG}" = "yes"; then
11525
11526 cat >>confdefs.h <<\_ACEOF
11527 #define HAVE_PNG 1
11528 _ACEOF
11529
11530 fi
11531 fi
11532
11533 ### Use -ltiff if available, unless `--with-tiff=no'.
11534 HAVE_TIFF=no
11535 if test "${HAVE_X11}" = "yes"; then
11536 if test "${with_tiff}" != "no"; then
11537 if test "${ac_cv_header_tiffio_h+set}" = set; then
11538 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11539 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11540 if test "${ac_cv_header_tiffio_h+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 fi
11543 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11544 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11545 else
11546 # Is the header compilable?
11547 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11548 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 $ac_includes_default
11556 #include <tiffio.h>
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_header_compiler=yes
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_header_compiler=no
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6
11590
11591 # Is the header present?
11592 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11593 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <tiffio.h>
11601 _ACEOF
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev/null; then
11610 if test -s conftest.err; then
11611 ac_cpp_err=$ac_c_preproc_warn_flag
11612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11613 else
11614 ac_cpp_err=
11615 fi
11616 else
11617 ac_cpp_err=yes
11618 fi
11619 if test -z "$ac_cpp_err"; then
11620 ac_header_preproc=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 ac_header_preproc=no
11626 fi
11627 rm -f conftest.err conftest.$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629 echo "${ECHO_T}$ac_header_preproc" >&6
11630
11631 # So? What about this header?
11632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 yes:no: )
11634 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11635 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11637 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc=yes
11639 ;;
11640 no:yes:* )
11641 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11642 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11644 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11646 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11648 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11652 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11653 (
11654 cat <<\_ASBOX
11655 ## ------------------------------------------ ##
11656 ## Report this to the AC_PACKAGE_NAME lists. ##
11657 ## ------------------------------------------ ##
11658 _ASBOX
11659 ) |
11660 sed "s/^/$as_me: WARNING: /" >&2
11661 ;;
11662 esac
11663 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11664 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11665 if test "${ac_cv_header_tiffio_h+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 ac_cv_header_tiffio_h=$ac_header_preproc
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11671 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11672
11673 fi
11674 if test $ac_cv_header_tiffio_h = yes; then
11675 tifflibs="-lz -lm"
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11678 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11679 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11680 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ltiff $tifflibs $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char TIFFGetVersion ();
11699 int
11700 main ()
11701 {
11702 TIFFGetVersion ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_tiff_TIFFGetVersion=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ac_cv_lib_tiff_TIFFGetVersion=no
11735 fi
11736 rm -f conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11741 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11742 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11743 HAVE_TIFF=yes
11744 fi
11745
11746 fi
11747
11748
11749 fi
11750
11751 if test "${HAVE_TIFF}" = "yes"; then
11752
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_TIFF 1
11755 _ACEOF
11756
11757 fi
11758 fi
11759
11760 ### Use -lgif if available, unless `--with-gif=no'.
11761 HAVE_GIF=no
11762 if test "${HAVE_X11}" = "yes"; then
11763 if test "${with_gif}" != "no"; then
11764 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11765 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11766 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11767 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 fi
11770 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11772 else
11773 # Is the header compilable?
11774 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11775 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <gif_lib.h>
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_header_compiler=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 ac_header_compiler=no
11813 fi
11814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11817
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11820 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <gif_lib.h>
11828 _ACEOF
11829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 else
11841 ac_cpp_err=
11842 fi
11843 else
11844 ac_cpp_err=yes
11845 fi
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_header_preproc=no
11853 fi
11854 rm -f conftest.err conftest.$ac_ext
11855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11856 echo "${ECHO_T}$ac_header_preproc" >&6
11857
11858 # So? What about this header?
11859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11860 yes:no: )
11861 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11862 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11864 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11865 ac_header_preproc=yes
11866 ;;
11867 no:yes:* )
11868 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11869 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11871 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11873 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11875 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11877 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11879 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11880 (
11881 cat <<\_ASBOX
11882 ## ------------------------------------------ ##
11883 ## Report this to the AC_PACKAGE_NAME lists. ##
11884 ## ------------------------------------------ ##
11885 _ASBOX
11886 ) |
11887 sed "s/^/$as_me: WARNING: /" >&2
11888 ;;
11889 esac
11890 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11891 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11892 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 ac_cv_header_gif_lib_h=$ac_header_preproc
11896 fi
11897 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11899
11900 fi
11901 if test $ac_cv_header_gif_lib_h = yes; then
11902 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11903 # Earlier versions can crash Emacs.
11904 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11905 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11906 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lungif $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char EGifPutExtensionLast ();
11925 int
11926 main ()
11927 {
11928 EGifPutExtensionLast ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_lib_ungif_EGifPutExtensionLast=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11967 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11968 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11969 HAVE_GIF=yes
11970 fi
11971
11972 fi
11973
11974
11975 fi
11976
11977 if test "${HAVE_GIF}" = "yes"; then
11978
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_GIF 1
11981 _ACEOF
11982
11983 fi
11984 fi
11985
11986 ### Use Mac OS X Carbon API to implement GUI.
11987 HAVE_CARBON=no
11988 if test "${with_carbon}" != "no"; then
11989 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11990 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11991 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11997 else
11998 # Is the header compilable?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #include <Carbon/Carbon.h>
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_c_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_header_compiler=yes
12033 else
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 ac_header_compiler=no
12038 fi
12039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6
12042
12043 # Is the header present?
12044 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12045 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <Carbon/Carbon.h>
12053 _ACEOF
12054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null; then
12062 if test -s conftest.err; then
12063 ac_cpp_err=$ac_c_preproc_warn_flag
12064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12065 else
12066 ac_cpp_err=
12067 fi
12068 else
12069 ac_cpp_err=yes
12070 fi
12071 if test -z "$ac_cpp_err"; then
12072 ac_header_preproc=yes
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 ac_header_preproc=no
12078 fi
12079 rm -f conftest.err conftest.$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081 echo "${ECHO_T}$ac_header_preproc" >&6
12082
12083 # So? What about this header?
12084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12085 yes:no: )
12086 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12087 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12089 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc=yes
12091 ;;
12092 no:yes:* )
12093 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12098 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12100 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12102 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12104 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12105 (
12106 cat <<\_ASBOX
12107 ## ------------------------------------------ ##
12108 ## Report this to the AC_PACKAGE_NAME lists. ##
12109 ## ------------------------------------------ ##
12110 _ASBOX
12111 ) |
12112 sed "s/^/$as_me: WARNING: /" >&2
12113 ;;
12114 esac
12115 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12116 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12117 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12121 fi
12122 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12123 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12124
12125 fi
12126 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12127 HAVE_CARBON=yes
12128 fi
12129
12130
12131 fi
12132
12133 if test "${HAVE_CARBON}" = "yes"; then
12134
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_CARBON 1
12137 _ACEOF
12138
12139 window_system=mac
12140 ## Specify the install directory
12141 carbon_appdir=
12142 if test "${carbon_appdir_x}" != ""; then
12143 case ${carbon_appdir_x} in
12144 y | ye | yes) carbon_appdir=/Applications ;;
12145 * ) carbon_appdir=${carbon_appdir_x} ;;
12146 esac
12147 fi
12148 # We also have mouse menus.
12149 HAVE_MENUS=yes
12150 fi
12151
12152 ### Use session management (-lSM -lICE) if available
12153 HAVE_X_SM=no
12154 if test "${HAVE_X11}" = "yes"; then
12155 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12156 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12157 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12158 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 fi
12161 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12162 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12163 else
12164 # Is the header compilable?
12165 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12166 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 $ac_includes_default
12174 #include <X11/SM/SMlib.h>
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest.$ac_objext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_header_compiler=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_header_compiler=no
12204 fi
12205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12207 echo "${ECHO_T}$ac_header_compiler" >&6
12208
12209 # Is the header present?
12210 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12211 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 #include <X11/SM/SMlib.h>
12219 _ACEOF
12220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null; then
12228 if test -s conftest.err; then
12229 ac_cpp_err=$ac_c_preproc_warn_flag
12230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12231 else
12232 ac_cpp_err=
12233 fi
12234 else
12235 ac_cpp_err=yes
12236 fi
12237 if test -z "$ac_cpp_err"; then
12238 ac_header_preproc=yes
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_header_preproc=no
12244 fi
12245 rm -f conftest.err conftest.$ac_ext
12246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12247 echo "${ECHO_T}$ac_header_preproc" >&6
12248
12249 # So? What about this header?
12250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12251 yes:no: )
12252 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12253 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12255 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12256 ac_header_preproc=yes
12257 ;;
12258 no:yes:* )
12259 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12260 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12262 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12264 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12266 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12268 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12270 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12271 (
12272 cat <<\_ASBOX
12273 ## ------------------------------------------ ##
12274 ## Report this to the AC_PACKAGE_NAME lists. ##
12275 ## ------------------------------------------ ##
12276 _ASBOX
12277 ) |
12278 sed "s/^/$as_me: WARNING: /" >&2
12279 ;;
12280 esac
12281 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12282 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12283 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12289 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12290
12291 fi
12292 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12293 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12294 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12295 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-lSM -lICE $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306
12307 /* Override any gcc2 internal prototype to avoid an error. */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char SmcOpenConnection ();
12314 int
12315 main ()
12316 {
12317 SmcOpenConnection ();
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_SM_SmcOpenConnection=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_lib_SM_SmcOpenConnection=no
12350 fi
12351 rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12356 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12357 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12358 HAVE_X_SM=yes
12359 fi
12360
12361 fi
12362
12363
12364
12365 if test "${HAVE_X_SM}" = "yes"; then
12366
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_X_SM 1
12369 _ACEOF
12370
12371 case "$LIBS" in
12372 *-lSM*) ;;
12373 *) LIBS="-lSM -lICE $LIBS" ;;
12374 esac
12375 fi
12376 fi
12377
12378 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12379 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12380 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12381 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 #include <netdb.h>
12391 int
12392 main ()
12393 {
12394 return h_errno;
12395 ;
12396 return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 emacs_cv_netdb_declares_h_errno=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 emacs_cv_netdb_declares_h_errno=no
12427 fi
12428 rm -f conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 fi
12431 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12432 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12433 if test $emacs_cv_netdb_declares_h_errno = yes; then
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_H_ERRNO 1
12437 _ACEOF
12438
12439 fi
12440
12441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12442 # for constant arguments. Useless!
12443 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12444 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12445 if test "${ac_cv_working_alloca_h+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 #include <alloca.h>
12455 int
12456 main ()
12457 {
12458 char *p = (char *) alloca (2 * sizeof (int));
12459 ;
12460 return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_cv_working_alloca_h=yes
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_cv_working_alloca_h=no
12491 fi
12492 rm -f conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 fi
12495 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12496 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12497 if test $ac_cv_working_alloca_h = yes; then
12498
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_ALLOCA_H 1
12501 _ACEOF
12502
12503 fi
12504
12505 echo "$as_me:$LINENO: checking for alloca" >&5
12506 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12507 if test "${ac_cv_func_alloca_works+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 #ifdef __GNUC__
12517 # define alloca __builtin_alloca
12518 #else
12519 # ifdef _MSC_VER
12520 # include <malloc.h>
12521 # define alloca _alloca
12522 # else
12523 # if HAVE_ALLOCA_H
12524 # include <alloca.h>
12525 # else
12526 # ifdef _AIX
12527 #pragma alloca
12528 # else
12529 # ifndef alloca /* predefined by HP cc +Olibcalls */
12530 char *alloca ();
12531 # endif
12532 # endif
12533 # endif
12534 # endif
12535 #endif
12536
12537 int
12538 main ()
12539 {
12540 char *p = (char *) alloca (1);
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_func_alloca_works=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 ac_cv_func_alloca_works=no
12573 fi
12574 rm -f conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 fi
12577 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12578 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12579
12580 if test $ac_cv_func_alloca_works = yes; then
12581
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_ALLOCA 1
12584 _ACEOF
12585
12586 else
12587 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12588 # that cause trouble. Some versions do not even contain alloca or
12589 # contain a buggy version. If you still want to use their alloca,
12590 # use ar to extract alloca.o from them instead of compiling alloca.c.
12591
12592 ALLOCA=alloca.$ac_objext
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define C_ALLOCA 1
12596 _ACEOF
12597
12598
12599 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12600 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12601 if test "${ac_cv_os_cray+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 #if defined(CRAY) && ! defined(CRAY2)
12611 webecray
12612 #else
12613 wenotbecray
12614 #endif
12615
12616 _ACEOF
12617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12618 $EGREP "webecray" >/dev/null 2>&1; then
12619 ac_cv_os_cray=yes
12620 else
12621 ac_cv_os_cray=no
12622 fi
12623 rm -f conftest*
12624
12625 fi
12626 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12627 echo "${ECHO_T}$ac_cv_os_cray" >&6
12628 if test $ac_cv_os_cray = yes; then
12629 for ac_func in _getb67 GETB67 getb67; do
12630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12631 echo "$as_me:$LINENO: checking for $ac_func" >&5
12632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_var+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12644 #define $ac_func innocuous_$ac_func
12645
12646 /* System header to define __stub macros and hopefully few prototypes,
12647 which can conflict with char $ac_func (); below.
12648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12649 <limits.h> exists even on freestanding compilers. */
12650
12651 #ifdef __STDC__
12652 # include <limits.h>
12653 #else
12654 # include <assert.h>
12655 #endif
12656
12657 #undef $ac_func
12658
12659 /* Override any gcc2 internal prototype to avoid an error. */
12660 #ifdef __cplusplus
12661 extern "C"
12662 {
12663 #endif
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666 char $ac_func ();
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671 choke me
12672 #else
12673 char (*f) () = $ac_func;
12674 #endif
12675 #ifdef __cplusplus
12676 }
12677 #endif
12678
12679 int
12680 main ()
12681 {
12682 return f != $ac_func;
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest$ac_exeext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 eval "$as_ac_var=yes"
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714 eval "$as_ac_var=no"
12715 fi
12716 rm -f conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 fi
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12721 if test `eval echo '${'$as_ac_var'}'` = yes; then
12722
12723 cat >>confdefs.h <<_ACEOF
12724 #define CRAY_STACKSEG_END $ac_func
12725 _ACEOF
12726
12727 break
12728 fi
12729
12730 done
12731 fi
12732
12733 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12734 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12735 if test "${ac_cv_c_stack_direction+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 if test "$cross_compiling" = yes; then
12739 ac_cv_c_stack_direction=0
12740 else
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 int
12748 find_stack_direction ()
12749 {
12750 static char *addr = 0;
12751 auto char dummy;
12752 if (addr == 0)
12753 {
12754 addr = &dummy;
12755 return find_stack_direction ();
12756 }
12757 else
12758 return (&dummy > addr) ? 1 : -1;
12759 }
12760
12761 int
12762 main ()
12763 {
12764 exit (find_stack_direction () < 0);
12765 }
12766 _ACEOF
12767 rm -f conftest$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_c_stack_direction=1
12779 else
12780 echo "$as_me: program exited with status $ac_status" >&5
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 ( exit $ac_status )
12785 ac_cv_c_stack_direction=-1
12786 fi
12787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12788 fi
12789 fi
12790 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12791 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12792
12793 cat >>confdefs.h <<_ACEOF
12794 #define STACK_DIRECTION $ac_cv_c_stack_direction
12795 _ACEOF
12796
12797
12798 fi
12799
12800
12801 # fmod, logb, and frexp are found in -lm on most systems.
12802 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12803
12804 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12805 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12806 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lm $LIBS"
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12817
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 /* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12824 char sqrt ();
12825 int
12826 main ()
12827 {
12828 sqrt ();
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_m_sqrt=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_cv_lib_m_sqrt=no
12861 fi
12862 rm -f conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12867 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12868 if test $ac_cv_lib_m_sqrt = yes; then
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_LIBM 1
12871 _ACEOF
12872
12873 LIBS="-lm $LIBS"
12874
12875 fi
12876
12877
12878 # Check for mail-locking functions in a "mail" library. Probably this should
12879 # have the same check as for liblockfile below.
12880
12881 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12882 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12883 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lmail $LIBS"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894
12895 /* Override any gcc2 internal prototype to avoid an error. */
12896 #ifdef __cplusplus
12897 extern "C"
12898 #endif
12899 /* We use char because int might match the return type of a gcc2
12900 builtin and then its argument prototype would still apply. */
12901 char maillock ();
12902 int
12903 main ()
12904 {
12905 maillock ();
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12912 (eval $ac_link) 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_mail_maillock=yes
12933 else
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937 ac_cv_lib_mail_maillock=no
12938 fi
12939 rm -f conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_check_lib_save_LIBS
12942 fi
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12944 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12945 if test $ac_cv_lib_mail_maillock = yes; then
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_LIBMAIL 1
12948 _ACEOF
12949
12950 LIBS="-lmail $LIBS"
12951
12952 fi
12953
12954
12955 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12956 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12957 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-llockfile $LIBS"
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968
12969 /* Override any gcc2 internal prototype to avoid an error. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 /* We use char because int might match the return type of a gcc2
12974 builtin and then its argument prototype would still apply. */
12975 char maillock ();
12976 int
12977 main ()
12978 {
12979 maillock ();
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag"
12994 || test ! -s conftest.err'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try='test -s conftest$ac_exeext'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_lib_lockfile_maillock=yes
13007 else
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_cv_lib_lockfile_maillock=no
13012 fi
13013 rm -f conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13016 fi
13017 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13018 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13019 if test $ac_cv_lib_lockfile_maillock = yes; then
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_LIBLOCKFILE 1
13022 _ACEOF
13023
13024 LIBS="-llockfile $LIBS"
13025
13026 fi
13027
13028 # If we have the shared liblockfile, assume we must use it for mail
13029 # locking (e.g. Debian). If we couldn't link against liblockfile
13030 # (no liblockfile.a installed), ensure that we don't need to.
13031 if test "$ac_cv_lib_lockfile_maillock" = no; then
13032 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13033 set dummy liblockfile.so; ac_word=$2
13034 echo "$as_me:$LINENO: checking for $ac_word" >&5
13035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13036 if test "${ac_cv_prog_liblockfile+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 if test -n "$liblockfile"; then
13040 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13044 for as_dir in $as_dummy
13045 do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_liblockfile="yes"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054 done
13055 done
13056
13057 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13058 fi
13059 fi
13060 liblockfile=$ac_cv_prog_liblockfile
13061 if test -n "$liblockfile"; then
13062 echo "$as_me:$LINENO: result: $liblockfile" >&5
13063 echo "${ECHO_T}$liblockfile" >&6
13064 else
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13067 fi
13068
13069 if test $ac_cv_prog_liblockfile = yes; then
13070 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13071 This probably means that movemail could lose mail.
13072 There may be a \`development' package to install containing liblockfile." >&5
13073 echo "$as_me: error: Shared liblockfile found but can't link against it.
13074 This probably means that movemail could lose mail.
13075 There may be a \`development' package to install containing liblockfile." >&2;}
13076 { (exit 1); exit 1; }; }
13077 else :
13078 fi
13079 fi
13080
13081 for ac_func in touchlock
13082 do
13083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084 echo "$as_me:$LINENO: checking for $ac_func" >&5
13085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13086 if eval "test \"\${$as_ac_var+set}\" = set"; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h. */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13097 #define $ac_func innocuous_$ac_func
13098
13099 /* System header to define __stub macros and hopefully few prototypes,
13100 which can conflict with char $ac_func (); below.
13101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13102 <limits.h> exists even on freestanding compilers. */
13103
13104 #ifdef __STDC__
13105 # include <limits.h>
13106 #else
13107 # include <assert.h>
13108 #endif
13109
13110 #undef $ac_func
13111
13112 /* Override any gcc2 internal prototype to avoid an error. */
13113 #ifdef __cplusplus
13114 extern "C"
13115 {
13116 #endif
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13119 char $ac_func ();
13120 /* The GNU C library defines this for functions which it implements
13121 to always fail with ENOSYS. Some functions are actually named
13122 something starting with __ and the normal name is an alias. */
13123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13124 choke me
13125 #else
13126 char (*f) () = $ac_func;
13127 #endif
13128 #ifdef __cplusplus
13129 }
13130 #endif
13131
13132 int
13133 main ()
13134 {
13135 return f != $ac_func;
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 eval "$as_ac_var=yes"
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 eval "$as_ac_var=no"
13168 fi
13169 rm -f conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 fi
13172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13174 if test `eval echo '${'$as_ac_var'}'` = yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13177 _ACEOF
13178
13179 fi
13180 done
13181
13182
13183 for ac_header in maillock.h
13184 do
13185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo "$as_me:$LINENO: checking for $ac_header" >&5
13188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 fi
13192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13194 else
13195 # Is the header compilable?
13196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <$ac_header>
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
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); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_header_compiler=yes
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ac_header_compiler=no
13235 fi
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238 echo "${ECHO_T}$ac_header_compiler" >&6
13239
13240 # Is the header present?
13241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <$ac_header>
13250 _ACEOF
13251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } >/dev/null; then
13259 if test -s conftest.err; then
13260 ac_cpp_err=$ac_c_preproc_warn_flag
13261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13262 else
13263 ac_cpp_err=
13264 fi
13265 else
13266 ac_cpp_err=yes
13267 fi
13268 if test -z "$ac_cpp_err"; then
13269 ac_header_preproc=yes
13270 else
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_header_preproc=no
13275 fi
13276 rm -f conftest.err conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278 echo "${ECHO_T}$ac_header_preproc" >&6
13279
13280 # So? What about this header?
13281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282 yes:no: )
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc=yes
13288 ;;
13289 no:yes:* )
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13302 (
13303 cat <<\_ASBOX
13304 ## ------------------------------------------ ##
13305 ## Report this to the AC_PACKAGE_NAME lists. ##
13306 ## ------------------------------------------ ##
13307 _ASBOX
13308 ) |
13309 sed "s/^/$as_me: WARNING: /" >&2
13310 ;;
13311 esac
13312 echo "$as_me:$LINENO: checking for $ac_header" >&5
13313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317 eval "$as_ac_Header=\$ac_header_preproc"
13318 fi
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13321
13322 fi
13323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13324 cat >>confdefs.h <<_ACEOF
13325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13326 _ACEOF
13327
13328 fi
13329
13330 done
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 for ac_func in gethostname getdomainname dup2 \
13400 rename closedir mkdir rmdir sysinfo \
13401 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13402 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13403 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13404 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13405 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13406 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13407 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13408 do
13409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_func" >&5
13411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_var+set}\" = set"; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13423 #define $ac_func innocuous_$ac_func
13424
13425 /* System header to define __stub macros and hopefully few prototypes,
13426 which can conflict with char $ac_func (); below.
13427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13428 <limits.h> exists even on freestanding compilers. */
13429
13430 #ifdef __STDC__
13431 # include <limits.h>
13432 #else
13433 # include <assert.h>
13434 #endif
13435
13436 #undef $ac_func
13437
13438 /* Override any gcc2 internal prototype to avoid an error. */
13439 #ifdef __cplusplus
13440 extern "C"
13441 {
13442 #endif
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13445 char $ac_func ();
13446 /* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13450 choke me
13451 #else
13452 char (*f) () = $ac_func;
13453 #endif
13454 #ifdef __cplusplus
13455 }
13456 #endif
13457
13458 int
13459 main ()
13460 {
13461 return f != $ac_func;
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 eval "$as_ac_var=yes"
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13492
13493 eval "$as_ac_var=no"
13494 fi
13495 rm -f conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 fi
13498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13500 if test `eval echo '${'$as_ac_var'}'` = yes; then
13501 cat >>confdefs.h <<_ACEOF
13502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13503 _ACEOF
13504
13505 fi
13506 done
13507
13508
13509
13510 for ac_header in sys/un.h
13511 do
13512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo "$as_me:$LINENO: checking for $ac_header" >&5
13515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 fi
13519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13521 else
13522 # Is the header compilable?
13523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13532 #include <$ac_header>
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
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); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_header_compiler=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 ac_header_compiler=no
13562 fi
13563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13565 echo "${ECHO_T}$ac_header_compiler" >&6
13566
13567 # Is the header present?
13568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include <$ac_header>
13577 _ACEOF
13578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } >/dev/null; then
13586 if test -s conftest.err; then
13587 ac_cpp_err=$ac_c_preproc_warn_flag
13588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13589 else
13590 ac_cpp_err=
13591 fi
13592 else
13593 ac_cpp_err=yes
13594 fi
13595 if test -z "$ac_cpp_err"; then
13596 ac_header_preproc=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 ac_header_preproc=no
13602 fi
13603 rm -f conftest.err conftest.$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13605 echo "${ECHO_T}$ac_header_preproc" >&6
13606
13607 # So? What about this header?
13608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13609 yes:no: )
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13614 ac_header_preproc=yes
13615 ;;
13616 no:yes:* )
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13629 (
13630 cat <<\_ASBOX
13631 ## ------------------------------------------ ##
13632 ## Report this to the AC_PACKAGE_NAME lists. ##
13633 ## ------------------------------------------ ##
13634 _ASBOX
13635 ) |
13636 sed "s/^/$as_me: WARNING: /" >&2
13637 ;;
13638 esac
13639 echo "$as_me:$LINENO: checking for $ac_header" >&5
13640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644 eval "$as_ac_Header=\$ac_header_preproc"
13645 fi
13646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13648
13649 fi
13650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13651 cat >>confdefs.h <<_ACEOF
13652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13653 _ACEOF
13654
13655 fi
13656
13657 done
13658
13659
13660
13661
13662
13663 for ac_header in stdlib.h sys/time.h unistd.h
13664 do
13665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13667 echo "$as_me:$LINENO: checking for $ac_header" >&5
13668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 fi
13672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13674 else
13675 # Is the header compilable?
13676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 #include <$ac_header>
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_header_compiler=yes
13710 else
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_header_compiler=no
13715 fi
13716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6
13719
13720 # Is the header present?
13721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <$ac_header>
13730 _ACEOF
13731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } >/dev/null; then
13739 if test -s conftest.err; then
13740 ac_cpp_err=$ac_c_preproc_warn_flag
13741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13742 else
13743 ac_cpp_err=
13744 fi
13745 else
13746 ac_cpp_err=yes
13747 fi
13748 if test -z "$ac_cpp_err"; then
13749 ac_header_preproc=yes
13750 else
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_header_preproc=no
13755 fi
13756 rm -f conftest.err conftest.$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13758 echo "${ECHO_T}$ac_header_preproc" >&6
13759
13760 # So? What about this header?
13761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13762 yes:no: )
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13767 ac_header_preproc=yes
13768 ;;
13769 no:yes:* )
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13782 (
13783 cat <<\_ASBOX
13784 ## ------------------------------------------ ##
13785 ## Report this to the AC_PACKAGE_NAME lists. ##
13786 ## ------------------------------------------ ##
13787 _ASBOX
13788 ) |
13789 sed "s/^/$as_me: WARNING: /" >&2
13790 ;;
13791 esac
13792 echo "$as_me:$LINENO: checking for $ac_header" >&5
13793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 eval "$as_ac_Header=\$ac_header_preproc"
13798 fi
13799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13801
13802 fi
13803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13806 _ACEOF
13807
13808 fi
13809
13810 done
13811
13812
13813 for ac_func in alarm
13814 do
13815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 echo "$as_me:$LINENO: checking for $ac_func" >&5
13817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13818 if eval "test \"\${$as_ac_var+set}\" = set"; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13829 #define $ac_func innocuous_$ac_func
13830
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
13835
13836 #ifdef __STDC__
13837 # include <limits.h>
13838 #else
13839 # include <assert.h>
13840 #endif
13841
13842 #undef $ac_func
13843
13844 /* Override any gcc2 internal prototype to avoid an error. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 {
13848 #endif
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13851 char $ac_func ();
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13856 choke me
13857 #else
13858 char (*f) () = $ac_func;
13859 #endif
13860 #ifdef __cplusplus
13861 }
13862 #endif
13863
13864 int
13865 main ()
13866 {
13867 return f != $ac_func;
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 eval "$as_ac_var=yes"
13895 else
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 eval "$as_ac_var=no"
13900 fi
13901 rm -f conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 fi
13904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13906 if test `eval echo '${'$as_ac_var'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13909 _ACEOF
13910
13911 fi
13912 done
13913
13914 echo "$as_me:$LINENO: checking for working mktime" >&5
13915 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13916 if test "${ac_cv_func_working_mktime+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919 if test "$cross_compiling" = yes; then
13920 ac_cv_func_working_mktime=no
13921 else
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 /* Test program from Paul Eggert and Tony Leneis. */
13929 #if TIME_WITH_SYS_TIME
13930 # include <sys/time.h>
13931 # include <time.h>
13932 #else
13933 # if HAVE_SYS_TIME_H
13934 # include <sys/time.h>
13935 # else
13936 # include <time.h>
13937 # endif
13938 #endif
13939
13940 #if HAVE_STDLIB_H
13941 # include <stdlib.h>
13942 #endif
13943
13944 #if HAVE_UNISTD_H
13945 # include <unistd.h>
13946 #endif
13947
13948 #if !HAVE_ALARM
13949 # define alarm(X) /* empty */
13950 #endif
13951
13952 /* Work around redefinition to rpl_putenv by other config tests. */
13953 #undef putenv
13954
13955 static time_t time_t_max;
13956 static time_t time_t_min;
13957
13958 /* Values we'll use to set the TZ environment variable. */
13959 static char *tz_strings[] = {
13960 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13961 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13962 };
13963 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13964
13965 /* Fail if mktime fails to convert a date in the spring-forward gap.
13966 Based on a problem report from Andreas Jaeger. */
13967 static void
13968 spring_forward_gap ()
13969 {
13970 /* glibc (up to about 1998-10-07) failed this test. */
13971 struct tm tm;
13972
13973 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13974 instead of "TZ=America/Vancouver" in order to detect the bug even
13975 on systems that don't support the Olson extension, or don't have the
13976 full zoneinfo tables installed. */
13977 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13978
13979 tm.tm_year = 98;
13980 tm.tm_mon = 3;
13981 tm.tm_mday = 5;
13982 tm.tm_hour = 2;
13983 tm.tm_min = 0;
13984 tm.tm_sec = 0;
13985 tm.tm_isdst = -1;
13986 if (mktime (&tm) == (time_t)-1)
13987 exit (1);
13988 }
13989
13990 static void
13991 mktime_test1 (now)
13992 time_t now;
13993 {
13994 struct tm *lt;
13995 if ((lt = localtime (&now)) && mktime (lt) != now)
13996 exit (1);
13997 }
13998
13999 static void
14000 mktime_test (now)
14001 time_t now;
14002 {
14003 mktime_test1 (now);
14004 mktime_test1 ((time_t) (time_t_max - now));
14005 mktime_test1 ((time_t) (time_t_min + now));
14006 }
14007
14008 static void
14009 irix_6_4_bug ()
14010 {
14011 /* Based on code from Ariel Faigon. */
14012 struct tm tm;
14013 tm.tm_year = 96;
14014 tm.tm_mon = 3;
14015 tm.tm_mday = 0;
14016 tm.tm_hour = 0;
14017 tm.tm_min = 0;
14018 tm.tm_sec = 0;
14019 tm.tm_isdst = -1;
14020 mktime (&tm);
14021 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14022 exit (1);
14023 }
14024
14025 static void
14026 bigtime_test (j)
14027 int j;
14028 {
14029 struct tm tm;
14030 time_t now;
14031 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14032 now = mktime (&tm);
14033 if (now != (time_t) -1)
14034 {
14035 struct tm *lt = localtime (&now);
14036 if (! (lt
14037 && lt->tm_year == tm.tm_year
14038 && lt->tm_mon == tm.tm_mon
14039 && lt->tm_mday == tm.tm_mday
14040 && lt->tm_hour == tm.tm_hour
14041 && lt->tm_min == tm.tm_min
14042 && lt->tm_sec == tm.tm_sec
14043 && lt->tm_yday == tm.tm_yday
14044 && lt->tm_wday == tm.tm_wday
14045 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14046 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14047 exit (1);
14048 }
14049 }
14050
14051 int
14052 main ()
14053 {
14054 time_t t, delta;
14055 int i, j;
14056
14057 /* This test makes some buggy mktime implementations loop.
14058 Give up after 60 seconds; a mktime slower than that
14059 isn't worth using anyway. */
14060 alarm (60);
14061
14062 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14063 continue;
14064 time_t_max--;
14065 if ((time_t) -1 < 0)
14066 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14067 continue;
14068 delta = time_t_max / 997; /* a suitable prime number */
14069 for (i = 0; i < N_STRINGS; i++)
14070 {
14071 if (tz_strings[i])
14072 putenv (tz_strings[i]);
14073
14074 for (t = 0; t <= time_t_max - delta; t += delta)
14075 mktime_test (t);
14076 mktime_test ((time_t) 1);
14077 mktime_test ((time_t) (60 * 60));
14078 mktime_test ((time_t) (60 * 60 * 24));
14079
14080 for (j = 1; 0 < j; j *= 2)
14081 bigtime_test (j);
14082 bigtime_test (j - 1);
14083 }
14084 irix_6_4_bug ();
14085 spring_forward_gap ();
14086 exit (0);
14087 }
14088 _ACEOF
14089 rm -f conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_func_working_mktime=yes
14101 else
14102 echo "$as_me: program exited with status $ac_status" >&5
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ( exit $ac_status )
14107 ac_cv_func_working_mktime=no
14108 fi
14109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14110 fi
14111 fi
14112 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14113 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14114 if test $ac_cv_func_working_mktime = no; then
14115 case $LIBOBJS in
14116 "mktime.$ac_objext" | \
14117 *" mktime.$ac_objext" | \
14118 "mktime.$ac_objext "* | \
14119 *" mktime.$ac_objext "* ) ;;
14120 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14121 esac
14122
14123 fi
14124
14125 if test "$ac_cv_func_working_mktime" = no; then
14126
14127 cat >>confdefs.h <<\_ACEOF
14128 #define BROKEN_MKTIME 1
14129 _ACEOF
14130
14131 fi
14132
14133 ac_have_func=no # yes means we've found a way to get the load average.
14134
14135 # Make sure getloadavg.c is where it belongs, at configure-time.
14136 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14137 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14138 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14139 { (exit 1); exit 1; }; }
14140
14141 ac_save_LIBS=$LIBS
14142
14143 # Check for getloadavg, but be sure not to touch the cache variable.
14144 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14145 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14146 if test "${ac_cv_func_getloadavg+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14157 #define getloadavg innocuous_getloadavg
14158
14159 /* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char getloadavg (); below.
14161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14162 <limits.h> exists even on freestanding compilers. */
14163
14164 #ifdef __STDC__
14165 # include <limits.h>
14166 #else
14167 # include <assert.h>
14168 #endif
14169
14170 #undef getloadavg
14171
14172 /* Override any gcc2 internal prototype to avoid an error. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 {
14176 #endif
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14179 char getloadavg ();
14180 /* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14184 choke me
14185 #else
14186 char (*f) () = getloadavg;
14187 #endif
14188 #ifdef __cplusplus
14189 }
14190 #endif
14191
14192 int
14193 main ()
14194 {
14195 return f != getloadavg;
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14202 (eval $ac_link) 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_func_getloadavg=yes
14223 else
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_cv_func_getloadavg=no
14228 fi
14229 rm -f conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 fi
14232 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14233 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14234 if test $ac_cv_func_getloadavg = yes; then
14235 exit 0
14236 else
14237 exit 1
14238 fi
14239 ) && ac_have_func=yes
14240
14241 # On HPUX9, an unprivileged user can get load averages through this function.
14242
14243 for ac_func in pstat_getdynamic
14244 do
14245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_func" >&5
14247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_var+set}\" = set"; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14259 #define $ac_func innocuous_$ac_func
14260
14261 /* System header to define __stub macros and hopefully few prototypes,
14262 which can conflict with char $ac_func (); below.
14263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264 <limits.h> exists even on freestanding compilers. */
14265
14266 #ifdef __STDC__
14267 # include <limits.h>
14268 #else
14269 # include <assert.h>
14270 #endif
14271
14272 #undef $ac_func
14273
14274 /* Override any gcc2 internal prototype to avoid an error. */
14275 #ifdef __cplusplus
14276 extern "C"
14277 {
14278 #endif
14279 /* We use char because int might match the return type of a gcc2
14280 builtin and then its argument prototype would still apply. */
14281 char $ac_func ();
14282 /* The GNU C library defines this for functions which it implements
14283 to always fail with ENOSYS. Some functions are actually named
14284 something starting with __ and the normal name is an alias. */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14286 choke me
14287 #else
14288 char (*f) () = $ac_func;
14289 #endif
14290 #ifdef __cplusplus
14291 }
14292 #endif
14293
14294 int
14295 main ()
14296 {
14297 return f != $ac_func;
14298 ;
14299 return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest$ac_exeext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 eval "$as_ac_var=yes"
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 eval "$as_ac_var=no"
14330 fi
14331 rm -f conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333 fi
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14336 if test `eval echo '${'$as_ac_var'}'` = yes; then
14337 cat >>confdefs.h <<_ACEOF
14338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339 _ACEOF
14340
14341 fi
14342 done
14343
14344
14345 # Solaris has libkstat which does not require root.
14346
14347 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14348 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14349 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lkstat $LIBS"
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360
14361 /* Override any gcc2 internal prototype to avoid an error. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 /* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14367 char kstat_open ();
14368 int
14369 main ()
14370 {
14371 kstat_open ();
14372 ;
14373 return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_kstat_kstat_open=yes
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_lib_kstat_kstat_open=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14410 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14411 if test $ac_cv_lib_kstat_kstat_open = yes; then
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_LIBKSTAT 1
14414 _ACEOF
14415
14416 LIBS="-lkstat $LIBS"
14417
14418 fi
14419
14420 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14421
14422 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14423 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14424 # to get the right answer into the cache.
14425 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14426 if test $ac_have_func = no; then
14427 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14428 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14429 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 else
14432 ac_check_lib_save_LIBS=$LIBS
14433 LIBS="-lelf $LIBS"
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440
14441 /* Override any gcc2 internal prototype to avoid an error. */
14442 #ifdef __cplusplus
14443 extern "C"
14444 #endif
14445 /* We use char because int might match the return type of a gcc2
14446 builtin and then its argument prototype would still apply. */
14447 char elf_begin ();
14448 int
14449 main ()
14450 {
14451 elf_begin ();
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -z "$ac_c_werror_flag"
14466 || test ! -s conftest.err'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_lib_elf_elf_begin=yes
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 ac_cv_lib_elf_elf_begin=no
14484 fi
14485 rm -f conftest.err conftest.$ac_objext \
14486 conftest$ac_exeext conftest.$ac_ext
14487 LIBS=$ac_check_lib_save_LIBS
14488 fi
14489 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14490 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14491 if test $ac_cv_lib_elf_elf_begin = yes; then
14492 LIBS="-lelf $LIBS"
14493 fi
14494
14495 fi
14496 if test $ac_have_func = no; then
14497 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14498 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14499 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lkvm $LIBS"
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510
14511 /* Override any gcc2 internal prototype to avoid an error. */
14512 #ifdef __cplusplus
14513 extern "C"
14514 #endif
14515 /* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517 char kvm_open ();
14518 int
14519 main ()
14520 {
14521 kvm_open ();
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_kvm_kvm_open=yes
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 ac_cv_lib_kvm_kvm_open=no
14554 fi
14555 rm -f conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557 LIBS=$ac_check_lib_save_LIBS
14558 fi
14559 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14560 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14561 if test $ac_cv_lib_kvm_kvm_open = yes; then
14562 LIBS="-lkvm $LIBS"
14563 fi
14564
14565 # Check for the 4.4BSD definition of getloadavg.
14566 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14567 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14568 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 ac_check_lib_save_LIBS=$LIBS
14572 LIBS="-lutil $LIBS"
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h. */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14579
14580 /* Override any gcc2 internal prototype to avoid an error. */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 /* We use char because int might match the return type of a gcc2
14585 builtin and then its argument prototype would still apply. */
14586 char getloadavg ();
14587 int
14588 main ()
14589 {
14590 getloadavg ();
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597 (eval $ac_link) 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -z "$ac_c_werror_flag"
14605 || test ! -s conftest.err'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_lib_util_getloadavg=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_cv_lib_util_getloadavg=no
14623 fi
14624 rm -f conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14629 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14630 if test $ac_cv_lib_util_getloadavg = yes; then
14631 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14632 fi
14633
14634 fi
14635
14636 if test $ac_have_func = no; then
14637 # There is a commonly available library for RS/6000 AIX.
14638 # Since it is not a standard part of AIX, it might be installed locally.
14639 ac_getloadavg_LIBS=$LIBS
14640 LIBS="-L/usr/local/lib $LIBS"
14641 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14642 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14643 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646 ac_check_lib_save_LIBS=$LIBS
14647 LIBS="-lgetloadavg $LIBS"
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h. */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654
14655 /* Override any gcc2 internal prototype to avoid an error. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 /* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661 char getloadavg ();
14662 int
14663 main ()
14664 {
14665 getloadavg ();
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>conftest.er1
14673 ac_status=$?
14674 grep -v '^ *+' conftest.er1 >conftest.err
14675 rm -f conftest.er1
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -z "$ac_c_werror_flag"
14680 || test ! -s conftest.err'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; } &&
14686 { ac_try='test -s conftest$ac_exeext'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14692 ac_cv_lib_getloadavg_getloadavg=yes
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697 ac_cv_lib_getloadavg_getloadavg=no
14698 fi
14699 rm -f conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14702 fi
14703 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14704 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14705 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14706 LIBS="-lgetloadavg $LIBS"
14707 else
14708 LIBS=$ac_getloadavg_LIBS
14709 fi
14710
14711 fi
14712
14713 # Make sure it is really in the library, if we think we found it,
14714 # otherwise set up the replacement function.
14715
14716 for ac_func in getloadavg
14717 do
14718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719 echo "$as_me:$LINENO: checking for $ac_func" >&5
14720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_var+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14732 #define $ac_func innocuous_$ac_func
14733
14734 /* System header to define __stub macros and hopefully few prototypes,
14735 which can conflict with char $ac_func (); below.
14736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14737 <limits.h> exists even on freestanding compilers. */
14738
14739 #ifdef __STDC__
14740 # include <limits.h>
14741 #else
14742 # include <assert.h>
14743 #endif
14744
14745 #undef $ac_func
14746
14747 /* Override any gcc2 internal prototype to avoid an error. */
14748 #ifdef __cplusplus
14749 extern "C"
14750 {
14751 #endif
14752 /* We use char because int might match the return type of a gcc2
14753 builtin and then its argument prototype would still apply. */
14754 char $ac_func ();
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14759 choke me
14760 #else
14761 char (*f) () = $ac_func;
14762 #endif
14763 #ifdef __cplusplus
14764 }
14765 #endif
14766
14767 int
14768 main ()
14769 {
14770 return f != $ac_func;
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 eval "$as_ac_var=yes"
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802 eval "$as_ac_var=no"
14803 fi
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14806 fi
14807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14809 if test `eval echo '${'$as_ac_var'}'` = yes; then
14810 cat >>confdefs.h <<_ACEOF
14811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 _ACEOF
14813
14814 else
14815 case $LIBOBJS in
14816 "getloadavg.$ac_objext" | \
14817 *" getloadavg.$ac_objext" | \
14818 "getloadavg.$ac_objext "* | \
14819 *" getloadavg.$ac_objext "* ) ;;
14820 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14821 esac
14822
14823
14824 cat >>confdefs.h <<\_ACEOF
14825 #define C_GETLOADAVG 1
14826 _ACEOF
14827
14828 # Figure out what our getloadavg.c needs.
14829 ac_have_func=no
14830 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14831 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 fi
14836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14837 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14838 else
14839 # Is the header compilable?
14840 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14841 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 $ac_includes_default
14849 #include <sys/dg_sys_info.h>
14850 _ACEOF
14851 rm -f conftest.$ac_objext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag"
14861 || test ! -s conftest.err'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_header_compiler=yes
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 ac_header_compiler=no
14879 fi
14880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14882 echo "${ECHO_T}$ac_header_compiler" >&6
14883
14884 # Is the header present?
14885 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14886 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 #include <sys/dg_sys_info.h>
14894 _ACEOF
14895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } >/dev/null; then
14903 if test -s conftest.err; then
14904 ac_cpp_err=$ac_c_preproc_warn_flag
14905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14906 else
14907 ac_cpp_err=
14908 fi
14909 else
14910 ac_cpp_err=yes
14911 fi
14912 if test -z "$ac_cpp_err"; then
14913 ac_header_preproc=yes
14914 else
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_header_preproc=no
14919 fi
14920 rm -f conftest.err conftest.$ac_ext
14921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14922 echo "${ECHO_T}$ac_header_preproc" >&6
14923
14924 # So? What about this header?
14925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14926 yes:no: )
14927 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14928 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14930 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14931 ac_header_preproc=yes
14932 ;;
14933 no:yes:* )
14934 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14935 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14937 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14939 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14941 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14942 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14943 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14945 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14946 (
14947 cat <<\_ASBOX
14948 ## ------------------------------------------ ##
14949 ## Report this to the AC_PACKAGE_NAME lists. ##
14950 ## ------------------------------------------ ##
14951 _ASBOX
14952 ) |
14953 sed "s/^/$as_me: WARNING: /" >&2
14954 ;;
14955 esac
14956 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14957 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14958 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14962 fi
14963 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14965
14966 fi
14967 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14968 ac_have_func=yes
14969
14970 cat >>confdefs.h <<\_ACEOF
14971 #define DGUX 1
14972 _ACEOF
14973
14974
14975 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14976 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14977 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980 ac_check_lib_save_LIBS=$LIBS
14981 LIBS="-ldgc $LIBS"
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988
14989 /* Override any gcc2 internal prototype to avoid an error. */
14990 #ifdef __cplusplus
14991 extern "C"
14992 #endif
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
14995 char dg_sys_info ();
14996 int
14997 main ()
14998 {
14999 dg_sys_info ();
15000 ;
15001 return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_dgc_dg_sys_info=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ac_cv_lib_dgc_dg_sys_info=no
15032 fi
15033 rm -f conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15036 fi
15037 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15038 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15039 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041 #define HAVE_LIBDGC 1
15042 _ACEOF
15043
15044 LIBS="-ldgc $LIBS"
15045
15046 fi
15047
15048 fi
15049
15050
15051
15052 if test "${ac_cv_header_locale_h+set}" = set; then
15053 echo "$as_me:$LINENO: checking for locale.h" >&5
15054 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15055 if test "${ac_cv_header_locale_h+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 fi
15058 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15059 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15060 else
15061 # Is the header compilable?
15062 echo "$as_me:$LINENO: checking locale.h usability" >&5
15063 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15071 #include <locale.h>
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_header_compiler=yes
15096 else
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15099
15100 ac_header_compiler=no
15101 fi
15102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104 echo "${ECHO_T}$ac_header_compiler" >&6
15105
15106 # Is the header present?
15107 echo "$as_me:$LINENO: checking locale.h presence" >&5
15108 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 #include <locale.h>
15116 _ACEOF
15117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } >/dev/null; then
15125 if test -s conftest.err; then
15126 ac_cpp_err=$ac_c_preproc_warn_flag
15127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15128 else
15129 ac_cpp_err=
15130 fi
15131 else
15132 ac_cpp_err=yes
15133 fi
15134 if test -z "$ac_cpp_err"; then
15135 ac_header_preproc=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_header_preproc=no
15141 fi
15142 rm -f conftest.err conftest.$ac_ext
15143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15144 echo "${ECHO_T}$ac_header_preproc" >&6
15145
15146 # So? What about this header?
15147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15148 yes:no: )
15149 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15150 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15152 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15153 ac_header_preproc=yes
15154 ;;
15155 no:yes:* )
15156 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15161 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15163 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15165 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15167 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15168 (
15169 cat <<\_ASBOX
15170 ## ------------------------------------------ ##
15171 ## Report this to the AC_PACKAGE_NAME lists. ##
15172 ## ------------------------------------------ ##
15173 _ASBOX
15174 ) |
15175 sed "s/^/$as_me: WARNING: /" >&2
15176 ;;
15177 esac
15178 echo "$as_me:$LINENO: checking for locale.h" >&5
15179 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15180 if test "${ac_cv_header_locale_h+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183 ac_cv_header_locale_h=$ac_header_preproc
15184 fi
15185 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15186 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15187
15188 fi
15189
15190
15191
15192 for ac_func in setlocale
15193 do
15194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15195 echo "$as_me:$LINENO: checking for $ac_func" >&5
15196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15197 if eval "test \"\${$as_ac_var+set}\" = set"; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15208 #define $ac_func innocuous_$ac_func
15209
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char $ac_func (); below.
15212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15213 <limits.h> exists even on freestanding compilers. */
15214
15215 #ifdef __STDC__
15216 # include <limits.h>
15217 #else
15218 # include <assert.h>
15219 #endif
15220
15221 #undef $ac_func
15222
15223 /* Override any gcc2 internal prototype to avoid an error. */
15224 #ifdef __cplusplus
15225 extern "C"
15226 {
15227 #endif
15228 /* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15230 char $ac_func ();
15231 /* The GNU C library defines this for functions which it implements
15232 to always fail with ENOSYS. Some functions are actually named
15233 something starting with __ and the normal name is an alias. */
15234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15235 choke me
15236 #else
15237 char (*f) () = $ac_func;
15238 #endif
15239 #ifdef __cplusplus
15240 }
15241 #endif
15242
15243 int
15244 main ()
15245 {
15246 return f != $ac_func;
15247 ;
15248 return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag"
15261 || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest$ac_exeext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 eval "$as_ac_var=yes"
15274 else
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 eval "$as_ac_var=no"
15279 fi
15280 rm -f conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 fi
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15288 _ACEOF
15289
15290 fi
15291 done
15292
15293
15294 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15295 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15296 # Irix 4.0.5F has the header but not the library.
15297 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15298 ac_have_func=yes
15299
15300 cat >>confdefs.h <<\_ACEOF
15301 #define SVR4 1
15302 _ACEOF
15303
15304 fi
15305
15306 if test $ac_have_func = no; then
15307 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15308 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15309 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15310 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 fi
15313 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15314 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15315 else
15316 # Is the header compilable?
15317 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15318 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15326 #include <inq_stats/cpustats.h>
15327 _ACEOF
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler=yes
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 ac_header_compiler=no
15356 fi
15357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6
15360
15361 # Is the header present?
15362 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15363 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <inq_stats/cpustats.h>
15371 _ACEOF
15372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null; then
15380 if test -s conftest.err; then
15381 ac_cpp_err=$ac_c_preproc_warn_flag
15382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15383 else
15384 ac_cpp_err=
15385 fi
15386 else
15387 ac_cpp_err=yes
15388 fi
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_header_preproc=no
15396 fi
15397 rm -f conftest.err conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15400
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15403 yes:no: )
15404 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15407 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15408 ac_header_preproc=yes
15409 ;;
15410 no:yes:* )
15411 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15412 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15414 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15416 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15418 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15420 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15422 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15423 (
15424 cat <<\_ASBOX
15425 ## ------------------------------------------ ##
15426 ## Report this to the AC_PACKAGE_NAME lists. ##
15427 ## ------------------------------------------ ##
15428 _ASBOX
15429 ) |
15430 sed "s/^/$as_me: WARNING: /" >&2
15431 ;;
15432 esac
15433 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15434 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15435 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 else
15438 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15439 fi
15440 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15441 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15442
15443 fi
15444 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15445 ac_have_func=yes
15446
15447 cat >>confdefs.h <<\_ACEOF
15448 #define UMAX 1
15449 _ACEOF
15450
15451
15452 cat >>confdefs.h <<\_ACEOF
15453 #define UMAX4_3 1
15454 _ACEOF
15455
15456 fi
15457
15458
15459 fi
15460
15461 if test $ac_have_func = no; then
15462 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15463 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15464 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15465 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 fi
15468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15469 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15470 else
15471 # Is the header compilable?
15472 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15473 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <sys/cpustats.h>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>conftest.er1
15486 ac_status=$?
15487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -z "$ac_c_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_header_compiler=no
15511 fi
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15515
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15518 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h. */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <sys/cpustats.h>
15526 _ACEOF
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_c_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15538 else
15539 ac_cpp_err=
15540 fi
15541 else
15542 ac_cpp_err=yes
15543 fi
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550 ac_header_preproc=no
15551 fi
15552 rm -f conftest.err conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15555
15556 # So? What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15558 yes:no: )
15559 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15563 ac_header_preproc=yes
15564 ;;
15565 no:yes:* )
15566 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15578 (
15579 cat <<\_ASBOX
15580 ## ------------------------------------------ ##
15581 ## Report this to the AC_PACKAGE_NAME lists. ##
15582 ## ------------------------------------------ ##
15583 _ASBOX
15584 ) |
15585 sed "s/^/$as_me: WARNING: /" >&2
15586 ;;
15587 esac
15588 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15589 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15590 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15594 fi
15595 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15596 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15597
15598 fi
15599 if test $ac_cv_header_sys_cpustats_h = yes; then
15600 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15601 #define UMAX 1
15602 _ACEOF
15603
15604 fi
15605
15606
15607 fi
15608
15609 if test $ac_have_func = no; then
15610
15611 for ac_header in mach/mach.h
15612 do
15613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15615 echo "$as_me:$LINENO: checking for $ac_header" >&5
15616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 fi
15620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15622 else
15623 # Is the header compilable?
15624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $ac_includes_default
15633 #include <$ac_header>
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>conftest.er1
15638 ac_status=$?
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -z "$ac_c_werror_flag"
15645 || test ! -s conftest.err'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler=yes
15658 else
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662 ac_header_compiler=no
15663 fi
15664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15666 echo "${ECHO_T}$ac_header_compiler" >&6
15667
15668 # Is the header present?
15669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <$ac_header>
15678 _ACEOF
15679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } >/dev/null; then
15687 if test -s conftest.err; then
15688 ac_cpp_err=$ac_c_preproc_warn_flag
15689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15690 else
15691 ac_cpp_err=
15692 fi
15693 else
15694 ac_cpp_err=yes
15695 fi
15696 if test -z "$ac_cpp_err"; then
15697 ac_header_preproc=yes
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_preproc=no
15703 fi
15704 rm -f conftest.err conftest.$ac_ext
15705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15706 echo "${ECHO_T}$ac_header_preproc" >&6
15707
15708 # So? What about this header?
15709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15710 yes:no: )
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15715 ac_header_preproc=yes
15716 ;;
15717 no:yes:* )
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15730 (
15731 cat <<\_ASBOX
15732 ## ------------------------------------------ ##
15733 ## Report this to the AC_PACKAGE_NAME lists. ##
15734 ## ------------------------------------------ ##
15735 _ASBOX
15736 ) |
15737 sed "s/^/$as_me: WARNING: /" >&2
15738 ;;
15739 esac
15740 echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745 eval "$as_ac_Header=\$ac_header_preproc"
15746 fi
15747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15749
15750 fi
15751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15754 _ACEOF
15755
15756 fi
15757
15758 done
15759
15760 fi
15761
15762
15763 for ac_header in nlist.h
15764 do
15765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15767 echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 fi
15772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15774 else
15775 # Is the header compilable?
15776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15786 _ACEOF
15787 rm -f conftest.$ac_objext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest.$ac_objext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_header_compiler=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_header_compiler=no
15815 fi
15816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818 echo "${ECHO_T}$ac_header_compiler" >&6
15819
15820 # Is the header present?
15821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <$ac_header>
15830 _ACEOF
15831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } >/dev/null; then
15839 if test -s conftest.err; then
15840 ac_cpp_err=$ac_c_preproc_warn_flag
15841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15842 else
15843 ac_cpp_err=
15844 fi
15845 else
15846 ac_cpp_err=yes
15847 fi
15848 if test -z "$ac_cpp_err"; then
15849 ac_header_preproc=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_header_preproc=no
15855 fi
15856 rm -f conftest.err conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15858 echo "${ECHO_T}$ac_header_preproc" >&6
15859
15860 # So? What about this header?
15861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15862 yes:no: )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15867 ac_header_preproc=yes
15868 ;;
15869 no:yes:* )
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15882 (
15883 cat <<\_ASBOX
15884 ## ------------------------------------------ ##
15885 ## Report this to the AC_PACKAGE_NAME lists. ##
15886 ## ------------------------------------------ ##
15887 _ASBOX
15888 ) |
15889 sed "s/^/$as_me: WARNING: /" >&2
15890 ;;
15891 esac
15892 echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897 eval "$as_ac_Header=\$ac_header_preproc"
15898 fi
15899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15901
15902 fi
15903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15906 _ACEOF
15907 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15908 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15909 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <nlist.h>
15919
15920 int
15921 main ()
15922 {
15923 static struct nlist ac_aggr;
15924 if (ac_aggr.n_un.n_name)
15925 return 0;
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 rm -f conftest.$ac_objext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag"
15940 || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_member_struct_nlist_n_un_n_name=yes
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 #include <nlist.h>
15964
15965 int
15966 main ()
15967 {
15968 static struct nlist ac_aggr;
15969 if (sizeof ac_aggr.n_un.n_name)
15970 return 0;
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_member_struct_nlist_n_un_n_name=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_cv_member_struct_nlist_n_un_n_name=no
16003 fi
16004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16009 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16010 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16011
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16014 _ACEOF
16015
16016
16017 cat >>confdefs.h <<\_ACEOF
16018 #define NLIST_NAME_UNION 1
16019 _ACEOF
16020
16021 fi
16022
16023
16024 fi
16025
16026 done
16027
16028 fi
16029 done
16030
16031
16032 # Some definitions of getloadavg require that the program be installed setgid.
16033 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16034 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16035 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16045 #ifdef LDAV_PRIVILEGED
16046 Yowza Am I SETGID yet
16047 #endif
16048 _ACEOF
16049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16050 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16051 ac_cv_func_getloadavg_setgid=yes
16052 else
16053 ac_cv_func_getloadavg_setgid=no
16054 fi
16055 rm -f conftest*
16056
16057 fi
16058 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16059 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16060 if test $ac_cv_func_getloadavg_setgid = yes; then
16061 NEED_SETGID=true
16062
16063 cat >>confdefs.h <<\_ACEOF
16064 #define GETLOADAVG_PRIVILEGED 1
16065 _ACEOF
16066
16067 else
16068 NEED_SETGID=false
16069 fi
16070
16071 if test $ac_cv_func_getloadavg_setgid = yes; then
16072 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16073 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16074 if test "${ac_cv_group_kmem+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16078 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16079 # If we got an error (system does not support symlinks), try without -L.
16080 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16081 ac_cv_group_kmem=`echo $ac_ls_output \
16082 | sed -ne 's/[ ][ ]*/ /g;
16083 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16084 / /s/.* //;p;'`
16085
16086 fi
16087 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16088 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16089 KMEM_GROUP=$ac_cv_group_kmem
16090 fi
16091 if test "x$ac_save_LIBS" = x; then
16092 GETLOADAVG_LIBS=$LIBS
16093 else
16094 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16095 fi
16096 LIBS=$ac_save_LIBS
16097
16098
16099
16100 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16101 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16102 if test "${ac_cv_sys_largefile_source+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105 while :; do
16106 ac_cv_sys_largefile_source=no
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <stdio.h>
16114 int
16115 main ()
16116 {
16117 return !fseeko;
16118 ;
16119 return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 break
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 fi
16150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #define _LARGEFILE_SOURCE 1
16158 #include <stdio.h>
16159 int
16160 main ()
16161 {
16162 return !fseeko;
16163 ;
16164 return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_cv_sys_largefile_source=1; break
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 fi
16195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16196 break
16197 done
16198 fi
16199 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16200 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16201 if test "$ac_cv_sys_largefile_source" != no; then
16202
16203 cat >>confdefs.h <<_ACEOF
16204 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16205 _ACEOF
16206
16207 fi
16208 rm -f conftest*
16209
16210 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16211 # in glibc 2.1.3, but that breaks too many other things.
16212 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16213 echo "$as_me:$LINENO: checking for fseeko" >&5
16214 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16215 if test "${ac_cv_func_fseeko+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 #include <stdio.h>
16225 int
16226 main ()
16227 {
16228 return fseeko && fseeko (stdin, 0, 0);
16229 ;
16230 return 0;
16231 }
16232 _ACEOF
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16235 (eval $ac_link) 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest$ac_exeext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_func_fseeko=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 ac_cv_func_fseeko=no
16261 fi
16262 rm -f conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 fi
16265 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16266 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16267 if test $ac_cv_func_fseeko = yes; then
16268
16269 cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_FSEEKO 1
16271 _ACEOF
16272
16273 fi
16274
16275
16276 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16277 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16278 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 # Use it with a single arg.
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 int
16290 main ()
16291 {
16292 getpgrp (0);
16293 ;
16294 return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_cv_func_getpgrp_void=no
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 ac_cv_func_getpgrp_void=yes
16325 fi
16326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16327
16328 fi
16329 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16330 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16331 if test $ac_cv_func_getpgrp_void = yes; then
16332
16333 cat >>confdefs.h <<\_ACEOF
16334 #define GETPGRP_VOID 1
16335 _ACEOF
16336
16337 fi
16338
16339
16340
16341 for ac_func in strftime
16342 do
16343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 echo "$as_me:$LINENO: checking for $ac_func" >&5
16345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16346 if eval "test \"\${$as_ac_var+set}\" = set"; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16357 #define $ac_func innocuous_$ac_func
16358
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16363
16364 #ifdef __STDC__
16365 # include <limits.h>
16366 #else
16367 # include <assert.h>
16368 #endif
16369
16370 #undef $ac_func
16371
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 #ifdef __cplusplus
16374 extern "C"
16375 {
16376 #endif
16377 /* We use char because int might match the return type of a gcc2
16378 builtin and then its argument prototype would still apply. */
16379 char $ac_func ();
16380 /* The GNU C library defines this for functions which it implements
16381 to always fail with ENOSYS. Some functions are actually named
16382 something starting with __ and the normal name is an alias. */
16383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16384 choke me
16385 #else
16386 char (*f) () = $ac_func;
16387 #endif
16388 #ifdef __cplusplus
16389 }
16390 #endif
16391
16392 int
16393 main ()
16394 {
16395 return f != $ac_func;
16396 ;
16397 return 0;
16398 }
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 eval "$as_ac_var=yes"
16423 else
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 eval "$as_ac_var=no"
16428 fi
16429 rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 fi
16432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16434 if test `eval echo '${'$as_ac_var'}'` = yes; then
16435 cat >>confdefs.h <<_ACEOF
16436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16437 _ACEOF
16438
16439 else
16440 # strftime is in -lintl on SCO UNIX.
16441 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16442 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16443 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 ac_check_lib_save_LIBS=$LIBS
16447 LIBS="-lintl $LIBS"
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h. */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454
16455 /* Override any gcc2 internal prototype to avoid an error. */
16456 #ifdef __cplusplus
16457 extern "C"
16458 #endif
16459 /* We use char because int might match the return type of a gcc2
16460 builtin and then its argument prototype would still apply. */
16461 char strftime ();
16462 int
16463 main ()
16464 {
16465 strftime ();
16466 ;
16467 return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472 (eval $ac_link) 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag"
16480 || test ! -s conftest.err'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest$ac_exeext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_lib_intl_strftime=yes
16493 else
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 ac_cv_lib_intl_strftime=no
16498 fi
16499 rm -f conftest.err conftest.$ac_objext \
16500 conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16502 fi
16503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16504 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16505 if test $ac_cv_lib_intl_strftime = yes; then
16506 cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_STRFTIME 1
16508 _ACEOF
16509
16510 LIBS="-lintl $LIBS"
16511 fi
16512
16513 fi
16514 done
16515
16516
16517 # UNIX98 PTYs.
16518
16519 for ac_func in grantpt
16520 do
16521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16522 echo "$as_me:$LINENO: checking for $ac_func" >&5
16523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16524 if eval "test \"\${$as_ac_var+set}\" = set"; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16535 #define $ac_func innocuous_$ac_func
16536
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char $ac_func (); below.
16539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540 <limits.h> exists even on freestanding compilers. */
16541
16542 #ifdef __STDC__
16543 # include <limits.h>
16544 #else
16545 # include <assert.h>
16546 #endif
16547
16548 #undef $ac_func
16549
16550 /* Override any gcc2 internal prototype to avoid an error. */
16551 #ifdef __cplusplus
16552 extern "C"
16553 {
16554 #endif
16555 /* We use char because int might match the return type of a gcc2
16556 builtin and then its argument prototype would still apply. */
16557 char $ac_func ();
16558 /* The GNU C library defines this for functions which it implements
16559 to always fail with ENOSYS. Some functions are actually named
16560 something starting with __ and the normal name is an alias. */
16561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16562 choke me
16563 #else
16564 char (*f) () = $ac_func;
16565 #endif
16566 #ifdef __cplusplus
16567 }
16568 #endif
16569
16570 int
16571 main ()
16572 {
16573 return f != $ac_func;
16574 ;
16575 return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>conftest.er1
16581 ac_status=$?
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest$ac_exeext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 eval "$as_ac_var=yes"
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 eval "$as_ac_var=no"
16606 fi
16607 rm -f conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 fi
16610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16612 if test `eval echo '${'$as_ac_var'}'` = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615 _ACEOF
16616
16617 fi
16618 done
16619
16620
16621 # PTY-related GNU extensions.
16622
16623 for ac_func in getpt
16624 do
16625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16626 echo "$as_me:$LINENO: checking for $ac_func" >&5
16627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16628 if eval "test \"\${$as_ac_var+set}\" = set"; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h. */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16639 #define $ac_func innocuous_$ac_func
16640
16641 /* System header to define __stub macros and hopefully few prototypes,
16642 which can conflict with char $ac_func (); below.
16643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16644 <limits.h> exists even on freestanding compilers. */
16645
16646 #ifdef __STDC__
16647 # include <limits.h>
16648 #else
16649 # include <assert.h>
16650 #endif
16651
16652 #undef $ac_func
16653
16654 /* Override any gcc2 internal prototype to avoid an error. */
16655 #ifdef __cplusplus
16656 extern "C"
16657 {
16658 #endif
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16661 char $ac_func ();
16662 /* The GNU C library defines this for functions which it implements
16663 to always fail with ENOSYS. Some functions are actually named
16664 something starting with __ and the normal name is an alias. */
16665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16666 choke me
16667 #else
16668 char (*f) () = $ac_func;
16669 #endif
16670 #ifdef __cplusplus
16671 }
16672 #endif
16673
16674 int
16675 main ()
16676 {
16677 return f != $ac_func;
16678 ;
16679 return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684 (eval $ac_link) 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag"
16692 || test ! -s conftest.err'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest$ac_exeext'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 eval "$as_ac_var=yes"
16705 else
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 eval "$as_ac_var=no"
16710 fi
16711 rm -f conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16713 fi
16714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16716 if test `eval echo '${'$as_ac_var'}'` = yes; then
16717 cat >>confdefs.h <<_ACEOF
16718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16719 _ACEOF
16720
16721 fi
16722 done
16723
16724
16725 # Check this now, so that we will NOT find the above functions in ncurses.
16726 # That is because we have not set up to link ncurses in lib-src.
16727 # It's better to believe a function is not available
16728 # than to expect to find it in ncurses.
16729
16730 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16731 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16732 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735 ac_check_lib_save_LIBS=$LIBS
16736 LIBS="-lncurses $LIBS"
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h. */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743
16744 /* Override any gcc2 internal prototype to avoid an error. */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 /* We use char because int might match the return type of a gcc2
16749 builtin and then its argument prototype would still apply. */
16750 char tparm ();
16751 int
16752 main ()
16753 {
16754 tparm ();
16755 ;
16756 return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext conftest$ac_exeext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16761 (eval $ac_link) 2>conftest.er1
16762 ac_status=$?
16763 grep -v '^ *+' conftest.er1 >conftest.err
16764 rm -f conftest.er1
16765 cat conftest.err >&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -z "$ac_c_werror_flag"
16769 || test ! -s conftest.err'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest$ac_exeext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_lib_ncurses_tparm=yes
16782 else
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 ac_cv_lib_ncurses_tparm=no
16787 fi
16788 rm -f conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16791 fi
16792 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16793 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16794 if test $ac_cv_lib_ncurses_tparm = yes; then
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_LIBNCURSES 1
16797 _ACEOF
16798
16799 LIBS="-lncurses $LIBS"
16800
16801 fi
16802
16803
16804 # Do we need the Hesiod library to provide the support routines?
16805 if test "$with_hesiod" = yes ; then
16806 # Don't set $LIBS here -- see comments above.
16807 resolv=no
16808 echo "$as_me:$LINENO: checking for res_send" >&5
16809 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16810 if test "${ac_cv_func_res_send+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813 cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h. */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16819 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16821 #define res_send innocuous_res_send
16822
16823 /* System header to define __stub macros and hopefully few prototypes,
16824 which can conflict with char res_send (); below.
16825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16826 <limits.h> exists even on freestanding compilers. */
16827
16828 #ifdef __STDC__
16829 # include <limits.h>
16830 #else
16831 # include <assert.h>
16832 #endif
16833
16834 #undef res_send
16835
16836 /* Override any gcc2 internal prototype to avoid an error. */
16837 #ifdef __cplusplus
16838 extern "C"
16839 {
16840 #endif
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16843 char res_send ();
16844 /* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847 #if defined (__stub_res_send) || defined (__stub___res_send)
16848 choke me
16849 #else
16850 char (*f) () = res_send;
16851 #endif
16852 #ifdef __cplusplus
16853 }
16854 #endif
16855
16856 int
16857 main ()
16858 {
16859 return f != res_send;
16860 ;
16861 return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest$ac_exeext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_func_res_send=yes
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_cv_func_res_send=no
16892 fi
16893 rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895 fi
16896 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16897 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16898 if test $ac_cv_func_res_send = yes; then
16899 :
16900 else
16901 echo "$as_me:$LINENO: checking for __res_send" >&5
16902 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16903 if test "${ac_cv_func___res_send+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define __res_send innocuous___res_send
16915
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char __res_send (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16920
16921 #ifdef __STDC__
16922 # include <limits.h>
16923 #else
16924 # include <assert.h>
16925 #endif
16926
16927 #undef __res_send
16928
16929 /* Override any gcc2 internal prototype to avoid an error. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 {
16933 #endif
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char __res_send ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub___res_send) || defined (__stub_____res_send)
16941 choke me
16942 #else
16943 char (*f) () = __res_send;
16944 #endif
16945 #ifdef __cplusplus
16946 }
16947 #endif
16948
16949 int
16950 main ()
16951 {
16952 return f != __res_send;
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_func___res_send=yes
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_cv_func___res_send=no
16985 fi
16986 rm -f conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988 fi
16989 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16990 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16991 if test $ac_cv_func___res_send = yes; then
16992 :
16993 else
16994 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16995 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16996 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999 ac_check_lib_save_LIBS=$LIBS
17000 LIBS="-lresolv $LIBS"
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007
17008 /* Override any gcc2 internal prototype to avoid an error. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 /* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17014 char res_send ();
17015 int
17016 main ()
17017 {
17018 res_send ();
17019 ;
17020 return 0;
17021 }
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_c_werror_flag"
17033 || test ! -s conftest.err'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_resolv_res_send=yes
17046 else
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_cv_lib_resolv_res_send=no
17051 fi
17052 rm -f conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17055 fi
17056 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17057 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17058 if test $ac_cv_lib_resolv_res_send = yes; then
17059 resolv=yes
17060 else
17061 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17062 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17063 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066 ac_check_lib_save_LIBS=$LIBS
17067 LIBS="-lresolv $LIBS"
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074
17075 /* Override any gcc2 internal prototype to avoid an error. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 /* We use char because int might match the return type of a gcc2
17080 builtin and then its argument prototype would still apply. */
17081 char __res_send ();
17082 int
17083 main ()
17084 {
17085 __res_send ();
17086 ;
17087 return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag"
17100 || test ! -s conftest.err'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest$ac_exeext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_lib_resolv___res_send=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_cv_lib_resolv___res_send=no
17118 fi
17119 rm -f conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17122 fi
17123 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17124 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17125 if test $ac_cv_lib_resolv___res_send = yes; then
17126 resolv=yes
17127 fi
17128
17129 fi
17130
17131 fi
17132
17133 fi
17134
17135 if test "$resolv" = yes ; then
17136 RESOLVLIB=-lresolv
17137
17138 cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_LIBRESOLV 1
17140 _ACEOF
17141
17142 else
17143 RESOLVLIB=
17144 fi
17145 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17146 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17147 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158 #define hes_getmailhost innocuous_hes_getmailhost
17159
17160 /* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char hes_getmailhost (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17164
17165 #ifdef __STDC__
17166 # include <limits.h>
17167 #else
17168 # include <assert.h>
17169 #endif
17170
17171 #undef hes_getmailhost
17172
17173 /* Override any gcc2 internal prototype to avoid an error. */
17174 #ifdef __cplusplus
17175 extern "C"
17176 {
17177 #endif
17178 /* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180 char hes_getmailhost ();
17181 /* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17185 choke me
17186 #else
17187 char (*f) () = hes_getmailhost;
17188 #endif
17189 #ifdef __cplusplus
17190 }
17191 #endif
17192
17193 int
17194 main ()
17195 {
17196 return f != hes_getmailhost;
17197 ;
17198 return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_func_hes_getmailhost=yes
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228 ac_cv_func_hes_getmailhost=no
17229 fi
17230 rm -f conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17234 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17235 if test $ac_cv_func_hes_getmailhost = yes; then
17236 :
17237 else
17238 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17239 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17240 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243 ac_check_lib_save_LIBS=$LIBS
17244 LIBS="-lhesiod $RESOLVLIB $LIBS"
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h. */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251
17252 /* Override any gcc2 internal prototype to avoid an error. */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 /* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17258 char hes_getmailhost ();
17259 int
17260 main ()
17261 {
17262 hes_getmailhost ();
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_lib_hesiod_hes_getmailhost=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_lib_hesiod_hes_getmailhost=no
17295 fi
17296 rm -f conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17299 fi
17300 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17301 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17302 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17303
17304 cat >>confdefs.h <<\_ACEOF
17305 #define HAVE_LIBHESIOD 1
17306 _ACEOF
17307
17308 else
17309 :
17310 fi
17311
17312 fi
17313
17314 fi
17315
17316 # These tell us which Kerberos-related libraries to use.
17317 if test "${with_kerberos+set}" = set; then
17318
17319 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17320 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17321 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324 ac_check_lib_save_LIBS=$LIBS
17325 LIBS="-lcom_err $LIBS"
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h. */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332
17333 /* Override any gcc2 internal prototype to avoid an error. */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 /* We use char because int might match the return type of a gcc2
17338 builtin and then its argument prototype would still apply. */
17339 char com_err ();
17340 int
17341 main ()
17342 {
17343 com_err ();
17344 ;
17345 return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_lib_com_err_com_err=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_cv_lib_com_err_com_err=no
17376 fi
17377 rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17382 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17383 if test $ac_cv_lib_com_err_com_err = yes; then
17384 cat >>confdefs.h <<_ACEOF
17385 #define HAVE_LIBCOM_ERR 1
17386 _ACEOF
17387
17388 LIBS="-lcom_err $LIBS"
17389
17390 fi
17391
17392
17393 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17394 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17395 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lk5crypto $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406
17407 /* Override any gcc2 internal prototype to avoid an error. */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 /* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17413 char mit_des_cbc_encrypt ();
17414 int
17415 main ()
17416 {
17417 mit_des_cbc_encrypt ();
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>conftest.er1
17425 ac_status=$?
17426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag"
17432 || test ! -s conftest.err'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; } &&
17438 { ac_try='test -s conftest$ac_exeext'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17445 else
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17450 fi
17451 rm -f conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453 LIBS=$ac_check_lib_save_LIBS
17454 fi
17455 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17456 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17457 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_LIBK5CRYPTO 1
17460 _ACEOF
17461
17462 LIBS="-lk5crypto $LIBS"
17463
17464 fi
17465
17466
17467 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17468 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17469 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 ac_check_lib_save_LIBS=$LIBS
17473 LIBS="-lcrypto $LIBS"
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480
17481 /* Override any gcc2 internal prototype to avoid an error. */
17482 #ifdef __cplusplus
17483 extern "C"
17484 #endif
17485 /* We use char because int might match the return type of a gcc2
17486 builtin and then its argument prototype would still apply. */
17487 char mit_des_cbc_encrypt ();
17488 int
17489 main ()
17490 {
17491 mit_des_cbc_encrypt ();
17492 ;
17493 return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498 (eval $ac_link) 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag"
17506 || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17519 else
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17524 fi
17525 rm -f conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17528 fi
17529 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17530 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17531 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17532 cat >>confdefs.h <<_ACEOF
17533 #define HAVE_LIBCRYPTO 1
17534 _ACEOF
17535
17536 LIBS="-lcrypto $LIBS"
17537
17538 fi
17539
17540
17541 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17542 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17543 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-lkrb5 $LIBS"
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554
17555 /* Override any gcc2 internal prototype to avoid an error. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17561 char krb5_init_context ();
17562 int
17563 main ()
17564 {
17565 krb5_init_context ();
17566 ;
17567 return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_lib_krb5_krb5_init_context=yes
17593 else
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 ac_cv_lib_krb5_krb5_init_context=no
17598 fi
17599 rm -f conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17601 LIBS=$ac_check_lib_save_LIBS
17602 fi
17603 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17604 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17605 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define HAVE_LIBKRB5 1
17608 _ACEOF
17609
17610 LIBS="-lkrb5 $LIBS"
17611
17612 fi
17613
17614 if test "${with_kerberos5+set}" != set; then
17615
17616 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17617 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17618 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621 ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-ldes425 $LIBS"
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629
17630 /* Override any gcc2 internal prototype to avoid an error. */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 /* We use char because int might match the return type of a gcc2
17635 builtin and then its argument prototype would still apply. */
17636 char des_cbc_encrypt ();
17637 int
17638 main ()
17639 {
17640 des_cbc_encrypt ();
17641 ;
17642 return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17667 ac_cv_lib_des425_des_cbc_encrypt=yes
17668 else
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672 ac_cv_lib_des425_des_cbc_encrypt=no
17673 fi
17674 rm -f conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17677 fi
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17679 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17680 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define HAVE_LIBDES425 1
17683 _ACEOF
17684
17685 LIBS="-ldes425 $LIBS"
17686
17687 else
17688
17689 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17690 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17691 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694 ac_check_lib_save_LIBS=$LIBS
17695 LIBS="-ldes $LIBS"
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702
17703 /* Override any gcc2 internal prototype to avoid an error. */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17709 char des_cbc_encrypt ();
17710 int
17711 main ()
17712 {
17713 des_cbc_encrypt ();
17714 ;
17715 return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_lib_des_des_cbc_encrypt=yes
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745 ac_cv_lib_des_des_cbc_encrypt=no
17746 fi
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 LIBS=$ac_check_lib_save_LIBS
17750 fi
17751 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17752 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17753 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_LIBDES 1
17756 _ACEOF
17757
17758 LIBS="-ldes $LIBS"
17759
17760 fi
17761
17762 fi
17763
17764
17765 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17766 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17767 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770 ac_check_lib_save_LIBS=$LIBS
17771 LIBS="-lkrb4 $LIBS"
17772 cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h. */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778
17779 /* Override any gcc2 internal prototype to avoid an error. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 /* We use char because int might match the return type of a gcc2
17784 builtin and then its argument prototype would still apply. */
17785 char krb_get_cred ();
17786 int
17787 main ()
17788 {
17789 krb_get_cred ();
17790 ;
17791 return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>conftest.er1
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
17803 { ac_try='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest$ac_exeext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_lib_krb4_krb_get_cred=yes
17817 else
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17820
17821 ac_cv_lib_krb4_krb_get_cred=no
17822 fi
17823 rm -f conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17826 fi
17827 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17828 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17829 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define HAVE_LIBKRB4 1
17832 _ACEOF
17833
17834 LIBS="-lkrb4 $LIBS"
17835
17836 else
17837
17838 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17839 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17840 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lkrb $LIBS"
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851
17852 /* Override any gcc2 internal prototype to avoid an error. */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 /* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17858 char krb_get_cred ();
17859 int
17860 main ()
17861 {
17862 krb_get_cred ();
17863 ;
17864 return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869 (eval $ac_link) 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag"
17877 || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_lib_krb_krb_get_cred=yes
17890 else
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894 ac_cv_lib_krb_krb_get_cred=no
17895 fi
17896 rm -f conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17899 fi
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17901 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17902 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17903 cat >>confdefs.h <<_ACEOF
17904 #define HAVE_LIBKRB 1
17905 _ACEOF
17906
17907 LIBS="-lkrb $LIBS"
17908
17909 fi
17910
17911 fi
17912
17913 fi
17914
17915 if test "${with_kerberos5+set}" = set; then
17916
17917 for ac_header in krb5.h
17918 do
17919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17921 echo "$as_me:$LINENO: checking for $ac_header" >&5
17922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 fi
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17928 else
17929 # Is the header compilable?
17930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 $ac_includes_default
17939 #include <$ac_header>
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_header_compiler=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_header_compiler=no
17969 fi
17970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17972 echo "${ECHO_T}$ac_header_compiler" >&6
17973
17974 # Is the header present?
17975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #include <$ac_header>
17984 _ACEOF
17985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } >/dev/null; then
17993 if test -s conftest.err; then
17994 ac_cpp_err=$ac_c_preproc_warn_flag
17995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17996 else
17997 ac_cpp_err=
17998 fi
17999 else
18000 ac_cpp_err=yes
18001 fi
18002 if test -z "$ac_cpp_err"; then
18003 ac_header_preproc=yes
18004 else
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008 ac_header_preproc=no
18009 fi
18010 rm -f conftest.err conftest.$ac_ext
18011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18012 echo "${ECHO_T}$ac_header_preproc" >&6
18013
18014 # So? What about this header?
18015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18016 yes:no: )
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18021 ac_header_preproc=yes
18022 ;;
18023 no:yes:* )
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18036 (
18037 cat <<\_ASBOX
18038 ## ------------------------------------------ ##
18039 ## Report this to the AC_PACKAGE_NAME lists. ##
18040 ## ------------------------------------------ ##
18041 _ASBOX
18042 ) |
18043 sed "s/^/$as_me: WARNING: /" >&2
18044 ;;
18045 esac
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 eval "$as_ac_Header=\$ac_header_preproc"
18052 fi
18053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18055
18056 fi
18057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18060 _ACEOF
18061
18062 fi
18063
18064 done
18065
18066 else
18067
18068 for ac_header in des.h
18069 do
18070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18072 echo "$as_me:$LINENO: checking for $ac_header" >&5
18073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 fi
18077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18079 else
18080 # Is the header compilable?
18081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 $ac_includes_default
18090 #include <$ac_header>
18091 _ACEOF
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_header_compiler=yes
18115 else
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ac_header_compiler=no
18120 fi
18121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18123 echo "${ECHO_T}$ac_header_compiler" >&6
18124
18125 # Is the header present?
18126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h. */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 #include <$ac_header>
18135 _ACEOF
18136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18138 ac_status=$?
18139 grep -v '^ *+' conftest.er1 >conftest.err
18140 rm -f conftest.er1
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } >/dev/null; then
18144 if test -s conftest.err; then
18145 ac_cpp_err=$ac_c_preproc_warn_flag
18146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18147 else
18148 ac_cpp_err=
18149 fi
18150 else
18151 ac_cpp_err=yes
18152 fi
18153 if test -z "$ac_cpp_err"; then
18154 ac_header_preproc=yes
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 ac_header_preproc=no
18160 fi
18161 rm -f conftest.err conftest.$ac_ext
18162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18163 echo "${ECHO_T}$ac_header_preproc" >&6
18164
18165 # So? What about this header?
18166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18167 yes:no: )
18168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18172 ac_header_preproc=yes
18173 ;;
18174 no:yes:* )
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18187 (
18188 cat <<\_ASBOX
18189 ## ------------------------------------------ ##
18190 ## Report this to the AC_PACKAGE_NAME lists. ##
18191 ## ------------------------------------------ ##
18192 _ASBOX
18193 ) |
18194 sed "s/^/$as_me: WARNING: /" >&2
18195 ;;
18196 esac
18197 echo "$as_me:$LINENO: checking for $ac_header" >&5
18198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 else
18202 eval "$as_ac_Header=\$ac_header_preproc"
18203 fi
18204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18206
18207 fi
18208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18211 _ACEOF
18212
18213 else
18214
18215 for ac_header in kerberosIV/des.h
18216 do
18217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18219 echo "$as_me:$LINENO: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 fi
18224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18226 else
18227 # Is the header compilable?
18228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h. */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18237 #include <$ac_header>
18238 _ACEOF
18239 rm -f conftest.$ac_objext
18240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241 (eval $ac_compile) 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag"
18249 || test ! -s conftest.err'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_header_compiler=yes
18262 else
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 ac_header_compiler=no
18267 fi
18268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18270 echo "${ECHO_T}$ac_header_compiler" >&6
18271
18272 # Is the header present?
18273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 #include <$ac_header>
18282 _ACEOF
18283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev/null; then
18291 if test -s conftest.err; then
18292 ac_cpp_err=$ac_c_preproc_warn_flag
18293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18294 else
18295 ac_cpp_err=
18296 fi
18297 else
18298 ac_cpp_err=yes
18299 fi
18300 if test -z "$ac_cpp_err"; then
18301 ac_header_preproc=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ac_header_preproc=no
18307 fi
18308 rm -f conftest.err conftest.$ac_ext
18309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18310 echo "${ECHO_T}$ac_header_preproc" >&6
18311
18312 # So? What about this header?
18313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18314 yes:no: )
18315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18319 ac_header_preproc=yes
18320 ;;
18321 no:yes:* )
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18334 (
18335 cat <<\_ASBOX
18336 ## ------------------------------------------ ##
18337 ## Report this to the AC_PACKAGE_NAME lists. ##
18338 ## ------------------------------------------ ##
18339 _ASBOX
18340 ) |
18341 sed "s/^/$as_me: WARNING: /" >&2
18342 ;;
18343 esac
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349 eval "$as_ac_Header=\$ac_header_preproc"
18350 fi
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18353
18354 fi
18355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18358 _ACEOF
18359
18360 else
18361
18362 for ac_header in kerberos/des.h
18363 do
18364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366 echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 fi
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18373 else
18374 # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <$ac_header>
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_header_compiler=yes
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_header_compiler=no
18414 fi
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18418
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <$ac_header>
18429 _ACEOF
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null; then
18438 if test -s conftest.err; then
18439 ac_cpp_err=$ac_c_preproc_warn_flag
18440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18441 else
18442 ac_cpp_err=
18443 fi
18444 else
18445 ac_cpp_err=yes
18446 fi
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_header_preproc=no
18454 fi
18455 rm -f conftest.err conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18458
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18461 yes:no: )
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc=yes
18467 ;;
18468 no:yes:* )
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18481 (
18482 cat <<\_ASBOX
18483 ## ------------------------------------------ ##
18484 ## Report this to the AC_PACKAGE_NAME lists. ##
18485 ## ------------------------------------------ ##
18486 _ASBOX
18487 ) |
18488 sed "s/^/$as_me: WARNING: /" >&2
18489 ;;
18490 esac
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496 eval "$as_ac_Header=\$ac_header_preproc"
18497 fi
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18500
18501 fi
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18505 _ACEOF
18506
18507 fi
18508
18509 done
18510
18511 fi
18512
18513 done
18514
18515 fi
18516
18517 done
18518
18519
18520 for ac_header in krb.h
18521 do
18522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524 echo "$as_me:$LINENO: checking for $ac_header" >&5
18525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 fi
18529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18531 else
18532 # Is the header compilable?
18533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 $ac_includes_default
18542 #include <$ac_header>
18543 _ACEOF
18544 rm -f conftest.$ac_objext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 ac_header_compiler=yes
18567 else
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 ac_header_compiler=no
18572 fi
18573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18575 echo "${ECHO_T}$ac_header_compiler" >&6
18576
18577 # Is the header present?
18578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h. */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <$ac_header>
18587 _ACEOF
18588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } >/dev/null; then
18596 if test -s conftest.err; then
18597 ac_cpp_err=$ac_c_preproc_warn_flag
18598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18599 else
18600 ac_cpp_err=
18601 fi
18602 else
18603 ac_cpp_err=yes
18604 fi
18605 if test -z "$ac_cpp_err"; then
18606 ac_header_preproc=yes
18607 else
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_header_preproc=no
18612 fi
18613 rm -f conftest.err conftest.$ac_ext
18614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18615 echo "${ECHO_T}$ac_header_preproc" >&6
18616
18617 # So? What about this header?
18618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18619 yes:no: )
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18624 ac_header_preproc=yes
18625 ;;
18626 no:yes:* )
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18639 (
18640 cat <<\_ASBOX
18641 ## ------------------------------------------ ##
18642 ## Report this to the AC_PACKAGE_NAME lists. ##
18643 ## ------------------------------------------ ##
18644 _ASBOX
18645 ) |
18646 sed "s/^/$as_me: WARNING: /" >&2
18647 ;;
18648 esac
18649 echo "$as_me:$LINENO: checking for $ac_header" >&5
18650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654 eval "$as_ac_Header=\$ac_header_preproc"
18655 fi
18656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18658
18659 fi
18660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18661 cat >>confdefs.h <<_ACEOF
18662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18663 _ACEOF
18664
18665 else
18666
18667 for ac_header in kerberosIV/krb.h
18668 do
18669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 fi
18676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18678 else
18679 # Is the header compilable?
18680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_header_compiler=yes
18714 else
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ac_header_compiler=no
18719 fi
18720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18722 echo "${ECHO_T}$ac_header_compiler" >&6
18723
18724 # Is the header present?
18725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <$ac_header>
18734 _ACEOF
18735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } >/dev/null; then
18743 if test -s conftest.err; then
18744 ac_cpp_err=$ac_c_preproc_warn_flag
18745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18746 else
18747 ac_cpp_err=
18748 fi
18749 else
18750 ac_cpp_err=yes
18751 fi
18752 if test -z "$ac_cpp_err"; then
18753 ac_header_preproc=yes
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_header_preproc=no
18759 fi
18760 rm -f conftest.err conftest.$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18762 echo "${ECHO_T}$ac_header_preproc" >&6
18763
18764 # So? What about this header?
18765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18766 yes:no: )
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18771 ac_header_preproc=yes
18772 ;;
18773 no:yes:* )
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18786 (
18787 cat <<\_ASBOX
18788 ## ------------------------------------------ ##
18789 ## Report this to the AC_PACKAGE_NAME lists. ##
18790 ## ------------------------------------------ ##
18791 _ASBOX
18792 ) |
18793 sed "s/^/$as_me: WARNING: /" >&2
18794 ;;
18795 esac
18796 echo "$as_me:$LINENO: checking for $ac_header" >&5
18797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 eval "$as_ac_Header=\$ac_header_preproc"
18802 fi
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18805
18806 fi
18807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18808 cat >>confdefs.h <<_ACEOF
18809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 else
18813
18814 for ac_header in kerberos/krb.h
18815 do
18816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18818 echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 fi
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18825 else
18826 # Is the header compilable?
18827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <$ac_header>
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_header_compiler=yes
18861 else
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 ac_header_compiler=no
18866 fi
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6
18870
18871 # Is the header present?
18872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18881 _ACEOF
18882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } >/dev/null; then
18890 if test -s conftest.err; then
18891 ac_cpp_err=$ac_c_preproc_warn_flag
18892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18893 else
18894 ac_cpp_err=
18895 fi
18896 else
18897 ac_cpp_err=yes
18898 fi
18899 if test -z "$ac_cpp_err"; then
18900 ac_header_preproc=yes
18901 else
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_header_preproc=no
18906 fi
18907 rm -f conftest.err conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18909 echo "${ECHO_T}$ac_header_preproc" >&6
18910
18911 # So? What about this header?
18912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18913 yes:no: )
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18918 ac_header_preproc=yes
18919 ;;
18920 no:yes:* )
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18933 (
18934 cat <<\_ASBOX
18935 ## ------------------------------------------ ##
18936 ## Report this to the AC_PACKAGE_NAME lists. ##
18937 ## ------------------------------------------ ##
18938 _ASBOX
18939 ) |
18940 sed "s/^/$as_me: WARNING: /" >&2
18941 ;;
18942 esac
18943 echo "$as_me:$LINENO: checking for $ac_header" >&5
18944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948 eval "$as_ac_Header=\$ac_header_preproc"
18949 fi
18950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18952
18953 fi
18954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18957 _ACEOF
18958
18959 fi
18960
18961 done
18962
18963 fi
18964
18965 done
18966
18967 fi
18968
18969 done
18970
18971 fi
18972
18973 for ac_header in com_err.h
18974 do
18975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 fi
18982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18984 else
18985 # Is the header compilable?
18986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 $ac_includes_default
18995 #include <$ac_header>
18996 _ACEOF
18997 rm -f conftest.$ac_objext
18998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18999 (eval $ac_compile) 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag"
19007 || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_header_compiler=yes
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_header_compiler=no
19025 fi
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19028 echo "${ECHO_T}$ac_header_compiler" >&6
19029
19030 # Is the header present?
19031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <$ac_header>
19040 _ACEOF
19041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } >/dev/null; then
19049 if test -s conftest.err; then
19050 ac_cpp_err=$ac_c_preproc_warn_flag
19051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19052 else
19053 ac_cpp_err=
19054 fi
19055 else
19056 ac_cpp_err=yes
19057 fi
19058 if test -z "$ac_cpp_err"; then
19059 ac_header_preproc=yes
19060 else
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 ac_header_preproc=no
19065 fi
19066 rm -f conftest.err conftest.$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19068 echo "${ECHO_T}$ac_header_preproc" >&6
19069
19070 # So? What about this header?
19071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19072 yes:no: )
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19077 ac_header_preproc=yes
19078 ;;
19079 no:yes:* )
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19092 (
19093 cat <<\_ASBOX
19094 ## ------------------------------------------ ##
19095 ## Report this to the AC_PACKAGE_NAME lists. ##
19096 ## ------------------------------------------ ##
19097 _ASBOX
19098 ) |
19099 sed "s/^/$as_me: WARNING: /" >&2
19100 ;;
19101 esac
19102 echo "$as_me:$LINENO: checking for $ac_header" >&5
19103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 eval "$as_ac_Header=\$ac_header_preproc"
19108 fi
19109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111
19112 fi
19113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19116 _ACEOF
19117
19118 fi
19119
19120 done
19121
19122 fi
19123
19124 # Solaris requires -lintl if you want strerror (which calls dgettext)
19125 # to return localized messages.
19126
19127 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19128 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19129 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 ac_check_lib_save_LIBS=$LIBS
19133 LIBS="-lintl $LIBS"
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140
19141 /* Override any gcc2 internal prototype to avoid an error. */
19142 #ifdef __cplusplus
19143 extern "C"
19144 #endif
19145 /* We use char because int might match the return type of a gcc2
19146 builtin and then its argument prototype would still apply. */
19147 char dgettext ();
19148 int
19149 main ()
19150 {
19151 dgettext ();
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19158 (eval $ac_link) 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_c_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest$ac_exeext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_cv_lib_intl_dgettext=yes
19179 else
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 ac_cv_lib_intl_dgettext=no
19184 fi
19185 rm -f conftest.err conftest.$ac_objext \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19188 fi
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19190 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19191 if test $ac_cv_lib_intl_dgettext = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_LIBINTL 1
19194 _ACEOF
19195
19196 LIBS="-lintl $LIBS"
19197
19198 fi
19199
19200
19201 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19202 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19203 if test "${emacs_cv_localtime_cache+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 if test x$ac_cv_func_tzset = xyes; then
19207 if test "$cross_compiling" = yes; then
19208 # If we have tzset, assume the worst when cross-compiling.
19209 emacs_cv_localtime_cache=yes
19210 else
19211 cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h. */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19217 #include <time.h>
19218 extern char **environ;
19219 unset_TZ ()
19220 {
19221 char **from, **to;
19222 for (to = from = environ; (*to = *from); from++)
19223 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19224 to++;
19225 }
19226 char TZ_GMT0[] = "TZ=GMT0";
19227 char TZ_PST8[] = "TZ=PST8";
19228 main()
19229 {
19230 time_t now = time ((time_t *) 0);
19231 int hour_GMT0, hour_unset;
19232 if (putenv (TZ_GMT0) != 0)
19233 exit (1);
19234 hour_GMT0 = localtime (&now)->tm_hour;
19235 unset_TZ ();
19236 hour_unset = localtime (&now)->tm_hour;
19237 if (putenv (TZ_PST8) != 0)
19238 exit (1);
19239 if (localtime (&now)->tm_hour == hour_GMT0)
19240 exit (1);
19241 unset_TZ ();
19242 if (localtime (&now)->tm_hour != hour_unset)
19243 exit (1);
19244 exit (0);
19245 }
19246 _ACEOF
19247 rm -f conftest$ac_exeext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19249 (eval $ac_link) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 emacs_cv_localtime_cache=no
19259 else
19260 echo "$as_me: program exited with status $ac_status" >&5
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 ( exit $ac_status )
19265 emacs_cv_localtime_cache=yes
19266 fi
19267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19268 fi
19269 else
19270 # If we lack tzset, report that localtime does not cache TZ,
19271 # since we can't invalidate the cache if we don't have tzset.
19272 emacs_cv_localtime_cache=no
19273 fi
19274 fi
19275 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19276 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19277 if test $emacs_cv_localtime_cache = yes; then
19278
19279 cat >>confdefs.h <<\_ACEOF
19280 #define LOCALTIME_CACHE 1
19281 _ACEOF
19282
19283 fi
19284
19285 if test "x$HAVE_TIMEVAL" = xyes; then
19286
19287 for ac_func in gettimeofday
19288 do
19289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19290 echo "$as_me:$LINENO: checking for $ac_func" >&5
19291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_var+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19303 #define $ac_func innocuous_$ac_func
19304
19305 /* System header to define __stub macros and hopefully few prototypes,
19306 which can conflict with char $ac_func (); below.
19307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19308 <limits.h> exists even on freestanding compilers. */
19309
19310 #ifdef __STDC__
19311 # include <limits.h>
19312 #else
19313 # include <assert.h>
19314 #endif
19315
19316 #undef $ac_func
19317
19318 /* Override any gcc2 internal prototype to avoid an error. */
19319 #ifdef __cplusplus
19320 extern "C"
19321 {
19322 #endif
19323 /* We use char because int might match the return type of a gcc2
19324 builtin and then its argument prototype would still apply. */
19325 char $ac_func ();
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19330 choke me
19331 #else
19332 char (*f) () = $ac_func;
19333 #endif
19334 #ifdef __cplusplus
19335 }
19336 #endif
19337
19338 int
19339 main ()
19340 {
19341 return f != $ac_func;
19342 ;
19343 return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 eval "$as_ac_var=yes"
19369 else
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 eval "$as_ac_var=no"
19374 fi
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 fi
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19380 if test `eval echo '${'$as_ac_var'}'` = yes; then
19381 cat >>confdefs.h <<_ACEOF
19382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19383 _ACEOF
19384
19385 fi
19386 done
19387
19388 if test $ac_cv_func_gettimeofday = yes; then
19389 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19390 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19391 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400
19401 #ifdef TIME_WITH_SYS_TIME
19402 #include <sys/time.h>
19403 #include <time.h>
19404 #else
19405 #ifdef HAVE_SYS_TIME_H
19406 #include <sys/time.h>
19407 #else
19408 #include <time.h>
19409 #endif
19410 #endif
19411 int
19412 main ()
19413 {
19414 struct timeval time;
19415 gettimeofday (&time, 0);
19416 ;
19417 return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 emacs_cv_gettimeofday_two_arguments=yes
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 emacs_cv_gettimeofday_two_arguments=no
19448 fi
19449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19450 fi
19451 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19452 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19453 if test $emacs_cv_gettimeofday_two_arguments = no; then
19454
19455 cat >>confdefs.h <<\_ACEOF
19456 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19457 _ACEOF
19458
19459 fi
19460 fi
19461 fi
19462
19463 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19464 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19465 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19466 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #include <$ac_cv_struct_tm>
19477
19478
19479 int
19480 main ()
19481 {
19482 static struct tm ac_aggr;
19483 if (ac_aggr.tm_zone)
19484 return 0;
19485 ;
19486 return 0;
19487 }
19488 _ACEOF
19489 rm -f conftest.$ac_objext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19491 (eval $ac_compile) 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try='test -z "$ac_c_werror_flag"
19499 || test ! -s conftest.err'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_cv_member_struct_tm_tm_zone=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19515
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <sys/types.h>
19523 #include <$ac_cv_struct_tm>
19524
19525
19526 int
19527 main ()
19528 {
19529 static struct tm ac_aggr;
19530 if (sizeof ac_aggr.tm_zone)
19531 return 0;
19532 ;
19533 return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_member_struct_tm_tm_zone=yes
19559 else
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_cv_member_struct_tm_tm_zone=no
19564 fi
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 fi
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 fi
19569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19570 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19571 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19572
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_STRUCT_TM_TM_ZONE 1
19575 _ACEOF
19576
19577
19578 fi
19579
19580 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_TM_ZONE 1
19584 _ACEOF
19585
19586 else
19587 echo "$as_me:$LINENO: checking for tzname" >&5
19588 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19589 if test "${ac_cv_var_tzname+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 #include <time.h>
19599 #ifndef tzname /* For SGI. */
19600 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19601 #endif
19602
19603 int
19604 main ()
19605 {
19606 atoi(*tzname);
19607 ;
19608 return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_var_tzname=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_var_tzname=no
19639 fi
19640 rm -f conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19644 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19645 if test $ac_cv_var_tzname = yes; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_TZNAME 1
19649 _ACEOF
19650
19651 fi
19652 fi
19653
19654
19655 if test "$ac_cv_func_gettimeofday" = yes; then
19656 echo "$as_me:$LINENO: checking for struct timezone" >&5
19657 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19658 if test "${emacs_cv_struct_timezone+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h. */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 #include <sys/time.h>
19668 int
19669 main ()
19670 {
19671 struct timezone tz;
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 if test "$cross_compiling" = yes; then
19699 emacs_cv_struct_timezone=yes
19700 else
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h. */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707
19708 #ifdef TIME_WITH_SYS_TIME
19709 #include <sys/time.h>
19710 #include <time.h>
19711 #else
19712 #ifdef HAVE_SYS_TIME_H
19713 #include <sys/time.h>
19714 #else
19715 #include <time.h>
19716 #endif
19717 #endif
19718 main () {
19719 struct timeval time;
19720 struct timezone dummy;
19721 exit (gettimeofday (&time, &dummy));
19722 }
19723 _ACEOF
19724 rm -f conftest$ac_exeext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726 (eval $ac_link) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 emacs_cv_struct_timezone=yes
19736 else
19737 echo "$as_me: program exited with status $ac_status" >&5
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ( exit $ac_status )
19742 emacs_cv_struct_timezone=no
19743 fi
19744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19745 fi
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 emacs_cv_struct_timezone=no
19751 fi
19752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19753 fi
19754 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19755 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19756 fi
19757
19758 ok_so_far=yes
19759 echo "$as_me:$LINENO: checking for socket" >&5
19760 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19761 if test "${ac_cv_func_socket+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19772 #define socket innocuous_socket
19773
19774 /* System header to define __stub macros and hopefully few prototypes,
19775 which can conflict with char socket (); below.
19776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19777 <limits.h> exists even on freestanding compilers. */
19778
19779 #ifdef __STDC__
19780 # include <limits.h>
19781 #else
19782 # include <assert.h>
19783 #endif
19784
19785 #undef socket
19786
19787 /* Override any gcc2 internal prototype to avoid an error. */
19788 #ifdef __cplusplus
19789 extern "C"
19790 {
19791 #endif
19792 /* We use char because int might match the return type of a gcc2
19793 builtin and then its argument prototype would still apply. */
19794 char socket ();
19795 /* The GNU C library defines this for functions which it implements
19796 to always fail with ENOSYS. Some functions are actually named
19797 something starting with __ and the normal name is an alias. */
19798 #if defined (__stub_socket) || defined (__stub___socket)
19799 choke me
19800 #else
19801 char (*f) () = socket;
19802 #endif
19803 #ifdef __cplusplus
19804 }
19805 #endif
19806
19807 int
19808 main ()
19809 {
19810 return f != socket;
19811 ;
19812 return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext conftest$ac_exeext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817 (eval $ac_link) 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag"
19825 || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest$ac_exeext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 ac_cv_func_socket=yes
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19841
19842 ac_cv_func_socket=no
19843 fi
19844 rm -f conftest.err conftest.$ac_objext \
19845 conftest$ac_exeext conftest.$ac_ext
19846 fi
19847 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19848 echo "${ECHO_T}$ac_cv_func_socket" >&6
19849 if test $ac_cv_func_socket = yes; then
19850 :
19851 else
19852 ok_so_far=no
19853 fi
19854
19855 if test $ok_so_far = yes; then
19856 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19857 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19858 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 fi
19862 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19863 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19864 else
19865 # Is the header compilable?
19866 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19867 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h. */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 $ac_includes_default
19875 #include <netinet/in.h>
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag"
19887 || test ! -s conftest.err'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_header_compiler=yes
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_header_compiler=no
19905 fi
19906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908 echo "${ECHO_T}$ac_header_compiler" >&6
19909
19910 # Is the header present?
19911 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19912 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <netinet/in.h>
19920 _ACEOF
19921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19923 ac_status=$?
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } >/dev/null; then
19929 if test -s conftest.err; then
19930 ac_cpp_err=$ac_c_preproc_warn_flag
19931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19932 else
19933 ac_cpp_err=
19934 fi
19935 else
19936 ac_cpp_err=yes
19937 fi
19938 if test -z "$ac_cpp_err"; then
19939 ac_header_preproc=yes
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944 ac_header_preproc=no
19945 fi
19946 rm -f conftest.err conftest.$ac_ext
19947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19948 echo "${ECHO_T}$ac_header_preproc" >&6
19949
19950 # So? What about this header?
19951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19952 yes:no: )
19953 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19954 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19956 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19957 ac_header_preproc=yes
19958 ;;
19959 no:yes:* )
19960 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19961 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19963 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19965 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19967 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19969 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19971 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19972 (
19973 cat <<\_ASBOX
19974 ## ------------------------------------------ ##
19975 ## Report this to the AC_PACKAGE_NAME lists. ##
19976 ## ------------------------------------------ ##
19977 _ASBOX
19978 ) |
19979 sed "s/^/$as_me: WARNING: /" >&2
19980 ;;
19981 esac
19982 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19983 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19984 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987 ac_cv_header_netinet_in_h=$ac_header_preproc
19988 fi
19989 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19991
19992 fi
19993 if test $ac_cv_header_netinet_in_h = yes; then
19994 :
19995 else
19996 ok_so_far=no
19997 fi
19998
19999
20000 fi
20001 if test $ok_so_far = yes; then
20002 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20003 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20004 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20005 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 fi
20008 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20010 else
20011 # Is the header compilable?
20012 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20013 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20021 #include <arpa/inet.h>
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler=yes
20046 else
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 ac_header_compiler=no
20051 fi
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6
20055
20056 # Is the header present?
20057 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20058 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <arpa/inet.h>
20066 _ACEOF
20067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev/null; then
20075 if test -s conftest.err; then
20076 ac_cpp_err=$ac_c_preproc_warn_flag
20077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20078 else
20079 ac_cpp_err=
20080 fi
20081 else
20082 ac_cpp_err=yes
20083 fi
20084 if test -z "$ac_cpp_err"; then
20085 ac_header_preproc=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090 ac_header_preproc=no
20091 fi
20092 rm -f conftest.err conftest.$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20094 echo "${ECHO_T}$ac_header_preproc" >&6
20095
20096 # So? What about this header?
20097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20098 yes:no: )
20099 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20100 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20102 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20103 ac_header_preproc=yes
20104 ;;
20105 no:yes:* )
20106 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20107 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20109 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20111 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20113 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20115 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20117 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20118 (
20119 cat <<\_ASBOX
20120 ## ------------------------------------------ ##
20121 ## Report this to the AC_PACKAGE_NAME lists. ##
20122 ## ------------------------------------------ ##
20123 _ASBOX
20124 ) |
20125 sed "s/^/$as_me: WARNING: /" >&2
20126 ;;
20127 esac
20128 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20129 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20130 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 else
20133 ac_cv_header_arpa_inet_h=$ac_header_preproc
20134 fi
20135 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20136 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20137
20138 fi
20139 if test $ac_cv_header_arpa_inet_h = yes; then
20140 :
20141 else
20142 ok_so_far=no
20143 fi
20144
20145
20146 fi
20147 if test $ok_so_far = yes; then
20148
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_INET_SOCKETS 1
20151 _ACEOF
20152
20153 fi
20154
20155
20156 for ac_header in sys/ioctl.h
20157 do
20158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 fi
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20167 else
20168 # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20178 #include <$ac_header>
20179 _ACEOF
20180 rm -f conftest.$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182 (eval $ac_compile) 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest.$ac_objext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_header_compiler=yes
20203 else
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_header_compiler=no
20208 fi
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20212
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <$ac_header>
20223 _ACEOF
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } >/dev/null; then
20232 if test -s conftest.err; then
20233 ac_cpp_err=$ac_c_preproc_warn_flag
20234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20235 else
20236 ac_cpp_err=
20237 fi
20238 else
20239 ac_cpp_err=yes
20240 fi
20241 if test -z "$ac_cpp_err"; then
20242 ac_header_preproc=yes
20243 else
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 ac_header_preproc=no
20248 fi
20249 rm -f conftest.err conftest.$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20252
20253 # So? What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20255 yes:no: )
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260 ac_header_preproc=yes
20261 ;;
20262 no:yes:* )
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20275 (
20276 cat <<\_ASBOX
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists. ##
20279 ## ------------------------------------------ ##
20280 _ASBOX
20281 ) |
20282 sed "s/^/$as_me: WARNING: /" >&2
20283 ;;
20284 esac
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 eval "$as_ac_Header=\$ac_header_preproc"
20291 fi
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20294
20295 fi
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297 cat >>confdefs.h <<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20299 _ACEOF
20300
20301 fi
20302
20303 done
20304
20305
20306 if test -f /usr/lpp/X11/bin/smt.exp; then
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_AIX_SMT_EXP 1
20310 _ACEOF
20311
20312 fi
20313
20314 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20315 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20316 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20317 echo "$as_me:$LINENO: result: yes" >&5
20318 echo "${ECHO_T}yes" >&6
20319
20320 cat >>confdefs.h <<\_ACEOF
20321 #define HAVE_DEV_PTMX 1
20322 _ACEOF
20323
20324 else
20325 echo "$as_me:$LINENO: result: no" >&5
20326 echo "${ECHO_T}no" >&6
20327 fi
20328
20329 echo "$as_me:$LINENO: checking for pid_t" >&5
20330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20331 if test "${ac_cv_type_pid_t+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20341 int
20342 main ()
20343 {
20344 if ((pid_t *) 0)
20345 return 0;
20346 if (sizeof (pid_t))
20347 return 0;
20348 ;
20349 return 0;
20350 }
20351 _ACEOF
20352 rm -f conftest.$ac_objext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20354 (eval $ac_compile) 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
20361 { ac_try='test -z "$ac_c_werror_flag"
20362 || test ! -s conftest.err'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_cv_type_pid_t=yes
20375 else
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 ac_cv_type_pid_t=no
20380 fi
20381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20382 fi
20383 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20384 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20385 if test $ac_cv_type_pid_t = yes; then
20386 :
20387 else
20388
20389 cat >>confdefs.h <<_ACEOF
20390 #define pid_t int
20391 _ACEOF
20392
20393 fi
20394
20395
20396
20397 for ac_header in unistd.h vfork.h
20398 do
20399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20401 echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 fi
20406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20408 else
20409 # Is the header compilable?
20410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 $ac_includes_default
20419 #include <$ac_header>
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_header_compiler=yes
20444 else
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ac_header_compiler=no
20449 fi
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20452 echo "${ECHO_T}$ac_header_compiler" >&6
20453
20454 # Is the header present?
20455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h. */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <$ac_header>
20464 _ACEOF
20465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } >/dev/null; then
20473 if test -s conftest.err; then
20474 ac_cpp_err=$ac_c_preproc_warn_flag
20475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20476 else
20477 ac_cpp_err=
20478 fi
20479 else
20480 ac_cpp_err=yes
20481 fi
20482 if test -z "$ac_cpp_err"; then
20483 ac_header_preproc=yes
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 ac_header_preproc=no
20489 fi
20490 rm -f conftest.err conftest.$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20492 echo "${ECHO_T}$ac_header_preproc" >&6
20493
20494 # So? What about this header?
20495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20496 yes:no: )
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20501 ac_header_preproc=yes
20502 ;;
20503 no:yes:* )
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20516 (
20517 cat <<\_ASBOX
20518 ## ------------------------------------------ ##
20519 ## Report this to the AC_PACKAGE_NAME lists. ##
20520 ## ------------------------------------------ ##
20521 _ASBOX
20522 ) |
20523 sed "s/^/$as_me: WARNING: /" >&2
20524 ;;
20525 esac
20526 echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531 eval "$as_ac_Header=\$ac_header_preproc"
20532 fi
20533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20535
20536 fi
20537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20540 _ACEOF
20541
20542 fi
20543
20544 done
20545
20546
20547
20548 for ac_func in fork vfork
20549 do
20550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20551 echo "$as_me:$LINENO: checking for $ac_func" >&5
20552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20553 if eval "test \"\${$as_ac_var+set}\" = set"; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20564 #define $ac_func innocuous_$ac_func
20565
20566 /* System header to define __stub macros and hopefully few prototypes,
20567 which can conflict with char $ac_func (); below.
20568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20569 <limits.h> exists even on freestanding compilers. */
20570
20571 #ifdef __STDC__
20572 # include <limits.h>
20573 #else
20574 # include <assert.h>
20575 #endif
20576
20577 #undef $ac_func
20578
20579 /* Override any gcc2 internal prototype to avoid an error. */
20580 #ifdef __cplusplus
20581 extern "C"
20582 {
20583 #endif
20584 /* We use char because int might match the return type of a gcc2
20585 builtin and then its argument prototype would still apply. */
20586 char $ac_func ();
20587 /* The GNU C library defines this for functions which it implements
20588 to always fail with ENOSYS. Some functions are actually named
20589 something starting with __ and the normal name is an alias. */
20590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20591 choke me
20592 #else
20593 char (*f) () = $ac_func;
20594 #endif
20595 #ifdef __cplusplus
20596 }
20597 #endif
20598
20599 int
20600 main ()
20601 {
20602 return f != $ac_func;
20603 ;
20604 return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 eval "$as_ac_var=yes"
20630 else
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 eval "$as_ac_var=no"
20635 fi
20636 rm -f conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20638 fi
20639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20641 if test `eval echo '${'$as_ac_var'}'` = yes; then
20642 cat >>confdefs.h <<_ACEOF
20643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644 _ACEOF
20645
20646 fi
20647 done
20648
20649 if test "x$ac_cv_func_fork" = xyes; then
20650 echo "$as_me:$LINENO: checking for working fork" >&5
20651 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20652 if test "${ac_cv_func_fork_works+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655 if test "$cross_compiling" = yes; then
20656 ac_cv_func_fork_works=cross
20657 else
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* By Ruediger Kuhlmann. */
20660 #include <sys/types.h>
20661 #if HAVE_UNISTD_H
20662 # include <unistd.h>
20663 #endif
20664 /* Some systems only have a dummy stub for fork() */
20665 int main ()
20666 {
20667 if (fork() < 0)
20668 exit (1);
20669 exit (0);
20670 }
20671 _ACEOF
20672 rm -f conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_func_fork_works=yes
20684 else
20685 echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ( exit $ac_status )
20690 ac_cv_func_fork_works=no
20691 fi
20692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20693 fi
20694 fi
20695 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20696 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20697
20698 else
20699 ac_cv_func_fork_works=$ac_cv_func_fork
20700 fi
20701 if test "x$ac_cv_func_fork_works" = xcross; then
20702 case $host in
20703 *-*-amigaos* | *-*-msdosdjgpp*)
20704 # Override, as these systems have only a dummy fork() stub
20705 ac_cv_func_fork_works=no
20706 ;;
20707 *)
20708 ac_cv_func_fork_works=yes
20709 ;;
20710 esac
20711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20712 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20713 fi
20714 ac_cv_func_vfork_works=$ac_cv_func_vfork
20715 if test "x$ac_cv_func_vfork" = xyes; then
20716 echo "$as_me:$LINENO: checking for working vfork" >&5
20717 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20718 if test "${ac_cv_func_vfork_works+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721 if test "$cross_compiling" = yes; then
20722 ac_cv_func_vfork_works=cross
20723 else
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 /* Thanks to Paul Eggert for this test. */
20731 #include <stdio.h>
20732 #include <stdlib.h>
20733 #include <sys/types.h>
20734 #include <sys/stat.h>
20735 #include <sys/wait.h>
20736 #if HAVE_UNISTD_H
20737 # include <unistd.h>
20738 #endif
20739 #if HAVE_VFORK_H
20740 # include <vfork.h>
20741 #endif
20742 /* On some sparc systems, changes by the child to local and incoming
20743 argument registers are propagated back to the parent. The compiler
20744 is told about this with #include <vfork.h>, but some compilers
20745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20746 static variable whose address is put into a register that is
20747 clobbered by the vfork. */
20748 static void
20749 #ifdef __cplusplus
20750 sparc_address_test (int arg)
20751 # else
20752 sparc_address_test (arg) int arg;
20753 #endif
20754 {
20755 static pid_t child;
20756 if (!child) {
20757 child = vfork ();
20758 if (child < 0) {
20759 perror ("vfork");
20760 _exit(2);
20761 }
20762 if (!child) {
20763 arg = getpid();
20764 write(-1, "", 0);
20765 _exit (arg);
20766 }
20767 }
20768 }
20769
20770 int
20771 main ()
20772 {
20773 pid_t parent = getpid ();
20774 pid_t child;
20775
20776 sparc_address_test (0);
20777
20778 child = vfork ();
20779
20780 if (child == 0) {
20781 /* Here is another test for sparc vfork register problems. This
20782 test uses lots of local variables, at least as many local
20783 variables as main has allocated so far including compiler
20784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20786 reuse the register of parent for one of the local variables,
20787 since it will think that parent can't possibly be used any more
20788 in this routine. Assigning to the local variable will thus
20789 munge parent in the parent process. */
20790 pid_t
20791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20793 /* Convince the compiler that p..p7 are live; otherwise, it might
20794 use the same hardware register for all 8 local variables. */
20795 if (p != p1 || p != p2 || p != p3 || p != p4
20796 || p != p5 || p != p6 || p != p7)
20797 _exit(1);
20798
20799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20800 from child file descriptors. If the child closes a descriptor
20801 before it execs or exits, this munges the parent's descriptor
20802 as well. Test for this by closing stdout in the child. */
20803 _exit(close(fileno(stdout)) != 0);
20804 } else {
20805 int status;
20806 struct stat st;
20807
20808 while (wait(&status) != child)
20809 ;
20810 exit(
20811 /* Was there some problem with vforking? */
20812 child < 0
20813
20814 /* Did the child fail? (This shouldn't happen.) */
20815 || status
20816
20817 /* Did the vfork/compiler bug occur? */
20818 || parent != getpid()
20819
20820 /* Did the file descriptor bug occur? */
20821 || fstat(fileno(stdout), &st) != 0
20822 );
20823 }
20824 }
20825 _ACEOF
20826 rm -f conftest$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828 (eval $ac_link) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_func_vfork_works=yes
20838 else
20839 echo "$as_me: program exited with status $ac_status" >&5
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ( exit $ac_status )
20844 ac_cv_func_vfork_works=no
20845 fi
20846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20847 fi
20848 fi
20849 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20850 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20851
20852 fi;
20853 if test "x$ac_cv_func_fork_works" = xcross; then
20854 ac_cv_func_vfork_works=$ac_cv_func_vfork
20855 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20856 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20857 fi
20858
20859 if test "x$ac_cv_func_vfork_works" = xyes; then
20860
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_WORKING_VFORK 1
20863 _ACEOF
20864
20865 else
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define vfork fork
20869 _ACEOF
20870
20871 fi
20872 if test "x$ac_cv_func_fork_works" = xyes; then
20873
20874 cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_WORKING_FORK 1
20876 _ACEOF
20877
20878 fi
20879
20880
20881 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20882 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20883 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 else
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <langinfo.h>
20893 int
20894 main ()
20895 {
20896 char* cs = nl_langinfo(CODESET);
20897 ;
20898 return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext conftest$ac_exeext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20903 (eval $ac_link) 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try='test -z "$ac_c_werror_flag"
20911 || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest$ac_exeext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 emacs_cv_langinfo_codeset=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 emacs_cv_langinfo_codeset=no
20929 fi
20930 rm -f conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
20932
20933 fi
20934 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20935 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20936 if test $emacs_cv_langinfo_codeset = yes; then
20937
20938 cat >>confdefs.h <<\_ACEOF
20939 #define HAVE_LANGINFO_CODESET 1
20940 _ACEOF
20941
20942 fi
20943
20944 echo "$as_me:$LINENO: checking for size_t" >&5
20945 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20946 if test "${ac_cv_type_size_t+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 else
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h. */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20956 int
20957 main ()
20958 {
20959 if ((size_t *) 0)
20960 return 0;
20961 if (sizeof (size_t))
20962 return 0;
20963 ;
20964 return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try='test -z "$ac_c_werror_flag"
20977 || test ! -s conftest.err'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989 ac_cv_type_size_t=yes
20990 else
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20993
20994 ac_cv_type_size_t=no
20995 fi
20996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20997 fi
20998 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20999 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21000 if test $ac_cv_type_size_t = yes; then
21001
21002 cat >>confdefs.h <<_ACEOF
21003 #define HAVE_SIZE_T 1
21004 _ACEOF
21005
21006
21007 fi
21008
21009
21010 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21011 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21012 if test "${ac_cv_type_mbstate_t+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 # include <wchar.h>
21023 int
21024 main ()
21025 {
21026 mbstate_t x; return sizeof x;
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_type_mbstate_t=yes
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ac_cv_type_mbstate_t=no
21059 fi
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21061 fi
21062 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21063 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21064 if test $ac_cv_type_mbstate_t = yes; then
21065
21066 cat >>confdefs.h <<\_ACEOF
21067 #define HAVE_MBSTATE_T 1
21068 _ACEOF
21069
21070 else
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define mbstate_t int
21074 _ACEOF
21075
21076 fi
21077
21078 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21079 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21080 if test "${emacs_cv_c_restrict+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 void fred (int *restrict x);
21090 int
21091 main ()
21092 {
21093
21094 ;
21095 return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100 (eval $ac_compile) 2>conftest.er1
21101 ac_status=$?
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try='test -z "$ac_c_werror_flag"
21108 || test ! -s conftest.err'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try='test -s conftest.$ac_objext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 emacs_cv_c_restrict=yes
21121 else
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 void fred (int *__restrict x);
21132 int
21133 main ()
21134 {
21135
21136 ;
21137 return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21142 (eval $ac_compile) 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } &&
21149 { ac_try='test -z "$ac_c_werror_flag"
21150 || test ! -s conftest.err'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 emacs_cv_c_restrict=__restrict
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 emacs_cv_c_restrict=no
21168 fi
21169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 fi
21173 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21174 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21175 case "$emacs_cv_c_restrict" in
21176 yes) emacs_restrict=restrict;;
21177 no) emacs_restrict="";;
21178 *) emacs_restrict="$emacs_cv_c_restrict";;
21179 esac
21180 if test "$emacs_restrict" != __restrict; then
21181
21182 cat >>confdefs.h <<_ACEOF
21183 #define __restrict $emacs_restrict
21184 _ACEOF
21185
21186 fi
21187
21188 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21189 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21190 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h. */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 void fred (int x[__restrict]);
21200 int
21201 main ()
21202 {
21203
21204 ;
21205 return 0;
21206 }
21207 _ACEOF
21208 rm -f conftest.$ac_objext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag"
21218 || test ! -s conftest.err'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try='test -s conftest.$ac_objext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 emacs_cv_c_restrict_arr=yes
21231 else
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 emacs_cv_c_restrict_arr=no
21236 fi
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 fi
21239 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21240 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21241 if test "$emacs_cv_c_restrict_arr" = yes; then
21242
21243 cat >>confdefs.h <<\_ACEOF
21244 #define __restrict_arr __restrict
21245 _ACEOF
21246
21247 fi
21248
21249
21250
21251 # Set up the CFLAGS for real compilation, so we can substitute it.
21252 CFLAGS="$REAL_CFLAGS"
21253 CPPFLAGS="$REAL_CPPFLAGS"
21254
21255 #### Find out which version of Emacs this is.
21256 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21257 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21258 if test x"${version}" = x; then
21259 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21260 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21261 { (exit 1); exit 1; }; }
21262 fi
21263
21264 ### Specify what sort of things we'll be editing into Makefile and config.h.
21265 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301 cat >>confdefs.h <<_ACEOF
21302 #define EMACS_CONFIGURATION "${canonical}"
21303 _ACEOF
21304
21305
21306 cat >>confdefs.h <<_ACEOF
21307 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21308 _ACEOF
21309
21310
21311 cat >>confdefs.h <<_ACEOF
21312 #define config_machfile "${machfile}"
21313 _ACEOF
21314
21315
21316 cat >>confdefs.h <<_ACEOF
21317 #define config_opsysfile "${opsysfile}"
21318 _ACEOF
21319
21320
21321 cat >>confdefs.h <<_ACEOF
21322 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21323 _ACEOF
21324
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21328 _ACEOF
21329
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21333 _ACEOF
21334
21335
21336 cat >>confdefs.h <<_ACEOF
21337 #define UNEXEC_SRC ${UNEXEC_SRC}
21338 _ACEOF
21339
21340
21341 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21342
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_X_WINDOWS 1
21345 _ACEOF
21346
21347 fi
21348 if test "${USE_X_TOOLKIT}" != "none" ; then
21349
21350 cat >>confdefs.h <<\_ACEOF
21351 #define USE_X_TOOLKIT 1
21352 _ACEOF
21353
21354 fi
21355 if test "${HAVE_X11}" = "yes" ; then
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define HAVE_X11 1
21359 _ACEOF
21360
21361 fi
21362 if test "${HAVE_XFREE386}" = "yes" ; then
21363
21364 cat >>confdefs.h <<\_ACEOF
21365 #define HAVE_XFREE386 1
21366 _ACEOF
21367
21368 fi
21369 if test "${HAVE_MENUS}" = "yes" ; then
21370
21371 cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_MENUS 1
21373 _ACEOF
21374
21375 fi
21376 if test "${GNU_MALLOC}" = "yes" ; then
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define GNU_MALLOC 1
21380 _ACEOF
21381
21382 fi
21383 if test "${REL_ALLOC}" = "yes" ; then
21384
21385 cat >>confdefs.h <<\_ACEOF
21386 #define REL_ALLOC 1
21387 _ACEOF
21388
21389 fi
21390
21391
21392
21393
21394
21395 #### Report on what we decided to do.
21396 #### Report GTK as a toolkit, even if it doesn't use Xt.
21397 #### It makes printing result more understandable as using GTK sets
21398 #### toolkit_scroll_bars to yes by default.
21399 if test "${HAVE_GTK}" = "yes"; then
21400 USE_X_TOOLKIT=GTK
21401 fi
21402
21403 echo "
21404 Configured for \`${canonical}'.
21405
21406 Where should the build process find the source code? ${srcdir}
21407 What operating system and machine description files should Emacs use?
21408 \`${opsysfile}' and \`${machfile}'
21409 What compiler should emacs be built with? ${CC} ${CFLAGS}
21410 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21411 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21412 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21413 What window system should Emacs use? ${window_system}
21414 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21415
21416 if test -n "${x_includes}"; then
21417 echo " Where do we find X Windows header files? ${x_includes}"
21418 else
21419 echo " Where do we find X Windows header files? Standard dirs"
21420 fi
21421 if test -n "${x_libraries}"; then
21422 echo " Where do we find X Windows libraries? ${x_libraries}"
21423 else
21424 echo " Where do we find X Windows libraries? Standard dirs"
21425 fi
21426
21427 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21428 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21429 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21430 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21431 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21432 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21433 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21434 echo
21435
21436 if test "$emacs_cv_randomheap" = warn; then
21437 { echo "$as_me:$LINENO: WARNING:
21438 **********************************************************************
21439
21440 Heap start address is randomized and no workaround is known.
21441 Emacs will probably dump core when temacs is run in the build phase.
21442 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21443 for further information.
21444
21445 **********************************************************************
21446 " >&5
21447 echo "$as_me: WARNING:
21448 **********************************************************************
21449
21450 Heap start address is randomized and no workaround is known.
21451 Emacs will probably dump core when temacs is run in the build phase.
21452 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21453 for further information.
21454
21455 **********************************************************************
21456 " >&2;}
21457 fi
21458
21459 # Remove any trailing slashes in these variables.
21460 test "${prefix}" != NONE &&
21461 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21462 test "${exec_prefix}" != NONE &&
21463 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21464
21465 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21466 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21467 ## from Makefile.c can correctly provide the arg `-traditional' to the
21468 ## C preprocessor.
21469
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h. */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 yes..yes
21477 _ACEOF
21478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21479 $EGREP "yes..yes" >/dev/null 2>&1; then
21480 CPP_NEED_TRADITIONAL=no
21481 else
21482 CPP_NEED_TRADITIONAL=yes
21483 fi
21484 rm -f conftest*
21485
21486
21487 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"
21488 ac_config_commands="$ac_config_commands default"
21489 cat >confcache <<\_ACEOF
21490 # This file is a shell script that caches the results of configure
21491 # tests run on this system so they can be shared between configure
21492 # scripts and configure runs, see configure's option --config-cache.
21493 # It is not useful on other systems. If it contains results you don't
21494 # want to keep, you may remove or edit it.
21495 #
21496 # config.status only pays attention to the cache file if you give it
21497 # the --recheck option to rerun configure.
21498 #
21499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21501 # following values.
21502
21503 _ACEOF
21504
21505 # The following way of writing the cache mishandles newlines in values,
21506 # but we know of no workaround that is simple, portable, and efficient.
21507 # So, don't put newlines in cache variables' values.
21508 # Ultrix sh set writes to stderr and can't be redirected directly,
21509 # and sets the high bit in the cache file unless we assign to the vars.
21510 {
21511 (set) 2>&1 |
21512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21513 *ac_space=\ *)
21514 # `set' does not quote correctly, so add quotes (double-quote
21515 # substitution turns \\\\ into \\, and sed turns \\ into \).
21516 sed -n \
21517 "s/'/'\\\\''/g;
21518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21519 ;;
21520 *)
21521 # `set' quotes correctly as required by POSIX, so do not add quotes.
21522 sed -n \
21523 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21524 ;;
21525 esac;
21526 } |
21527 sed '
21528 t clear
21529 : clear
21530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21531 t end
21532 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21533 : end' >>confcache
21534 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21535 if test -w $cache_file; then
21536 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21537 cat confcache >$cache_file
21538 else
21539 echo "not updating unwritable cache $cache_file"
21540 fi
21541 fi
21542 rm -f confcache
21543
21544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21545 # Let make expand exec_prefix.
21546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21547
21548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21550 # trailing colons and then remove the whole line if VPATH becomes empty
21551 # (actually we leave an empty line to preserve line numbers).
21552 if test "x$srcdir" = x.; then
21553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21554 s/:*\$(srcdir):*/:/;
21555 s/:*\${srcdir}:*/:/;
21556 s/:*@srcdir@:*/:/;
21557 s/^\([^=]*=[ ]*\):*/\1/;
21558 s/:*$//;
21559 s/^[^=]*=[ ]*$//;
21560 }'
21561 fi
21562
21563 DEFS=-DHAVE_CONFIG_H
21564
21565 ac_libobjs=
21566 ac_ltlibobjs=
21567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21568 # 1. Remove the extension, and $U if already installed.
21569 ac_i=`echo "$ac_i" |
21570 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21571 # 2. Add them.
21572 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21573 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21574 done
21575 LIBOBJS=$ac_libobjs
21576
21577 LTLIBOBJS=$ac_ltlibobjs
21578
21579
21580
21581 : ${CONFIG_STATUS=./config.status}
21582 ac_clean_files_save=$ac_clean_files
21583 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21584 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21585 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21586 cat >$CONFIG_STATUS <<_ACEOF
21587 #! $SHELL
21588 # Generated by $as_me.
21589 # Run this file to recreate the current configuration.
21590 # Compiler output produced by configure, useful for debugging
21591 # configure, is in config.log if it exists.
21592
21593 debug=false
21594 ac_cs_recheck=false
21595 ac_cs_silent=false
21596 SHELL=\${CONFIG_SHELL-$SHELL}
21597 _ACEOF
21598
21599 cat >>$CONFIG_STATUS <<\_ACEOF
21600 ## --------------------- ##
21601 ## M4sh Initialization. ##
21602 ## --------------------- ##
21603
21604 # Be Bourne compatible
21605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21606 emulate sh
21607 NULLCMD=:
21608 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21609 # is contrary to our usage. Disable this feature.
21610 alias -g '${1+"$@"}'='"$@"'
21611 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21612 set -o posix
21613 fi
21614 DUALCASE=1; export DUALCASE # for MKS sh
21615
21616 # Support unset when possible.
21617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21618 as_unset=unset
21619 else
21620 as_unset=false
21621 fi
21622
21623
21624 # Work around bugs in pre-3.0 UWIN ksh.
21625 $as_unset ENV MAIL MAILPATH
21626 PS1='$ '
21627 PS2='> '
21628 PS4='+ '
21629
21630 # NLS nuisances.
21631 for as_var in \
21632 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21633 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21634 LC_TELEPHONE LC_TIME
21635 do
21636 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21637 eval $as_var=C; export $as_var
21638 else
21639 $as_unset $as_var
21640 fi
21641 done
21642
21643 # Required to use basename.
21644 if expr a : '\(a\)' >/dev/null 2>&1; then
21645 as_expr=expr
21646 else
21647 as_expr=false
21648 fi
21649
21650 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21651 as_basename=basename
21652 else
21653 as_basename=false
21654 fi
21655
21656
21657 # Name of the executable.
21658 as_me=`$as_basename "$0" ||
21659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21660 X"$0" : 'X\(//\)$' \| \
21661 X"$0" : 'X\(/\)$' \| \
21662 . : '\(.\)' 2>/dev/null ||
21663 echo X/"$0" |
21664 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21665 /^X\/\(\/\/\)$/{ s//\1/; q; }
21666 /^X\/\(\/\).*/{ s//\1/; q; }
21667 s/.*/./; q'`
21668
21669
21670 # PATH needs CR, and LINENO needs CR and PATH.
21671 # Avoid depending upon Character Ranges.
21672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21675 as_cr_digits='0123456789'
21676 as_cr_alnum=$as_cr_Letters$as_cr_digits
21677
21678 # The user is always right.
21679 if test "${PATH_SEPARATOR+set}" != set; then
21680 echo "#! /bin/sh" >conf$$.sh
21681 echo "exit 0" >>conf$$.sh
21682 chmod +x conf$$.sh
21683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21684 PATH_SEPARATOR=';'
21685 else
21686 PATH_SEPARATOR=:
21687 fi
21688 rm -f conf$$.sh
21689 fi
21690
21691
21692 as_lineno_1=$LINENO
21693 as_lineno_2=$LINENO
21694 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21695 test "x$as_lineno_1" != "x$as_lineno_2" &&
21696 test "x$as_lineno_3" = "x$as_lineno_2" || {
21697 # Find who we are. Look in the path if we contain no path at all
21698 # relative or not.
21699 case $0 in
21700 *[\\/]* ) as_myself=$0 ;;
21701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21702 for as_dir in $PATH
21703 do
21704 IFS=$as_save_IFS
21705 test -z "$as_dir" && as_dir=.
21706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21707 done
21708
21709 ;;
21710 esac
21711 # We did not find ourselves, most probably we were run as `sh COMMAND'
21712 # in which case we are not to be found in the path.
21713 if test "x$as_myself" = x; then
21714 as_myself=$0
21715 fi
21716 if test ! -f "$as_myself"; then
21717 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21718 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21719 { (exit 1); exit 1; }; }
21720 fi
21721 case $CONFIG_SHELL in
21722 '')
21723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21724 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21725 do
21726 IFS=$as_save_IFS
21727 test -z "$as_dir" && as_dir=.
21728 for as_base in sh bash ksh sh5; do
21729 case $as_dir in
21730 /*)
21731 if ("$as_dir/$as_base" -c '
21732 as_lineno_1=$LINENO
21733 as_lineno_2=$LINENO
21734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21735 test "x$as_lineno_1" != "x$as_lineno_2" &&
21736 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21737 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21738 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21739 CONFIG_SHELL=$as_dir/$as_base
21740 export CONFIG_SHELL
21741 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21742 fi;;
21743 esac
21744 done
21745 done
21746 ;;
21747 esac
21748
21749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21750 # uniformly replaced by the line number. The first 'sed' inserts a
21751 # line-number line before each line; the second 'sed' does the real
21752 # work. The second script uses 'N' to pair each line-number line
21753 # with the numbered line, and appends trailing '-' during
21754 # substitution so that $LINENO is not a special case at line end.
21755 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21756 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21757 sed '=' <$as_myself |
21758 sed '
21759 N
21760 s,$,-,
21761 : loop
21762 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21763 t loop
21764 s,-$,,
21765 s,^['$as_cr_digits']*\n,,
21766 ' >$as_me.lineno &&
21767 chmod +x $as_me.lineno ||
21768 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21769 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21770 { (exit 1); exit 1; }; }
21771
21772 # Don't try to exec as it changes $[0], causing all sort of problems
21773 # (the dirname of $[0] is not the place where we might find the
21774 # original and so on. Autoconf is especially sensible to this).
21775 . ./$as_me.lineno
21776 # Exit status is that of the last command.
21777 exit
21778 }
21779
21780
21781 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21782 *c*,-n*) ECHO_N= ECHO_C='
21783 ' ECHO_T=' ' ;;
21784 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21785 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21786 esac
21787
21788 if expr a : '\(a\)' >/dev/null 2>&1; then
21789 as_expr=expr
21790 else
21791 as_expr=false
21792 fi
21793
21794 rm -f conf$$ conf$$.exe conf$$.file
21795 echo >conf$$.file
21796 if ln -s conf$$.file conf$$ 2>/dev/null; then
21797 # We could just check for DJGPP; but this test a) works b) is more generic
21798 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21799 if test -f conf$$.exe; then
21800 # Don't use ln at all; we don't have any links
21801 as_ln_s='cp -p'
21802 else
21803 as_ln_s='ln -s'
21804 fi
21805 elif ln conf$$.file conf$$ 2>/dev/null; then
21806 as_ln_s=ln
21807 else
21808 as_ln_s='cp -p'
21809 fi
21810 rm -f conf$$ conf$$.exe conf$$.file
21811
21812 if mkdir -p . 2>/dev/null; then
21813 as_mkdir_p=:
21814 else
21815 test -d ./-p && rmdir ./-p
21816 as_mkdir_p=false
21817 fi
21818
21819 as_executable_p="test -f"
21820
21821 # Sed expression to map a string onto a valid CPP name.
21822 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21823
21824 # Sed expression to map a string onto a valid variable name.
21825 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21826
21827
21828 # IFS
21829 # We need space, tab and new line, in precisely that order.
21830 as_nl='
21831 '
21832 IFS=" $as_nl"
21833
21834 # CDPATH.
21835 $as_unset CDPATH
21836
21837 exec 6>&1
21838
21839 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21840 # report actual input values of CONFIG_FILES etc. instead of their
21841 # values after options handling. Logging --version etc. is OK.
21842 exec 5>>config.log
21843 {
21844 echo
21845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21846 ## Running $as_me. ##
21847 _ASBOX
21848 } >&5
21849 cat >&5 <<_CSEOF
21850
21851 This file was extended by $as_me, which was
21852 generated by GNU Autoconf 2.59. Invocation command line was
21853
21854 CONFIG_FILES = $CONFIG_FILES
21855 CONFIG_HEADERS = $CONFIG_HEADERS
21856 CONFIG_LINKS = $CONFIG_LINKS
21857 CONFIG_COMMANDS = $CONFIG_COMMANDS
21858 $ $0 $@
21859
21860 _CSEOF
21861 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21862 echo >&5
21863 _ACEOF
21864
21865 # Files that config.status was made for.
21866 if test -n "$ac_config_files"; then
21867 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21868 fi
21869
21870 if test -n "$ac_config_headers"; then
21871 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21872 fi
21873
21874 if test -n "$ac_config_links"; then
21875 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21876 fi
21877
21878 if test -n "$ac_config_commands"; then
21879 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21880 fi
21881
21882 cat >>$CONFIG_STATUS <<\_ACEOF
21883
21884 ac_cs_usage="\
21885 \`$as_me' instantiates files from templates according to the
21886 current configuration.
21887
21888 Usage: $0 [OPTIONS] [FILE]...
21889
21890 -h, --help print this help, then exit
21891 -V, --version print version number, then exit
21892 -q, --quiet do not print progress messages
21893 -d, --debug don't remove temporary files
21894 --recheck update $as_me by reconfiguring in the same conditions
21895 --file=FILE[:TEMPLATE]
21896 instantiate the configuration file FILE
21897 --header=FILE[:TEMPLATE]
21898 instantiate the configuration header FILE
21899
21900 Configuration files:
21901 $config_files
21902
21903 Configuration headers:
21904 $config_headers
21905
21906 Configuration commands:
21907 $config_commands
21908
21909 Report bugs to <bug-autoconf@gnu.org>."
21910 _ACEOF
21911
21912 cat >>$CONFIG_STATUS <<_ACEOF
21913 ac_cs_version="\\
21914 config.status
21915 configured by $0, generated by GNU Autoconf 2.59,
21916 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21917
21918 Copyright (C) 2003 Free Software Foundation, Inc.
21919 This config.status script is free software; the Free Software Foundation
21920 gives unlimited permission to copy, distribute and modify it."
21921 srcdir=$srcdir
21922 INSTALL="$INSTALL"
21923 _ACEOF
21924
21925 cat >>$CONFIG_STATUS <<\_ACEOF
21926 # If no file are specified by the user, then we need to provide default
21927 # value. By we need to know if files were specified by the user.
21928 ac_need_defaults=:
21929 while test $# != 0
21930 do
21931 case $1 in
21932 --*=*)
21933 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21934 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21935 ac_shift=:
21936 ;;
21937 -*)
21938 ac_option=$1
21939 ac_optarg=$2
21940 ac_shift=shift
21941 ;;
21942 *) # This is not an option, so the user has probably given explicit
21943 # arguments.
21944 ac_option=$1
21945 ac_need_defaults=false;;
21946 esac
21947
21948 case $ac_option in
21949 # Handling of the options.
21950 _ACEOF
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21953 ac_cs_recheck=: ;;
21954 --version | --vers* | -V )
21955 echo "$ac_cs_version"; exit 0 ;;
21956 --he | --h)
21957 # Conflict between --help and --header
21958 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21959 Try \`$0 --help' for more information." >&5
21960 echo "$as_me: error: ambiguous option: $1
21961 Try \`$0 --help' for more information." >&2;}
21962 { (exit 1); exit 1; }; };;
21963 --help | --hel | -h )
21964 echo "$ac_cs_usage"; exit 0 ;;
21965 --debug | --d* | -d )
21966 debug=: ;;
21967 --file | --fil | --fi | --f )
21968 $ac_shift
21969 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21970 ac_need_defaults=false;;
21971 --header | --heade | --head | --hea )
21972 $ac_shift
21973 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21974 ac_need_defaults=false;;
21975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21977 ac_cs_silent=: ;;
21978
21979 # This is an error.
21980 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21981 Try \`$0 --help' for more information." >&5
21982 echo "$as_me: error: unrecognized option: $1
21983 Try \`$0 --help' for more information." >&2;}
21984 { (exit 1); exit 1; }; } ;;
21985
21986 *) ac_config_targets="$ac_config_targets $1" ;;
21987
21988 esac
21989 shift
21990 done
21991
21992 ac_configure_extra_args=
21993
21994 if $ac_cs_silent; then
21995 exec 6>/dev/null
21996 ac_configure_extra_args="$ac_configure_extra_args --silent"
21997 fi
21998
21999 _ACEOF
22000 cat >>$CONFIG_STATUS <<_ACEOF
22001 if \$ac_cs_recheck; then
22002 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22003 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22004 fi
22005
22006 _ACEOF
22007
22008 cat >>$CONFIG_STATUS <<_ACEOF
22009 #
22010 # INIT-COMMANDS section.
22011 #
22012
22013 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22014
22015 _ACEOF
22016
22017
22018
22019 cat >>$CONFIG_STATUS <<\_ACEOF
22020 for ac_config_target in $ac_config_targets
22021 do
22022 case "$ac_config_target" in
22023 # Handling of arguments.
22024 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22025 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22026 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22027 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22028 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22029 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22030 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22031 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22032 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22033 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22034 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22035 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22036 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22037 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22038 { (exit 1); exit 1; }; };;
22039 esac
22040 done
22041
22042 # If the user did not use the arguments to specify the items to instantiate,
22043 # then the envvar interface is used. Set only those that are not.
22044 # We use the long form for the default assignment because of an extremely
22045 # bizarre bug on SunOS 4.1.3.
22046 if $ac_need_defaults; then
22047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22050 fi
22051
22052 # Have a temporary directory for convenience. Make it in the build tree
22053 # simply because there is no reason to put it here, and in addition,
22054 # creating and moving files from /tmp can sometimes cause problems.
22055 # Create a temporary directory, and hook for its removal unless debugging.
22056 $debug ||
22057 {
22058 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22059 trap '{ (exit 1); exit 1; }' 1 2 13 15
22060 }
22061
22062 # Create a (secure) tmp directory for tmp files.
22063
22064 {
22065 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22066 test -n "$tmp" && test -d "$tmp"
22067 } ||
22068 {
22069 tmp=./confstat$$-$RANDOM
22070 (umask 077 && mkdir $tmp)
22071 } ||
22072 {
22073 echo "$me: cannot create a temporary directory in ." >&2
22074 { (exit 1); exit 1; }
22075 }
22076
22077 _ACEOF
22078
22079 cat >>$CONFIG_STATUS <<_ACEOF
22080
22081 #
22082 # CONFIG_FILES section.
22083 #
22084
22085 # No need to generate the scripts if there are no CONFIG_FILES.
22086 # This happens for instance when ./config.status config.h
22087 if test -n "\$CONFIG_FILES"; then
22088 # Protect against being on the right side of a sed subst in config.status.
22089 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22090 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22091 s,@SHELL@,$SHELL,;t t
22092 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22093 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22094 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22095 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22096 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22097 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22098 s,@exec_prefix@,$exec_prefix,;t t
22099 s,@prefix@,$prefix,;t t
22100 s,@program_transform_name@,$program_transform_name,;t t
22101 s,@bindir@,$bindir,;t t
22102 s,@sbindir@,$sbindir,;t t
22103 s,@libexecdir@,$libexecdir,;t t
22104 s,@datadir@,$datadir,;t t
22105 s,@sysconfdir@,$sysconfdir,;t t
22106 s,@sharedstatedir@,$sharedstatedir,;t t
22107 s,@localstatedir@,$localstatedir,;t t
22108 s,@libdir@,$libdir,;t t
22109 s,@includedir@,$includedir,;t t
22110 s,@oldincludedir@,$oldincludedir,;t t
22111 s,@infodir@,$infodir,;t t
22112 s,@mandir@,$mandir,;t t
22113 s,@build_alias@,$build_alias,;t t
22114 s,@host_alias@,$host_alias,;t t
22115 s,@target_alias@,$target_alias,;t t
22116 s,@DEFS@,$DEFS,;t t
22117 s,@ECHO_C@,$ECHO_C,;t t
22118 s,@ECHO_N@,$ECHO_N,;t t
22119 s,@ECHO_T@,$ECHO_T,;t t
22120 s,@LIBS@,$LIBS,;t t
22121 s,@MAINT@,$MAINT,;t t
22122 s,@build@,$build,;t t
22123 s,@build_cpu@,$build_cpu,;t t
22124 s,@build_vendor@,$build_vendor,;t t
22125 s,@build_os@,$build_os,;t t
22126 s,@host@,$host,;t t
22127 s,@host_cpu@,$host_cpu,;t t
22128 s,@host_vendor@,$host_vendor,;t t
22129 s,@host_os@,$host_os,;t t
22130 s,@CC@,$CC,;t t
22131 s,@CFLAGS@,$CFLAGS,;t t
22132 s,@LDFLAGS@,$LDFLAGS,;t t
22133 s,@CPPFLAGS@,$CPPFLAGS,;t t
22134 s,@ac_ct_CC@,$ac_ct_CC,;t t
22135 s,@EXEEXT@,$EXEEXT,;t t
22136 s,@OBJEXT@,$OBJEXT,;t t
22137 s,@LN_S@,$LN_S,;t t
22138 s,@CPP@,$CPP,;t t
22139 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22140 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22141 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22142 s,@RANLIB@,$RANLIB,;t t
22143 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22144 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22145 s,@EGREP@,$EGREP,;t t
22146 s,@LIBSOUND@,$LIBSOUND,;t t
22147 s,@SETARCH@,$SETARCH,;t t
22148 s,@SET_MAKE@,$SET_MAKE,;t t
22149 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22150 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22151 s,@GTK_LIBS@,$GTK_LIBS,;t t
22152 s,@ALLOCA@,$ALLOCA,;t t
22153 s,@liblockfile@,$liblockfile,;t t
22154 s,@LIBOBJS@,$LIBOBJS,;t t
22155 s,@NEED_SETGID@,$NEED_SETGID,;t t
22156 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22157 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22158 s,@version@,$version,;t t
22159 s,@configuration@,$configuration,;t t
22160 s,@canonical@,$canonical,;t t
22161 s,@srcdir@,$srcdir,;t t
22162 s,@lispdir@,$lispdir,;t t
22163 s,@locallisppath@,$locallisppath,;t t
22164 s,@lisppath@,$lisppath,;t t
22165 s,@x_default_search_path@,$x_default_search_path,;t t
22166 s,@etcdir@,$etcdir,;t t
22167 s,@archlibdir@,$archlibdir,;t t
22168 s,@docdir@,$docdir,;t t
22169 s,@bitmapdir@,$bitmapdir,;t t
22170 s,@gamedir@,$gamedir,;t t
22171 s,@gameuser@,$gameuser,;t t
22172 s,@c_switch_system@,$c_switch_system,;t t
22173 s,@c_switch_machine@,$c_switch_machine,;t t
22174 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22175 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22176 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22177 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22178 s,@machfile@,$machfile,;t t
22179 s,@opsysfile@,$opsysfile,;t t
22180 s,@carbon_appdir@,$carbon_appdir,;t t
22181 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22182 CEOF
22183
22184 _ACEOF
22185
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 # Split the substitutions into bite-sized pieces for seds with
22188 # small command number limits, like on Digital OSF/1 and HP-UX.
22189 ac_max_sed_lines=48
22190 ac_sed_frag=1 # Number of current file.
22191 ac_beg=1 # First line for current file.
22192 ac_end=$ac_max_sed_lines # Line after last line for current file.
22193 ac_more_lines=:
22194 ac_sed_cmds=
22195 while $ac_more_lines; do
22196 if test $ac_beg -gt 1; then
22197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22198 else
22199 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22200 fi
22201 if test ! -s $tmp/subs.frag; then
22202 ac_more_lines=false
22203 else
22204 # The purpose of the label and of the branching condition is to
22205 # speed up the sed processing (if there are no `@' at all, there
22206 # is no need to browse any of the substitutions).
22207 # These are the two extra sed commands mentioned above.
22208 (echo ':t
22209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22210 if test -z "$ac_sed_cmds"; then
22211 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22212 else
22213 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22214 fi
22215 ac_sed_frag=`expr $ac_sed_frag + 1`
22216 ac_beg=$ac_end
22217 ac_end=`expr $ac_end + $ac_max_sed_lines`
22218 fi
22219 done
22220 if test -z "$ac_sed_cmds"; then
22221 ac_sed_cmds=cat
22222 fi
22223 fi # test -n "$CONFIG_FILES"
22224
22225 _ACEOF
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22229 case $ac_file in
22230 - | *:- | *:-:* ) # input from stdin
22231 cat >$tmp/stdin
22232 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22234 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22236 * ) ac_file_in=$ac_file.in ;;
22237 esac
22238
22239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22246 echo X"$ac_file" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22251 s/.*/./; q'`
22252 { if $as_mkdir_p; then
22253 mkdir -p "$ac_dir"
22254 else
22255 as_dir="$ac_dir"
22256 as_dirs=
22257 while test ! -d "$as_dir"; do
22258 as_dirs="$as_dir $as_dirs"
22259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22265 echo X"$as_dir" |
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22270 s/.*/./; q'`
22271 done
22272 test ! -n "$as_dirs" || mkdir $as_dirs
22273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22276
22277 ac_builddir=.
22278
22279 if test "$ac_dir" != .; then
22280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22281 # A "../" for each directory in $ac_dir_suffix.
22282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22283 else
22284 ac_dir_suffix= ac_top_builddir=
22285 fi
22286
22287 case $srcdir in
22288 .) # No --srcdir option. We are building in place.
22289 ac_srcdir=.
22290 if test -z "$ac_top_builddir"; then
22291 ac_top_srcdir=.
22292 else
22293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22294 fi ;;
22295 [\\/]* | ?:[\\/]* ) # Absolute path.
22296 ac_srcdir=$srcdir$ac_dir_suffix;
22297 ac_top_srcdir=$srcdir ;;
22298 *) # Relative path.
22299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22301 esac
22302
22303 # Do not use `cd foo && pwd` to compute absolute paths, because
22304 # the directories may not exist.
22305 case `pwd` in
22306 .) ac_abs_builddir="$ac_dir";;
22307 *)
22308 case "$ac_dir" in
22309 .) ac_abs_builddir=`pwd`;;
22310 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22311 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22312 esac;;
22313 esac
22314 case $ac_abs_builddir in
22315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22316 *)
22317 case ${ac_top_builddir}. in
22318 .) ac_abs_top_builddir=$ac_abs_builddir;;
22319 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22320 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22321 esac;;
22322 esac
22323 case $ac_abs_builddir in
22324 .) ac_abs_srcdir=$ac_srcdir;;
22325 *)
22326 case $ac_srcdir in
22327 .) ac_abs_srcdir=$ac_abs_builddir;;
22328 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22329 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22330 esac;;
22331 esac
22332 case $ac_abs_builddir in
22333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22334 *)
22335 case $ac_top_srcdir in
22336 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22337 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22338 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22339 esac;;
22340 esac
22341
22342
22343 case $INSTALL in
22344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22345 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22346 esac
22347
22348 if test x"$ac_file" != x-; then
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350 echo "$as_me: creating $ac_file" >&6;}
22351 rm -f "$ac_file"
22352 fi
22353 # Let's still pretend it is `configure' which instantiates (i.e., don't
22354 # use $as_me), people would be surprised to read:
22355 # /* config.h. Generated by config.status. */
22356 if test x"$ac_file" = x-; then
22357 configure_input=
22358 else
22359 configure_input="$ac_file. "
22360 fi
22361 configure_input=$configure_input"Generated from `echo $ac_file_in |
22362 sed 's,.*/,,'` by configure."
22363
22364 # First look for the input files in the build tree, otherwise in the
22365 # src tree.
22366 ac_file_inputs=`IFS=:
22367 for f in $ac_file_in; do
22368 case $f in
22369 -) echo $tmp/stdin ;;
22370 [\\/$]*)
22371 # Absolute (can't be DOS-style, as IFS=:)
22372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22373 echo "$as_me: error: cannot find input file: $f" >&2;}
22374 { (exit 1); exit 1; }; }
22375 echo "$f";;
22376 *) # Relative
22377 if test -f "$f"; then
22378 # Build tree
22379 echo "$f"
22380 elif test -f "$srcdir/$f"; then
22381 # Source tree
22382 echo "$srcdir/$f"
22383 else
22384 # /dev/null tree
22385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386 echo "$as_me: error: cannot find input file: $f" >&2;}
22387 { (exit 1); exit 1; }; }
22388 fi;;
22389 esac
22390 done` || { (exit 1); exit 1; }
22391 _ACEOF
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 sed "$ac_vpsub
22394 $extrasub
22395 _ACEOF
22396 cat >>$CONFIG_STATUS <<\_ACEOF
22397 :t
22398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399 s,@configure_input@,$configure_input,;t t
22400 s,@srcdir@,$ac_srcdir,;t t
22401 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22402 s,@top_srcdir@,$ac_top_srcdir,;t t
22403 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22404 s,@builddir@,$ac_builddir,;t t
22405 s,@abs_builddir@,$ac_abs_builddir,;t t
22406 s,@top_builddir@,$ac_top_builddir,;t t
22407 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22408 s,@INSTALL@,$ac_INSTALL,;t t
22409 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22410 rm -f $tmp/stdin
22411 if test x"$ac_file" != x-; then
22412 mv $tmp/out $ac_file
22413 else
22414 cat $tmp/out
22415 rm -f $tmp/out
22416 fi
22417
22418 done
22419 _ACEOF
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22421
22422 #
22423 # CONFIG_HEADER section.
22424 #
22425
22426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22428 #
22429 # ac_d sets the value in "#define NAME VALUE" lines.
22430 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22431 ac_dB='[ ].*$,\1#\2'
22432 ac_dC=' '
22433 ac_dD=',;t'
22434 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22435 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22436 ac_uB='$,\1#\2define\3'
22437 ac_uC=' '
22438 ac_uD=',;t'
22439
22440 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22442 case $ac_file in
22443 - | *:- | *:-:* ) # input from stdin
22444 cat >$tmp/stdin
22445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22449 * ) ac_file_in=$ac_file.in ;;
22450 esac
22451
22452 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22453 echo "$as_me: creating $ac_file" >&6;}
22454
22455 # First look for the input files in the build tree, otherwise in the
22456 # src tree.
22457 ac_file_inputs=`IFS=:
22458 for f in $ac_file_in; do
22459 case $f in
22460 -) echo $tmp/stdin ;;
22461 [\\/$]*)
22462 # Absolute (can't be DOS-style, as IFS=:)
22463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464 echo "$as_me: error: cannot find input file: $f" >&2;}
22465 { (exit 1); exit 1; }; }
22466 # Do quote $f, to prevent DOS paths from being IFS'd.
22467 echo "$f";;
22468 *) # Relative
22469 if test -f "$f"; then
22470 # Build tree
22471 echo "$f"
22472 elif test -f "$srcdir/$f"; then
22473 # Source tree
22474 echo "$srcdir/$f"
22475 else
22476 # /dev/null tree
22477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22478 echo "$as_me: error: cannot find input file: $f" >&2;}
22479 { (exit 1); exit 1; }; }
22480 fi;;
22481 esac
22482 done` || { (exit 1); exit 1; }
22483 # Remove the trailing spaces.
22484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22485
22486 _ACEOF
22487
22488 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22489 # `conftest.undefs', that substitutes the proper values into
22490 # config.h.in to produce config.h. The first handles `#define'
22491 # templates, and the second `#undef' templates.
22492 # And first: Protect against being on the right side of a sed subst in
22493 # config.status. Protect against being in an unquoted here document
22494 # in config.status.
22495 rm -f conftest.defines conftest.undefs
22496 # Using a here document instead of a string reduces the quoting nightmare.
22497 # Putting comments in sed scripts is not portable.
22498 #
22499 # `end' is used to avoid that the second main sed command (meant for
22500 # 0-ary CPP macros) applies to n-ary macro definitions.
22501 # See the Autoconf documentation for `clear'.
22502 cat >confdef2sed.sed <<\_ACEOF
22503 s/[\\&,]/\\&/g
22504 s,[\\$`],\\&,g
22505 t clear
22506 : clear
22507 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22508 t end
22509 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22510 : end
22511 _ACEOF
22512 # If some macros were called several times there might be several times
22513 # the same #defines, which is useless. Nevertheless, we may not want to
22514 # sort them, since we want the *last* AC-DEFINE to be honored.
22515 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22516 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22517 rm -f confdef2sed.sed
22518
22519 # This sed command replaces #undef with comments. This is necessary, for
22520 # example, in the case of _POSIX_SOURCE, which is predefined and required
22521 # on some systems where configure will not decide to define it.
22522 cat >>conftest.undefs <<\_ACEOF
22523 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22524 _ACEOF
22525
22526 # Break up conftest.defines because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22529 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22530 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22531 echo ' :' >>$CONFIG_STATUS
22532 rm -f conftest.tail
22533 while grep . conftest.defines >/dev/null
22534 do
22535 # Write a limited-size here document to $tmp/defines.sed.
22536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22537 # Speed up: don't consider the non `#define' lines.
22538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22539 # Work around the forget-to-reset-the-flag bug.
22540 echo 't clr' >>$CONFIG_STATUS
22541 echo ': clr' >>$CONFIG_STATUS
22542 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22543 echo 'CEOF
22544 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22545 rm -f $tmp/in
22546 mv $tmp/out $tmp/in
22547 ' >>$CONFIG_STATUS
22548 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22549 rm -f conftest.defines
22550 mv conftest.tail conftest.defines
22551 done
22552 rm -f conftest.defines
22553 echo ' fi # grep' >>$CONFIG_STATUS
22554 echo >>$CONFIG_STATUS
22555
22556 # Break up conftest.undefs because some shells have a limit on the size
22557 # of here documents, and old seds have small limits too (100 cmds).
22558 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22559 rm -f conftest.tail
22560 while grep . conftest.undefs >/dev/null
22561 do
22562 # Write a limited-size here document to $tmp/undefs.sed.
22563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22564 # Speed up: don't consider the non `#undef'
22565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22566 # Work around the forget-to-reset-the-flag bug.
22567 echo 't clr' >>$CONFIG_STATUS
22568 echo ': clr' >>$CONFIG_STATUS
22569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22570 echo 'CEOF
22571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22572 rm -f $tmp/in
22573 mv $tmp/out $tmp/in
22574 ' >>$CONFIG_STATUS
22575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22576 rm -f conftest.undefs
22577 mv conftest.tail conftest.undefs
22578 done
22579 rm -f conftest.undefs
22580
22581 cat >>$CONFIG_STATUS <<\_ACEOF
22582 # Let's still pretend it is `configure' which instantiates (i.e., don't
22583 # use $as_me), people would be surprised to read:
22584 # /* config.h. Generated by config.status. */
22585 if test x"$ac_file" = x-; then
22586 echo "/* Generated by configure. */" >$tmp/config.h
22587 else
22588 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22589 fi
22590 cat $tmp/in >>$tmp/config.h
22591 rm -f $tmp/in
22592 if test x"$ac_file" != x-; then
22593 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22595 echo "$as_me: $ac_file is unchanged" >&6;}
22596 else
22597 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$ac_file" : 'X\(//\)[^/]' \| \
22600 X"$ac_file" : 'X\(//\)$' \| \
22601 X"$ac_file" : 'X\(/\)' \| \
22602 . : '\(.\)' 2>/dev/null ||
22603 echo X"$ac_file" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22606 /^X\(\/\/\)$/{ s//\1/; q; }
22607 /^X\(\/\).*/{ s//\1/; q; }
22608 s/.*/./; q'`
22609 { if $as_mkdir_p; then
22610 mkdir -p "$ac_dir"
22611 else
22612 as_dir="$ac_dir"
22613 as_dirs=
22614 while test ! -d "$as_dir"; do
22615 as_dirs="$as_dir $as_dirs"
22616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22622 echo X"$as_dir" |
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22627 s/.*/./; q'`
22628 done
22629 test ! -n "$as_dirs" || mkdir $as_dirs
22630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22632 { (exit 1); exit 1; }; }; }
22633
22634 rm -f $ac_file
22635 mv $tmp/config.h $ac_file
22636 fi
22637 else
22638 cat $tmp/config.h
22639 rm -f $tmp/config.h
22640 fi
22641 done
22642 _ACEOF
22643 cat >>$CONFIG_STATUS <<\_ACEOF
22644
22645 #
22646 # CONFIG_COMMANDS section.
22647 #
22648 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22649 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22650 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22651 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22652 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22653 X"$ac_dest" : 'X\(//\)[^/]' \| \
22654 X"$ac_dest" : 'X\(//\)$' \| \
22655 X"$ac_dest" : 'X\(/\)' \| \
22656 . : '\(.\)' 2>/dev/null ||
22657 echo X"$ac_dest" |
22658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22660 /^X\(\/\/\)$/{ s//\1/; q; }
22661 /^X\(\/\).*/{ s//\1/; q; }
22662 s/.*/./; q'`
22663 { if $as_mkdir_p; then
22664 mkdir -p "$ac_dir"
22665 else
22666 as_dir="$ac_dir"
22667 as_dirs=
22668 while test ! -d "$as_dir"; do
22669 as_dirs="$as_dir $as_dirs"
22670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22672 X"$as_dir" : 'X\(//\)[^/]' \| \
22673 X"$as_dir" : 'X\(//\)$' \| \
22674 X"$as_dir" : 'X\(/\)' \| \
22675 . : '\(.\)' 2>/dev/null ||
22676 echo X"$as_dir" |
22677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22679 /^X\(\/\/\)$/{ s//\1/; q; }
22680 /^X\(\/\).*/{ s//\1/; q; }
22681 s/.*/./; q'`
22682 done
22683 test ! -n "$as_dirs" || mkdir $as_dirs
22684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22685 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22686 { (exit 1); exit 1; }; }; }
22687
22688 ac_builddir=.
22689
22690 if test "$ac_dir" != .; then
22691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22692 # A "../" for each directory in $ac_dir_suffix.
22693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22694 else
22695 ac_dir_suffix= ac_top_builddir=
22696 fi
22697
22698 case $srcdir in
22699 .) # No --srcdir option. We are building in place.
22700 ac_srcdir=.
22701 if test -z "$ac_top_builddir"; then
22702 ac_top_srcdir=.
22703 else
22704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22705 fi ;;
22706 [\\/]* | ?:[\\/]* ) # Absolute path.
22707 ac_srcdir=$srcdir$ac_dir_suffix;
22708 ac_top_srcdir=$srcdir ;;
22709 *) # Relative path.
22710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22712 esac
22713
22714 # Do not use `cd foo && pwd` to compute absolute paths, because
22715 # the directories may not exist.
22716 case `pwd` in
22717 .) ac_abs_builddir="$ac_dir";;
22718 *)
22719 case "$ac_dir" in
22720 .) ac_abs_builddir=`pwd`;;
22721 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22722 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22723 esac;;
22724 esac
22725 case $ac_abs_builddir in
22726 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22727 *)
22728 case ${ac_top_builddir}. in
22729 .) ac_abs_top_builddir=$ac_abs_builddir;;
22730 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22731 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22732 esac;;
22733 esac
22734 case $ac_abs_builddir in
22735 .) ac_abs_srcdir=$ac_srcdir;;
22736 *)
22737 case $ac_srcdir in
22738 .) ac_abs_srcdir=$ac_abs_builddir;;
22739 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22740 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22741 esac;;
22742 esac
22743 case $ac_abs_builddir in
22744 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22745 *)
22746 case $ac_top_srcdir in
22747 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22748 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22749 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22750 esac;;
22751 esac
22752
22753
22754 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22755 echo "$as_me: executing $ac_dest commands" >&6;}
22756 case $ac_dest in
22757 default )
22758
22759 ### Make the necessary directories, if they don't exist.
22760 for dir in etc lisp ; do
22761 test -d ${dir} || mkdir ${dir}
22762 done
22763
22764 # Build src/Makefile from ${srcdir}/src/Makefile.c
22765 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22766 # This must be done after src/config.h is built, since we rely on that file.
22767
22768 # Now get this: Some word that is part of the ${srcdir} directory name
22769 # or the ${configuration} value might, just might, happen to be an
22770 # identifier like `sun4' or `i386' or something, and be predefined by
22771 # the C preprocessor to some helpful value like 1, or maybe the empty
22772 # string. Needless to say consequent macro substitutions are less
22773 # than conducive to the makefile finding the correct directory.
22774 undefs="`echo $top_srcdir $configuration $canonical |
22775 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22776 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22777 `"
22778
22779 echo creating src/epaths.h
22780 ${MAKE-make} epaths-force
22781
22782 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22783 # `..' to `. .' unless invoked with -traditional
22784
22785 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22786 CPPFLAGS="$CPPFLAGS -traditional"
22787 fi
22788
22789 echo creating lib-src/Makefile
22790 ( cd lib-src
22791 rm -f junk.c junk1.c junk2.c
22792 sed -e '/start of cpp stuff/q' \
22793 < Makefile.c > junk1.c
22794 sed -e '1,/start of cpp stuff/d'\
22795 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22796 < Makefile.c > junk.c
22797 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22798 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22799 cat junk1.c junk2.c > Makefile.new
22800 rm -f junk.c junk1.c junk2.c
22801 chmod 444 Makefile.new
22802 mv -f Makefile.new Makefile
22803 )
22804
22805 echo creating src/Makefile
22806 ( cd src
22807 rm -f junk.c junk1.c junk2.c
22808 sed -e '/start of cpp stuff/q' \
22809 < Makefile.c > junk1.c
22810 sed -e '1,/start of cpp stuff/d'\
22811 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22812 < Makefile.c > junk.c
22813 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22814 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22815 cat junk1.c junk2.c > Makefile.new
22816 rm -f junk.c junk1.c junk2.c
22817 chmod 444 Makefile.new
22818 mv -f Makefile.new Makefile
22819 )
22820
22821 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22822 echo creating src/.gdbinit
22823 echo source $srcdir/src/.gdbinit > src/.gdbinit
22824 fi
22825
22826 # This is how we know whether to re-run configure in certain cases.
22827 touch src/config.stamp
22828
22829 ;;
22830 esac
22831 done
22832 _ACEOF
22833
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22835
22836 { (exit 0); exit 0; }
22837 _ACEOF
22838 chmod +x $CONFIG_STATUS
22839 ac_clean_files=$ac_clean_files_save
22840
22841
22842 # configure is writing to config.log, and then calls config.status.
22843 # config.status does its own redirection, appending to config.log.
22844 # Unfortunately, on DOS this fails, as config.log is still kept open
22845 # by configure, so config.status won't be able to write to it; its
22846 # output is simply discarded. So we exec the FD to /dev/null,
22847 # effectively closing config.log, so it can be properly (re)opened and
22848 # appended to by config.status. When coming back to configure, we
22849 # need to make the FD available again.
22850 if test "$no_create" != yes; then
22851 ac_cs_success=:
22852 ac_config_status_args=
22853 test "$silent" = yes &&
22854 ac_config_status_args="$ac_config_status_args --quiet"
22855 exec 5>/dev/null
22856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22857 exec 5>>config.log
22858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22859 # would make configure fail if this is the last instruction.
22860 $ac_cs_success || { (exit 1); exit 1; }
22861 fi
22862
22863