(Menu Bar): The up and down (not left and right) arrows move through a
[bpt/emacs.git] / 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 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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-largefile omit support for large files
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-gcc don't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version 5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server host
872 --without-sound don't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
887
888 Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CPP C preprocessor
896
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
899
900 _ACEOF
901 fi
902
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
909
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 else
915 ac_dir_suffix= ac_top_builddir=
916 fi
917
918 case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 esac
933
934 # Do not use `cd foo && pwd` to compute absolute paths, because
935 # the directories may not exist.
936 case `pwd` in
937 .) ac_abs_builddir="$ac_dir";;
938 *)
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *)
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
956 *)
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *)
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971 esac
972
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 fi
988 cd $ac_popdir
989 done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994 cat <<\_ACEOF
995
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000 exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1009
1010 $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1240 fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1336
1337
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1350
1351
1352 lispdir='${datadir}/emacs/${version}/lisp'
1353 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath='${locallisppath}:${lispdir}'
1356 etcdir='${datadir}/emacs/${version}/etc'
1357 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir='${datadir}/emacs/${version}/etc'
1359 gamedir='${localstatedir}/games/emacs'
1360
1361 gameuser=games
1362
1363
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1366 withval="$with_gcc"
1367
1368 fi;
1369
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1372 withval="$with_pop"
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define MAIL_USE_POP 1
1376 _ACEOF
1377
1378 else :
1379 fi
1380 else
1381 cat >>confdefs.h <<\_ACEOF
1382 #define MAIL_USE_POP 1
1383 _ACEOF
1384
1385 fi;
1386
1387
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval="$with_kerberos"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define KERBEROS 1
1393 _ACEOF
1394
1395 fi;
1396
1397
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1403 with_kerberos=yes
1404 cat >>confdefs.h <<\_ACEOF
1405 #define KERBEROS 1
1406 _ACEOF
1407
1408 fi
1409 fi
1410
1411 cat >>confdefs.h <<\_ACEOF
1412 #define KERBEROS5 1
1413 _ACEOF
1414
1415 fi;
1416
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval="$with_hesiod"
1420
1421 cat >>confdefs.h <<\_ACEOF
1422 #define HESIOD 1
1423 _ACEOF
1424
1425 fi;
1426
1427
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval="$with_sound"
1431
1432 fi;
1433
1434
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye | yes ) val=athena ;;
1440 n | no ) val=no ;;
1441 l | lu | luc | luci | lucid ) val=lucid ;;
1442 a | at | ath | athe | athen | athena ) val=athena ;;
1443 m | mo | mot | moti | motif ) val=motif ;;
1444 g | gt | gtk ) val=gtk ;;
1445 * )
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1453 ;;
1454 esac
1455 with_x_toolkit=$val
1456
1457 fi;
1458
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1461 withval="$with_xpm"
1462
1463 fi;
1464
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval="$with_jpeg"
1468
1469 fi;
1470
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval="$with_tiff"
1474
1475 fi;
1476
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1479 withval="$with_gif"
1480
1481 fi;
1482
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1485 withval="$with_png"
1486
1487 fi;
1488
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1491 withval="$with_gtk"
1492
1493 fi;
1494
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval="$with_pkg_config_prog"
1498
1499 fi;
1500
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval="$with_toolkit_scroll_bars"
1504
1505 fi;
1506
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1509 withval="$with_xim"
1510
1511 fi;
1512
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval="$with_carbon"
1516
1517 fi;
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval="$enable_carbon_app"
1521 carbon_appdir_x=${enableval}
1522 fi;
1523
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval="$enable_asserts"
1527 USE_XASSERTS=$enableval
1528 else
1529 USE_XASSERTS=no
1530 fi;
1531
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE=$enableval
1536 else
1537 USE_MAINTAINER_MODE=no
1538 fi;
1539 if test $USE_MAINTAINER_MODE = yes; then
1540 MAINT=
1541 else
1542 MAINT=#
1543 fi
1544
1545
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1551 unset CDPATH
1552 case "${srcdir}" in
1553 /* ) ;;
1554 . )
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1561 then
1562 srcdir="$PWD"
1563 else
1564 srcdir="`(cd ${srcdir}; pwd)`"
1565 fi
1566 ;;
1567 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1568 esac
1569
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1585 fi
1586
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1589
1590 ### Canonicalize the configuration name.
1591
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1606 fi
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1612 fi
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662 fi
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671 canonical=$host
1672 configuration=${host_alias-$host}
1673
1674
1675
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1679
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1688 ###
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1694 ###
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1698
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1701
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1715
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1719
1720 fi
1721
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ## Altos 3068
1820 m68*-altos-sysv* )
1821 machine=altos opsys=usg5-2
1822 ;;
1823
1824 ## Amdahl UTS
1825 580-amdahl-sysv* )
1826 machine=amdahl opsys=usg5-2-2
1827 ;;
1828
1829 ## Apollo, Domain/OS
1830 m68*-apollo-* )
1831 machine=apollo opsys=bsd4-3
1832 ;;
1833
1834 ## AT&T 3b2, 3b5, 3b15, 3b20
1835 we32k-att-sysv* )
1836 machine=att3b opsys=usg5-2-2
1837 ;;
1838
1839 ## AT&T 3b1 - The Mighty Unix PC!
1840 m68*-att-sysv* )
1841 machine=7300 opsys=usg5-2-2
1842 ;;
1843
1844 ## Bull dpx20
1845 rs6000-bull-bosx* )
1846 machine=ibmrs6000 opsys=aix3-2
1847 ;;
1848
1849 ## Bull dpx2
1850 m68*-bull-sysv3* )
1851 machine=dpx2 opsys=usg5-3
1852 ;;
1853
1854 ## Bull sps7
1855 m68*-bull-sysv2* )
1856 machine=sps7 opsys=usg5-2
1857 ;;
1858
1859 ## CCI 5/32, 6/32 -- see "Tahoe".
1860
1861 ## Celerity
1862 ## I don't know what configuration name to use for this; config.sub
1863 ## doesn't seem to know anything about it. Hey, Celerity users, get
1864 ## in touch with us!
1865 celerity-celerity-bsd* )
1866 machine=celerity opsys=bsd4-2
1867 ;;
1868
1869 ## Clipper
1870 ## What operating systems does this chip run that Emacs has been
1871 ## tested on?
1872 clipper-* )
1873 machine=clipper
1874 ## We'll use the catch-all code at the bottom to guess the
1875 ## operating system.
1876 ;;
1877
1878 ## Compaq Nonstop
1879 mips-compaq-nonstopux* )
1880 machine=nonstopux opsys=nonstopux
1881 ;;
1882
1883 ## Convex
1884 *-convex-bsd* | *-convex-convexos* )
1885 machine=convex opsys=bsd4-3
1886 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1887 NON_GNU_CPP="cc -E -P"
1888 ;;
1889
1890 ## Cubix QBx/386
1891 i[3456]86-cubix-sysv* )
1892 machine=intel386 opsys=usg5-3
1893 ;;
1894
1895 ## Cydra 5
1896 cydra*-cydrome-sysv* )
1897 machine=cydra5 opsys=usg5-3
1898 ;;
1899
1900 ## Data General AViiON Machines
1901 ## DG changed naming conventions with the release of 5.4.4.10, they
1902 ## dropped the initial 5.4 but left the intervening R. Because of the
1903 ## R this shouldn't conflict with older versions of the OS (which I
1904 ## think were named like dgux4.*). In addition, DG new AViiONs series
1905 ## uses either Motorola M88k or Intel Pentium CPUs.
1906 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1907 machine=aviion opsys=dgux4
1908 ;;
1909 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1910 ## This name is dgux5-4-3 instead of dgux5-4r3
1911 ## to avoid a file name conflict on MSDOS.
1912 machine=aviion opsys=dgux5-4-3
1913 ;;
1914 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1915 machine=aviion opsys=dgux5-4r2
1916 ;;
1917 m88k-dg-dgux* )
1918 machine=aviion opsys=dgux
1919 ;;
1920
1921 ## Data General AViiON Intel (x86) Machines
1922 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1923 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1924 i[345]86-dg-dguxR4* )
1925 machine=aviion-intel opsys=dgux4
1926 ;;
1927
1928 ## DECstations
1929 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1930 machine=pmax opsys=bsd4-2
1931 ;;
1932 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1933 machine=pmax opsys=bsd4-3
1934 ;;
1935 mips-dec-ultrix* )
1936 machine=pmax opsys=ultrix4-3
1937 ;;
1938 mips-dec-osf* )
1939 machine=pmax opsys=osf1
1940 ;;
1941 mips-dec-mach_bsd4.3* )
1942 machine=pmax opsys=mach-bsd4-3
1943 ;;
1944
1945 ## Motorola Delta machines
1946 m68k-motorola-sysv* | m68000-motorola-sysv* )
1947 machine=delta opsys=usg5-3
1948 if test -z "`type gnucc | grep 'not found'`"
1949 then
1950 if test -s /etc/167config
1951 then CC="gnucc -m68040"
1952 else CC="gnucc -m68881"
1953 fi
1954 else
1955 if test -z "`type gcc | grep 'not found'`"
1956 then CC=gcc
1957 else CC=cc
1958 fi
1959 fi
1960 ;;
1961 m88k-motorola-sysv4* )
1962 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1963 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1964 # I hope there are not other 4.0 versions for this machine
1965 # which really need usg5-4 instead.
1966 machine=delta88k opsys=usg5-4-2
1967 ;;
1968 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1969 machine=delta88k opsys=usg5-3
1970 ;;
1971
1972 ## Dual machines
1973 m68*-dual-sysv* )
1974 machine=dual opsys=usg5-2
1975 ;;
1976 m68*-dual-uniplus* )
1977 machine=dual opsys=unipl5-2
1978 ;;
1979
1980 ## Elxsi 6400
1981 elxsi-elxsi-sysv* )
1982 machine=elxsi opsys=usg5-2
1983 ;;
1984
1985 ## Encore machines
1986 ns16k-encore-bsd* )
1987 machine=ns16000 opsys=umax
1988 ;;
1989
1990 ## The GEC 63 - apparently, this port isn't really finished yet.
1991 # I'm sure we finished off the last of the machines, though. -- fx
1992
1993 ## Gould Power Node and NP1
1994 pn-gould-bsd4.2* )
1995 machine=gould opsys=bsd4-2
1996 ;;
1997 pn-gould-bsd4.3* )
1998 machine=gould opsys=bsd4-3
1999 ;;
2000 np1-gould-bsd* )
2001 machine=gould-np1 opsys=bsd4-3
2002 ;;
2003
2004 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2005 ## as far as Emacs is concerned).
2006 m88k-harris-cxux* )
2007 # Build needs to be different on 7.0 and later releases
2008 case "`uname -r`" in
2009 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2010 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2011 esac
2012 NON_GNU_CPP="/lib/cpp"
2013 ;;
2014 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2015 m68k-harris-cxux* )
2016 machine=nh3000 opsys=cxux
2017 ;;
2018 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2019 powerpc-harris-powerunix )
2020 machine=nh6000 opsys=powerunix
2021 NON_GNU_CPP="cc -Xo -E -P"
2022 ;;
2023 ## SR2001/SR2201 running HI-UX/MPP
2024 hppa1.1-hitachi-hiuxmpp* )
2025 machine=sr2k opsys=hiuxmpp
2026 ;;
2027 hppa1.1-hitachi-hiuxwe2* )
2028 machine=sr2k opsys=hiuxwe2
2029 ;;
2030 ## Honeywell XPS100
2031 xps*-honeywell-sysv* )
2032 machine=xps100 opsys=usg5-2
2033 ;;
2034
2035 ## HP 9000 series 200 or 300
2036 m68*-hp-bsd* )
2037 machine=hp9000s300 opsys=bsd4-3
2038 ;;
2039 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2040 m68*-hp-hpux* )
2041 case "`uname -r`" in
2042 ## Someone's system reports A.B8.05 for this.
2043 ## I wonder what other possibilities there are.
2044 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2045 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2046 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2047 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2048 *) machine=hp9000s300 opsys=hpux ;;
2049 esac
2050 ;;
2051
2052 ## HP 9000 series 700 and 800, running HP/UX
2053 hppa*-hp-hpux7* )
2054 machine=hp800 opsys=hpux
2055 ;;
2056 hppa*-hp-hpux8* )
2057 machine=hp800 opsys=hpux8
2058 ;;
2059 hppa*-hp-hpux9shr* )
2060 machine=hp800 opsys=hpux9shr
2061 ;;
2062 hppa*-hp-hpux9* )
2063 machine=hp800 opsys=hpux9
2064 ;;
2065 hppa*-hp-hpux10.2* )
2066 machine=hp800 opsys=hpux10-20
2067 ;;
2068 hppa*-hp-hpux10* )
2069 machine=hp800 opsys=hpux10
2070 ;;
2071 hppa*-hp-hpux1[1-9]* )
2072 machine=hp800 opsys=hpux11
2073 ;;
2074
2075 hppa*-*-linux-gnu* )
2076 machine=hp800 opsys=gnu-linux
2077 ;;
2078
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux* )
2081 ## Cross-compilation? Nah!
2082 case "`uname -r`" in
2083 ## Someone's system reports A.B8.05 for this.
2084 ## I wonder what other possibilities there are.
2085 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2086 *.08.* ) machine=hp800 opsys=hpux8 ;;
2087 *.09.* ) machine=hp800 opsys=hpux9 ;;
2088 *) machine=hp800 opsys=hpux10 ;;
2089 esac
2090 ;;
2091 hppa*-*-nextstep* )
2092 machine=hp800 opsys=nextstep
2093 ;;
2094
2095 ## Orion machines
2096 orion-orion-bsd* )
2097 machine=orion opsys=bsd4-2
2098 ;;
2099 clipper-orion-bsd* )
2100 machine=orion105 opsys=bsd4-2
2101 ;;
2102
2103 ## IBM machines
2104 i[3456]86-ibm-aix1.1* )
2105 machine=ibmps2-aix opsys=usg5-2-2
2106 ;;
2107 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2108 machine=ibmps2-aix opsys=usg5-3
2109 ;;
2110 i370-ibm-aix*)
2111 machine=ibm370aix opsys=usg5-3
2112 ;;
2113 s390-*-linux-gnu* )
2114 machine=ibms390 opsys=gnu-linux
2115 ;;
2116 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2117 machine=ibmrs6000 opsys=aix3-1
2118 ;;
2119 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2120 machine=ibmrs6000 opsys=aix3-2-5
2121 ;;
2122 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2123 machine=ibmrs6000 opsys=aix4-1
2124 ;;
2125 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2126 machine=ibmrs6000 opsys=aix4-2
2127 ;;
2128 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2129 machine=ibmrs6000 opsys=aix4-2
2130 ;;
2131 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2132 machine=ibmrs6000 opsys=aix4
2133 ;;
2134 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2135 machine=ibmrs6000 opsys=aix4-1
2136 ;;
2137 rs6000-ibm-aix* | powerpc-ibm-aix* )
2138 machine=ibmrs6000 opsys=aix3-2
2139 ;;
2140 romp-ibm-bsd4.3* )
2141 machine=ibmrt opsys=bsd4-3
2142 ;;
2143 romp-ibm-bsd4.2* )
2144 machine=ibmrt opsys=bsd4-2
2145 ;;
2146 romp-ibm-aos4.3* )
2147 machine=ibmrt opsys=bsd4-3
2148 ;;
2149 romp-ibm-aos4.2* )
2150 machine=ibmrt opsys=bsd4-2
2151 ;;
2152 romp-ibm-aos* )
2153 machine=ibmrt opsys=bsd4-3
2154 ;;
2155 romp-ibm-bsd* )
2156 machine=ibmrt opsys=bsd4-3
2157 ;;
2158 romp-ibm-aix* )
2159 machine=ibmrt-aix opsys=usg5-2-2
2160 ;;
2161
2162 ## Integrated Solutions `Optimum V'
2163 m68*-isi-bsd4.2* )
2164 machine=isi-ov opsys=bsd4-2
2165 ;;
2166 m68*-isi-bsd4.3* )
2167 machine=isi-ov opsys=bsd4-3
2168 ;;
2169
2170 ## Intel 386 machines where we do care about the manufacturer
2171 i[3456]86-intsys-sysv* )
2172 machine=is386 opsys=usg5-2-2
2173 ;;
2174
2175 ## Prime EXL
2176 i[3456]86-prime-sysv* )
2177 machine=i386 opsys=usg5-3
2178 ;;
2179
2180 ## Sequent Symmetry running Dynix
2181 i[3456]86-sequent-bsd* )
2182 machine=symmetry opsys=bsd4-3
2183 ;;
2184
2185 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2186 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2187 machine=sequent-ptx opsys=ptx4
2188 NON_GNU_CPP=/lib/cpp
2189 ;;
2190
2191 ## Sequent Symmetry running DYNIX/ptx
2192 ## Use the old cpp rather than the newer ANSI one.
2193 i[3456]86-sequent-ptx* )
2194 machine=sequent-ptx opsys=ptx
2195 NON_GNU_CPP="/lib/cpp"
2196 ;;
2197
2198 ## ncr machine running svr4.3.
2199 i[3456]86-ncr-sysv4.3 )
2200 machine=ncr386 opsys=usg5-4-3
2201 ;;
2202
2203 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2205 i[3456]86-ncr-sysv* )
2206 machine=ncr386 opsys=usg5-4-2
2207 ;;
2208
2209 ## Intel Paragon OSF/1
2210 i860-intel-osf1* )
2211 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2212 ;;
2213
2214 ## Intel 860
2215 i860-*-sysv4* )
2216 machine=i860 opsys=usg5-4
2217 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2218 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2219 ;;
2220
2221 ## Macintosh PowerPC
2222 powerpc*-*-linux-gnu* )
2223 machine=macppc opsys=gnu-linux
2224 ;;
2225
2226 ## Masscomp machines
2227 m68*-masscomp-rtu* )
2228 machine=masscomp opsys=rtu
2229 ;;
2230
2231 ## Megatest machines
2232 m68*-megatest-bsd* )
2233 machine=mega68 opsys=bsd4-2
2234 ;;
2235
2236 ## Workstations sold by MIPS
2237 ## This is not necessarily all workstations using the MIPS processor -
2238 ## Irises are produced by SGI, and DECstations by DEC.
2239
2240 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2241 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2242 ## it gives for choosing between the alternatives seems to be "Use
2243 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2244 ## the BSD world." I'll assume that these are instructions for
2245 ## handling two odd situations, and that every other situation
2246 ## should use mips.h and usg5-2-2, they being listed first.
2247 mips-mips-usg* )
2248 machine=mips4
2249 ## Fall through to the general code at the bottom to decide on the OS.
2250 ;;
2251 mips-mips-riscos4* )
2252 machine=mips4 opsys=bsd4-3
2253 NON_GNU_CC="cc -systype bsd43"
2254 NON_GNU_CPP="cc -systype bsd43 -E"
2255 ;;
2256 mips-mips-riscos5* )
2257 machine=mips4 opsys=riscos5
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-bsd* )
2262 machine=mips opsys=bsd4-3
2263 ;;
2264 mips-mips-* )
2265 machine=mips opsys=usg5-2-2
2266 ;;
2267
2268 ## NeXT
2269 m68*-next-* | m68k-*-nextstep* )
2270 machine=m68k opsys=nextstep
2271 ;;
2272
2273 ## The complete machine from National Semiconductor
2274 ns32k-ns-genix* )
2275 machine=ns32000 opsys=usg5-2
2276 ;;
2277
2278 ## NCR machines
2279 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2280 machine=tower32 opsys=usg5-2-2
2281 ;;
2282 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2283 machine=tower32v3 opsys=usg5-3
2284 ;;
2285
2286 ## NEC EWS4800
2287 mips-nec-sysv4*)
2288 machine=ews4800 opsys=ux4800
2289 ;;
2290
2291 ## Nixdorf Targon 31
2292 m68*-nixdorf-sysv* )
2293 machine=targon31 opsys=usg5-2-2
2294 ;;
2295
2296 ## Nu (TI or LMI)
2297 m68*-nu-sysv* )
2298 machine=nu opsys=usg5-2
2299 ;;
2300
2301 ## Plexus
2302 m68*-plexus-sysv* )
2303 machine=plexus opsys=usg5-2
2304 ;;
2305
2306 ## Pyramid machines
2307 ## I don't really have any idea what sort of processor the Pyramid has,
2308 ## so I'm assuming it is its own architecture.
2309 pyramid-pyramid-bsd* )
2310 machine=pyramid opsys=bsd4-2
2311 ;;
2312
2313 ## Sequent Balance
2314 ns32k-sequent-bsd4.2* )
2315 machine=sequent opsys=bsd4-2
2316 ;;
2317 ns32k-sequent-bsd4.3* )
2318 machine=sequent opsys=bsd4-3
2319 ;;
2320
2321 ## Siemens Nixdorf
2322 mips-siemens-sysv* | mips-sni-sysv*)
2323 machine=mips-siemens opsys=usg5-4
2324 NON_GNU_CC=/usr/ccs/bin/cc
2325 NON_GNU_CPP=/usr/ccs/lib/cpp
2326 ;;
2327
2328 ## Silicon Graphics machines
2329 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2330 m68*-sgi-iris3.5* )
2331 machine=irist opsys=iris3-5
2332 ;;
2333 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2334 machine=irist opsys=iris3-6
2335 ;;
2336 ## Iris 4D
2337 mips-sgi-irix3* )
2338 machine=iris4d opsys=irix3-3
2339 ;;
2340 mips-sgi-irix4* )
2341 machine=iris4d opsys=irix4-0
2342 ;;
2343 mips-sgi-irix6.5 )
2344 machine=iris4d opsys=irix6-5
2345 # Without defining _LANGUAGE_C, things get masked out in the headers
2346 # so that, for instance, grepping for `free' in stdlib.h fails and
2347 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2348 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2349 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2350 ;;
2351 mips-sgi-irix6* )
2352 machine=iris4d opsys=irix6-0
2353 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2354 # but presumably it does no harm.
2355 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2356 # -32 probably isn't necessary in later v.6s -- anyone know which?
2357 NON_GCC_TEST_OPTIONS=-32
2358 ;;
2359 mips-sgi-irix5.[01]* )
2360 machine=iris4d opsys=irix5-0
2361 ;;
2362 mips-sgi-irix5* | mips-sgi-irix* )
2363 machine=iris4d opsys=irix5-2
2364 ;;
2365
2366 ## SONY machines
2367 m68*-sony-bsd4.2* )
2368 machine=news opsys=bsd4-2
2369 ;;
2370 m68*-sony-bsd4.3* )
2371 machine=news opsys=bsd4-3
2372 ;;
2373 m68*-sony-newsos3* | m68*-sony-news3*)
2374 machine=news opsys=bsd4-3
2375 ;;
2376 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2377 machine=news-risc opsys=bsd4-3
2378 ;;
2379 mips-sony-newsos6* )
2380 machine=news-r6 opsys=newsos6
2381 ;;
2382 mips-sony-news* )
2383 machine=news-risc opsys=newsos5
2384 ;;
2385
2386 ## Stride
2387 m68*-stride-sysv* )
2388 machine=stride opsys=usg5-2
2389 ;;
2390
2391 ## Suns
2392 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2393 machine=sparc opsys=gnu-linux
2394 ;;
2395
2396 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2397 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2398 | rs6000-*-solaris2*)
2399 case "${canonical}" in
2400 m68*-sunos1* ) machine=sun1 ;;
2401 m68*-sunos2* ) machine=sun2 ;;
2402 m68* ) machine=sun3 ;;
2403 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2404 i[3456]86-*-* ) machine=intel386 ;;
2405 powerpcle* ) machine=powerpcle ;;
2406 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2407 sparc* ) machine=sparc ;;
2408 * ) unported=yes ;;
2409 esac
2410 case "${canonical}" in
2411 ## The Sun386 didn't get past 4.0.
2412 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2413 *-sunos4.0* ) opsys=sunos4-0 ;;
2414 *-sunos4.1.[3-9]*noshare )
2415 ## This name is sunos413 instead of sunos4-1-3
2416 ## to avoid a file name conflict on MSDOS.
2417 opsys=sunos413
2418 NON_GNU_CPP=/usr/lib/cpp
2419 NON_GCC_TEST_OPTIONS=-Bstatic
2420 GCC_TEST_OPTIONS=-static
2421 ;;
2422 *-sunos4.1.[3-9]* | *-sunos4shr*)
2423 opsys=sunos4shr
2424 NON_GNU_CPP=/usr/lib/cpp
2425 ;;
2426 *-sunos4* | *-sunos )
2427 opsys=sunos4-1
2428 NON_GCC_TEST_OPTIONS=-Bstatic
2429 GCC_TEST_OPTIONS=-static
2430 ;;
2431 *-sunos5.3* | *-solaris2.3* )
2432 opsys=sol2-3
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 ;;
2435 *-sunos5.4* | *-solaris2.4* )
2436 opsys=sol2-4
2437 NON_GNU_CPP=/usr/ccs/lib/cpp
2438 RANLIB="ar -ts"
2439 ;;
2440 *-sunos5.5* | *-solaris2.5* )
2441 opsys=sol2-5
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.6* | *-solaris2.6* )
2446 opsys=sol2-6
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
2450 *-sunos5* | *-solaris* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 ;;
2454 * ) opsys=bsd4-2 ;;
2455 esac
2456 ## Watch out for a compiler that we know will not work.
2457 case "${canonical}" in
2458 *-solaris* | *-sunos5* )
2459 if [ "x$CC" = x/usr/ucb/cc ]; then
2460 ## /usr/ucb/cc doesn't work;
2461 ## we should find some other compiler that does work.
2462 unset CC
2463 fi
2464 ;;
2465 *) ;;
2466 esac
2467 ;;
2468 sparc-*-nextstep* )
2469 machine=sparc opsys=nextstep
2470 ;;
2471
2472 ## Tadpole 68k
2473 m68*-tadpole-sysv* )
2474 machine=tad68k opsys=usg5-3
2475 ;;
2476
2477 ## Tahoe machines
2478 tahoe-tahoe-bsd4.2* )
2479 machine=tahoe opsys=bsd4-2
2480 ;;
2481 tahoe-tahoe-bsd4.3* )
2482 machine=tahoe opsys=bsd4-3
2483 ;;
2484
2485 ## Tandem Integrity S2
2486 mips-tandem-sysv* )
2487 machine=tandem-s2 opsys=usg5-3
2488 ;;
2489
2490 ## Tektronix XD88
2491 m88k-tektronix-sysv3* )
2492 machine=tekxd88 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix 16000 box (6130?)
2496 ns16k-tektronix-bsd* )
2497 machine=ns16000 opsys=bsd4-2
2498 ;;
2499 ## Tektronix 4300
2500 ## src/m/tek4300.h hints that this is a m68k machine.
2501 m68*-tektronix-bsd* )
2502 machine=tek4300 opsys=bsd4-3
2503 ;;
2504
2505 ## Titan P2 or P3
2506 ## We seem to have lost the machine-description file titan.h!
2507 titan-titan-sysv* )
2508 machine=titan opsys=usg5-3
2509 ;;
2510
2511 ## Ustation E30 (SS5E)
2512 m68*-unisys-uniplus* )
2513 machine=ustation opsystem=unipl5-2
2514 ;;
2515
2516 ## Vaxen.
2517 vax-dec-* )
2518 machine=vax
2519 case "${canonical}" in
2520 *-bsd4.1* ) opsys=bsd4-1 ;;
2521 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2522 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2523 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2524 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2525 *-vms* ) opsys=vms ;;
2526 * ) unported=yes
2527 esac
2528 ;;
2529
2530 ## Whitechapel MG1
2531 ns16k-whitechapel-* )
2532 machine=mg1
2533 ## We don't know what sort of OS runs on these; we'll let the
2534 ## operating system guessing code below try.
2535 ;;
2536
2537 ## Wicat
2538 m68*-wicat-sysv* )
2539 machine=wicat opsys=usg5-2
2540 ;;
2541
2542 ## IA-64
2543 ia64*-*-linux* )
2544 machine=ia64 opsys=gnu-linux
2545 ;;
2546
2547 ## Intel 386 machines where we don't care about the manufacturer
2548 i[3456]86-*-* )
2549 machine=intel386
2550 case "${canonical}" in
2551 *-cygwin ) opsys=cygwin ;;
2552 *-lynxos* ) opsys=lynxos ;;
2553 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2554 *-isc2.2* ) opsys=isc2-2 ;;
2555 *-isc4.0* ) opsys=isc4-0 ;;
2556 *-isc4.* ) opsys=isc4-1
2557 GCC_TEST_OPTIONS=-posix
2558 NON_GCC_TEST_OPTIONS=-Xp
2559 ;;
2560 *-isc* ) opsys=isc3-0 ;;
2561 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2562 *-esix* ) opsys=esix ;;
2563 *-xenix* ) opsys=xenix ;;
2564 *-linux-gnu* ) opsys=gnu-linux ;;
2565 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2566 *-sco3.2v5* ) opsys=sco5
2567 NON_GNU_CPP=/lib/cpp
2568 # Prevent -belf from being passed to $CPP.
2569 # /lib/cpp does not accept it.
2570 OVERRIDE_CPPFLAGS=" "
2571 ;;
2572 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2573 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2574 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2575 *-386bsd* ) opsys=386bsd ;;
2576 *-nextstep* ) opsys=nextstep ;;
2577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2578 esac
2579 ;;
2580
2581 ## m68k Linux-based GNU system
2582 m68k-*-linux-gnu* )
2583 machine=m68k opsys=gnu-linux
2584 ;;
2585
2586 ## Mips Linux-based GNU system
2587 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2588 machine=mips opsys=gnu-linux
2589 ;;
2590
2591 ## UXP/DS
2592 sparc-fujitsu-sysv4* )
2593 machine=sparc opsys=uxpds
2594 NON_GNU_CPP=/usr/ccs/lib/cpp
2595 RANLIB="ar -ts"
2596 ;;
2597
2598 ## UXP/V
2599 f301-fujitsu-uxpv4.1)
2600 machine=f301 opsys=uxpv
2601 ;;
2602
2603 ## Darwin / Mac OS X
2604 powerpc-apple-darwin* )
2605 machine=powermac opsys=darwin
2606 # Define CPP as follows to make autoconf work correctly.
2607 CPP="${CC-cc} -E -no-cpp-precomp"
2608 # Use fink packages if available.
2609 if test -d /sw/include && test -d /sw/lib; then
2610 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2611 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2612 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2613 fi
2614 ;;
2615
2616 ## AMD x86-64 Linux-based GNU system
2617 x86_64-*-linux-gnu* )
2618 machine=amdx86-64 opsys=gnu-linux
2619 ;;
2620
2621 * )
2622 unported=yes
2623 ;;
2624 esac
2625
2626 ### If the code above didn't choose an operating system, just choose
2627 ### an operating system based on the configuration name. You really
2628 ### only want to use this when you have no idea what the right
2629 ### operating system is; if you know what operating systems a machine
2630 ### runs, it's cleaner to make it explicit in the case statement
2631 ### above.
2632 if test x"${opsys}" = x; then
2633 case "${canonical}" in
2634 *-gnu* ) opsys=gnu ;;
2635 *-bsd4.[01] ) opsys=bsd4-1 ;;
2636 *-bsd4.2 ) opsys=bsd4-2 ;;
2637 *-bsd4.3 ) opsys=bsd4-3 ;;
2638 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2639 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2640 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2641 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2642 *-sysv4.2uw* ) opsys=unixware ;;
2643 *-sysv5uw* ) opsys=unixware ;;
2644 *-sysv5OpenUNIX* ) opsys=unixware ;;
2645 *-sysv4.1* | *-sysvr4.1* )
2646 NON_GNU_CPP=/usr/lib/cpp
2647 opsys=usg5-4 ;;
2648 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2649 if [ x$NON_GNU_CPP = x ]; then
2650 if [ -f /usr/ccs/lib/cpp ]; then
2651 NON_GNU_CPP=/usr/ccs/lib/cpp
2652 else
2653 NON_GNU_CPP=/lib/cpp
2654 fi
2655 fi
2656 opsys=usg5-4-2 ;;
2657 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2658 * )
2659 unported=yes
2660 ;;
2661 esac
2662 fi
2663
2664
2665
2666 if test $unported = yes; then
2667 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2668 Check \`etc/MACHINES' for recognized configuration names." >&5
2669 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2670 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 machfile="m/${machine}.h"
2675 opsysfile="s/${opsys}.h"
2676
2677
2678 #### Choose a compiler.
2679 test -n "$CC" && cc_specified=yes
2680
2681 # Save the value of CFLAGS that the user specified.
2682 SPECIFIED_CFLAGS="$CFLAGS"
2683
2684 case ${with_gcc} in
2685 "yes" ) CC="gcc" GCC=yes ;;
2686 "no" ) : ${CC=cc} ;;
2687 * )
2688 esac
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697 echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718
2719 fi
2720 fi
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6
2725 else
2726 echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2728 fi
2729
2730 fi
2731 if test -z "$ac_cv_prog_CC"; then
2732 ac_ct_CC=$CC
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_CC="gcc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756
2757 fi
2758 fi
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2762 echo "${ECHO_T}$ac_ct_CC" >&6
2763 else
2764 echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2766 fi
2767
2768 CC=$ac_ct_CC
2769 else
2770 CC="$ac_cv_prog_CC"
2771 fi
2772
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2808 fi
2809
2810 fi
2811 if test -z "$ac_cv_prog_CC"; then
2812 ac_ct_CC=$CC
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="cc"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836
2837 fi
2838 fi
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2842 echo "${ECHO_T}$ac_ct_CC" >&6
2843 else
2844 echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848 CC=$ac_ct_CC
2849 else
2850 CC="$ac_cv_prog_CC"
2851 fi
2852
2853 fi
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 ac_prog_rejected=no
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2875 continue
2876 fi
2877 ac_cv_prog_CC="cc"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2887 shift
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2892 shift
2893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907 fi
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in cl
2911 do
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 echo "$as_me:$LINENO: result: $CC" >&5
2941 echo "${ECHO_T}$CC" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947 test -n "$CC" && break
2948 done
2949 fi
2950 if test -z "$CC"; then
2951 ac_ct_CC=$CC
2952 for ac_prog in cl
2953 do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977
2978 fi
2979 fi
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6
2984 else
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2987 fi
2988
2989 test -n "$ac_ct_CC" && break
2990 done
2991
2992 CC=$ac_ct_CC
2993 fi
2994
2995 fi
2996
2997
2998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: no acceptable C compiler found in \$PATH
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3003
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO:" \
3006 "checking for C compiler version" >&5
3007 ac_compiler=`set X $ac_compile; echo $2`
3008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3009 (eval $ac_compiler --version </dev/null >&5) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3014 (eval $ac_compiler -v </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3019 (eval $ac_compiler -V </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 ac_clean_files_save=$ac_clean_files
3040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3041 # Try to create an executable without -o first, disregard a.out.
3042 # It will help us diagnose broken compilers, and finding out an intuition
3043 # of exeext.
3044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3048 (eval $ac_link_default) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # Find the output, starting from the most likely. This scheme is
3053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3054 # resort.
3055
3056 # Be careful to initialize this variable, since it used to be cached.
3057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3058 ac_cv_exeext=
3059 # b.out is created by i960 compilers.
3060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3061 do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3065 ;;
3066 conftest.$ac_ext )
3067 # This is the source file.
3068 ;;
3069 [ab].out )
3070 # We found the default executable, but exeext='' is most
3071 # certainly right.
3072 break;;
3073 *.* )
3074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # FIXME: I believe we export ac_cv_exeext for Libtool,
3076 # but it would be cool to find out if it's true. Does anybody
3077 # maintain Libtool? --akim.
3078 export ac_cv_exeext
3079 break;;
3080 * )
3081 break;;
3082 esac
3083 done
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C compiler cannot create executables
3091 See \`config.log' for more details." >&2;}
3092 { (exit 77); exit 77; }; }
3093 fi
3094
3095 ac_exeext=$ac_cv_exeext
3096 echo "$as_me:$LINENO: result: $ac_file" >&5
3097 echo "${ECHO_T}$ac_file" >&6
3098
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104 # If not cross compiling, check that we can run a simple program.
3105 if test "$cross_compiling" != yes; then
3106 if { ac_try='./$ac_file'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 cross_compiling=no
3113 else
3114 if test "$cross_compiling" = maybe; then
3115 cross_compiling=yes
3116 else
3117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3124 fi
3125 fi
3126 fi
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129
3130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3137 echo "${ECHO_T}$cross_compiling" >&6
3138
3139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; then
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 # `rm'.
3150 for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 export ac_cv_exeext
3156 break;;
3157 * ) break;;
3158 esac
3159 done
3160 else
3161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168 rm -f conftest$ac_cv_exeext
3169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3170 echo "${ECHO_T}$ac_cv_exeext" >&6
3171
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3174 ac_exeext=$EXEEXT
3175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3177 if test "${ac_cv_objext+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.o conftest.obj
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207 done
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3220 fi
3221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3222 echo "${ECHO_T}$ac_cv_objext" >&6
3223 OBJEXT=$ac_cv_objext
3224 ac_objext=$OBJEXT
3225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236
3237 int
3238 main ()
3239 {
3240 #ifndef __GNUC__
3241 choke me
3242 #endif
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_compiler_gnu=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_compiler_gnu=no
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3283 GCC=`test $ac_compiler_gnu = yes && echo yes`
3284 ac_test_CFLAGS=${CFLAGS+set}
3285 ac_save_CFLAGS=$CFLAGS
3286 CFLAGS="-g"
3287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3289 if test "${ac_cv_prog_cc_g+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_prog_cc_g=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_cv_prog_cc_g=no
3335 fi
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3340 if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3344 CFLAGS="-g -O2"
3345 else
3346 CFLAGS="-g"
3347 fi
3348 else
3349 if test "$GCC" = yes; then
3350 CFLAGS="-O2"
3351 else
3352 CFLAGS=
3353 fi
3354 fi
3355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 ac_cv_prog_cc_stdc=no
3361 ac_save_CC=$CC
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376 char **p;
3377 int i;
3378 {
3379 return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383 char *s;
3384 va_list v;
3385 va_start (v,p);
3386 s = g (p, va_arg (v,int));
3387 va_end (v);
3388 return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std1 is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std1. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406 int
3407 main ()
3408 {
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 # Don't try gcc -ansi; that turns off useful extensions and
3415 # breaks some systems' header files.
3416 # AIX -qlanglvl=ansi
3417 # Ultrix and OSF/1 -std1
3418 # HP-UX 10.20 and later -Ae
3419 # HP-UX older versions -Aa -D_HPUX_SOURCE
3420 # SVR4 -Xc -D__EXTENSIONS__
3421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_prog_cc_stdc=$ac_arg
3447 break
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 fi
3453 rm -f conftest.err conftest.$ac_objext
3454 done
3455 rm -f conftest.$ac_ext conftest.$ac_objext
3456 CC=$ac_save_CC
3457
3458 fi
3459
3460 case "x$ac_cv_prog_cc_stdc" in
3461 x|xno)
3462 echo "$as_me:$LINENO: result: none needed" >&5
3463 echo "${ECHO_T}none needed" >&6 ;;
3464 *)
3465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3467 CC="$CC $ac_cv_prog_cc_stdc" ;;
3468 esac
3469
3470 # Some people use a C++ compiler to compile C. Since we use `exit',
3471 # in C++ we need to declare it. In case someone uses the same compiler
3472 # for both compiling C and C++ we need to have the C++ compiler decide
3473 # the declaration of exit, since it's the most demanding environment.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #ifndef __cplusplus
3476 choke me
3477 #endif
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 for ac_declaration in \
3502 '' \
3503 'extern "C" void std::exit (int) throw (); using std::exit;' \
3504 'extern "C" void std::exit (int); using std::exit;' \
3505 'extern "C" void exit (int) throw ();' \
3506 'extern "C" void exit (int);' \
3507 'void exit (int);'
3508 do
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_declaration
3516 #include <stdlib.h>
3517 int
3518 main ()
3519 {
3520 exit (42);
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 :
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 continue
3553 fi
3554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_declaration
3562 int
3563 main ()
3564 {
3565 exit (42);
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572 (eval $ac_compile) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -z "$ac_c_werror_flag"
3580 || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 break
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 fi
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 done
3600 rm -f conftest*
3601 if test -n "$ac_declaration"; then
3602 echo '#ifdef __cplusplus' >>confdefs.h
3603 echo $ac_declaration >>confdefs.h
3604 echo '#endif' >>confdefs.h
3605 fi
3606
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 fi
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 # On Suns, sometimes $CPP names a directory.
3621 if test -n "$CPP" && test -d "$CPP"; then
3622 CPP=
3623 fi
3624
3625 #### Some systems specify a CPP to use unless we are using GCC.
3626 #### Now that we know whether we are using GCC, we can decide whether
3627 #### to use that one.
3628 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3629 then
3630 CPP="$NON_GNU_CPP"
3631 fi
3632
3633 #### Some systems specify a CC to use unless we are using GCC.
3634 #### Now that we know whether we are using GCC, we can decide whether
3635 #### to use that one.
3636 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3637 test x$cc_specified != xyes
3638 then
3639 CC="$NON_GNU_CC"
3640 fi
3641
3642 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3643 then
3644 CC="$CC $GCC_TEST_OPTIONS"
3645 fi
3646
3647 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $NON_GCC_TEST_OPTIONS"
3650 fi
3651
3652 #### Some other nice autoconf tests.
3653
3654 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3656 LN_S=$as_ln_s
3657 if test "$LN_S" = "ln -s"; then
3658 echo "$as_me:$LINENO: result: yes" >&5
3659 echo "${ECHO_T}yes" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3662 echo "${ECHO_T}no, using $LN_S" >&6
3663 fi
3664
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3671 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3674 CPP=
3675 fi
3676 if test -z "$CPP"; then
3677 if test "${ac_cv_prog_CPP+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 # Double quotes because CPP needs to be expanded
3681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 do
3683 ac_preproc_ok=false
3684 for ac_c_preproc_warn_flag in '' yes
3685 do
3686 # Use a header file that comes with gcc, so configuring glibc
3687 # with a fresh cross-compiler works.
3688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 # <limits.h> exists even on freestanding compilers.
3690 # On the NeXT, cc -E runs the code through the compiler's parser,
3691 # not just through cpp. "Syntax error" is here to catch this case.
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #ifdef __STDC__
3699 # include <limits.h>
3700 #else
3701 # include <assert.h>
3702 #endif
3703 Syntax error
3704 _ACEOF
3705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 else
3717 ac_cpp_err=
3718 fi
3719 else
3720 ac_cpp_err=yes
3721 fi
3722 if test -z "$ac_cpp_err"; then
3723 :
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 # Broken: fails on valid input.
3729 continue
3730 fi
3731 rm -f conftest.err conftest.$ac_ext
3732
3733 # OK, works on sane cases. Now check whether non-existent headers
3734 # can be detected and how.
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 #include <ac_nonexistent.h>
3742 _ACEOF
3743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null; then
3751 if test -s conftest.err; then
3752 ac_cpp_err=$ac_c_preproc_warn_flag
3753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3754 else
3755 ac_cpp_err=
3756 fi
3757 else
3758 ac_cpp_err=yes
3759 fi
3760 if test -z "$ac_cpp_err"; then
3761 # Broken: success on invalid input.
3762 continue
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 # Passes both tests.
3768 ac_preproc_ok=:
3769 break
3770 fi
3771 rm -f conftest.err conftest.$ac_ext
3772
3773 done
3774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775 rm -f conftest.err conftest.$ac_ext
3776 if $ac_preproc_ok; then
3777 break
3778 fi
3779
3780 done
3781 ac_cv_prog_CPP=$CPP
3782
3783 fi
3784 CPP=$ac_cv_prog_CPP
3785 else
3786 ac_cv_prog_CPP=$CPP
3787 fi
3788 echo "$as_me:$LINENO: result: $CPP" >&5
3789 echo "${ECHO_T}$CPP" >&6
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #ifdef __STDC__
3806 # include <limits.h>
3807 #else
3808 # include <assert.h>
3809 #endif
3810 Syntax error
3811 _ACEOF
3812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3825 fi
3826 else
3827 ac_cpp_err=yes
3828 fi
3829 if test -z "$ac_cpp_err"; then
3830 :
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839
3840 # OK, works on sane cases. Now check whether non-existent headers
3841 # can be detected and how.
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3863 fi
3864 else
3865 ac_cpp_err=yes
3866 fi
3867 if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3869 continue
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 # Passes both tests.
3875 ac_preproc_ok=:
3876 break
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884 :
3885 else
3886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&5
3888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&2;}
3890 { (exit 1); exit 1; }; }
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899 # Find a good install program. We prefer a C program (faster),
3900 # so one script is as good as another. But avoid the broken or
3901 # incompatible versions:
3902 # SysV /etc/install, /usr/sbin/install
3903 # SunOS /usr/etc/install
3904 # IRIX /sbin/install
3905 # AIX /bin/install
3906 # AmigaOS /C/install, which installs bootblocks on floppy discs
3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910 # OS/2's system install, which has a completely different semantic
3911 # ./install, which can be erroneously created by make from ./install.sh.
3912 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3913 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3914 if test -z "$INSTALL"; then
3915 if test "${ac_cv_path_install+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 # Account for people who put trailing slashes in PATH elements.
3924 case $as_dir/ in
3925 ./ | .// | /cC/* | \
3926 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3927 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3928 /usr/ucb/* ) ;;
3929 *)
3930 # OSF1 and SCO ODT 3.0 have their own names for install.
3931 # Don't use installbsd from OSF since it installs stuff as root
3932 # by default.
3933 for ac_prog in ginstall scoinst install; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3936 if test $ac_prog = install &&
3937 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # AIX install. It has an incompatible calling convention.
3939 :
3940 elif test $ac_prog = install &&
3941 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3942 # program-specific install script used by HP pwplus--don't use.
3943 :
3944 else
3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3946 break 3
3947 fi
3948 fi
3949 done
3950 done
3951 ;;
3952 esac
3953 done
3954
3955
3956 fi
3957 if test "${ac_cv_path_install+set}" = set; then
3958 INSTALL=$ac_cv_path_install
3959 else
3960 # As a last resort, use the slow shell script. We don't cache a
3961 # path for INSTALL within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the path is relative.
3964 INSTALL=$ac_install_sh
3965 fi
3966 fi
3967 echo "$as_me:$LINENO: result: $INSTALL" >&5
3968 echo "${ECHO_T}$INSTALL" >&6
3969
3970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3971 # It thinks the first close brace ends the variable substitution.
3972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3973
3974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3975
3976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3977
3978 if test "x$RANLIB" = x; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_RANLIB+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -n "$RANLIB"; then
3988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 RANLIB=$ac_cv_prog_RANLIB
4007 if test -n "$RANLIB"; then
4008 echo "$as_me:$LINENO: result: $RANLIB" >&5
4009 echo "${ECHO_T}$RANLIB" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015 fi
4016 if test -z "$ac_cv_prog_RANLIB"; then
4017 ac_ct_RANLIB=$RANLIB
4018 # Extract the first word of "ranlib", so it can be a program name with args.
4019 set dummy ranlib; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test -n "$ac_ct_RANLIB"; then
4026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_RANLIB="ranlib"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041
4042 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4043 fi
4044 fi
4045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4046 if test -n "$ac_ct_RANLIB"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4048 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054 RANLIB=$ac_ct_RANLIB
4055 else
4056 RANLIB="$ac_cv_prog_RANLIB"
4057 fi
4058
4059 fi
4060 # Extract the first word of "install-info", so it can be a program name with args.
4061 set dummy install-info; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 case $INSTALL_INFO in
4068 [\\/]* | ?:[\\/]*)
4069 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4070 ;;
4071 *)
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085
4086 ;;
4087 esac
4088 fi
4089 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4090
4091 if test -n "$INSTALL_INFO"; then
4092 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4093 echo "${ECHO_T}$INSTALL_INFO" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097 fi
4098
4099 # Extract the first word of "install-info", so it can be a program name with args.
4100 set dummy install-info; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 case $INSTALL_INFO in
4107 [\\/]* | ?:[\\/]*)
4108 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4109 ;;
4110 *)
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in /usr/sbin
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124
4125 ;;
4126 esac
4127 fi
4128 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4129
4130 if test -n "$INSTALL_INFO"; then
4131 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4132 echo "${ECHO_T}$INSTALL_INFO" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $INSTALL_INFO in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4148 ;;
4149 *)
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in /sbin
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163
4164 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4165 ;;
4166 esac
4167 fi
4168 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4169
4170 if test -n "$INSTALL_INFO"; then
4171 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4172 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179
4180 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4181 then
4182 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4183 fi
4184
4185 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4188 fi
4189
4190
4191 late_LDFLAGS=$LDFLAGS
4192 if test "$GCC" = yes; then
4193 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4194 else
4195 LDFLAGS="$LDFLAGS -znocombreloc"
4196 fi
4197
4198 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4199 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4200
4201 cat >conftest.$ac_ext <<_ACEOF
4202 main(){return 0;}
4203 _ACEOF
4204 rm -f conftest.$ac_objext conftest$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 LDFLAGS=$late_LDFLAGS
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236 rm -f conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4238
4239
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4248 fi
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
4253
4254
4255
4256 echo "$as_me:$LINENO: checking for AIX" >&5
4257 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #ifdef _AIX
4265 yes
4266 #endif
4267
4268 _ACEOF
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "yes" >/dev/null 2>&1; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272 echo "${ECHO_T}yes" >&6
4273 cat >>confdefs.h <<\_ACEOF
4274 #define _ALL_SOURCE 1
4275 _ACEOF
4276
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281 rm -f conftest*
4282
4283
4284
4285
4286 #### Extract some information from the operating system and machine files.
4287
4288 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4289 - which libraries the lib-src programs will want, and
4290 - whether the GNU malloc routines are usable..." >&5
4291 echo "$as_me: checking the machine- and system-dependent files to find out
4292 - which libraries the lib-src programs will want, and
4293 - whether the GNU malloc routines are usable..." >&6;}
4294
4295 ### First figure out CFLAGS (which we use for running the compiler here)
4296 ### and REAL_CFLAGS (which we use for real compilation).
4297 ### The two are the same except on a few systems, where they are made
4298 ### different to work around various lossages. For example,
4299 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4300 ### as implying static linking.
4301
4302 ### If the CFLAGS env var is specified, we use that value
4303 ### instead of the default.
4304
4305 ### It's not important that this name contain the PID; you can't run
4306 ### two configures in the same directory and have anything work
4307 ### anyway.
4308 tempcname="conftest.c"
4309
4310 echo '
4311 #include "'${srcdir}'/src/'${opsysfile}'"
4312 #include "'${srcdir}'/src/'${machfile}'"
4313 #ifndef LIBS_MACHINE
4314 #define LIBS_MACHINE
4315 #endif
4316 #ifndef LIBS_SYSTEM
4317 #define LIBS_SYSTEM
4318 #endif
4319 #ifndef C_SWITCH_SYSTEM
4320 #define C_SWITCH_SYSTEM
4321 #endif
4322 #ifndef C_SWITCH_MACHINE
4323 #define C_SWITCH_MACHINE
4324 #endif
4325 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4326 configure___ c_switch_system=C_SWITCH_SYSTEM
4327 configure___ c_switch_machine=C_SWITCH_MACHINE
4328
4329 #ifndef LIB_X11_LIB
4330 #define LIB_X11_LIB -lX11
4331 #endif
4332
4333 #ifndef LIBX11_MACHINE
4334 #define LIBX11_MACHINE
4335 #endif
4336
4337 #ifndef LIBX11_SYSTEM
4338 #define LIBX11_SYSTEM
4339 #endif
4340 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4341
4342 #ifdef UNEXEC
4343 configure___ unexec=UNEXEC
4344 #else
4345 configure___ unexec=unexec.o
4346 #endif
4347
4348 #ifdef SYSTEM_MALLOC
4349 configure___ system_malloc=yes
4350 #else
4351 configure___ system_malloc=no
4352 #endif
4353
4354 #ifdef USE_MMAP_FOR_BUFFERS
4355 configure___ use_mmap_for_buffers=yes
4356 #else
4357 configure___ use_mmap_for_buffers=no
4358 #endif
4359
4360 #ifndef C_DEBUG_SWITCH
4361 #define C_DEBUG_SWITCH -g
4362 #endif
4363
4364 #ifndef C_OPTIMIZE_SWITCH
4365 #ifdef __GNUC__
4366 #define C_OPTIMIZE_SWITCH -O2
4367 #else
4368 #define C_OPTIMIZE_SWITCH -O
4369 #endif
4370 #endif
4371
4372 #ifndef LD_SWITCH_MACHINE
4373 #define LD_SWITCH_MACHINE
4374 #endif
4375
4376 #ifndef LD_SWITCH_SYSTEM
4377 #define LD_SWITCH_SYSTEM
4378 #endif
4379
4380 #ifndef LD_SWITCH_X_SITE_AUX
4381 #define LD_SWITCH_X_SITE_AUX
4382 #endif
4383
4384 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4385 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4386
4387 #ifdef THIS_IS_CONFIGURE
4388
4389 /* Get the CFLAGS for tests in configure. */
4390 #ifdef __GNUC__
4391 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4392 #else
4393 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4394 #endif
4395
4396 #else /* not THIS_IS_CONFIGURE */
4397
4398 /* Get the CFLAGS for real compilation. */
4399 #ifdef __GNUC__
4400 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else
4402 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4403 #endif
4404
4405 #endif /* not THIS_IS_CONFIGURE */
4406 ' > ${tempcname}
4407
4408 # The value of CPP is a quoted variable reference, so we need to do this
4409 # to get its actual value...
4410 CPP=`eval "echo $CPP"`
4411 eval `${CPP} -Isrc ${tempcname} \
4412 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 if test "x$SPECIFIED_CFLAGS" = x; then
4414 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4415 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4416 else
4417 REAL_CFLAGS="$CFLAGS"
4418 fi
4419 rm ${tempcname}
4420
4421 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4422
4423 ### Make sure subsequent tests use flags consistent with the build flags.
4424
4425 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4426 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4427 else
4428 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4429 fi
4430
4431
4432
4433
4434 cat >>confdefs.h <<\_ACEOF
4435 #define _GNU_SOURCE 1
4436 _ACEOF
4437
4438
4439
4440 # Check whether --enable-largefile or --disable-largefile was given.
4441 if test "${enable_largefile+set}" = set; then
4442 enableval="$enable_largefile"
4443
4444 fi;
4445 if test "$enable_largefile" != no; then
4446
4447 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4448 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4449 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 ac_cv_sys_largefile_CC=no
4453 if test "$GCC" != yes; then
4454 ac_save_CC=$CC
4455 while :; do
4456 # IRIX 6.2 and later do not support large files by default,
4457 # so use the C compiler's -n32 option if that helps.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 /* Check that off_t can represent 2**63 - 1 correctly.
4466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4467 since some C++ compilers masquerading as C compilers
4468 incorrectly reject 9223372036854775807. */
4469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4471 && LARGE_OFF_T % 2147483647 == 1)
4472 ? 1 : -1];
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 break
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 fi
4509 rm -f conftest.err conftest.$ac_objext
4510 CC="$CC -n32"
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_sys_largefile_CC=' -n32'; break
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 fi
4539 rm -f conftest.err conftest.$ac_objext
4540 break
4541 done
4542 CC=$ac_save_CC
4543 rm -f conftest.$ac_ext
4544 fi
4545 fi
4546 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4547 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4548 if test "$ac_cv_sys_largefile_CC" != no; then
4549 CC=$CC$ac_cv_sys_largefile_CC
4550 fi
4551
4552 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4553 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4554 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 while :; do
4558 ac_cv_sys_file_offset_bits=no
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <sys/types.h>
4566 /* Check that off_t can represent 2**63 - 1 correctly.
4567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4568 since some C++ compilers masquerading as C compilers
4569 incorrectly reject 9223372036854775807. */
4570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4572 && LARGE_OFF_T % 2147483647 == 1)
4573 ? 1 : -1];
4574 int
4575 main ()
4576 {
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 break
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619 /* Check that off_t can represent 2**63 - 1 correctly.
4620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621 since some C++ compilers masquerading as C compilers
4622 incorrectly reject 9223372036854775807. */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625 && LARGE_OFF_T % 2147483647 == 1)
4626 ? 1 : -1];
4627 int
4628 main ()
4629 {
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_sys_file_offset_bits=64; break
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 break
4665 done
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4668 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4669 if test "$ac_cv_sys_file_offset_bits" != no; then
4670
4671 cat >>confdefs.h <<_ACEOF
4672 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4673 _ACEOF
4674
4675 fi
4676 rm -f conftest*
4677 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4678 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4679 if test "${ac_cv_sys_large_files+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 while :; do
4683 ac_cv_sys_large_files=no
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 /* Check that off_t can represent 2**63 - 1 correctly.
4692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4693 since some C++ compilers masquerading as C compilers
4694 incorrectly reject 9223372036854775807. */
4695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4697 && LARGE_OFF_T % 2147483647 == 1)
4698 ? 1 : -1];
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest.$ac_objext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 break
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #define _LARGE_FILES 1
4743 #include <sys/types.h>
4744 /* Check that off_t can represent 2**63 - 1 correctly.
4745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746 since some C++ compilers masquerading as C compilers
4747 incorrectly reject 9223372036854775807. */
4748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750 && LARGE_OFF_T % 2147483647 == 1)
4751 ? 1 : -1];
4752 int
4753 main ()
4754 {
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_sys_large_files=1; break
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 fi
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 break
4790 done
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4793 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4794 if test "$ac_cv_sys_large_files" != no; then
4795
4796 cat >>confdefs.h <<_ACEOF
4797 #define _LARGE_FILES $ac_cv_sys_large_files
4798 _ACEOF
4799
4800 fi
4801 rm -f conftest*
4802 fi
4803
4804
4805 if test "${with_sound}" != "no"; then
4806 # Sound support for GNU/Linux and the free BSDs.
4807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdc+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <stdlib.h>
4819 #include <stdarg.h>
4820 #include <string.h>
4821 #include <float.h>
4822
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_header_stdc=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_cv_header_stdc=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861
4862 if test $ac_cv_header_stdc = yes; then
4863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <string.h>
4871
4872 _ACEOF
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "memchr" >/dev/null 2>&1; then
4875 :
4876 else
4877 ac_cv_header_stdc=no
4878 fi
4879 rm -f conftest*
4880
4881 fi
4882
4883 if test $ac_cv_header_stdc = yes; then
4884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <stdlib.h>
4892
4893 _ACEOF
4894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895 $EGREP "free" >/dev/null 2>&1; then
4896 :
4897 else
4898 ac_cv_header_stdc=no
4899 fi
4900 rm -f conftest*
4901
4902 fi
4903
4904 if test $ac_cv_header_stdc = yes; then
4905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906 if test "$cross_compiling" = yes; then
4907 :
4908 else
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <ctype.h>
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 #else
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #endif
4926
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 int
4929 main ()
4930 {
4931 int i;
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4935 exit(2);
4936 exit (0);
4937 }
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 :
4951 else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ( exit $ac_status )
4957 ac_cv_header_stdc=no
4958 fi
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 fi
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4965 if test $ac_cv_header_stdc = yes; then
4966
4967 cat >>confdefs.h <<\_ACEOF
4968 #define STDC_HEADERS 1
4969 _ACEOF
4970
4971 fi
4972
4973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984 inttypes.h stdint.h unistd.h
4985 do
4986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 echo "$as_me:$LINENO: checking for $ac_header" >&5
4988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999
5000 #include <$ac_header>
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 eval "$as_ac_Header=yes"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 eval "$as_ac_Header=no"
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5036 cat >>confdefs.h <<_ACEOF
5037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038 _ACEOF
5039
5040 fi
5041
5042 done
5043
5044
5045
5046
5047
5048 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5049 do
5050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 fi
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 else
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 $ac_includes_default
5070 #include <$ac_header>
5071 _ACEOF
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 ac_header_compiler=no
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5104
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5115 _ACEOF
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130 else
5131 ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ac_header_preproc=no
5140 fi
5141 rm -f conftest.err conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5144
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5147 yes:no: )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc=yes
5153 ;;
5154 no:yes:* )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5167 (
5168 cat <<\_ASBOX
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5172 _ASBOX
5173 ) |
5174 sed "s/^/$as_me: WARNING: /" >&2
5175 ;;
5176 esac
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 eval "$as_ac_Header=\$ac_header_preproc"
5183 fi
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5186
5187 fi
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 _ACEOF
5192
5193 fi
5194
5195 done
5196
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lossaudio $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 #ifdef __cplusplus
5214 extern "C"
5215 #endif
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218 char _oss_ioctl ();
5219 int
5220 main ()
5221 {
5222 _oss_ioctl ();
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_c_werror_flag"
5237 || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_ossaudio__oss_ioctl=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_cv_lib_ossaudio__oss_ioctl=no
5255 fi
5256 rm -f conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5261 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5262 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5263 LIBSOUND=-lossaudio
5264 else
5265 LIBSOUND=
5266 fi
5267
5268
5269 fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5297 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5298 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5299 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5300 sys/utsname.h pwd.h
5301 do
5302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5304 echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 fi
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5311 else
5312 # Is the header compilable?
5313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352 fi
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <$ac_header>
5367 _ACEOF
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev/null; then
5376 if test -s conftest.err; then
5377 ac_cpp_err=$ac_c_preproc_warn_flag
5378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379 else
5380 ac_cpp_err=
5381 fi
5382 else
5383 ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_header_preproc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5405 ;;
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 (
5420 cat <<\_ASBOX
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists. ##
5423 ## ------------------------------------------ ##
5424 _ASBOX
5425 ) |
5426 sed "s/^/$as_me: WARNING: /" >&2
5427 ;;
5428 esac
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 eval "$as_ac_Header=\$ac_header_preproc"
5435 fi
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438
5439 fi
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 _ACEOF
5444
5445 fi
5446
5447 done
5448
5449
5450 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5451 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/personality.h>
5459 int
5460 main ()
5461 {
5462 personality (PER_LINUX32)
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -z "$ac_c_werror_flag"
5477 || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 emacs_cv_personality_linux32=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 emacs_cv_personality_linux32=no
5495 fi
5496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5497 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5498 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5499
5500 if test $emacs_cv_personality_linux32 = yes; then
5501
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_PERSONALITY_LINUX32 1
5504 _ACEOF
5505
5506 fi
5507
5508
5509 for ac_header in term.h
5510 do
5511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <$ac_header>
5524 _ACEOF
5525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 else
5537 ac_cpp_err=
5538 fi
5539 else
5540 ac_cpp_err=yes
5541 fi
5542 if test -z "$ac_cpp_err"; then
5543 eval "$as_ac_Header=yes"
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 eval "$as_ac_Header=no"
5549 fi
5550 rm -f conftest.err conftest.$ac_ext
5551 fi
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h <<_ACEOF
5556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 _ACEOF
5558
5559 fi
5560
5561 done
5562
5563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5565 if test "${ac_cv_header_stdc+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <stdlib.h>
5575 #include <stdarg.h>
5576 #include <string.h>
5577 #include <float.h>
5578
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <string.h>
5627
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev/null 2>&1; then
5631 :
5632 else
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f conftest*
5636
5637 fi
5638
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648
5649 _ACEOF
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then
5652 :
5653 else
5654 ac_cv_header_stdc=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5663 :
5664 else
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <ctype.h>
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 #else
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #endif
5682
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 int
5685 main ()
5686 {
5687 int i;
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5691 exit(2);
5692 exit (0);
5693 }
5694 _ACEOF
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 :
5707 else
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ( exit $ac_status )
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 fi
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define STDC_HEADERS 1
5725 _ACEOF
5726
5727 fi
5728
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5742 #include <time.h>
5743
5744 int
5745 main ()
5746 {
5747 if ((struct tm *) 0)
5748 return 0;
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_header_time=yes
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_cv_header_time=no
5781 fi
5782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 fi
5784 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5785 echo "${ECHO_T}$ac_cv_header_time" >&6
5786 if test $ac_cv_header_time = yes; then
5787
5788 cat >>confdefs.h <<\_ACEOF
5789 #define TIME_WITH_SYS_TIME 1
5790 _ACEOF
5791
5792 fi
5793
5794 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5795 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5796 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 #ifndef sys_siglist
5810 char *p = (char *) sys_siglist;
5811 #endif
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_have_decl_sys_siglist=yes
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_have_decl_sys_siglist=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5849 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5850 if test $ac_cv_have_decl_sys_siglist = yes; then
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 1
5854 _ACEOF
5855
5856
5857 else
5858 cat >>confdefs.h <<_ACEOF
5859 #define HAVE_DECL_SYS_SIGLIST 0
5860 _ACEOF
5861
5862
5863 fi
5864
5865
5866 if test $ac_cv_have_decl_sys_siglist != yes; then
5867 # For Tru64, at least:
5868 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5869 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5870 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5880 int
5881 main ()
5882 {
5883 #ifndef __sys_siglist
5884 char *p = (char *) __sys_siglist;
5885 #endif
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -z "$ac_c_werror_flag"
5901 || test ! -s conftest.err'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_cv_have_decl___sys_siglist=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 ac_cv_have_decl___sys_siglist=no
5919 fi
5920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5923 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5924 if test $ac_cv_have_decl___sys_siglist = yes; then
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define HAVE_DECL___SYS_SIGLIST 1
5928 _ACEOF
5929
5930
5931 else
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_DECL___SYS_SIGLIST 0
5934 _ACEOF
5935
5936
5937 fi
5938
5939
5940 if test $ac_cv_have_decl___sys_siglist = yes; then
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define sys_siglist __sys_siglist
5944 _ACEOF
5945
5946 fi
5947 fi
5948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/wait.h>
5961 #ifndef WEXITSTATUS
5962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5963 #endif
5964 #ifndef WIFEXITED
5965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5966 #endif
5967
5968 int
5969 main ()
5970 {
5971 int s;
5972 wait (&s);
5973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_header_sys_wait_h=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_header_sys_wait_h=no
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6011 if test $ac_cv_header_sys_wait_h = yes; then
6012
6013 cat >>confdefs.h <<\_ACEOF
6014 #define HAVE_SYS_WAIT_H 1
6015 _ACEOF
6016
6017 fi
6018
6019
6020 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6021 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6022 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #ifdef TIME_WITH_SYS_TIME
6032 #include <sys/time.h>
6033 #include <time.h>
6034 #else
6035 #ifdef HAVE_SYS_TIME_H
6036 #include <sys/time.h>
6037 #else
6038 #include <time.h>
6039 #endif
6040 #endif
6041 #ifdef HAVE_UTIME_H
6042 #include <utime.h>
6043 #endif
6044 int
6045 main ()
6046 {
6047 static struct utimbuf x; x.actime = x.modtime;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -z "$ac_c_werror_flag"
6062 || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 emacs_cv_struct_utimbuf=yes
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 emacs_cv_struct_utimbuf=no
6080 fi
6081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6084 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6085 if test $emacs_cv_struct_utimbuf = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_STRUCT_UTIMBUF 1
6089 _ACEOF
6090
6091 fi
6092
6093 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6094 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6095 if test "${ac_cv_type_signal+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <sys/types.h>
6105 #include <signal.h>
6106 #ifdef signal
6107 # undef signal
6108 #endif
6109 #ifdef __cplusplus
6110 extern "C" void (*signal (int, void (*)(int)))(int);
6111 #else
6112 void (*signal ()) ();
6113 #endif
6114
6115 int
6116 main ()
6117 {
6118 int i;
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
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); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_type_signal=void
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_cv_type_signal=int
6151 fi
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6155 echo "${ECHO_T}$ac_cv_type_signal" >&6
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define RETSIGTYPE $ac_cv_type_signal
6159 _ACEOF
6160
6161
6162
6163 echo "$as_me:$LINENO: checking for speed_t" >&5
6164 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6165 if test "${emacs_cv_speed_t+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <termios.h>
6175 int
6176 main ()
6177 {
6178 speed_t x = 1;
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 emacs_cv_speed_t=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 emacs_cv_speed_t=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6215 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6216 if test $emacs_cv_speed_t = yes; then
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define HAVE_SPEED_T 1
6220 _ACEOF
6221
6222 fi
6223
6224 echo "$as_me:$LINENO: checking for struct timeval" >&5
6225 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6226 if test "${emacs_cv_struct_timeval+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #ifdef TIME_WITH_SYS_TIME
6236 #include <sys/time.h>
6237 #include <time.h>
6238 #else
6239 #ifdef HAVE_SYS_TIME_H
6240 #include <sys/time.h>
6241 #else
6242 #include <time.h>
6243 #endif
6244 #endif
6245 int
6246 main ()
6247 {
6248 static struct timeval x; x.tv_sec = x.tv_usec;
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 emacs_cv_struct_timeval=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 emacs_cv_struct_timeval=no
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6285 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6286 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6287 if test $emacs_cv_struct_timeval = yes; then
6288
6289 cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_TIMEVAL 1
6291 _ACEOF
6292
6293 fi
6294
6295 echo "$as_me:$LINENO: checking for struct exception" >&5
6296 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6297 if test "${emacs_cv_struct_exception+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <math.h>
6307 int
6308 main ()
6309 {
6310 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 emacs_cv_struct_exception=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 emacs_cv_struct_exception=no
6343 fi
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 fi
6346 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6347 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6348 HAVE_EXCEPTION=$emacs_cv_struct_exception
6349 if test $emacs_cv_struct_exception != yes; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define NO_MATHERR 1
6353 _ACEOF
6354
6355 fi
6356
6357
6358 for ac_header in sys/socket.h
6359 do
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_compiler=no
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6414
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437 else
6438 ac_cpp_err=
6439 fi
6440 else
6441 ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_preproc=no
6450 fi
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6454
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6463 ;;
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6477 (
6478 cat <<\_ASBOX
6479 ## ------------------------------------------ ##
6480 ## Report this to the AC_PACKAGE_NAME lists. ##
6481 ## ------------------------------------------ ##
6482 _ASBOX
6483 ) |
6484 sed "s/^/$as_me: WARNING: /" >&2
6485 ;;
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 eval "$as_ac_Header=\$ac_header_preproc"
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
6497 fi
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502
6503 fi
6504
6505 done
6506
6507
6508 for ac_header in net/if.h
6509 do
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 #if HAVE_SYS_SOCKET_H
6524 #include <sys/socket.h>
6525 #endif
6526
6527 #include <$ac_header>
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_Header=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_Header=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 fi
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 _ACEOF
6566
6567 fi
6568
6569 done
6570
6571
6572 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6573 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6574 if test "${ac_cv_struct_tm+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6584 #include <time.h>
6585
6586 int
6587 main ()
6588 {
6589 struct tm *tp; tp->tm_sec;
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_struct_tm=time.h
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 ac_cv_struct_tm=sys/time.h
6622 fi
6623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6626 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6627 if test $ac_cv_struct_tm = sys/time.h; then
6628
6629 cat >>confdefs.h <<\_ACEOF
6630 #define TM_IN_SYS_TIME 1
6631 _ACEOF
6632
6633 fi
6634
6635 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6636 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6637 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #include <sys/types.h>
6647 #include <$ac_cv_struct_tm>
6648
6649
6650 int
6651 main ()
6652 {
6653 static struct tm ac_aggr;
6654 if (ac_aggr.tm_zone)
6655 return 0;
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_member_struct_tm_tm_zone=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <$ac_cv_struct_tm>
6695
6696
6697 int
6698 main ()
6699 {
6700 static struct tm ac_aggr;
6701 if (sizeof ac_aggr.tm_zone)
6702 return 0;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest.$ac_objext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_member_struct_tm_tm_zone=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 ac_cv_member_struct_tm_tm_zone=no
6735 fi
6736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6741 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6742 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6743
6744 cat >>confdefs.h <<_ACEOF
6745 #define HAVE_STRUCT_TM_TM_ZONE 1
6746 _ACEOF
6747
6748
6749 fi
6750
6751 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6752
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_TM_ZONE 1
6755 _ACEOF
6756
6757 else
6758 echo "$as_me:$LINENO: checking for tzname" >&5
6759 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6760 if test "${ac_cv_var_tzname+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <time.h>
6770 #ifndef tzname /* For SGI. */
6771 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6772 #endif
6773
6774 int
6775 main ()
6776 {
6777 atoi(*tzname);
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 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_exeext'
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_var_tzname=yes
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 ac_cv_var_tzname=no
6810 fi
6811 rm -f conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6815 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6816 if test $ac_cv_var_tzname = yes; then
6817
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_TZNAME 1
6820 _ACEOF
6821
6822 fi
6823 fi
6824
6825 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6826 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6827 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <time.h>
6837
6838 int
6839 main ()
6840 {
6841 static struct tm ac_aggr;
6842 if (ac_aggr.tm_gmtoff)
6843 return 0;
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_cv_member_struct_tm_tm_gmtoff=yes
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6874
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 #include <time.h>
6882
6883 int
6884 main ()
6885 {
6886 static struct tm ac_aggr;
6887 if (sizeof ac_aggr.tm_gmtoff)
6888 return 0;
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6915 ac_cv_member_struct_tm_tm_gmtoff=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_cv_member_struct_tm_tm_gmtoff=no
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6928 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_TM_GMTOFF 1
6932 _ACEOF
6933
6934 fi
6935
6936 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6937 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6938 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #if HAVE_SYS_SOCKET_H
6949 #include <sys/socket.h>
6950 #endif
6951 #if HAVE_NET_IF_H
6952 #include <net/if.h>
6953 #endif
6954
6955 int
6956 main ()
6957 {
6958 static struct ifreq ac_aggr;
6959 if (ac_aggr.ifr_flags)
6960 return 0;
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_ifreq_ifr_flags=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
6999 #if HAVE_SYS_SOCKET_H
7000 #include <sys/socket.h>
7001 #endif
7002 #if HAVE_NET_IF_H
7003 #include <net/if.h>
7004 #endif
7005
7006 int
7007 main ()
7008 {
7009 static struct ifreq ac_aggr;
7010 if (sizeof ac_aggr.ifr_flags)
7011 return 0;
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7038 ac_cv_member_struct_ifreq_ifr_flags=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7042
7043 ac_cv_member_struct_ifreq_ifr_flags=no
7044 fi
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7050 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7051 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7052
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7055 _ACEOF
7056
7057
7058 fi
7059 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7060 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7061 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 #if HAVE_SYS_SOCKET_H
7072 #include <sys/socket.h>
7073 #endif
7074 #if HAVE_NET_IF_H
7075 #include <net/if.h>
7076 #endif
7077
7078 int
7079 main ()
7080 {
7081 static struct ifreq ac_aggr;
7082 if (ac_aggr.ifr_hwaddr)
7083 return 0;
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest.$ac_objext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7111 else
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 #if HAVE_SYS_SOCKET_H
7123 #include <sys/socket.h>
7124 #endif
7125 #if HAVE_NET_IF_H
7126 #include <net/if.h>
7127 #endif
7128
7129 int
7130 main ()
7131 {
7132 static struct ifreq ac_aggr;
7133 if (sizeof ac_aggr.ifr_hwaddr)
7134 return 0;
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7161 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7167 fi
7168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 fi
7172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7173 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7174 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7175
7176 cat >>confdefs.h <<_ACEOF
7177 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7178 _ACEOF
7179
7180
7181 fi
7182 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7183 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7184 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 #if HAVE_SYS_SOCKET_H
7195 #include <sys/socket.h>
7196 #endif
7197 #if HAVE_NET_IF_H
7198 #include <net/if.h>
7199 #endif
7200
7201 int
7202 main ()
7203 {
7204 static struct ifreq ac_aggr;
7205 if (ac_aggr.ifr_netmask)
7206 return 0;
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_member_struct_ifreq_ifr_netmask=yes
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 #if HAVE_SYS_SOCKET_H
7246 #include <sys/socket.h>
7247 #endif
7248 #if HAVE_NET_IF_H
7249 #include <net/if.h>
7250 #endif
7251
7252 int
7253 main ()
7254 {
7255 static struct ifreq ac_aggr;
7256 if (sizeof ac_aggr.ifr_netmask)
7257 return 0;
7258 ;
7259 return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7284 ac_cv_member_struct_ifreq_ifr_netmask=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_cv_member_struct_ifreq_ifr_netmask=no
7290 fi
7291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7296 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7297 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7301 _ACEOF
7302
7303
7304 fi
7305 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7306 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7307 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 #if HAVE_SYS_SOCKET_H
7318 #include <sys/socket.h>
7319 #endif
7320 #if HAVE_NET_IF_H
7321 #include <net/if.h>
7322 #endif
7323
7324 int
7325 main ()
7326 {
7327 static struct ifreq ac_aggr;
7328 if (ac_aggr.ifr_broadaddr)
7329 return 0;
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 #if HAVE_SYS_SOCKET_H
7369 #include <sys/socket.h>
7370 #endif
7371 #if HAVE_NET_IF_H
7372 #include <net/if.h>
7373 #endif
7374
7375 int
7376 main ()
7377 {
7378 static struct ifreq ac_aggr;
7379 if (sizeof ac_aggr.ifr_broadaddr)
7380 return 0;
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7407 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7413 fi
7414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7419 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7420 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7421
7422 cat >>confdefs.h <<_ACEOF
7423 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7424 _ACEOF
7425
7426
7427 fi
7428 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7429 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7430 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #if HAVE_SYS_SOCKET_H
7441 #include <sys/socket.h>
7442 #endif
7443 #if HAVE_NET_IF_H
7444 #include <net/if.h>
7445 #endif
7446
7447 int
7448 main ()
7449 {
7450 static struct ifreq ac_aggr;
7451 if (ac_aggr.ifr_addr)
7452 return 0;
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_member_struct_ifreq_ifr_addr=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 #if HAVE_SYS_SOCKET_H
7492 #include <sys/socket.h>
7493 #endif
7494 #if HAVE_NET_IF_H
7495 #include <net/if.h>
7496 #endif
7497
7498 int
7499 main ()
7500 {
7501 static struct ifreq ac_aggr;
7502 if (sizeof ac_aggr.ifr_addr)
7503 return 0;
7504 ;
7505 return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_member_struct_ifreq_ifr_addr=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_member_struct_ifreq_ifr_addr=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7542 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7543 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7544
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7547 _ACEOF
7548
7549
7550 fi
7551
7552
7553
7554 echo "$as_me:$LINENO: checking for function prototypes" >&5
7555 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7556 if test "$ac_cv_prog_cc_stdc" != no; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558 echo "${ECHO_T}yes" >&6
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define PROTOTYPES 1
7562 _ACEOF
7563
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define __PROTOTYPES 1
7567 _ACEOF
7568
7569 else
7570 echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7572 fi
7573
7574 echo "$as_me:$LINENO: checking for working volatile" >&5
7575 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7576 if test "${ac_cv_c_volatile+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585
7586 int
7587 main ()
7588 {
7589
7590 volatile int x;
7591 int * volatile y;
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_c_volatile=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_cv_c_volatile=no
7624 fi
7625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7628 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7629 if test $ac_cv_c_volatile = no; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define volatile
7633 _ACEOF
7634
7635 fi
7636
7637 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7639 if test "${ac_cv_c_const+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648
7649 int
7650 main ()
7651 {
7652 /* FIXME: Include the comments suggested by Paul. */
7653 #ifndef __cplusplus
7654 /* Ultrix mips cc rejects this. */
7655 typedef int charset[2];
7656 const charset x;
7657 /* SunOS 4.1.1 cc rejects this. */
7658 char const *const *ccp;
7659 char **p;
7660 /* NEC SVR4.0.2 mips cc rejects this. */
7661 struct point {int x, y;};
7662 static struct point const zero = {0,0};
7663 /* AIX XL C 1.02.0.0 rejects this.
7664 It does not let you subtract one const X* pointer from another in
7665 an arm of an if-expression whose if-part is not a constant
7666 expression */
7667 const char *g = "string";
7668 ccp = &g + (g ? g-g : 0);
7669 /* HPUX 7.0 cc rejects these. */
7670 ++ccp;
7671 p = (char**) ccp;
7672 ccp = (char const *const *) p;
7673 { /* SCO 3.2v4 cc rejects this. */
7674 char *t;
7675 char const *s = 0 ? (char *) 0 : (char const *) 0;
7676
7677 *t++ = 0;
7678 }
7679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7680 int x[] = {25, 17};
7681 const int *foo = &x[0];
7682 ++foo;
7683 }
7684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7685 typedef const int *iptr;
7686 iptr p = 0;
7687 ++p;
7688 }
7689 { /* AIX XL C 1.02.0.0 rejects this saying
7690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7691 struct s { int j; const int *ap[3]; };
7692 struct s *b; b->j = 5;
7693 }
7694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7695 const int foo = 10;
7696 }
7697 #endif
7698
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_cv_c_const=yes
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 ac_cv_c_const=no
7731 fi
7732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7735 echo "${ECHO_T}$ac_cv_c_const" >&6
7736 if test $ac_cv_c_const = no; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define const
7740 _ACEOF
7741
7742 fi
7743
7744 echo "$as_me:$LINENO: checking for void * support" >&5
7745 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7746 if test "${emacs_cv_void_star+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755
7756 int
7757 main ()
7758 {
7759 void * foo;
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 emacs_cv_void_star=yes
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 emacs_cv_void_star=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7796 echo "${ECHO_T}$emacs_cv_void_star" >&6
7797 if test $emacs_cv_void_star = yes; then
7798 cat >>confdefs.h <<\_ACEOF
7799 #define POINTER_TYPE void
7800 _ACEOF
7801
7802 else
7803 cat >>confdefs.h <<\_ACEOF
7804 #define POINTER_TYPE char
7805 _ACEOF
7806
7807 fi
7808
7809
7810
7811
7812
7813 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7815 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7816 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 cat >conftest.make <<\_ACEOF
7820 all:
7821 @echo 'ac_maketemp="$(MAKE)"'
7822 _ACEOF
7823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7824 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7825 if test -n "$ac_maketemp"; then
7826 eval ac_cv_prog_make_${ac_make}_set=yes
7827 else
7828 eval ac_cv_prog_make_${ac_make}_set=no
7829 fi
7830 rm -f conftest.make
7831 fi
7832 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7833 echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835 SET_MAKE=
7836 else
7837 echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6
7839 SET_MAKE="MAKE=${MAKE-make}"
7840 fi
7841
7842
7843 echo "$as_me:$LINENO: checking for long file names" >&5
7844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7845 if test "${ac_cv_sys_long_file_names+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 ac_cv_sys_long_file_names=yes
7849 # Test for long file names in all the places we know might matter:
7850 # . the current directory, where building will happen
7851 # $prefix/lib where we will be installing things
7852 # $exec_prefix/lib likewise
7853 # eval it to expand exec_prefix.
7854 # $TMPDIR if set, where it might want to write temporary files
7855 # if $TMPDIR is not set:
7856 # /tmp where it might want to write temporary files
7857 # /var/tmp likewise
7858 # /usr/tmp likewise
7859 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7860 ac_tmpdirs=$TMPDIR
7861 else
7862 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7863 fi
7864 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7865 test -d $ac_dir || continue
7866 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7867 ac_xdir=$ac_dir/cf$$
7868 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7869 ac_tf1=$ac_xdir/conftest9012345
7870 ac_tf2=$ac_xdir/conftest9012346
7871 (echo 1 >$ac_tf1) 2>/dev/null
7872 (echo 2 >$ac_tf2) 2>/dev/null
7873 ac_val=`cat $ac_tf1 2>/dev/null`
7874 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7875 ac_cv_sys_long_file_names=no
7876 rm -rf $ac_xdir 2>/dev/null
7877 break
7878 fi
7879 rm -rf $ac_xdir 2>/dev/null
7880 done
7881 fi
7882 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7883 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7884 if test $ac_cv_sys_long_file_names = yes; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LONG_FILE_NAMES 1
7888 _ACEOF
7889
7890 fi
7891
7892
7893 #### Choose a window system.
7894
7895 echo "$as_me:$LINENO: checking for X" >&5
7896 echo $ECHO_N "checking for X... $ECHO_C" >&6
7897
7898
7899 # Check whether --with-x or --without-x was given.
7900 if test "${with_x+set}" = set; then
7901 withval="$with_x"
7902
7903 fi;
7904 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7905 if test "x$with_x" = xno; then
7906 # The user explicitly disabled X.
7907 have_x=disabled
7908 else
7909 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7910 # Both variables are already set.
7911 have_x=yes
7912 else
7913 if test "${ac_cv_have_x+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 # One or both of the vars are not set, and there is no cached value.
7917 ac_x_includes=no ac_x_libraries=no
7918 rm -fr conftest.dir
7919 if mkdir conftest.dir; then
7920 cd conftest.dir
7921 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7922 cat >Imakefile <<'_ACEOF'
7923 acfindx:
7924 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7925 _ACEOF
7926 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7928 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7929 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7930 for ac_extension in a so sl; do
7931 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7932 test -f $ac_im_libdir/libX11.$ac_extension; then
7933 ac_im_usrlibdir=$ac_im_libdir; break
7934 fi
7935 done
7936 # Screen out bogus values from the imake configuration. They are
7937 # bogus both because they are the default anyway, and because
7938 # using them would break gcc on systems where it needs fixed includes.
7939 case $ac_im_incroot in
7940 /usr/include) ;;
7941 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7942 esac
7943 case $ac_im_usrlibdir in
7944 /usr/lib | /lib) ;;
7945 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7946 esac
7947 fi
7948 cd ..
7949 rm -fr conftest.dir
7950 fi
7951
7952 # Standard set of common directories for X headers.
7953 # Check X11 before X11Rn because it is often a symlink to the current release.
7954 ac_x_header_dirs='
7955 /usr/X11/include
7956 /usr/X11R6/include
7957 /usr/X11R5/include
7958 /usr/X11R4/include
7959
7960 /usr/include/X11
7961 /usr/include/X11R6
7962 /usr/include/X11R5
7963 /usr/include/X11R4
7964
7965 /usr/local/X11/include
7966 /usr/local/X11R6/include
7967 /usr/local/X11R5/include
7968 /usr/local/X11R4/include
7969
7970 /usr/local/include/X11
7971 /usr/local/include/X11R6
7972 /usr/local/include/X11R5
7973 /usr/local/include/X11R4
7974
7975 /usr/X386/include
7976 /usr/x386/include
7977 /usr/XFree86/include/X11
7978
7979 /usr/include
7980 /usr/local/include
7981 /usr/unsupported/include
7982 /usr/athena/include
7983 /usr/local/x11r5/include
7984 /usr/lpp/Xamples/include
7985
7986 /usr/openwin/include
7987 /usr/openwin/share/include'
7988
7989 if test "$ac_x_includes" = no; then
7990 # Guess where to find include files, by looking for Intrinsic.h.
7991 # First, try using that file with no special directory specified.
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <X11/Intrinsic.h>
7999 _ACEOF
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8011 else
8012 ac_cpp_err=
8013 fi
8014 else
8015 ac_cpp_err=yes
8016 fi
8017 if test -z "$ac_cpp_err"; then
8018 # We can compile using X headers with no special include directory.
8019 ac_x_includes=
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 for ac_dir in $ac_x_header_dirs; do
8025 if test -r "$ac_dir/X11/Intrinsic.h"; then
8026 ac_x_includes=$ac_dir
8027 break
8028 fi
8029 done
8030 fi
8031 rm -f conftest.err conftest.$ac_ext
8032 fi # $ac_x_includes = no
8033
8034 if test "$ac_x_libraries" = no; then
8035 # Check for the libraries.
8036 # See if we find them without any special options.
8037 # Don't add to $LIBS permanently.
8038 ac_save_LIBS=$LIBS
8039 LIBS="-lXt $LIBS"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <X11/Intrinsic.h>
8047 int
8048 main ()
8049 {
8050 XtMalloc (0)
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 LIBS=$ac_save_LIBS
8078 # We can link X programs with no special library path.
8079 ac_x_libraries=
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 LIBS=$ac_save_LIBS
8085 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8086 do
8087 # Don't even attempt the hair of trying to link an X program!
8088 for ac_extension in a so sl; do
8089 if test -r $ac_dir/libXt.$ac_extension; then
8090 ac_x_libraries=$ac_dir
8091 break 2
8092 fi
8093 done
8094 done
8095 fi
8096 rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8098 fi # $ac_x_libraries = no
8099
8100 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8101 # Didn't find X anywhere. Cache the known absence of X.
8102 ac_cv_have_x="have_x=no"
8103 else
8104 # Record where we found X for the cache.
8105 ac_cv_have_x="have_x=yes \
8106 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8107 fi
8108 fi
8109
8110 fi
8111 eval "$ac_cv_have_x"
8112 fi # $with_x != no
8113
8114 if test "$have_x" != yes; then
8115 echo "$as_me:$LINENO: result: $have_x" >&5
8116 echo "${ECHO_T}$have_x" >&6
8117 no_x=yes
8118 else
8119 # If each of the values was on the command line, it overrides each guess.
8120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8122 # Update the cache value to reflect the command line values.
8123 ac_cv_have_x="have_x=yes \
8124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8125 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8126 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8127 fi
8128
8129 if test "$no_x" = yes; then
8130 window_system=none
8131 else
8132 window_system=x11
8133 fi
8134
8135 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8136 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8137 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8138 x_default_search_path=""
8139 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8140 x_search_path="\
8141 ${x_library}/X11/%L/%T/%N%C%S:\
8142 ${x_library}/X11/%l/%T/%N%C%S:\
8143 ${x_library}/X11/%T/%N%C%S:\
8144 ${x_library}/X11/%L/%T/%N%S:\
8145 ${x_library}/X11/%l/%T/%N%S:\
8146 ${x_library}/X11/%T/%N%S"
8147 if test x"${x_default_search_path}" = x; then
8148 x_default_search_path=${x_search_path}
8149 else
8150 x_default_search_path="${x_search_path}:${x_default_search_path}"
8151 fi
8152 done
8153 fi
8154 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8155 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8156 fi
8157
8158 if test x"${x_includes}" = x; then
8159 bitmapdir=/usr/include/X11/bitmaps
8160 else
8161 # accumulate include directories that have X11 bitmap subdirectories
8162 bmd_acc="dummyval"
8163 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8164 if test -d "${bmd}/X11/bitmaps"; then
8165 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8166 fi
8167 if test -d "${bmd}/bitmaps"; then
8168 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8169 fi
8170 done
8171 if test ${bmd_acc} != "dummyval"; then
8172 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8173 fi
8174 fi
8175
8176 case "${window_system}" in
8177 x11 )
8178 HAVE_X_WINDOWS=yes
8179 HAVE_X11=yes
8180 case "${with_x_toolkit}" in
8181 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8182 motif ) USE_X_TOOLKIT=MOTIF ;;
8183 gtk ) with_gtk=yes
8184 USE_X_TOOLKIT=none ;;
8185 no ) USE_X_TOOLKIT=none ;;
8186 * ) USE_X_TOOLKIT=maybe ;;
8187 esac
8188 ;;
8189 none )
8190 HAVE_X_WINDOWS=no
8191 HAVE_X11=no
8192 USE_X_TOOLKIT=none
8193 ;;
8194 esac
8195
8196 ### If we're using X11, we should use the X menu package.
8197 HAVE_MENUS=no
8198 case ${HAVE_X11} in
8199 yes ) HAVE_MENUS=yes ;;
8200 esac
8201
8202 if test "${opsys}" = "hpux9"; then
8203 case "${x_libraries}" in
8204 *X11R4* )
8205 opsysfile="s/hpux9-x11r4.h"
8206 ;;
8207 esac
8208 fi
8209
8210 if test "${opsys}" = "hpux9shr"; then
8211 case "${x_libraries}" in
8212 *X11R4* )
8213 opsysfile="s/hpux9shxr4.h"
8214 ;;
8215 esac
8216 fi
8217
8218 ### Compute the unexec source name from the object name.
8219 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8220
8221 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8222 # Assume not, until told otherwise.
8223 GNU_MALLOC=yes
8224 doug_lea_malloc=yes
8225 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8226 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8227 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8238 #define malloc_get_state innocuous_malloc_get_state
8239
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char malloc_get_state (); below.
8242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243 <limits.h> exists even on freestanding compilers. */
8244
8245 #ifdef __STDC__
8246 # include <limits.h>
8247 #else
8248 # include <assert.h>
8249 #endif
8250
8251 #undef malloc_get_state
8252
8253 /* Override any gcc2 internal prototype to avoid an error. */
8254 #ifdef __cplusplus
8255 extern "C"
8256 {
8257 #endif
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8260 char malloc_get_state ();
8261 /* The GNU C library defines this for functions which it implements
8262 to always fail with ENOSYS. Some functions are actually named
8263 something starting with __ and the normal name is an alias. */
8264 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8265 choke me
8266 #else
8267 char (*f) () = malloc_get_state;
8268 #endif
8269 #ifdef __cplusplus
8270 }
8271 #endif
8272
8273 int
8274 main ()
8275 {
8276 return f != malloc_get_state;
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_func_malloc_get_state=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_cv_func_malloc_get_state=no
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 fi
8313 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8314 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8315 if test $ac_cv_func_malloc_get_state = yes; then
8316 :
8317 else
8318 doug_lea_malloc=no
8319 fi
8320
8321 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8322 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8323 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8334 #define malloc_set_state innocuous_malloc_set_state
8335
8336 /* System header to define __stub macros and hopefully few prototypes,
8337 which can conflict with char malloc_set_state (); below.
8338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8339 <limits.h> exists even on freestanding compilers. */
8340
8341 #ifdef __STDC__
8342 # include <limits.h>
8343 #else
8344 # include <assert.h>
8345 #endif
8346
8347 #undef malloc_set_state
8348
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 #ifdef __cplusplus
8351 extern "C"
8352 {
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8356 char malloc_set_state ();
8357 /* The GNU C library defines this for functions which it implements
8358 to always fail with ENOSYS. Some functions are actually named
8359 something starting with __ and the normal name is an alias. */
8360 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8361 choke me
8362 #else
8363 char (*f) () = malloc_set_state;
8364 #endif
8365 #ifdef __cplusplus
8366 }
8367 #endif
8368
8369 int
8370 main ()
8371 {
8372 return f != malloc_set_state;
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_func_malloc_set_state=yes
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_cv_func_malloc_set_state=no
8405 fi
8406 rm -f conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408 fi
8409 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8410 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8411 if test $ac_cv_func_malloc_set_state = yes; then
8412 :
8413 else
8414 doug_lea_malloc=no
8415 fi
8416
8417 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8418 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8419 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 extern void (* __after_morecore_hook)();
8429 int
8430 main ()
8431 {
8432 __after_morecore_hook = 0
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 emacs_cv_var___after_morecore_hook=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 emacs_cv_var___after_morecore_hook=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 fi
8469 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8470 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8471 if test $emacs_cv_var___after_morecore_hook = no; then
8472 doug_lea_malloc=no
8473 fi
8474 if test "${system_malloc}" = "yes"; then
8475 GNU_MALLOC=no
8476 GNU_MALLOC_reason="
8477 (The GNU allocators don't work with this system configuration.)"
8478 fi
8479 if test "$doug_lea_malloc" = "yes" ; then
8480 if test "$GNU_MALLOC" = yes ; then
8481 GNU_MALLOC_reason="
8482 (Using Doug Lea's new malloc from the GNU C Library.)"
8483 fi
8484
8485 cat >>confdefs.h <<\_ACEOF
8486 #define DOUG_LEA_MALLOC 1
8487 _ACEOF
8488
8489 fi
8490
8491 if test x"${REL_ALLOC}" = x; then
8492 REL_ALLOC=${GNU_MALLOC}
8493 fi
8494
8495
8496
8497
8498 for ac_header in stdlib.h unistd.h
8499 do
8500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 fi
8507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8509 else
8510 # Is the header compilable?
8511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #include <$ac_header>
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest.$ac_objext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_header_compiler=yes
8545 else
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_header_compiler=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8553 echo "${ECHO_T}$ac_header_compiler" >&6
8554
8555 # Is the header present?
8556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <$ac_header>
8565 _ACEOF
8566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev/null; then
8574 if test -s conftest.err; then
8575 ac_cpp_err=$ac_c_preproc_warn_flag
8576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8577 else
8578 ac_cpp_err=
8579 fi
8580 else
8581 ac_cpp_err=yes
8582 fi
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ac_header_preproc=no
8590 fi
8591 rm -f conftest.err conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8593 echo "${ECHO_T}$ac_header_preproc" >&6
8594
8595 # So? What about this header?
8596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8597 yes:no: )
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8602 ac_header_preproc=yes
8603 ;;
8604 no:yes:* )
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8617 (
8618 cat <<\_ASBOX
8619 ## ------------------------------------------ ##
8620 ## Report this to the AC_PACKAGE_NAME lists. ##
8621 ## ------------------------------------------ ##
8622 _ASBOX
8623 ) |
8624 sed "s/^/$as_me: WARNING: /" >&2
8625 ;;
8626 esac
8627 echo "$as_me:$LINENO: checking for $ac_header" >&5
8628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 eval "$as_ac_Header=\$ac_header_preproc"
8633 fi
8634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8636
8637 fi
8638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 _ACEOF
8642
8643 fi
8644
8645 done
8646
8647
8648 for ac_func in getpagesize
8649 do
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8664 #define $ac_func innocuous_$ac_func
8665
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char $ac_func (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8670
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8676
8677 #undef $ac_func
8678
8679 /* Override any gcc2 internal prototype to avoid an error. */
8680 #ifdef __cplusplus
8681 extern "C"
8682 {
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char $ac_func ();
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 char (*f) () = $ac_func;
8694 #endif
8695 #ifdef __cplusplus
8696 }
8697 #endif
8698
8699 int
8700 main ()
8701 {
8702 return f != $ac_func;
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 eval "$as_ac_var=no"
8735 fi
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738 fi
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742 cat >>confdefs.h <<_ACEOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744 _ACEOF
8745
8746 fi
8747 done
8748
8749 echo "$as_me:$LINENO: checking for working mmap" >&5
8750 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8751 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test "$cross_compiling" = yes; then
8755 ac_cv_func_mmap_fixed_mapped=no
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h. */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 $ac_includes_default
8764 /* malloc might have been renamed as rpl_malloc. */
8765 #undef malloc
8766
8767 /* Thanks to Mike Haertel and Jim Avera for this test.
8768 Here is a matrix of mmap possibilities:
8769 mmap private not fixed
8770 mmap private fixed at somewhere currently unmapped
8771 mmap private fixed at somewhere already mapped
8772 mmap shared not fixed
8773 mmap shared fixed at somewhere currently unmapped
8774 mmap shared fixed at somewhere already mapped
8775 For private mappings, we should verify that changes cannot be read()
8776 back from the file, nor mmap's back from the file at a different
8777 address. (There have been systems where private was not correctly
8778 implemented like the infamous i386 svr4.0, and systems where the
8779 VM page cache was not coherent with the file system buffer cache
8780 like early versions of FreeBSD and possibly contemporary NetBSD.)
8781 For shared mappings, we should conversely verify that changes get
8782 propagated back to all the places they're supposed to be.
8783
8784 Grep wants private fixed already mapped.
8785 The main things grep needs to know about mmap are:
8786 * does it exist and is it safe to write into the mmap'd area
8787 * how to use it (BSD variants) */
8788
8789 #include <fcntl.h>
8790 #include <sys/mman.h>
8791
8792 #if !STDC_HEADERS && !HAVE_STDLIB_H
8793 char *malloc ();
8794 #endif
8795
8796 /* This mess was copied from the GNU getpagesize.h. */
8797 #if !HAVE_GETPAGESIZE
8798 /* Assume that all systems that can run configure have sys/param.h. */
8799 # if !HAVE_SYS_PARAM_H
8800 # define HAVE_SYS_PARAM_H 1
8801 # endif
8802
8803 # ifdef _SC_PAGESIZE
8804 # define getpagesize() sysconf(_SC_PAGESIZE)
8805 # else /* no _SC_PAGESIZE */
8806 # if HAVE_SYS_PARAM_H
8807 # include <sys/param.h>
8808 # ifdef EXEC_PAGESIZE
8809 # define getpagesize() EXEC_PAGESIZE
8810 # else /* no EXEC_PAGESIZE */
8811 # ifdef NBPG
8812 # define getpagesize() NBPG * CLSIZE
8813 # ifndef CLSIZE
8814 # define CLSIZE 1
8815 # endif /* no CLSIZE */
8816 # else /* no NBPG */
8817 # ifdef NBPC
8818 # define getpagesize() NBPC
8819 # else /* no NBPC */
8820 # ifdef PAGESIZE
8821 # define getpagesize() PAGESIZE
8822 # endif /* PAGESIZE */
8823 # endif /* no NBPC */
8824 # endif /* no NBPG */
8825 # endif /* no EXEC_PAGESIZE */
8826 # else /* no HAVE_SYS_PARAM_H */
8827 # define getpagesize() 8192 /* punt totally */
8828 # endif /* no HAVE_SYS_PARAM_H */
8829 # endif /* no _SC_PAGESIZE */
8830
8831 #endif /* no HAVE_GETPAGESIZE */
8832
8833 int
8834 main ()
8835 {
8836 char *data, *data2, *data3;
8837 int i, pagesize;
8838 int fd;
8839
8840 pagesize = getpagesize ();
8841
8842 /* First, make a file with some known garbage in it. */
8843 data = (char *) malloc (pagesize);
8844 if (!data)
8845 exit (1);
8846 for (i = 0; i < pagesize; ++i)
8847 *(data + i) = rand ();
8848 umask (0);
8849 fd = creat ("conftest.mmap", 0600);
8850 if (fd < 0)
8851 exit (1);
8852 if (write (fd, data, pagesize) != pagesize)
8853 exit (1);
8854 close (fd);
8855
8856 /* Next, try to mmap the file at a fixed address which already has
8857 something else allocated at it. If we can, also make sure that
8858 we see the same garbage. */
8859 fd = open ("conftest.mmap", O_RDWR);
8860 if (fd < 0)
8861 exit (1);
8862 data2 = (char *) malloc (2 * pagesize);
8863 if (!data2)
8864 exit (1);
8865 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8868 exit (1);
8869 for (i = 0; i < pagesize; ++i)
8870 if (*(data + i) != *(data2 + i))
8871 exit (1);
8872
8873 /* Finally, make sure that changes to the mapped area do not
8874 percolate back to the file as seen by read(). (This is a bug on
8875 some variants of i386 svr4.0.) */
8876 for (i = 0; i < pagesize; ++i)
8877 *(data2 + i) = *(data2 + i) + 1;
8878 data3 = (char *) malloc (pagesize);
8879 if (!data3)
8880 exit (1);
8881 if (read (fd, data3, pagesize) != pagesize)
8882 exit (1);
8883 for (i = 0; i < pagesize; ++i)
8884 if (*(data + i) != *(data3 + i))
8885 exit (1);
8886 close (fd);
8887 exit (0);
8888 }
8889 _ACEOF
8890 rm -f conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_func_mmap_fixed_mapped=yes
8902 else
8903 echo "$as_me: program exited with status $ac_status" >&5
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ( exit $ac_status )
8908 ac_cv_func_mmap_fixed_mapped=no
8909 fi
8910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 fi
8913 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8914 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_MMAP 1
8919 _ACEOF
8920
8921 fi
8922 rm -f conftest.mmap
8923
8924 if test $use_mmap_for_buffers = yes; then
8925 REL_ALLOC=no
8926 fi
8927
8928 LIBS="$libsrc_libs $LIBS"
8929
8930
8931 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8932 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8933 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 ac_check_lib_save_LIBS=$LIBS
8937 LIBS="-ldnet $LIBS"
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944
8945 /* Override any gcc2 internal prototype to avoid an error. */
8946 #ifdef __cplusplus
8947 extern "C"
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8951 char dnet_ntoa ();
8952 int
8953 main ()
8954 {
8955 dnet_ntoa ();
8956 ;
8957 return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_lib_dnet_dnet_ntoa=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_lib_dnet_dnet_ntoa=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8994 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8995 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8996 cat >>confdefs.h <<_ACEOF
8997 #define HAVE_LIBDNET 1
8998 _ACEOF
8999
9000 LIBS="-ldnet $LIBS"
9001
9002 fi
9003
9004
9005 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9006 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9007 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 ac_check_lib_save_LIBS=$LIBS
9011 LIBS="-lXbsd $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018
9019
9020 int
9021 main ()
9022 {
9023 main ();
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_lib_Xbsd_main=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_cv_lib_Xbsd_main=no
9056 fi
9057 rm -f conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 LIBS=$ac_check_lib_save_LIBS
9060 fi
9061 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9062 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9063 if test $ac_cv_lib_Xbsd_main = yes; then
9064 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9065 fi
9066
9067
9068
9069 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9070 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9071 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lpthreads $LIBS"
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h. */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 /* We use char because int might match the return type of a gcc2
9088 builtin and then its argument prototype would still apply. */
9089 char cma_open ();
9090 int
9091 main ()
9092 {
9093 cma_open ();
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest$ac_exeext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_lib_pthreads_cma_open=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 ac_cv_lib_pthreads_cma_open=no
9126 fi
9127 rm -f conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS=$ac_check_lib_save_LIBS
9130 fi
9131 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9133 if test $ac_cv_lib_pthreads_cma_open = yes; then
9134 cat >>confdefs.h <<_ACEOF
9135 #define HAVE_LIBPTHREADS 1
9136 _ACEOF
9137
9138 LIBS="-lpthreads $LIBS"
9139
9140 fi
9141
9142
9143 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9144 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9145 if test -d /usr/X386/include; then
9146 HAVE_XFREE386=yes
9147 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9148 else
9149 HAVE_XFREE386=no
9150 fi
9151 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9152 echo "${ECHO_T}$HAVE_XFREE386" >&6
9153
9154
9155 case ${host_os} in
9156 aix*)
9157 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9158 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9159 if test "${gdb_cv_bigtoc+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162
9163 case $GCC in
9164 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9165 *) gdb_cv_bigtoc=-bbigtoc ;;
9166 esac
9167
9168 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175
9176 int
9177 main ()
9178 {
9179 int i;
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag"
9194 || test ! -s conftest.err'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; } &&
9200 { ac_try='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 :
9207 else
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 gdb_cv_bigtoc=
9212 fi
9213 rm -f conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215
9216 fi
9217 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9218 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9219 ;;
9220 esac
9221
9222 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9223 # used for the tests that follow. We set them back to REAL_CFLAGS and
9224 # REAL_CPPFLAGS later on.
9225
9226 REAL_CPPFLAGS="$CPPFLAGS"
9227
9228 if test "${HAVE_X11}" = "yes"; then
9229 DEFS="$C_SWITCH_X_SITE $DEFS"
9230 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9231 LIBS="$LIBX $LIBS"
9232 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9233 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9234
9235 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9236 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9237 # but it's more convenient here to set LD_RUN_PATH
9238 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9239 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9240 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9241 export LD_RUN_PATH
9242 fi
9243
9244 if test "${opsys}" = "gnu-linux"; then
9245 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9246 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h. */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253
9254 int
9255 main ()
9256 {
9257 XOpenDisplay ("foo");
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 xlinux_first_failure=no
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 xlinux_first_failure=yes
9290 fi
9291 rm -f conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 if test "${xlinux_first_failure}" = "yes"; then
9294 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9295 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9296 OLD_CPPFLAGS="$CPPFLAGS"
9297 OLD_LIBS="$LIBS"
9298 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9299 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9300 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9301 LIBS="$LIBS -b i486-linuxaout"
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308
9309 int
9310 main ()
9311 {
9312 XOpenDisplay ("foo");
9313 ;
9314 return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 xlinux_second_failure=no
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 xlinux_second_failure=yes
9345 fi
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 if test "${xlinux_second_failure}" = "yes"; then
9349 # If we get the same failure with -b, there is no use adding -b.
9350 # So take it out. This plays safe.
9351 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9352 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9353 CPPFLAGS="$OLD_CPPFLAGS"
9354 LIBS="$OLD_LIBS"
9355 echo "$as_me:$LINENO: result: no" >&5
9356 echo "${ECHO_T}no" >&6
9357 else
9358 echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360 fi
9361 else
9362 echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9364 fi
9365 fi
9366
9367 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9368 # header files included from there.
9369 echo "$as_me:$LINENO: checking for Xkb" >&5
9370 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 #include <X11/Xlib.h>
9378 #include <X11/XKBlib.h>
9379 int
9380 main ()
9381 {
9382 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -z "$ac_c_werror_flag"
9397 || test ! -s conftest.err'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 emacs_xkb=yes
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 emacs_xkb=no
9415 fi
9416 rm -f conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9419 echo "${ECHO_T}$emacs_xkb" >&6
9420 if test $emacs_xkb = yes; then
9421
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_XKBGETKEYBOARD 1
9424 _ACEOF
9425
9426 fi
9427
9428
9429
9430
9431
9432 for ac_func in XrmSetDatabase XScreenResourceString \
9433 XScreenNumberOfScreen XSetWMProtocols
9434 do
9435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436 echo "$as_me:$LINENO: checking for $ac_func" >&5
9437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9438 if eval "test \"\${$as_ac_var+set}\" = set"; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9449 #define $ac_func innocuous_$ac_func
9450
9451 /* System header to define __stub macros and hopefully few prototypes,
9452 which can conflict with char $ac_func (); below.
9453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454 <limits.h> exists even on freestanding compilers. */
9455
9456 #ifdef __STDC__
9457 # include <limits.h>
9458 #else
9459 # include <assert.h>
9460 #endif
9461
9462 #undef $ac_func
9463
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 #ifdef __cplusplus
9466 extern "C"
9467 {
9468 #endif
9469 /* We use char because int might match the return type of a gcc2
9470 builtin and then its argument prototype would still apply. */
9471 char $ac_func ();
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9476 choke me
9477 #else
9478 char (*f) () = $ac_func;
9479 #endif
9480 #ifdef __cplusplus
9481 }
9482 #endif
9483
9484 int
9485 main ()
9486 {
9487 return f != $ac_func;
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 eval "$as_ac_var=yes"
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 eval "$as_ac_var=no"
9520 fi
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 fi
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9526 if test `eval echo '${'$as_ac_var'}'` = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529 _ACEOF
9530
9531 fi
9532 done
9533
9534 fi
9535
9536 if test "${window_system}" = "x11"; then
9537 echo "$as_me:$LINENO: checking X11 version 6" >&5
9538 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9539 if test "${emacs_cv_x11_version_6+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h. */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 #include <X11/Xlib.h>
9549 int
9550 main ()
9551 {
9552 #if XlibSpecificationRelease < 6
9553 fail;
9554 #endif
9555
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 emacs_cv_x11_version_6=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 emacs_cv_x11_version_6=no
9588 fi
9589 rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 fi
9592
9593 if test $emacs_cv_x11_version_6 = yes; then
9594 echo "$as_me:$LINENO: result: 6 or newer" >&5
9595 echo "${ECHO_T}6 or newer" >&6
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_X11R6 1
9599 _ACEOF
9600
9601 else
9602 echo "$as_me:$LINENO: result: before 6" >&5
9603 echo "${ECHO_T}before 6" >&6
9604 fi
9605 fi
9606
9607 if test "${window_system}" = "x11"; then
9608 echo "$as_me:$LINENO: checking X11 version 5" >&5
9609 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9610 if test "${emacs_cv_x11_version_5+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 #include <X11/Xlib.h>
9620 int
9621 main ()
9622 {
9623 #if XlibSpecificationRelease < 5
9624 fail;
9625 #endif
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 emacs_cv_x11_version_5=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 emacs_cv_x11_version_5=no
9659 fi
9660 rm -f conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 fi
9663
9664 if test $emacs_cv_x11_version_5 = yes; then
9665 echo "$as_me:$LINENO: result: 5 or newer" >&5
9666 echo "${ECHO_T}5 or newer" >&6
9667 HAVE_X11R5=yes
9668
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_X11R5 1
9671 _ACEOF
9672
9673 else
9674 HAVE_X11R5=no
9675 echo "$as_me:$LINENO: result: before 5" >&5
9676 echo "${ECHO_T}before 5" >&6
9677 fi
9678 fi
9679
9680
9681
9682 HAVE_GTK=no
9683 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9684 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9685 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9686 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9687 { (exit 1); exit 1; }; };
9688 fi
9689 GLIB_REQUIRED=2.0.1
9690 GTK_REQUIRED=2.0.1
9691 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9692
9693 if test "X${with_pkg_config_prog}" != X; then
9694 PKG_CONFIG="${with_pkg_config_prog}"
9695 fi
9696
9697 succeeded=no
9698
9699 if test -z "$PKG_CONFIG"; then
9700 # Extract the first word of "pkg-config", so it can be a program name with args.
9701 set dummy pkg-config; ac_word=$2
9702 echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9704 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 case $PKG_CONFIG in
9708 [\\/]* | ?:[\\/]*)
9709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9710 ;;
9711 *)
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725
9726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9727 ;;
9728 esac
9729 fi
9730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9731
9732 if test -n "$PKG_CONFIG"; then
9733 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9734 echo "${ECHO_T}$PKG_CONFIG" >&6
9735 else
9736 echo "$as_me:$LINENO: result: no" >&5
9737 echo "${ECHO_T}no" >&6
9738 fi
9739
9740 fi
9741
9742 if test "$PKG_CONFIG" = "no" ; then
9743 echo "*** The pkg-config script could not be found. Make sure it is"
9744 echo "*** in your path, or give the full path to pkg-config with"
9745 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9746 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9747 else
9748 PKG_CONFIG_MIN_VERSION=0.9.0
9749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9750 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9751 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9752
9753 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755 echo "${ECHO_T}yes" >&6
9756 succeeded=yes
9757
9758 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9759 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9760 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9761 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9762 echo "${ECHO_T}$GTK_CFLAGS" >&6
9763
9764 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9765 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9766 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9767 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9768 echo "${ECHO_T}$GTK_LIBS" >&6
9769 else
9770 GTK_CFLAGS=""
9771 GTK_LIBS=""
9772 ## If we have a custom action on failure, don't print errors, but
9773 ## do set a variable so people can do so.
9774 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9775 echo $GTK_PKG_ERRORS
9776 fi
9777
9778
9779
9780 else
9781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9783 fi
9784 fi
9785
9786 if test $succeeded = yes; then
9787 :
9788 else
9789 { { 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
9790 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;}
9791 { (exit 1); exit 1; }; }
9792 fi
9793
9794
9795
9796 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9797 CFLAGS="$CFLAGS $GTK_CFLAGS"
9798 LIBS="$GTK_LIBS $LIBS"
9799 HAVE_GTK=yes
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_GTK 1
9803 _ACEOF
9804
9805 USE_X_TOOLKIT=none
9806
9807 if test "$with_toolkit_scroll_bars" != no; then
9808 with_toolkit_scroll_bars=yes
9809 fi
9810
9811 HAVE_GTK_MULTIDISPLAY=no
9812
9813 for ac_func in gdk_display_open
9814 do
9815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9816 echo "$as_me:$LINENO: checking for $ac_func" >&5
9817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9818 if eval "test \"\${$as_ac_var+set}\" = set"; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9829 #define $ac_func innocuous_$ac_func
9830
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char $ac_func (); below.
9833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 <limits.h> exists even on freestanding compilers. */
9835
9836 #ifdef __STDC__
9837 # include <limits.h>
9838 #else
9839 # include <assert.h>
9840 #endif
9841
9842 #undef $ac_func
9843
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 {
9848 #endif
9849 /* We use char because int might match the return type of a gcc2
9850 builtin and then its argument prototype would still apply. */
9851 char $ac_func ();
9852 /* The GNU C library defines this for functions which it implements
9853 to always fail with ENOSYS. Some functions are actually named
9854 something starting with __ and the normal name is an alias. */
9855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9856 choke me
9857 #else
9858 char (*f) () = $ac_func;
9859 #endif
9860 #ifdef __cplusplus
9861 }
9862 #endif
9863
9864 int
9865 main ()
9866 {
9867 return f != $ac_func;
9868 ;
9869 return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874 (eval $ac_link) 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 eval "$as_ac_var=yes"
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899 eval "$as_ac_var=no"
9900 fi
9901 rm -f conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 fi
9904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9906 if test `eval echo '${'$as_ac_var'}'` = yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9909 _ACEOF
9910 HAVE_GTK_MULTIDISPLAY=yes
9911 fi
9912 done
9913
9914 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9915
9916 cat >>confdefs.h <<\_ACEOF
9917 #define HAVE_GTK_MULTIDISPLAY 1
9918 _ACEOF
9919
9920 fi
9921 HAVE_GTK_FILE_SELECTION=no
9922
9923 for ac_func in gtk_file_selection_new
9924 do
9925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9926 echo "$as_me:$LINENO: checking for $ac_func" >&5
9927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9928 if eval "test \"\${$as_ac_var+set}\" = set"; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9939 #define $ac_func innocuous_$ac_func
9940
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char $ac_func (); below.
9943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9944 <limits.h> exists even on freestanding compilers. */
9945
9946 #ifdef __STDC__
9947 # include <limits.h>
9948 #else
9949 # include <assert.h>
9950 #endif
9951
9952 #undef $ac_func
9953
9954 /* Override any gcc2 internal prototype to avoid an error. */
9955 #ifdef __cplusplus
9956 extern "C"
9957 {
9958 #endif
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9961 char $ac_func ();
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9966 choke me
9967 #else
9968 char (*f) () = $ac_func;
9969 #endif
9970 #ifdef __cplusplus
9971 }
9972 #endif
9973
9974 int
9975 main ()
9976 {
9977 return f != $ac_func;
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984 (eval $ac_link) 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag"
9992 || test ! -s conftest.err'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 eval "$as_ac_var=yes"
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 eval "$as_ac_var=no"
10010 fi
10011 rm -f conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 fi
10014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10016 if test `eval echo '${'$as_ac_var'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10019 _ACEOF
10020 HAVE_GTK_FILE_SELECTION=yes
10021 fi
10022 done
10023
10024
10025 HAVE_GTK_FILE_CHOOSER=no
10026
10027 for ac_func in gtk_file_chooser_dialog_new
10028 do
10029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10030 echo "$as_me:$LINENO: checking for $ac_func" >&5
10031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10032 if eval "test \"\${$as_ac_var+set}\" = set"; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043 #define $ac_func innocuous_$ac_func
10044
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char $ac_func (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10049
10050 #ifdef __STDC__
10051 # include <limits.h>
10052 #else
10053 # include <assert.h>
10054 #endif
10055
10056 #undef $ac_func
10057
10058 /* Override any gcc2 internal prototype to avoid an error. */
10059 #ifdef __cplusplus
10060 extern "C"
10061 {
10062 #endif
10063 /* We use char because int might match the return type of a gcc2
10064 builtin and then its argument prototype would still apply. */
10065 char $ac_func ();
10066 /* The GNU C library defines this for functions which it implements
10067 to always fail with ENOSYS. Some functions are actually named
10068 something starting with __ and the normal name is an alias. */
10069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10070 choke me
10071 #else
10072 char (*f) () = $ac_func;
10073 #endif
10074 #ifdef __cplusplus
10075 }
10076 #endif
10077
10078 int
10079 main ()
10080 {
10081 return f != $ac_func;
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 eval "$as_ac_var=yes"
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 eval "$as_ac_var=no"
10114 fi
10115 rm -f conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 fi
10118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10120 if test `eval echo '${'$as_ac_var'}'` = yes; then
10121 cat >>confdefs.h <<_ACEOF
10122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10123 _ACEOF
10124 HAVE_GTK_FILE_CHOOSER=yes
10125 fi
10126 done
10127
10128
10129 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10130 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10131
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_GTK_FILE_BOTH 1
10134 _ACEOF
10135
10136 fi
10137
10138 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10139 HAVE_GTK_AND_PTHREAD=no
10140
10141 for ac_header in pthread.h
10142 do
10143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10145 echo "$as_me:$LINENO: checking for $ac_header" >&5
10146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 fi
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10152 else
10153 # Is the header compilable?
10154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 #include <$ac_header>
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_header_compiler=yes
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192 ac_header_compiler=no
10193 fi
10194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196 echo "${ECHO_T}$ac_header_compiler" >&6
10197
10198 # Is the header present?
10199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <$ac_header>
10208 _ACEOF
10209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } >/dev/null; then
10217 if test -s conftest.err; then
10218 ac_cpp_err=$ac_c_preproc_warn_flag
10219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10220 else
10221 ac_cpp_err=
10222 fi
10223 else
10224 ac_cpp_err=yes
10225 fi
10226 if test -z "$ac_cpp_err"; then
10227 ac_header_preproc=yes
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_header_preproc=no
10233 fi
10234 rm -f conftest.err conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236 echo "${ECHO_T}$ac_header_preproc" >&6
10237
10238 # So? What about this header?
10239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10240 yes:no: )
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245 ac_header_preproc=yes
10246 ;;
10247 no:yes:* )
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260 (
10261 cat <<\_ASBOX
10262 ## ------------------------------------------ ##
10263 ## Report this to the AC_PACKAGE_NAME lists. ##
10264 ## ------------------------------------------ ##
10265 _ASBOX
10266 ) |
10267 sed "s/^/$as_me: WARNING: /" >&2
10268 ;;
10269 esac
10270 echo "$as_me:$LINENO: checking for $ac_header" >&5
10271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275 eval "$as_ac_Header=\$ac_header_preproc"
10276 fi
10277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10279
10280 fi
10281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 fi
10287
10288 done
10289
10290 if test "$ac_cv_header_pthread_h"; then
10291 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10292 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10293 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-lpthread $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304
10305 /* Override any gcc2 internal prototype to avoid an error. */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10311 char pthread_self ();
10312 int
10313 main ()
10314 {
10315 pthread_self ();
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_lib_pthread_pthread_self=yes
10343 else
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_lib_pthread_pthread_self=no
10348 fi
10349 rm -f conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10352 fi
10353 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10354 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10355 if test $ac_cv_lib_pthread_pthread_self = yes; then
10356 HAVE_GTK_AND_PTHREAD=yes
10357 fi
10358
10359 fi
10360 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10361 GTK_LIBS="$GTK_LIBS -lpthread"
10362
10363 cat >>confdefs.h <<\_ACEOF
10364 #define HAVE_GTK_AND_PTHREAD 1
10365 _ACEOF
10366
10367 fi
10368 fi
10369 fi
10370
10371 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10372 if test x"${HAVE_X11R5}" = xyes; then
10373 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10374 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10375 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384
10385 #include <X11/Intrinsic.h>
10386 #include <X11/Xaw/Simple.h>
10387 int
10388 main ()
10389 {
10390
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 emacs_cv_x11_version_5_with_xaw=yes
10418 else
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 emacs_cv_x11_version_5_with_xaw=no
10423 fi
10424 rm -f conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 fi
10427
10428 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10429 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10430 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10431 USE_X_TOOLKIT=LUCID
10432 else
10433 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10434 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10435 USE_X_TOOLKIT=none
10436 fi
10437 else
10438 USE_X_TOOLKIT=none
10439 fi
10440 fi
10441
10442 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10443
10444 if test "${USE_X_TOOLKIT}" != "none"; then
10445 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10446 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10447 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 #include <X11/Intrinsic.h>
10457 int
10458 main ()
10459 {
10460 #if XtSpecificationRelease < 6
10461 fail;
10462 #endif
10463
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -z "$ac_c_werror_flag"
10478 || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 emacs_cv_x11_toolkit_version_6=yes
10491 else
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 emacs_cv_x11_toolkit_version_6=no
10496 fi
10497 rm -f conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 fi
10500
10501 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10502 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10503 echo "$as_me:$LINENO: result: 6 or newer" >&5
10504 echo "${ECHO_T}6 or newer" >&6
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_X11XTR6 1
10508 _ACEOF
10509
10510 else
10511 echo "$as_me:$LINENO: result: before 6" >&5
10512 echo "${ECHO_T}before 6" >&6
10513 fi
10514
10515 OLDLIBS="$LIBS"
10516 if test x$HAVE_X11XTR6 = xyes; then
10517 LIBS="-lXt -lSM -lICE $LIBS"
10518 else
10519 LIBS="-lXt $LIBS"
10520 fi
10521
10522 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10523 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10524 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 ac_check_lib_save_LIBS=$LIBS
10528 LIBS="-lXmu $LIBS"
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535
10536 /* Override any gcc2 internal prototype to avoid an error. */
10537 #ifdef __cplusplus
10538 extern "C"
10539 #endif
10540 /* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10542 char XmuConvertStandardSelection ();
10543 int
10544 main ()
10545 {
10546 XmuConvertStandardSelection ();
10547 ;
10548 return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext conftest$ac_exeext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
10560 { ac_try='test -z "$ac_c_werror_flag"
10561 || test ! -s conftest.err'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10574 else
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10579 fi
10580 rm -f conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10585 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10586 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_LIBXMU 1
10589 _ACEOF
10590
10591 LIBS="-lXmu $LIBS"
10592
10593 fi
10594
10595 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10596 fi
10597
10598 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10599 if test "${HAVE_X11}" = "yes"; then
10600 if test "${USE_X_TOOLKIT}" != "none"; then
10601
10602 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10603 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10604 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607 ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lXext $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615
10616 /* Override any gcc2 internal prototype to avoid an error. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10622 char XShapeQueryExtension ();
10623 int
10624 main ()
10625 {
10626 XShapeQueryExtension ();
10627 ;
10628 return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_lib_Xext_XShapeQueryExtension=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 ac_cv_lib_Xext_XShapeQueryExtension=no
10659 fi
10660 rm -f conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10665 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10666 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10667 cat >>confdefs.h <<_ACEOF
10668 #define HAVE_LIBXEXT 1
10669 _ACEOF
10670
10671 LIBS="-lXext $LIBS"
10672
10673 fi
10674
10675 fi
10676 fi
10677
10678 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10679 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10680 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10681 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <Xm/Xm.h>
10691 int
10692 main ()
10693 {
10694 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10695 int x = 5;
10696 #else
10697 Motif version prior to 2.1.
10698 #endif
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 emacs_cv_motif_version_2_1=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 emacs_cv_motif_version_2_1=no
10731 fi
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10735 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10736 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10737 if test $emacs_cv_motif_version_2_1 = yes; then
10738 HAVE_LIBXP=no
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define HAVE_MOTIF_2_1 1
10742 _ACEOF
10743
10744 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10745 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10746 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-lXp $LIBS"
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757
10758 /* Override any gcc2 internal prototype to avoid an error. */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 /* We use char because int might match the return type of a gcc2
10763 builtin and then its argument prototype would still apply. */
10764 char XpCreateContext ();
10765 int
10766 main ()
10767 {
10768 XpCreateContext ();
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag"
10783 || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_Xp_XpCreateContext=yes
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800 ac_cv_lib_Xp_XpCreateContext=no
10801 fi
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10805 fi
10806 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10807 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10808 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10809 HAVE_LIBXP=yes
10810 fi
10811
10812 if test ${HAVE_LIBXP} = yes; then
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_LIBXP 1
10816 _ACEOF
10817
10818 fi
10819 else
10820 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10821 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10822 if test "${emacs_cv_lesstif+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 # We put this in CFLAGS temporarily to precede other -I options
10826 # that might be in CFLAGS temporarily.
10827 # We put this in CPPFLAGS where it precedes the other -I options.
10828 OLD_CPPFLAGS=$CPPFLAGS
10829 OLD_CFLAGS=$CFLAGS
10830 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10831 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10839 int
10840 main ()
10841 {
10842 int x = 5;
10843 ;
10844 return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_c_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 emacs_cv_lesstif=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 emacs_cv_lesstif=no
10875 fi
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877 fi
10878 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10879 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10880 if test $emacs_cv_lesstif = yes; then
10881 # Make sure this -I option remains in CPPFLAGS after it is set
10882 # back to REAL_CPPFLAGS.
10883 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10884 # have those other -I options anyway. Ultimately, having this
10885 # directory ultimately in CPPFLAGS will be enough.
10886 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10887 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10888 else
10889 CFLAGS=$OLD_CFLAGS
10890 CPPFLAGS=$OLD_CPPFLAGS
10891 fi
10892 fi
10893 fi
10894
10895 ### Is -lXaw3d available?
10896 HAVE_XAW3D=no
10897 if test "${HAVE_X11}" = "yes"; then
10898 if test "${USE_X_TOOLKIT}" != "none"; then
10899 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10900 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10901 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xaw3d/Scrollbar.h>
10911 _ACEOF
10912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923 else
10924 ac_cpp_err=
10925 fi
10926 else
10927 ac_cpp_err=yes
10928 fi
10929 if test -z "$ac_cpp_err"; then
10930 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10936 fi
10937 rm -f conftest.err conftest.$ac_ext
10938 fi
10939 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10940 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10941 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10942 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10943 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10944 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-lXaw3d $LIBS"
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char XawScrollbarSetThumb ();
10963 int
10964 main ()
10965 {
10966 XawScrollbarSetThumb ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10999 fi
11000 rm -f conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11005 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11006 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11007 HAVE_XAW3D=yes
11008 fi
11009
11010 fi
11011
11012
11013 if test "${HAVE_XAW3D}" = "yes"; then
11014
11015 cat >>confdefs.h <<\_ACEOF
11016 #define HAVE_XAW3D 1
11017 _ACEOF
11018
11019 fi
11020 fi
11021 fi
11022
11023
11024
11025 USE_TOOLKIT_SCROLL_BARS=no
11026 if test "${with_toolkit_scroll_bars}" != "no"; then
11027 if test "${USE_X_TOOLKIT}" != "none"; then
11028 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11029 cat >>confdefs.h <<\_ACEOF
11030 #define USE_TOOLKIT_SCROLL_BARS 1
11031 _ACEOF
11032
11033 HAVE_XAW3D=no
11034 USE_TOOLKIT_SCROLL_BARS=yes
11035 elif test "${HAVE_XAW3D}" = "yes"; then
11036 cat >>confdefs.h <<\_ACEOF
11037 #define USE_TOOLKIT_SCROLL_BARS 1
11038 _ACEOF
11039
11040 USE_TOOLKIT_SCROLL_BARS=yes
11041 fi
11042 elif test "${HAVE_GTK}" = "yes"; then
11043 cat >>confdefs.h <<\_ACEOF
11044 #define USE_TOOLKIT_SCROLL_BARS 1
11045 _ACEOF
11046
11047 USE_TOOLKIT_SCROLL_BARS=yes
11048 fi
11049 fi
11050
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057
11058 #include <X11/Xlib.h>
11059 #include <X11/Xresource.h>
11060 int
11061 main ()
11062 {
11063 XIMProc callback;
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11070 (eval $ac_compile) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 HAVE_XIM=yes
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_XIM 1
11094 _ACEOF
11095
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 HAVE_XIM=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103
11104
11105 if test "${with_xim}" != "no"; then
11106
11107 cat >>confdefs.h <<\_ACEOF
11108 #define USE_XIM 1
11109 _ACEOF
11110
11111 fi
11112
11113
11114 if test "${HAVE_XIM}" != "no"; then
11115 late_CFLAGS=$CFLAGS
11116 if test "$GCC" = yes; then
11117 CFLAGS="$CFLAGS --pedantic-errors"
11118 fi
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125
11126 #include <X11/Xlib.h>
11127 #include <X11/Xresource.h>
11128 int
11129 main ()
11130 {
11131 Display *display;
11132 XrmDatabase db;
11133 char *res_name;
11134 char *res_class;
11135 XIMProc callback;
11136 XPointer *client_data;
11137 #ifndef __GNUC__
11138 /* If we're not using GCC, it's probably not XFree86, and this is
11139 probably right, but we can't use something like --pedantic-errors. */
11140 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11141 char*, XIMProc, XPointer*);
11142 #endif
11143 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11144 client_data);
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 emacs_cv_arg6_star=yes
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 fi
11177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178
11179 if test "$emacs_cv_arg6_star" = yes; then
11180 cat >>confdefs.h <<\_ACEOF
11181 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11182 _ACEOF
11183
11184 else
11185 cat >>confdefs.h <<\_ACEOF
11186 #define XRegisterIMInstantiateCallback_arg6 XPointer
11187 _ACEOF
11188
11189 fi
11190 CFLAGS=$late_CFLAGS
11191 fi
11192
11193 ### Use -lXpm if available, unless `--with-xpm=no'.
11194 HAVE_XPM=no
11195 if test "${HAVE_X11}" = "yes"; then
11196 if test "${with_xpm}" != "no"; then
11197 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11198 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11199 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11200 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 fi
11203 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11204 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11205 else
11206 # Is the header compilable?
11207 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11208 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 $ac_includes_default
11216 #include <X11/xpm.h>
11217 _ACEOF
11218 rm -f conftest.$ac_objext
11219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220 (eval $ac_compile) 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag"
11228 || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler=yes
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_header_compiler=no
11246 fi
11247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 echo "${ECHO_T}$ac_header_compiler" >&6
11250
11251 # Is the header present?
11252 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11253 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <X11/xpm.h>
11261 _ACEOF
11262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev/null; then
11270 if test -s conftest.err; then
11271 ac_cpp_err=$ac_c_preproc_warn_flag
11272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273 else
11274 ac_cpp_err=
11275 fi
11276 else
11277 ac_cpp_err=yes
11278 fi
11279 if test -z "$ac_cpp_err"; then
11280 ac_header_preproc=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_header_preproc=no
11286 fi
11287 rm -f conftest.err conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6
11290
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 yes:no: )
11294 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11299 ;;
11300 no:yes:* )
11301 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11313 (
11314 cat <<\_ASBOX
11315 ## ------------------------------------------ ##
11316 ## Report this to the AC_PACKAGE_NAME lists. ##
11317 ## ------------------------------------------ ##
11318 _ASBOX
11319 ) |
11320 sed "s/^/$as_me: WARNING: /" >&2
11321 ;;
11322 esac
11323 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11324 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11325 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 ac_cv_header_X11_xpm_h=$ac_header_preproc
11329 fi
11330 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11331 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11332
11333 fi
11334 if test $ac_cv_header_X11_xpm_h = yes; then
11335 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11336 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11337 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-lXpm -lX11 $LIBS"
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348
11349 /* Override any gcc2 internal prototype to avoid an error. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355 char XpmReadFileToPixmap ();
11356 int
11357 main ()
11358 {
11359 XpmReadFileToPixmap ();
11360 ;
11361 return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11392 fi
11393 rm -f conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11398 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11399 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11400 HAVE_XPM=yes
11401 fi
11402
11403 fi
11404
11405
11406 if test "${HAVE_XPM}" = "yes"; then
11407 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11408 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 #include "X11/xpm.h"
11416 #ifndef XpmReturnAllocPixels
11417 no_return_alloc_pixels
11418 #endif
11419
11420 _ACEOF
11421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11422 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11423 HAVE_XPM=no
11424 else
11425 HAVE_XPM=yes
11426 fi
11427 rm -f conftest*
11428
11429
11430 if test "${HAVE_XPM}" = "yes"; then
11431 echo "$as_me:$LINENO: result: yes" >&5
11432 echo "${ECHO_T}yes" >&6
11433 else
11434 echo "$as_me:$LINENO: result: no" >&5
11435 echo "${ECHO_T}no" >&6
11436 fi
11437 fi
11438 fi
11439
11440 if test "${HAVE_XPM}" = "yes"; then
11441
11442 cat >>confdefs.h <<\_ACEOF
11443 #define HAVE_XPM 1
11444 _ACEOF
11445
11446 fi
11447 fi
11448
11449 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11450 HAVE_JPEG=no
11451 if test "${HAVE_X11}" = "yes"; then
11452 if test "${with_jpeg}" != "no"; then
11453 if test "${ac_cv_header_jerror_h+set}" = set; then
11454 echo "$as_me:$LINENO: checking for jerror.h" >&5
11455 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11456 if test "${ac_cv_header_jerror_h+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 fi
11459 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11460 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11461 else
11462 # Is the header compilable?
11463 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11464 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <jerror.h>
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476 (eval $ac_compile) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -z "$ac_c_werror_flag"
11484 || test ! -s conftest.err'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_header_compiler=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_header_compiler=no
11502 fi
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505 echo "${ECHO_T}$ac_header_compiler" >&6
11506
11507 # Is the header present?
11508 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11509 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include <jerror.h>
11517 _ACEOF
11518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev/null; then
11526 if test -s conftest.err; then
11527 ac_cpp_err=$ac_c_preproc_warn_flag
11528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11529 else
11530 ac_cpp_err=
11531 fi
11532 else
11533 ac_cpp_err=yes
11534 fi
11535 if test -z "$ac_cpp_err"; then
11536 ac_header_preproc=yes
11537 else
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_header_preproc=no
11542 fi
11543 rm -f conftest.err conftest.$ac_ext
11544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11545 echo "${ECHO_T}$ac_header_preproc" >&6
11546
11547 # So? What about this header?
11548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11549 yes:no: )
11550 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11551 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11553 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11554 ac_header_preproc=yes
11555 ;;
11556 no:yes:* )
11557 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11558 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11560 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11562 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11564 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11566 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11568 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11569 (
11570 cat <<\_ASBOX
11571 ## ------------------------------------------ ##
11572 ## Report this to the AC_PACKAGE_NAME lists. ##
11573 ## ------------------------------------------ ##
11574 _ASBOX
11575 ) |
11576 sed "s/^/$as_me: WARNING: /" >&2
11577 ;;
11578 esac
11579 echo "$as_me:$LINENO: checking for jerror.h" >&5
11580 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11581 if test "${ac_cv_header_jerror_h+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 ac_cv_header_jerror_h=$ac_header_preproc
11585 fi
11586 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11587 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11588
11589 fi
11590 if test $ac_cv_header_jerror_h = yes; then
11591 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11592 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11593 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-ljpeg $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604
11605 /* Override any gcc2 internal prototype to avoid an error. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 /* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11611 char jpeg_destroy_compress ();
11612 int
11613 main ()
11614 {
11615 jpeg_destroy_compress ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11648 fi
11649 rm -f conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11654 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11655 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11656 HAVE_JPEG=yes
11657 fi
11658
11659 fi
11660
11661
11662 fi
11663
11664
11665 if test "${HAVE_JPEG}" = "yes"; then
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_JPEG 1
11668 _ACEOF
11669
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h. */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 #include <jpeglib.h>
11677 version=JPEG_LIB_VERSION
11678
11679 _ACEOF
11680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11681 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_JPEG 1
11684 _ACEOF
11685
11686 else
11687 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11688 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11689 HAVE_JPEG=no
11690 fi
11691 rm -f conftest*
11692
11693 fi
11694 fi
11695
11696 ### Use -lpng if available, unless `--with-png=no'.
11697 HAVE_PNG=no
11698 if test "${HAVE_X11}" = "yes"; then
11699 if test "${with_png}" != "no"; then
11700 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11701 # in /usr/include/libpng.
11702
11703
11704 for ac_header in png.h libpng/png.h
11705 do
11706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708 echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 fi
11713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11715 else
11716 # Is the header compilable?
11717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11726 #include <$ac_header>
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag"
11738 || test ! -s conftest.err'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 ac_header_compiler=yes
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 ac_header_compiler=no
11756 fi
11757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11759 echo "${ECHO_T}$ac_header_compiler" >&6
11760
11761 # Is the header present?
11762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <$ac_header>
11771 _ACEOF
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } >/dev/null; then
11780 if test -s conftest.err; then
11781 ac_cpp_err=$ac_c_preproc_warn_flag
11782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11783 else
11784 ac_cpp_err=
11785 fi
11786 else
11787 ac_cpp_err=yes
11788 fi
11789 if test -z "$ac_cpp_err"; then
11790 ac_header_preproc=yes
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 ac_header_preproc=no
11796 fi
11797 rm -f conftest.err conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11799 echo "${ECHO_T}$ac_header_preproc" >&6
11800
11801 # So? What about this header?
11802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11803 yes:no: )
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11808 ac_header_preproc=yes
11809 ;;
11810 no:yes:* )
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11823 (
11824 cat <<\_ASBOX
11825 ## ------------------------------------------ ##
11826 ## Report this to the AC_PACKAGE_NAME lists. ##
11827 ## ------------------------------------------ ##
11828 _ASBOX
11829 ) |
11830 sed "s/^/$as_me: WARNING: /" >&2
11831 ;;
11832 esac
11833 echo "$as_me:$LINENO: checking for $ac_header" >&5
11834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 eval "$as_ac_Header=\$ac_header_preproc"
11839 fi
11840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11842
11843 fi
11844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11847 _ACEOF
11848
11849 fi
11850
11851 done
11852
11853 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11854 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11855 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11856 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lpng -lz -lm $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867
11868 /* Override any gcc2 internal prototype to avoid an error. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char png_get_channels ();
11875 int
11876 main ()
11877 {
11878 png_get_channels ();
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_lib_png_png_get_channels=yes
11906 else
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_lib_png_png_get_channels=no
11911 fi
11912 rm -f conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11917 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11918 if test $ac_cv_lib_png_png_get_channels = yes; then
11919 HAVE_PNG=yes
11920 fi
11921
11922 fi
11923 fi
11924
11925 if test "${HAVE_PNG}" = "yes"; then
11926
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_PNG 1
11929 _ACEOF
11930
11931 fi
11932 fi
11933
11934 ### Use -ltiff if available, unless `--with-tiff=no'.
11935 HAVE_TIFF=no
11936 if test "${HAVE_X11}" = "yes"; then
11937 if test "${with_tiff}" != "no"; then
11938 if test "${ac_cv_header_tiffio_h+set}" = set; then
11939 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11940 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11941 if test "${ac_cv_header_tiffio_h+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 fi
11944 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11945 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11946 else
11947 # Is the header compilable?
11948 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11949 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 $ac_includes_default
11957 #include <tiffio.h>
11958 _ACEOF
11959 rm -f conftest.$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_header_compiler=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_header_compiler=no
11987 fi
11988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11990 echo "${ECHO_T}$ac_header_compiler" >&6
11991
11992 # Is the header present?
11993 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11994 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 #include <tiffio.h>
12002 _ACEOF
12003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } >/dev/null; then
12011 if test -s conftest.err; then
12012 ac_cpp_err=$ac_c_preproc_warn_flag
12013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12014 else
12015 ac_cpp_err=
12016 fi
12017 else
12018 ac_cpp_err=yes
12019 fi
12020 if test -z "$ac_cpp_err"; then
12021 ac_header_preproc=yes
12022 else
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_header_preproc=no
12027 fi
12028 rm -f conftest.err conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12030 echo "${ECHO_T}$ac_header_preproc" >&6
12031
12032 # So? What about this header?
12033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12034 yes:no: )
12035 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12036 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12038 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12039 ac_header_preproc=yes
12040 ;;
12041 no:yes:* )
12042 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12043 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12045 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12047 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12049 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12053 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12054 (
12055 cat <<\_ASBOX
12056 ## ------------------------------------------ ##
12057 ## Report this to the AC_PACKAGE_NAME lists. ##
12058 ## ------------------------------------------ ##
12059 _ASBOX
12060 ) |
12061 sed "s/^/$as_me: WARNING: /" >&2
12062 ;;
12063 esac
12064 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12065 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12066 if test "${ac_cv_header_tiffio_h+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069 ac_cv_header_tiffio_h=$ac_header_preproc
12070 fi
12071 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12072 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12073
12074 fi
12075 if test $ac_cv_header_tiffio_h = yes; then
12076 tifflibs="-lz -lm"
12077 # At least one tiff package requires the jpeg library.
12078 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12079 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12080 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12081 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-ltiff $tifflibs $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099 char TIFFGetVersion ();
12100 int
12101 main ()
12102 {
12103 TIFFGetVersion ();
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_lib_tiff_TIFFGetVersion=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ac_cv_lib_tiff_TIFFGetVersion=no
12136 fi
12137 rm -f conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12140 fi
12141 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12142 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12143 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12144 HAVE_TIFF=yes
12145 fi
12146
12147 fi
12148
12149
12150 fi
12151
12152 if test "${HAVE_TIFF}" = "yes"; then
12153
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_TIFF 1
12156 _ACEOF
12157
12158 fi
12159 fi
12160
12161 ### Use -lgif if available, unless `--with-gif=no'.
12162 HAVE_GIF=no
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${with_gif}" != "no"; then
12165 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12166 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12167 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12168 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12172 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12173 else
12174 # Is the header compilable?
12175 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12176 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 #include <gif_lib.h>
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag"
12196 || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest.$ac_objext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_header_compiler=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 ac_header_compiler=no
12214 fi
12215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12217 echo "${ECHO_T}$ac_header_compiler" >&6
12218
12219 # Is the header present?
12220 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12221 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <gif_lib.h>
12229 _ACEOF
12230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } >/dev/null; then
12238 if test -s conftest.err; then
12239 ac_cpp_err=$ac_c_preproc_warn_flag
12240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12241 else
12242 ac_cpp_err=
12243 fi
12244 else
12245 ac_cpp_err=yes
12246 fi
12247 if test -z "$ac_cpp_err"; then
12248 ac_header_preproc=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_header_preproc=no
12254 fi
12255 rm -f conftest.err conftest.$ac_ext
12256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12257 echo "${ECHO_T}$ac_header_preproc" >&6
12258
12259 # So? What about this header?
12260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12261 yes:no: )
12262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12263 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12265 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12266 ac_header_preproc=yes
12267 ;;
12268 no:yes:* )
12269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12270 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12272 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12274 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12276 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12278 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12280 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12281 (
12282 cat <<\_ASBOX
12283 ## ------------------------------------------ ##
12284 ## Report this to the AC_PACKAGE_NAME lists. ##
12285 ## ------------------------------------------ ##
12286 _ASBOX
12287 ) |
12288 sed "s/^/$as_me: WARNING: /" >&2
12289 ;;
12290 esac
12291 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12292 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12293 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296 ac_cv_header_gif_lib_h=$ac_header_preproc
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12299 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12300
12301 fi
12302 if test $ac_cv_header_gif_lib_h = yes; then
12303 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12304 # Earlier versions can crash Emacs.
12305 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12306 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12307 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lungif $LIBS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318
12319 /* Override any gcc2 internal prototype to avoid an error. */
12320 #ifdef __cplusplus
12321 extern "C"
12322 #endif
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char EGifPutExtensionLast ();
12326 int
12327 main ()
12328 {
12329 EGifPutExtensionLast ();
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 ac_cv_lib_ungif_EGifPutExtensionLast=no
12362 fi
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12368 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12369 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12370 HAVE_GIF=yes
12371 fi
12372
12373 fi
12374
12375
12376 fi
12377
12378 if test "${HAVE_GIF}" = "yes"; then
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_GIF 1
12382 _ACEOF
12383
12384 fi
12385 fi
12386
12387 ### Use Mac OS X Carbon API to implement GUI.
12388 HAVE_CARBON=no
12389 if test "${with_carbon}" != "no"; then
12390 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12391 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12392 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12393 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 fi
12396 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12397 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12398 else
12399 # Is the header compilable?
12400 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12401 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 #include <Carbon/Carbon.h>
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_header_compiler=yes
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 ac_header_compiler=no
12439 fi
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12442 echo "${ECHO_T}$ac_header_compiler" >&6
12443
12444 # Is the header present?
12445 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12446 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 #include <Carbon/Carbon.h>
12454 _ACEOF
12455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } >/dev/null; then
12463 if test -s conftest.err; then
12464 ac_cpp_err=$ac_c_preproc_warn_flag
12465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12466 else
12467 ac_cpp_err=
12468 fi
12469 else
12470 ac_cpp_err=yes
12471 fi
12472 if test -z "$ac_cpp_err"; then
12473 ac_header_preproc=yes
12474 else
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_header_preproc=no
12479 fi
12480 rm -f conftest.err conftest.$ac_ext
12481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12482 echo "${ECHO_T}$ac_header_preproc" >&6
12483
12484 # So? What about this header?
12485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12486 yes:no: )
12487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12488 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12490 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12491 ac_header_preproc=yes
12492 ;;
12493 no:yes:* )
12494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12495 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12497 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12499 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12501 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12503 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12505 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12506 (
12507 cat <<\_ASBOX
12508 ## ------------------------------------------ ##
12509 ## Report this to the AC_PACKAGE_NAME lists. ##
12510 ## ------------------------------------------ ##
12511 _ASBOX
12512 ) |
12513 sed "s/^/$as_me: WARNING: /" >&2
12514 ;;
12515 esac
12516 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12517 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12518 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12522 fi
12523 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12524 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12525
12526 fi
12527 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12528 HAVE_CARBON=yes
12529 fi
12530
12531
12532 fi
12533
12534 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12535 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12536 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12537 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 fi
12540 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12541 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12542 else
12543 # Is the header compilable?
12544 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12545 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h. */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 $ac_includes_default
12553 #include <malloc/malloc.h>
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_header_compiler=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_header_compiler=no
12583 fi
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6
12587
12588 # Is the header present?
12589 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12590 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <malloc/malloc.h>
12598 _ACEOF
12599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev/null; then
12607 if test -s conftest.err; then
12608 ac_cpp_err=$ac_c_preproc_warn_flag
12609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12610 else
12611 ac_cpp_err=
12612 fi
12613 else
12614 ac_cpp_err=yes
12615 fi
12616 if test -z "$ac_cpp_err"; then
12617 ac_header_preproc=yes
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_header_preproc=no
12623 fi
12624 rm -f conftest.err conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626 echo "${ECHO_T}$ac_header_preproc" >&6
12627
12628 # So? What about this header?
12629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12630 yes:no: )
12631 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12632 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12634 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12635 ac_header_preproc=yes
12636 ;;
12637 no:yes:* )
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12641 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12643 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12645 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12647 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12649 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12650 (
12651 cat <<\_ASBOX
12652 ## ------------------------------------------ ##
12653 ## Report this to the AC_PACKAGE_NAME lists. ##
12654 ## ------------------------------------------ ##
12655 _ASBOX
12656 ) |
12657 sed "s/^/$as_me: WARNING: /" >&2
12658 ;;
12659 esac
12660 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12661 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12662 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12668 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12669
12670 fi
12671 if test $ac_cv_header_malloc_malloc_h = yes; then
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_MALLOC_MALLOC_H 1
12675 _ACEOF
12676
12677 fi
12678
12679
12680
12681 if test "${HAVE_CARBON}" = "yes"; then
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_CARBON 1
12685 _ACEOF
12686
12687 window_system=mac
12688 ## Specify the install directory
12689 carbon_appdir=
12690 if test "${carbon_appdir_x}" != ""; then
12691 case ${carbon_appdir_x} in
12692 y | ye | yes) carbon_appdir=/Applications ;;
12693 * ) carbon_appdir=${carbon_appdir_x} ;;
12694 esac
12695 fi
12696 # We also have mouse menus.
12697 HAVE_MENUS=yes
12698 fi
12699
12700 ### Use session management (-lSM -lICE) if available
12701 HAVE_X_SM=no
12702 if test "${HAVE_X11}" = "yes"; then
12703 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12704 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12705 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12706 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 fi
12709 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12710 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12711 else
12712 # Is the header compilable?
12713 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12714 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12722 #include <X11/SM/SMlib.h>
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_header_compiler=yes
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_header_compiler=no
12752 fi
12753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755 echo "${ECHO_T}$ac_header_compiler" >&6
12756
12757 # Is the header present?
12758 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12759 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <X11/SM/SMlib.h>
12767 _ACEOF
12768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12779 else
12780 ac_cpp_err=
12781 fi
12782 else
12783 ac_cpp_err=yes
12784 fi
12785 if test -z "$ac_cpp_err"; then
12786 ac_header_preproc=yes
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_header_preproc=no
12792 fi
12793 rm -f conftest.err conftest.$ac_ext
12794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12795 echo "${ECHO_T}$ac_header_preproc" >&6
12796
12797 # So? What about this header?
12798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 yes:no: )
12800 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12801 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12803 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12804 ac_header_preproc=yes
12805 ;;
12806 no:yes:* )
12807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12808 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12810 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12812 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12814 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12816 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12818 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12819 (
12820 cat <<\_ASBOX
12821 ## ------------------------------------------ ##
12822 ## Report this to the AC_PACKAGE_NAME lists. ##
12823 ## ------------------------------------------ ##
12824 _ASBOX
12825 ) |
12826 sed "s/^/$as_me: WARNING: /" >&2
12827 ;;
12828 esac
12829 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12830 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12831 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12835 fi
12836 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12837 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12838
12839 fi
12840 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12841 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12842 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12843 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lSM -lICE $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854
12855 /* Override any gcc2 internal prototype to avoid an error. */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12861 char SmcOpenConnection ();
12862 int
12863 main ()
12864 {
12865 SmcOpenConnection ();
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12872 (eval $ac_link) 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag"
12880 || test ! -s conftest.err'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; } &&
12886 { ac_try='test -s conftest$ac_exeext'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12892 ac_cv_lib_SM_SmcOpenConnection=yes
12893 else
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_cv_lib_SM_SmcOpenConnection=no
12898 fi
12899 rm -f conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12902 fi
12903 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12904 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12905 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12906 HAVE_X_SM=yes
12907 fi
12908
12909 fi
12910
12911
12912
12913 if test "${HAVE_X_SM}" = "yes"; then
12914
12915 cat >>confdefs.h <<\_ACEOF
12916 #define HAVE_X_SM 1
12917 _ACEOF
12918
12919 case "$LIBS" in
12920 *-lSM*) ;;
12921 *) LIBS="-lSM -lICE $LIBS" ;;
12922 esac
12923 fi
12924 fi
12925
12926 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12927 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12928 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12929 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 #include <netdb.h>
12939 int
12940 main ()
12941 {
12942 return h_errno;
12943 ;
12944 return 0;
12945 }
12946 _ACEOF
12947 rm -f conftest.$ac_objext conftest$ac_exeext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12949 (eval $ac_link) 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag"
12957 || test ! -s conftest.err'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 emacs_cv_netdb_declares_h_errno=yes
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 emacs_cv_netdb_declares_h_errno=no
12975 fi
12976 rm -f conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 fi
12979 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12980 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12981 if test $emacs_cv_netdb_declares_h_errno = yes; then
12982
12983 cat >>confdefs.h <<\_ACEOF
12984 #define HAVE_H_ERRNO 1
12985 _ACEOF
12986
12987 fi
12988
12989 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12990 # for constant arguments. Useless!
12991 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12992 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12993 if test "${ac_cv_working_alloca_h+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996 cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h. */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 #include <alloca.h>
13003 int
13004 main ()
13005 {
13006 char *p = (char *) alloca (2 * sizeof (int));
13007 ;
13008 return 0;
13009 }
13010 _ACEOF
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13013 (eval $ac_link) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag"
13021 || test ! -s conftest.err'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest$ac_exeext'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_cv_working_alloca_h=yes
13034 else
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 ac_cv_working_alloca_h=no
13039 fi
13040 rm -f conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 fi
13043 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13044 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13045 if test $ac_cv_working_alloca_h = yes; then
13046
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_ALLOCA_H 1
13049 _ACEOF
13050
13051 fi
13052
13053 echo "$as_me:$LINENO: checking for alloca" >&5
13054 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13055 if test "${ac_cv_func_alloca_works+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058 cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h. */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #ifdef __GNUC__
13065 # define alloca __builtin_alloca
13066 #else
13067 # ifdef _MSC_VER
13068 # include <malloc.h>
13069 # define alloca _alloca
13070 # else
13071 # if HAVE_ALLOCA_H
13072 # include <alloca.h>
13073 # else
13074 # ifdef _AIX
13075 #pragma alloca
13076 # else
13077 # ifndef alloca /* predefined by HP cc +Olibcalls */
13078 char *alloca ();
13079 # endif
13080 # endif
13081 # endif
13082 # endif
13083 #endif
13084
13085 int
13086 main ()
13087 {
13088 char *p = (char *) alloca (1);
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_func_alloca_works=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_cv_func_alloca_works=no
13121 fi
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 fi
13125 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13126 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13127
13128 if test $ac_cv_func_alloca_works = yes; then
13129
13130 cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_ALLOCA 1
13132 _ACEOF
13133
13134 else
13135 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13136 # that cause trouble. Some versions do not even contain alloca or
13137 # contain a buggy version. If you still want to use their alloca,
13138 # use ar to extract alloca.o from them instead of compiling alloca.c.
13139
13140 ALLOCA=alloca.$ac_objext
13141
13142 cat >>confdefs.h <<\_ACEOF
13143 #define C_ALLOCA 1
13144 _ACEOF
13145
13146
13147 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13148 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13149 if test "${ac_cv_os_cray+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 #if defined(CRAY) && ! defined(CRAY2)
13159 webecray
13160 #else
13161 wenotbecray
13162 #endif
13163
13164 _ACEOF
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166 $EGREP "webecray" >/dev/null 2>&1; then
13167 ac_cv_os_cray=yes
13168 else
13169 ac_cv_os_cray=no
13170 fi
13171 rm -f conftest*
13172
13173 fi
13174 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13175 echo "${ECHO_T}$ac_cv_os_cray" >&6
13176 if test $ac_cv_os_cray = yes; then
13177 for ac_func in _getb67 GETB67 getb67; do
13178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13179 echo "$as_me:$LINENO: checking for $ac_func" >&5
13180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13181 if eval "test \"\${$as_ac_var+set}\" = set"; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13192 #define $ac_func innocuous_$ac_func
13193
13194 /* System header to define __stub macros and hopefully few prototypes,
13195 which can conflict with char $ac_func (); below.
13196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13197 <limits.h> exists even on freestanding compilers. */
13198
13199 #ifdef __STDC__
13200 # include <limits.h>
13201 #else
13202 # include <assert.h>
13203 #endif
13204
13205 #undef $ac_func
13206
13207 /* Override any gcc2 internal prototype to avoid an error. */
13208 #ifdef __cplusplus
13209 extern "C"
13210 {
13211 #endif
13212 /* We use char because int might match the return type of a gcc2
13213 builtin and then its argument prototype would still apply. */
13214 char $ac_func ();
13215 /* The GNU C library defines this for functions which it implements
13216 to always fail with ENOSYS. Some functions are actually named
13217 something starting with __ and the normal name is an alias. */
13218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13219 choke me
13220 #else
13221 char (*f) () = $ac_func;
13222 #endif
13223 #ifdef __cplusplus
13224 }
13225 #endif
13226
13227 int
13228 main ()
13229 {
13230 return f != $ac_func;
13231 ;
13232 return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13237 (eval $ac_link) 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag"
13245 || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 eval "$as_ac_var=yes"
13258 else
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 eval "$as_ac_var=no"
13263 fi
13264 rm -f conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 fi
13267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13269 if test `eval echo '${'$as_ac_var'}'` = yes; then
13270
13271 cat >>confdefs.h <<_ACEOF
13272 #define CRAY_STACKSEG_END $ac_func
13273 _ACEOF
13274
13275 break
13276 fi
13277
13278 done
13279 fi
13280
13281 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13282 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13283 if test "${ac_cv_c_stack_direction+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 if test "$cross_compiling" = yes; then
13287 ac_cv_c_stack_direction=0
13288 else
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 int
13296 find_stack_direction ()
13297 {
13298 static char *addr = 0;
13299 auto char dummy;
13300 if (addr == 0)
13301 {
13302 addr = &dummy;
13303 return find_stack_direction ();
13304 }
13305 else
13306 return (&dummy > addr) ? 1 : -1;
13307 }
13308
13309 int
13310 main ()
13311 {
13312 exit (find_stack_direction () < 0);
13313 }
13314 _ACEOF
13315 rm -f conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_c_stack_direction=1
13327 else
13328 echo "$as_me: program exited with status $ac_status" >&5
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ( exit $ac_status )
13333 ac_cv_c_stack_direction=-1
13334 fi
13335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13336 fi
13337 fi
13338 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13339 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13340
13341 cat >>confdefs.h <<_ACEOF
13342 #define STACK_DIRECTION $ac_cv_c_stack_direction
13343 _ACEOF
13344
13345
13346 fi
13347
13348
13349 # fmod, logb, and frexp are found in -lm on most systems.
13350 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13351
13352 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13353 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13354 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-lm $LIBS"
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h. */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365
13366 /* Override any gcc2 internal prototype to avoid an error. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 /* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13372 char sqrt ();
13373 int
13374 main ()
13375 {
13376 sqrt ();
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383 (eval $ac_link) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_lib_m_sqrt=yes
13404 else
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_cv_lib_m_sqrt=no
13409 fi
13410 rm -f conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13413 fi
13414 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13415 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13416 if test $ac_cv_lib_m_sqrt = yes; then
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_LIBM 1
13419 _ACEOF
13420
13421 LIBS="-lm $LIBS"
13422
13423 fi
13424
13425
13426 # Check for mail-locking functions in a "mail" library. Probably this should
13427 # have the same check as for liblockfile below.
13428
13429 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13430 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13431 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lmail $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442
13443 /* Override any gcc2 internal prototype to avoid an error. */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 /* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */
13449 char maillock ();
13450 int
13451 main ()
13452 {
13453 maillock ();
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag"
13468 || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_cv_lib_mail_maillock=yes
13481 else
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_cv_lib_mail_maillock=no
13486 fi
13487 rm -f conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13490 fi
13491 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13492 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13493 if test $ac_cv_lib_mail_maillock = yes; then
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_LIBMAIL 1
13496 _ACEOF
13497
13498 LIBS="-lmail $LIBS"
13499
13500 fi
13501
13502
13503 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13504 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13505 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508 ac_check_lib_save_LIBS=$LIBS
13509 LIBS="-llockfile $LIBS"
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516
13517 /* Override any gcc2 internal prototype to avoid an error. */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523 char maillock ();
13524 int
13525 main ()
13526 {
13527 maillock ();
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534 (eval $ac_link) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_lib_lockfile_maillock=yes
13555 else
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 ac_cv_lib_lockfile_maillock=no
13560 fi
13561 rm -f conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13566 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13567 if test $ac_cv_lib_lockfile_maillock = yes; then
13568 cat >>confdefs.h <<_ACEOF
13569 #define HAVE_LIBLOCKFILE 1
13570 _ACEOF
13571
13572 LIBS="-llockfile $LIBS"
13573
13574 fi
13575
13576 # If we have the shared liblockfile, assume we must use it for mail
13577 # locking (e.g. Debian). If we couldn't link against liblockfile
13578 # (no liblockfile.a installed), ensure that we don't need to.
13579 if test "$ac_cv_lib_lockfile_maillock" = no; then
13580 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13581 set dummy liblockfile.so; ac_word=$2
13582 echo "$as_me:$LINENO: checking for $ac_word" >&5
13583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13584 if test "${ac_cv_prog_liblockfile+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 if test -n "$liblockfile"; then
13588 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13592 for as_dir in $as_dummy
13593 do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_liblockfile="yes"
13599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602 done
13603 done
13604
13605 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13606 fi
13607 fi
13608 liblockfile=$ac_cv_prog_liblockfile
13609 if test -n "$liblockfile"; then
13610 echo "$as_me:$LINENO: result: $liblockfile" >&5
13611 echo "${ECHO_T}$liblockfile" >&6
13612 else
13613 echo "$as_me:$LINENO: result: no" >&5
13614 echo "${ECHO_T}no" >&6
13615 fi
13616
13617 if test $ac_cv_prog_liblockfile = yes; then
13618 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13619 This probably means that movemail could lose mail.
13620 There may be a \`development' package to install containing liblockfile." >&5
13621 echo "$as_me: error: Shared liblockfile found but can't link against it.
13622 This probably means that movemail could lose mail.
13623 There may be a \`development' package to install containing liblockfile." >&2;}
13624 { (exit 1); exit 1; }; }
13625 else :
13626 fi
13627 fi
13628
13629 for ac_func in touchlock
13630 do
13631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632 echo "$as_me:$LINENO: checking for $ac_func" >&5
13633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13634 if eval "test \"\${$as_ac_var+set}\" = set"; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645 #define $ac_func innocuous_$ac_func
13646
13647 /* System header to define __stub macros and hopefully few prototypes,
13648 which can conflict with char $ac_func (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
13651
13652 #ifdef __STDC__
13653 # include <limits.h>
13654 #else
13655 # include <assert.h>
13656 #endif
13657
13658 #undef $ac_func
13659
13660 /* Override any gcc2 internal prototype to avoid an error. */
13661 #ifdef __cplusplus
13662 extern "C"
13663 {
13664 #endif
13665 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13667 char $ac_func ();
13668 /* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672 choke me
13673 #else
13674 char (*f) () = $ac_func;
13675 #endif
13676 #ifdef __cplusplus
13677 }
13678 #endif
13679
13680 int
13681 main ()
13682 {
13683 return f != $ac_func;
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 eval "$as_ac_var=yes"
13711 else
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 eval "$as_ac_var=no"
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 fi
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722 if test `eval echo '${'$as_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<_ACEOF
13724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725 _ACEOF
13726
13727 fi
13728 done
13729
13730
13731 for ac_header in maillock.h
13732 do
13733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735 echo "$as_me:$LINENO: checking for $ac_header" >&5
13736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 fi
13740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13742 else
13743 # Is the header compilable?
13744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 $ac_includes_default
13753 #include <$ac_header>
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest.$ac_objext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_header_compiler=yes
13778 else
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 ac_header_compiler=no
13783 fi
13784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13786 echo "${ECHO_T}$ac_header_compiler" >&6
13787
13788 # Is the header present?
13789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <$ac_header>
13798 _ACEOF
13799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null; then
13807 if test -s conftest.err; then
13808 ac_cpp_err=$ac_c_preproc_warn_flag
13809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13810 else
13811 ac_cpp_err=
13812 fi
13813 else
13814 ac_cpp_err=yes
13815 fi
13816 if test -z "$ac_cpp_err"; then
13817 ac_header_preproc=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_header_preproc=no
13823 fi
13824 rm -f conftest.err conftest.$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13826 echo "${ECHO_T}$ac_header_preproc" >&6
13827
13828 # So? What about this header?
13829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13830 yes:no: )
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13835 ac_header_preproc=yes
13836 ;;
13837 no:yes:* )
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13850 (
13851 cat <<\_ASBOX
13852 ## ------------------------------------------ ##
13853 ## Report this to the AC_PACKAGE_NAME lists. ##
13854 ## ------------------------------------------ ##
13855 _ASBOX
13856 ) |
13857 sed "s/^/$as_me: WARNING: /" >&2
13858 ;;
13859 esac
13860 echo "$as_me:$LINENO: checking for $ac_header" >&5
13861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865 eval "$as_ac_Header=\$ac_header_preproc"
13866 fi
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13869
13870 fi
13871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13872 cat >>confdefs.h <<_ACEOF
13873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13874 _ACEOF
13875
13876 fi
13877
13878 done
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948 for ac_func in gethostname getdomainname dup2 \
13949 rename closedir mkdir rmdir sysinfo getrusage \
13950 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13951 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13952 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13953 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13954 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13955 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13956 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13957 do
13958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13959 echo "$as_me:$LINENO: checking for $ac_func" >&5
13960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_var+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13972 #define $ac_func innocuous_$ac_func
13973
13974 /* System header to define __stub macros and hopefully few prototypes,
13975 which can conflict with char $ac_func (); below.
13976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13977 <limits.h> exists even on freestanding compilers. */
13978
13979 #ifdef __STDC__
13980 # include <limits.h>
13981 #else
13982 # include <assert.h>
13983 #endif
13984
13985 #undef $ac_func
13986
13987 /* Override any gcc2 internal prototype to avoid an error. */
13988 #ifdef __cplusplus
13989 extern "C"
13990 {
13991 #endif
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char $ac_func ();
13995 /* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
13998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13999 choke me
14000 #else
14001 char (*f) () = $ac_func;
14002 #endif
14003 #ifdef __cplusplus
14004 }
14005 #endif
14006
14007 int
14008 main ()
14009 {
14010 return f != $ac_func;
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 eval "$as_ac_var=yes"
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 eval "$as_ac_var=no"
14043 fi
14044 rm -f conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046 fi
14047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14049 if test `eval echo '${'$as_ac_var'}'` = yes; then
14050 cat >>confdefs.h <<_ACEOF
14051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14052 _ACEOF
14053
14054 fi
14055 done
14056
14057
14058
14059 for ac_header in sys/un.h
14060 do
14061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14063 echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 fi
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14070 else
14071 # Is the header compilable?
14072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h. */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <$ac_header>
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_header_compiler=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_header_compiler=no
14111 fi
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114 echo "${ECHO_T}$ac_header_compiler" >&6
14115
14116 # Is the header present?
14117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h. */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #include <$ac_header>
14126 _ACEOF
14127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14129 ac_status=$?
14130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } >/dev/null; then
14135 if test -s conftest.err; then
14136 ac_cpp_err=$ac_c_preproc_warn_flag
14137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14138 else
14139 ac_cpp_err=
14140 fi
14141 else
14142 ac_cpp_err=yes
14143 fi
14144 if test -z "$ac_cpp_err"; then
14145 ac_header_preproc=yes
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150 ac_header_preproc=no
14151 fi
14152 rm -f conftest.err conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6
14155
14156 # So? What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14158 yes:no: )
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163 ac_header_preproc=yes
14164 ;;
14165 no:yes:* )
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14178 (
14179 cat <<\_ASBOX
14180 ## ------------------------------------------ ##
14181 ## Report this to the AC_PACKAGE_NAME lists. ##
14182 ## ------------------------------------------ ##
14183 _ASBOX
14184 ) |
14185 sed "s/^/$as_me: WARNING: /" >&2
14186 ;;
14187 esac
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193 eval "$as_ac_Header=\$ac_header_preproc"
14194 fi
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197
14198 fi
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14202 _ACEOF
14203
14204 fi
14205
14206 done
14207
14208
14209
14210
14211
14212 for ac_header in stdlib.h sys/time.h unistd.h
14213 do
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 else
14224 # Is the header compilable?
14225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14234 #include <$ac_header>
14235 _ACEOF
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag"
14246 || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_header_compiler=yes
14259 else
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_header_compiler=no
14264 fi
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6
14268
14269 # Is the header present?
14270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <$ac_header>
14279 _ACEOF
14280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null; then
14288 if test -s conftest.err; then
14289 ac_cpp_err=$ac_c_preproc_warn_flag
14290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14291 else
14292 ac_cpp_err=
14293 fi
14294 else
14295 ac_cpp_err=yes
14296 fi
14297 if test -z "$ac_cpp_err"; then
14298 ac_header_preproc=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_header_preproc=no
14304 fi
14305 rm -f conftest.err conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14307 echo "${ECHO_T}$ac_header_preproc" >&6
14308
14309 # So? What about this header?
14310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311 yes:no: )
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14316 ac_header_preproc=yes
14317 ;;
14318 no:yes:* )
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14331 (
14332 cat <<\_ASBOX
14333 ## ------------------------------------------ ##
14334 ## Report this to the AC_PACKAGE_NAME lists. ##
14335 ## ------------------------------------------ ##
14336 _ASBOX
14337 ) |
14338 sed "s/^/$as_me: WARNING: /" >&2
14339 ;;
14340 esac
14341 echo "$as_me:$LINENO: checking for $ac_header" >&5
14342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346 eval "$as_ac_Header=\$ac_header_preproc"
14347 fi
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350
14351 fi
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353 cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14355 _ACEOF
14356
14357 fi
14358
14359 done
14360
14361
14362 for ac_func in alarm
14363 do
14364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14365 echo "$as_me:$LINENO: checking for $ac_func" >&5
14366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14367 if eval "test \"\${$as_ac_var+set}\" = set"; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h. */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14378 #define $ac_func innocuous_$ac_func
14379
14380 /* System header to define __stub macros and hopefully few prototypes,
14381 which can conflict with char $ac_func (); below.
14382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14383 <limits.h> exists even on freestanding compilers. */
14384
14385 #ifdef __STDC__
14386 # include <limits.h>
14387 #else
14388 # include <assert.h>
14389 #endif
14390
14391 #undef $ac_func
14392
14393 /* Override any gcc2 internal prototype to avoid an error. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 {
14397 #endif
14398 /* We use char because int might match the return type of a gcc2
14399 builtin and then its argument prototype would still apply. */
14400 char $ac_func ();
14401 /* The GNU C library defines this for functions which it implements
14402 to always fail with ENOSYS. Some functions are actually named
14403 something starting with __ and the normal name is an alias. */
14404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14405 choke me
14406 #else
14407 char (*f) () = $ac_func;
14408 #endif
14409 #ifdef __cplusplus
14410 }
14411 #endif
14412
14413 int
14414 main ()
14415 {
14416 return f != $ac_func;
14417 ;
14418 return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14423 (eval $ac_link) 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag"
14431 || test ! -s conftest.err'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest$ac_exeext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 eval "$as_ac_var=yes"
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448 eval "$as_ac_var=no"
14449 fi
14450 rm -f conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 fi
14453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14455 if test `eval echo '${'$as_ac_var'}'` = yes; then
14456 cat >>confdefs.h <<_ACEOF
14457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14458 _ACEOF
14459
14460 fi
14461 done
14462
14463 echo "$as_me:$LINENO: checking for working mktime" >&5
14464 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14465 if test "${ac_cv_func_working_mktime+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468 if test "$cross_compiling" = yes; then
14469 ac_cv_func_working_mktime=no
14470 else
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* Test program from Paul Eggert and Tony Leneis. */
14478 #if TIME_WITH_SYS_TIME
14479 # include <sys/time.h>
14480 # include <time.h>
14481 #else
14482 # if HAVE_SYS_TIME_H
14483 # include <sys/time.h>
14484 # else
14485 # include <time.h>
14486 # endif
14487 #endif
14488
14489 #if HAVE_STDLIB_H
14490 # include <stdlib.h>
14491 #endif
14492
14493 #if HAVE_UNISTD_H
14494 # include <unistd.h>
14495 #endif
14496
14497 #if !HAVE_ALARM
14498 # define alarm(X) /* empty */
14499 #endif
14500
14501 /* Work around redefinition to rpl_putenv by other config tests. */
14502 #undef putenv
14503
14504 static time_t time_t_max;
14505 static time_t time_t_min;
14506
14507 /* Values we'll use to set the TZ environment variable. */
14508 static char *tz_strings[] = {
14509 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14510 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14511 };
14512 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14513
14514 /* Fail if mktime fails to convert a date in the spring-forward gap.
14515 Based on a problem report from Andreas Jaeger. */
14516 static void
14517 spring_forward_gap ()
14518 {
14519 /* glibc (up to about 1998-10-07) failed this test. */
14520 struct tm tm;
14521
14522 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14523 instead of "TZ=America/Vancouver" in order to detect the bug even
14524 on systems that don't support the Olson extension, or don't have the
14525 full zoneinfo tables installed. */
14526 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14527
14528 tm.tm_year = 98;
14529 tm.tm_mon = 3;
14530 tm.tm_mday = 5;
14531 tm.tm_hour = 2;
14532 tm.tm_min = 0;
14533 tm.tm_sec = 0;
14534 tm.tm_isdst = -1;
14535 if (mktime (&tm) == (time_t)-1)
14536 exit (1);
14537 }
14538
14539 static void
14540 mktime_test1 (now)
14541 time_t now;
14542 {
14543 struct tm *lt;
14544 if ((lt = localtime (&now)) && mktime (lt) != now)
14545 exit (1);
14546 }
14547
14548 static void
14549 mktime_test (now)
14550 time_t now;
14551 {
14552 mktime_test1 (now);
14553 mktime_test1 ((time_t) (time_t_max - now));
14554 mktime_test1 ((time_t) (time_t_min + now));
14555 }
14556
14557 static void
14558 irix_6_4_bug ()
14559 {
14560 /* Based on code from Ariel Faigon. */
14561 struct tm tm;
14562 tm.tm_year = 96;
14563 tm.tm_mon = 3;
14564 tm.tm_mday = 0;
14565 tm.tm_hour = 0;
14566 tm.tm_min = 0;
14567 tm.tm_sec = 0;
14568 tm.tm_isdst = -1;
14569 mktime (&tm);
14570 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14571 exit (1);
14572 }
14573
14574 static void
14575 bigtime_test (j)
14576 int j;
14577 {
14578 struct tm tm;
14579 time_t now;
14580 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14581 now = mktime (&tm);
14582 if (now != (time_t) -1)
14583 {
14584 struct tm *lt = localtime (&now);
14585 if (! (lt
14586 && lt->tm_year == tm.tm_year
14587 && lt->tm_mon == tm.tm_mon
14588 && lt->tm_mday == tm.tm_mday
14589 && lt->tm_hour == tm.tm_hour
14590 && lt->tm_min == tm.tm_min
14591 && lt->tm_sec == tm.tm_sec
14592 && lt->tm_yday == tm.tm_yday
14593 && lt->tm_wday == tm.tm_wday
14594 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14595 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14596 exit (1);
14597 }
14598 }
14599
14600 int
14601 main ()
14602 {
14603 time_t t, delta;
14604 int i, j;
14605
14606 /* This test makes some buggy mktime implementations loop.
14607 Give up after 60 seconds; a mktime slower than that
14608 isn't worth using anyway. */
14609 alarm (60);
14610
14611 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14612 continue;
14613 time_t_max--;
14614 if ((time_t) -1 < 0)
14615 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14616 continue;
14617 delta = time_t_max / 997; /* a suitable prime number */
14618 for (i = 0; i < N_STRINGS; i++)
14619 {
14620 if (tz_strings[i])
14621 putenv (tz_strings[i]);
14622
14623 for (t = 0; t <= time_t_max - delta; t += delta)
14624 mktime_test (t);
14625 mktime_test ((time_t) 1);
14626 mktime_test ((time_t) (60 * 60));
14627 mktime_test ((time_t) (60 * 60 * 24));
14628
14629 for (j = 1; 0 < j; j *= 2)
14630 bigtime_test (j);
14631 bigtime_test (j - 1);
14632 }
14633 irix_6_4_bug ();
14634 spring_forward_gap ();
14635 exit (0);
14636 }
14637 _ACEOF
14638 rm -f conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_func_working_mktime=yes
14650 else
14651 echo "$as_me: program exited with status $ac_status" >&5
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ( exit $ac_status )
14656 ac_cv_func_working_mktime=no
14657 fi
14658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 fi
14661 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14662 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14663 if test $ac_cv_func_working_mktime = no; then
14664 case $LIBOBJS in
14665 "mktime.$ac_objext" | \
14666 *" mktime.$ac_objext" | \
14667 "mktime.$ac_objext "* | \
14668 *" mktime.$ac_objext "* ) ;;
14669 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14670 esac
14671
14672 fi
14673
14674 if test "$ac_cv_func_working_mktime" = no; then
14675
14676 cat >>confdefs.h <<\_ACEOF
14677 #define BROKEN_MKTIME 1
14678 _ACEOF
14679
14680 fi
14681
14682 ac_have_func=no # yes means we've found a way to get the load average.
14683
14684 # Make sure getloadavg.c is where it belongs, at configure-time.
14685 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14686 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14687 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14688 { (exit 1); exit 1; }; }
14689
14690 ac_save_LIBS=$LIBS
14691
14692 # Check for getloadavg, but be sure not to touch the cache variable.
14693 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14694 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14695 if test "${ac_cv_func_getloadavg+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14706 #define getloadavg innocuous_getloadavg
14707
14708 /* System header to define __stub macros and hopefully few prototypes,
14709 which can conflict with char getloadavg (); below.
14710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14711 <limits.h> exists even on freestanding compilers. */
14712
14713 #ifdef __STDC__
14714 # include <limits.h>
14715 #else
14716 # include <assert.h>
14717 #endif
14718
14719 #undef getloadavg
14720
14721 /* Override any gcc2 internal prototype to avoid an error. */
14722 #ifdef __cplusplus
14723 extern "C"
14724 {
14725 #endif
14726 /* We use char because int might match the return type of a gcc2
14727 builtin and then its argument prototype would still apply. */
14728 char getloadavg ();
14729 /* The GNU C library defines this for functions which it implements
14730 to always fail with ENOSYS. Some functions are actually named
14731 something starting with __ and the normal name is an alias. */
14732 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14733 choke me
14734 #else
14735 char (*f) () = getloadavg;
14736 #endif
14737 #ifdef __cplusplus
14738 }
14739 #endif
14740
14741 int
14742 main ()
14743 {
14744 return f != getloadavg;
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14751 (eval $ac_link) 2>conftest.er1
14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag"
14759 || test ! -s conftest.err'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest$ac_exeext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_func_getloadavg=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_cv_func_getloadavg=no
14777 fi
14778 rm -f conftest.err conftest.$ac_objext \
14779 conftest$ac_exeext conftest.$ac_ext
14780 fi
14781 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14782 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14783 if test $ac_cv_func_getloadavg = yes; then
14784 exit 0
14785 else
14786 exit 1
14787 fi
14788 ) && ac_have_func=yes
14789
14790 # On HPUX9, an unprivileged user can get load averages through this function.
14791
14792 for ac_func in pstat_getdynamic
14793 do
14794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14795 echo "$as_me:$LINENO: checking for $ac_func" >&5
14796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14797 if eval "test \"\${$as_ac_var+set}\" = set"; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14808 #define $ac_func innocuous_$ac_func
14809
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char $ac_func (); below.
14812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813 <limits.h> exists even on freestanding compilers. */
14814
14815 #ifdef __STDC__
14816 # include <limits.h>
14817 #else
14818 # include <assert.h>
14819 #endif
14820
14821 #undef $ac_func
14822
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 {
14827 #endif
14828 /* We use char because int might match the return type of a gcc2
14829 builtin and then its argument prototype would still apply. */
14830 char $ac_func ();
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14835 choke me
14836 #else
14837 char (*f) () = $ac_func;
14838 #endif
14839 #ifdef __cplusplus
14840 }
14841 #endif
14842
14843 int
14844 main ()
14845 {
14846 return f != $ac_func;
14847 ;
14848 return 0;
14849 }
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 eval "$as_ac_var=no"
14879 fi
14880 rm -f conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 fi
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14888 _ACEOF
14889
14890 fi
14891 done
14892
14893
14894 # Solaris has libkstat which does not require root.
14895
14896 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14897 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14898 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901 ac_check_lib_save_LIBS=$LIBS
14902 LIBS="-lkstat $LIBS"
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909
14910 /* Override any gcc2 internal prototype to avoid an error. */
14911 #ifdef __cplusplus
14912 extern "C"
14913 #endif
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14916 char kstat_open ();
14917 int
14918 main ()
14919 {
14920 kstat_open ();
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag"
14935 || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_lib_kstat_kstat_open=yes
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14951
14952 ac_cv_lib_kstat_kstat_open=no
14953 fi
14954 rm -f conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 LIBS=$ac_check_lib_save_LIBS
14957 fi
14958 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14959 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14960 if test $ac_cv_lib_kstat_kstat_open = yes; then
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_LIBKSTAT 1
14963 _ACEOF
14964
14965 LIBS="-lkstat $LIBS"
14966
14967 fi
14968
14969 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14970
14971 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14972 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14973 # to get the right answer into the cache.
14974 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14975 if test $ac_have_func = no; then
14976 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14977 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14978 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981 ac_check_lib_save_LIBS=$LIBS
14982 LIBS="-lelf $LIBS"
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 /* We use char because int might match the return type of a gcc2
14995 builtin and then its argument prototype would still apply. */
14996 char elf_begin ();
14997 int
14998 main ()
14999 {
15000 elf_begin ();
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try='test -s conftest$ac_exeext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_lib_elf_elf_begin=yes
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032 ac_cv_lib_elf_elf_begin=no
15033 fi
15034 rm -f conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15037 fi
15038 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15039 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15040 if test $ac_cv_lib_elf_elf_begin = yes; then
15041 LIBS="-lelf $LIBS"
15042 fi
15043
15044 fi
15045 if test $ac_have_func = no; then
15046 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15047 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15048 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051 ac_check_lib_save_LIBS=$LIBS
15052 LIBS="-lkvm $LIBS"
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059
15060 /* Override any gcc2 internal prototype to avoid an error. */
15061 #ifdef __cplusplus
15062 extern "C"
15063 #endif
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15066 char kvm_open ();
15067 int
15068 main ()
15069 {
15070 kvm_open ();
15071 ;
15072 return 0;
15073 }
15074 _ACEOF
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15077 (eval $ac_link) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag"
15085 || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest$ac_exeext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_cv_lib_kvm_kvm_open=yes
15098 else
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_lib_kvm_kvm_open=no
15103 fi
15104 rm -f conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_check_lib_save_LIBS
15107 fi
15108 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15109 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15110 if test $ac_cv_lib_kvm_kvm_open = yes; then
15111 LIBS="-lkvm $LIBS"
15112 fi
15113
15114 # Check for the 4.4BSD definition of getloadavg.
15115 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15116 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15117 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120 ac_check_lib_save_LIBS=$LIBS
15121 LIBS="-lutil $LIBS"
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128
15129 /* Override any gcc2 internal prototype to avoid an error. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 /* We use char because int might match the return type of a gcc2
15134 builtin and then its argument prototype would still apply. */
15135 char getloadavg ();
15136 int
15137 main ()
15138 {
15139 getloadavg ();
15140 ;
15141 return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_util_getloadavg=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_cv_lib_util_getloadavg=no
15172 fi
15173 rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15178 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15179 if test $ac_cv_lib_util_getloadavg = yes; then
15180 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15181 fi
15182
15183 fi
15184
15185 if test $ac_have_func = no; then
15186 # There is a commonly available library for RS/6000 AIX.
15187 # Since it is not a standard part of AIX, it might be installed locally.
15188 ac_getloadavg_LIBS=$LIBS
15189 LIBS="-L/usr/local/lib $LIBS"
15190 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15191 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15192 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195 ac_check_lib_save_LIBS=$LIBS
15196 LIBS="-lgetloadavg $LIBS"
15197 cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203
15204 /* Override any gcc2 internal prototype to avoid an error. */
15205 #ifdef __cplusplus
15206 extern "C"
15207 #endif
15208 /* We use char because int might match the return type of a gcc2
15209 builtin and then its argument prototype would still apply. */
15210 char getloadavg ();
15211 int
15212 main ()
15213 {
15214 getloadavg ();
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221 (eval $ac_link) 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -z "$ac_c_werror_flag"
15229 || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_getloadavg_getloadavg=yes
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 ac_cv_lib_getloadavg_getloadavg=no
15247 fi
15248 rm -f conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15250 LIBS=$ac_check_lib_save_LIBS
15251 fi
15252 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15253 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15254 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15255 LIBS="-lgetloadavg $LIBS"
15256 else
15257 LIBS=$ac_getloadavg_LIBS
15258 fi
15259
15260 fi
15261
15262 # Make sure it is really in the library, if we think we found it,
15263 # otherwise set up the replacement function.
15264
15265 for ac_func in getloadavg
15266 do
15267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15268 echo "$as_me:$LINENO: checking for $ac_func" >&5
15269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15270 if eval "test \"\${$as_ac_var+set}\" = set"; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15281 #define $ac_func innocuous_$ac_func
15282
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func (); below.
15285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286 <limits.h> exists even on freestanding compilers. */
15287
15288 #ifdef __STDC__
15289 # include <limits.h>
15290 #else
15291 # include <assert.h>
15292 #endif
15293
15294 #undef $ac_func
15295
15296 /* Override any gcc2 internal prototype to avoid an error. */
15297 #ifdef __cplusplus
15298 extern "C"
15299 {
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303 char $ac_func ();
15304 /* The GNU C library defines this for functions which it implements
15305 to always fail with ENOSYS. Some functions are actually named
15306 something starting with __ and the normal name is an alias. */
15307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15308 choke me
15309 #else
15310 char (*f) () = $ac_func;
15311 #endif
15312 #ifdef __cplusplus
15313 }
15314 #endif
15315
15316 int
15317 main ()
15318 {
15319 return f != $ac_func;
15320 ;
15321 return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>conftest.er1
15327 ac_status=$?
15328 grep -v '^ *+' conftest.er1 >conftest.err
15329 rm -f conftest.er1
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag"
15334 || test ! -s conftest.err'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest$ac_exeext'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 eval "$as_ac_var=yes"
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 eval "$as_ac_var=no"
15352 fi
15353 rm -f conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 fi
15356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15361 _ACEOF
15362
15363 else
15364 case $LIBOBJS in
15365 "getloadavg.$ac_objext" | \
15366 *" getloadavg.$ac_objext" | \
15367 "getloadavg.$ac_objext "* | \
15368 *" getloadavg.$ac_objext "* ) ;;
15369 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15370 esac
15371
15372
15373 cat >>confdefs.h <<\_ACEOF
15374 #define C_GETLOADAVG 1
15375 _ACEOF
15376
15377 # Figure out what our getloadavg.c needs.
15378 ac_have_func=no
15379 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15380 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15381 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15382 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 fi
15385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15386 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15387 else
15388 # Is the header compilable?
15389 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15390 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h. */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 $ac_includes_default
15398 #include <sys/dg_sys_info.h>
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_header_compiler=yes
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427 ac_header_compiler=no
15428 fi
15429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15431 echo "${ECHO_T}$ac_header_compiler" >&6
15432
15433 # Is the header present?
15434 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15435 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h. */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 #include <sys/dg_sys_info.h>
15443 _ACEOF
15444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } >/dev/null; then
15452 if test -s conftest.err; then
15453 ac_cpp_err=$ac_c_preproc_warn_flag
15454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15455 else
15456 ac_cpp_err=
15457 fi
15458 else
15459 ac_cpp_err=yes
15460 fi
15461 if test -z "$ac_cpp_err"; then
15462 ac_header_preproc=yes
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ac_header_preproc=no
15468 fi
15469 rm -f conftest.err conftest.$ac_ext
15470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15471 echo "${ECHO_T}$ac_header_preproc" >&6
15472
15473 # So? What about this header?
15474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15475 yes:no: )
15476 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15477 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15479 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15480 ac_header_preproc=yes
15481 ;;
15482 no:yes:* )
15483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15484 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15486 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15488 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15490 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15492 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15494 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15495 (
15496 cat <<\_ASBOX
15497 ## ------------------------------------------ ##
15498 ## Report this to the AC_PACKAGE_NAME lists. ##
15499 ## ------------------------------------------ ##
15500 _ASBOX
15501 ) |
15502 sed "s/^/$as_me: WARNING: /" >&2
15503 ;;
15504 esac
15505 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15506 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15507 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15511 fi
15512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15513 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15514
15515 fi
15516 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15517 ac_have_func=yes
15518
15519 cat >>confdefs.h <<\_ACEOF
15520 #define DGUX 1
15521 _ACEOF
15522
15523
15524 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15525 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15526 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 ac_check_lib_save_LIBS=$LIBS
15530 LIBS="-ldgc $LIBS"
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537
15538 /* Override any gcc2 internal prototype to avoid an error. */
15539 #ifdef __cplusplus
15540 extern "C"
15541 #endif
15542 /* We use char because int might match the return type of a gcc2
15543 builtin and then its argument prototype would still apply. */
15544 char dg_sys_info ();
15545 int
15546 main ()
15547 {
15548 dg_sys_info ();
15549 ;
15550 return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555 (eval $ac_link) 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest$ac_exeext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_cv_lib_dgc_dg_sys_info=yes
15576 else
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 ac_cv_lib_dgc_dg_sys_info=no
15581 fi
15582 rm -f conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15584 LIBS=$ac_check_lib_save_LIBS
15585 fi
15586 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15587 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15588 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define HAVE_LIBDGC 1
15591 _ACEOF
15592
15593 LIBS="-ldgc $LIBS"
15594
15595 fi
15596
15597 fi
15598
15599
15600
15601 if test "${ac_cv_header_locale_h+set}" = set; then
15602 echo "$as_me:$LINENO: checking for locale.h" >&5
15603 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15604 if test "${ac_cv_header_locale_h+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15608 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15609 else
15610 # Is the header compilable?
15611 echo "$as_me:$LINENO: checking locale.h usability" >&5
15612 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <locale.h>
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag"
15632 || test ! -s conftest.err'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_header_compiler=yes
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_header_compiler=no
15650 fi
15651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15653 echo "${ECHO_T}$ac_header_compiler" >&6
15654
15655 # Is the header present?
15656 echo "$as_me:$LINENO: checking locale.h presence" >&5
15657 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <locale.h>
15665 _ACEOF
15666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null; then
15674 if test -s conftest.err; then
15675 ac_cpp_err=$ac_c_preproc_warn_flag
15676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677 else
15678 ac_cpp_err=
15679 fi
15680 else
15681 ac_cpp_err=yes
15682 fi
15683 if test -z "$ac_cpp_err"; then
15684 ac_header_preproc=yes
15685 else
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15688
15689 ac_header_preproc=no
15690 fi
15691 rm -f conftest.err conftest.$ac_ext
15692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15693 echo "${ECHO_T}$ac_header_preproc" >&6
15694
15695 # So? What about this header?
15696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15697 yes:no: )
15698 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15699 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15701 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15702 ac_header_preproc=yes
15703 ;;
15704 no:yes:* )
15705 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15706 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15708 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15710 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15712 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15714 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15716 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15717 (
15718 cat <<\_ASBOX
15719 ## ------------------------------------------ ##
15720 ## Report this to the AC_PACKAGE_NAME lists. ##
15721 ## ------------------------------------------ ##
15722 _ASBOX
15723 ) |
15724 sed "s/^/$as_me: WARNING: /" >&2
15725 ;;
15726 esac
15727 echo "$as_me:$LINENO: checking for locale.h" >&5
15728 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15729 if test "${ac_cv_header_locale_h+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 ac_cv_header_locale_h=$ac_header_preproc
15733 fi
15734 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15735 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15736
15737 fi
15738
15739
15740
15741 for ac_func in setlocale
15742 do
15743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15744 echo "$as_me:$LINENO: checking for $ac_func" >&5
15745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15746 if eval "test \"\${$as_ac_var+set}\" = set"; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h. */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15757 #define $ac_func innocuous_$ac_func
15758
15759 /* System header to define __stub macros and hopefully few prototypes,
15760 which can conflict with char $ac_func (); below.
15761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15762 <limits.h> exists even on freestanding compilers. */
15763
15764 #ifdef __STDC__
15765 # include <limits.h>
15766 #else
15767 # include <assert.h>
15768 #endif
15769
15770 #undef $ac_func
15771
15772 /* Override any gcc2 internal prototype to avoid an error. */
15773 #ifdef __cplusplus
15774 extern "C"
15775 {
15776 #endif
15777 /* We use char because int might match the return type of a gcc2
15778 builtin and then its argument prototype would still apply. */
15779 char $ac_func ();
15780 /* The GNU C library defines this for functions which it implements
15781 to always fail with ENOSYS. Some functions are actually named
15782 something starting with __ and the normal name is an alias. */
15783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15784 choke me
15785 #else
15786 char (*f) () = $ac_func;
15787 #endif
15788 #ifdef __cplusplus
15789 }
15790 #endif
15791
15792 int
15793 main ()
15794 {
15795 return f != $ac_func;
15796 ;
15797 return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 eval "$as_ac_var=yes"
15823 else
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 eval "$as_ac_var=no"
15828 fi
15829 rm -f conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 fi
15832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15834 if test `eval echo '${'$as_ac_var'}'` = yes; then
15835 cat >>confdefs.h <<_ACEOF
15836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15837 _ACEOF
15838
15839 fi
15840 done
15841
15842
15843 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15844 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15845 # Irix 4.0.5F has the header but not the library.
15846 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15847 ac_have_func=yes
15848
15849 cat >>confdefs.h <<\_ACEOF
15850 #define SVR4 1
15851 _ACEOF
15852
15853 fi
15854
15855 if test $ac_have_func = no; then
15856 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15857 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15858 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15859 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 fi
15862 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15863 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15864 else
15865 # Is the header compilable?
15866 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15867 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15868 cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h. */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 $ac_includes_default
15875 #include <inq_stats/cpustats.h>
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try='test -z "$ac_c_werror_flag"
15887 || test ! -s conftest.err'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ac_header_compiler=no
15905 fi
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15908 echo "${ECHO_T}$ac_header_compiler" >&6
15909
15910 # Is the header present?
15911 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15912 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <inq_stats/cpustats.h>
15920 _ACEOF
15921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } >/dev/null; then
15929 if test -s conftest.err; then
15930 ac_cpp_err=$ac_c_preproc_warn_flag
15931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15932 else
15933 ac_cpp_err=
15934 fi
15935 else
15936 ac_cpp_err=yes
15937 fi
15938 if test -z "$ac_cpp_err"; then
15939 ac_header_preproc=yes
15940 else
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 ac_header_preproc=no
15945 fi
15946 rm -f conftest.err conftest.$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15948 echo "${ECHO_T}$ac_header_preproc" >&6
15949
15950 # So? What about this header?
15951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15952 yes:no: )
15953 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15954 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15956 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15957 ac_header_preproc=yes
15958 ;;
15959 no:yes:* )
15960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15961 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15963 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15965 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15967 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15969 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15971 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15972 (
15973 cat <<\_ASBOX
15974 ## ------------------------------------------ ##
15975 ## Report this to the AC_PACKAGE_NAME lists. ##
15976 ## ------------------------------------------ ##
15977 _ASBOX
15978 ) |
15979 sed "s/^/$as_me: WARNING: /" >&2
15980 ;;
15981 esac
15982 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15983 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15984 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15988 fi
15989 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15990 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15991
15992 fi
15993 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15994 ac_have_func=yes
15995
15996 cat >>confdefs.h <<\_ACEOF
15997 #define UMAX 1
15998 _ACEOF
15999
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define UMAX4_3 1
16003 _ACEOF
16004
16005 fi
16006
16007
16008 fi
16009
16010 if test $ac_have_func = no; then
16011 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16012 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16013 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16014 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 fi
16017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16018 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16019 else
16020 # Is the header compilable?
16021 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16022 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <sys/cpustats.h>
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034 (eval $ac_compile) 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -z "$ac_c_werror_flag"
16042 || test ! -s conftest.err'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_header_compiler=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 ac_header_compiler=no
16060 fi
16061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16063 echo "${ECHO_T}$ac_header_compiler" >&6
16064
16065 # Is the header present?
16066 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16067 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <sys/cpustats.h>
16075 _ACEOF
16076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null; then
16084 if test -s conftest.err; then
16085 ac_cpp_err=$ac_c_preproc_warn_flag
16086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16087 else
16088 ac_cpp_err=
16089 fi
16090 else
16091 ac_cpp_err=yes
16092 fi
16093 if test -z "$ac_cpp_err"; then
16094 ac_header_preproc=yes
16095 else
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 ac_header_preproc=no
16100 fi
16101 rm -f conftest.err conftest.$ac_ext
16102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16103 echo "${ECHO_T}$ac_header_preproc" >&6
16104
16105 # So? What about this header?
16106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107 yes:no: )
16108 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16109 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16111 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16112 ac_header_preproc=yes
16113 ;;
16114 no:yes:* )
16115 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16116 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16118 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16120 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16122 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16126 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16127 (
16128 cat <<\_ASBOX
16129 ## ------------------------------------------ ##
16130 ## Report this to the AC_PACKAGE_NAME lists. ##
16131 ## ------------------------------------------ ##
16132 _ASBOX
16133 ) |
16134 sed "s/^/$as_me: WARNING: /" >&2
16135 ;;
16136 esac
16137 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16138 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16139 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16143 fi
16144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16145 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16146
16147 fi
16148 if test $ac_cv_header_sys_cpustats_h = yes; then
16149 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16150 #define UMAX 1
16151 _ACEOF
16152
16153 fi
16154
16155
16156 fi
16157
16158 if test $ac_have_func = no; then
16159
16160 for ac_header in mach/mach.h
16161 do
16162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16164 echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 fi
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16171 else
16172 # Is the header compilable?
16173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h. */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 #include <$ac_header>
16183 _ACEOF
16184 rm -f conftest.$ac_objext
16185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16186 (eval $ac_compile) 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -z "$ac_c_werror_flag"
16194 || test ! -s conftest.err'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_header_compiler=yes
16207 else
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_header_compiler=no
16212 fi
16213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16215 echo "${ECHO_T}$ac_header_compiler" >&6
16216
16217 # Is the header present?
16218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 #include <$ac_header>
16227 _ACEOF
16228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } >/dev/null; then
16236 if test -s conftest.err; then
16237 ac_cpp_err=$ac_c_preproc_warn_flag
16238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16239 else
16240 ac_cpp_err=
16241 fi
16242 else
16243 ac_cpp_err=yes
16244 fi
16245 if test -z "$ac_cpp_err"; then
16246 ac_header_preproc=yes
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 ac_header_preproc=no
16252 fi
16253 rm -f conftest.err conftest.$ac_ext
16254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16255 echo "${ECHO_T}$ac_header_preproc" >&6
16256
16257 # So? What about this header?
16258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 yes:no: )
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16264 ac_header_preproc=yes
16265 ;;
16266 no:yes:* )
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16279 (
16280 cat <<\_ASBOX
16281 ## ------------------------------------------ ##
16282 ## Report this to the AC_PACKAGE_NAME lists. ##
16283 ## ------------------------------------------ ##
16284 _ASBOX
16285 ) |
16286 sed "s/^/$as_me: WARNING: /" >&2
16287 ;;
16288 esac
16289 echo "$as_me:$LINENO: checking for $ac_header" >&5
16290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 eval "$as_ac_Header=\$ac_header_preproc"
16295 fi
16296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16298
16299 fi
16300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16301 cat >>confdefs.h <<_ACEOF
16302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16303 _ACEOF
16304
16305 fi
16306
16307 done
16308
16309 fi
16310
16311
16312 for ac_header in nlist.h
16313 do
16314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16316 echo "$as_me:$LINENO: checking for $ac_header" >&5
16317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 fi
16321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16323 else
16324 # Is the header compilable?
16325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_header_compiler=yes
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_header_compiler=no
16364 fi
16365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16367 echo "${ECHO_T}$ac_header_compiler" >&6
16368
16369 # Is the header present?
16370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h. */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 #include <$ac_header>
16379 _ACEOF
16380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } >/dev/null; then
16388 if test -s conftest.err; then
16389 ac_cpp_err=$ac_c_preproc_warn_flag
16390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16391 else
16392 ac_cpp_err=
16393 fi
16394 else
16395 ac_cpp_err=yes
16396 fi
16397 if test -z "$ac_cpp_err"; then
16398 ac_header_preproc=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ac_header_preproc=no
16404 fi
16405 rm -f conftest.err conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16407 echo "${ECHO_T}$ac_header_preproc" >&6
16408
16409 # So? What about this header?
16410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16411 yes:no: )
16412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16416 ac_header_preproc=yes
16417 ;;
16418 no:yes:* )
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16431 (
16432 cat <<\_ASBOX
16433 ## ------------------------------------------ ##
16434 ## Report this to the AC_PACKAGE_NAME lists. ##
16435 ## ------------------------------------------ ##
16436 _ASBOX
16437 ) |
16438 sed "s/^/$as_me: WARNING: /" >&2
16439 ;;
16440 esac
16441 echo "$as_me:$LINENO: checking for $ac_header" >&5
16442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 eval "$as_ac_Header=\$ac_header_preproc"
16447 fi
16448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16450
16451 fi
16452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16455 _ACEOF
16456 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16457 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16458 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 cat >conftest.$ac_ext <<_ACEOF
16462 /* confdefs.h. */
16463 _ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h. */
16467 #include <nlist.h>
16468
16469 int
16470 main ()
16471 {
16472 static struct nlist ac_aggr;
16473 if (ac_aggr.n_un.n_name)
16474 return 0;
16475 ;
16476 return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_cv_member_struct_nlist_n_un_n_name=yes
16502 else
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 #include <nlist.h>
16513
16514 int
16515 main ()
16516 {
16517 static struct nlist ac_aggr;
16518 if (sizeof ac_aggr.n_un.n_name)
16519 return 0;
16520 ;
16521 return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16526 (eval $ac_compile) 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag"
16534 || test ! -s conftest.err'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_member_struct_nlist_n_un_n_name=yes
16547 else
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 ac_cv_member_struct_nlist_n_un_n_name=no
16552 fi
16553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16554 fi
16555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16556 fi
16557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16558 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16559 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16560
16561 cat >>confdefs.h <<_ACEOF
16562 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16563 _ACEOF
16564
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define NLIST_NAME_UNION 1
16568 _ACEOF
16569
16570 fi
16571
16572
16573 fi
16574
16575 done
16576
16577 fi
16578 done
16579
16580
16581 # Some definitions of getloadavg require that the program be installed setgid.
16582 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16583 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16584 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16594 #ifdef LDAV_PRIVILEGED
16595 Yowza Am I SETGID yet
16596 #endif
16597 _ACEOF
16598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16599 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16600 ac_cv_func_getloadavg_setgid=yes
16601 else
16602 ac_cv_func_getloadavg_setgid=no
16603 fi
16604 rm -f conftest*
16605
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16608 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16609 if test $ac_cv_func_getloadavg_setgid = yes; then
16610 NEED_SETGID=true
16611
16612 cat >>confdefs.h <<\_ACEOF
16613 #define GETLOADAVG_PRIVILEGED 1
16614 _ACEOF
16615
16616 else
16617 NEED_SETGID=false
16618 fi
16619
16620 if test $ac_cv_func_getloadavg_setgid = yes; then
16621 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16622 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16623 if test "${ac_cv_group_kmem+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16627 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16628 # If we got an error (system does not support symlinks), try without -L.
16629 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16630 ac_cv_group_kmem=`echo $ac_ls_output \
16631 | sed -ne 's/[ ][ ]*/ /g;
16632 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16633 / /s/.* //;p;'`
16634
16635 fi
16636 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16637 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16638 KMEM_GROUP=$ac_cv_group_kmem
16639 fi
16640 if test "x$ac_save_LIBS" = x; then
16641 GETLOADAVG_LIBS=$LIBS
16642 else
16643 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16644 fi
16645 LIBS=$ac_save_LIBS
16646
16647
16648
16649 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16650 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16651 if test "${ac_cv_sys_largefile_source+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 while :; do
16655 ac_cv_sys_largefile_source=no
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 #include <stdio.h>
16663 int
16664 main ()
16665 {
16666 return !fseeko;
16667 ;
16668 return 0;
16669 }
16670 _ACEOF
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag"
16681 || test ! -s conftest.err'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest.$ac_objext'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 break
16694 else
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698 fi
16699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #define _LARGEFILE_SOURCE 1
16707 #include <stdio.h>
16708 int
16709 main ()
16710 {
16711 return !fseeko;
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag"
16726 || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest.$ac_objext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_cv_sys_largefile_source=1; break
16739 else
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743 fi
16744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16745 break
16746 done
16747 fi
16748 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16749 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16750 if test "$ac_cv_sys_largefile_source" != no; then
16751
16752 cat >>confdefs.h <<_ACEOF
16753 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16754 _ACEOF
16755
16756 fi
16757 rm -f conftest*
16758
16759 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16760 # in glibc 2.1.3, but that breaks too many other things.
16761 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16762 echo "$as_me:$LINENO: checking for fseeko" >&5
16763 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16764 if test "${ac_cv_func_fseeko+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <stdio.h>
16774 int
16775 main ()
16776 {
16777 return fseeko && fseeko (stdin, 0, 0);
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_func_fseeko=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_cv_func_fseeko=no
16810 fi
16811 rm -f conftest.err conftest.$ac_objext \
16812 conftest$ac_exeext conftest.$ac_ext
16813 fi
16814 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16815 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16816 if test $ac_cv_func_fseeko = yes; then
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define HAVE_FSEEKO 1
16820 _ACEOF
16821
16822 fi
16823
16824
16825 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16826 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16827 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830 # Use it with a single arg.
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 $ac_includes_default
16838 int
16839 main ()
16840 {
16841 getpgrp (0);
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_func_getpgrp_void=no
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_func_getpgrp_void=yes
16874 fi
16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876
16877 fi
16878 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16879 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16880 if test $ac_cv_func_getpgrp_void = yes; then
16881
16882 cat >>confdefs.h <<\_ACEOF
16883 #define GETPGRP_VOID 1
16884 _ACEOF
16885
16886 fi
16887
16888
16889
16890 for ac_func in strftime
16891 do
16892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16893 echo "$as_me:$LINENO: checking for $ac_func" >&5
16894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16895 if eval "test \"\${$as_ac_var+set}\" = set"; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define $ac_func innocuous_$ac_func
16907
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16912
16913 #ifdef __STDC__
16914 # include <limits.h>
16915 #else
16916 # include <assert.h>
16917 #endif
16918
16919 #undef $ac_func
16920
16921 /* Override any gcc2 internal prototype to avoid an error. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 {
16925 #endif
16926 /* We use char because int might match the return type of a gcc2
16927 builtin and then its argument prototype would still apply. */
16928 char $ac_func ();
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16933 choke me
16934 #else
16935 char (*f) () = $ac_func;
16936 #endif
16937 #ifdef __cplusplus
16938 }
16939 #endif
16940
16941 int
16942 main ()
16943 {
16944 return f != $ac_func;
16945 ;
16946 return 0;
16947 }
16948 _ACEOF
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16951 (eval $ac_link) 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
16958 { ac_try='test -z "$ac_c_werror_flag"
16959 || test ! -s conftest.err'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest$ac_exeext'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 eval "$as_ac_var=yes"
16972 else
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16975
16976 eval "$as_ac_var=no"
16977 fi
16978 rm -f conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 fi
16981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16983 if test `eval echo '${'$as_ac_var'}'` = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16986 _ACEOF
16987
16988 else
16989 # strftime is in -lintl on SCO UNIX.
16990 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16991 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lintl $LIBS"
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003
17004 /* Override any gcc2 internal prototype to avoid an error. */
17005 #ifdef __cplusplus
17006 extern "C"
17007 #endif
17008 /* We use char because int might match the return type of a gcc2
17009 builtin and then its argument prototype would still apply. */
17010 char strftime ();
17011 int
17012 main ()
17013 {
17014 strftime ();
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_lib_intl_strftime=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_cv_lib_intl_strftime=no
17047 fi
17048 rm -f conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050 LIBS=$ac_check_lib_save_LIBS
17051 fi
17052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17053 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17054 if test $ac_cv_lib_intl_strftime = yes; then
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_STRFTIME 1
17057 _ACEOF
17058
17059 LIBS="-lintl $LIBS"
17060 fi
17061
17062 fi
17063 done
17064
17065
17066 # UNIX98 PTYs.
17067
17068 for ac_func in grantpt
17069 do
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17073 if eval "test \"\${$as_ac_var+set}\" = set"; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17084 #define $ac_func innocuous_$ac_func
17085
17086 /* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func (); below.
17088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089 <limits.h> exists even on freestanding compilers. */
17090
17091 #ifdef __STDC__
17092 # include <limits.h>
17093 #else
17094 # include <assert.h>
17095 #endif
17096
17097 #undef $ac_func
17098
17099 /* Override any gcc2 internal prototype to avoid an error. */
17100 #ifdef __cplusplus
17101 extern "C"
17102 {
17103 #endif
17104 /* We use char because int might match the return type of a gcc2
17105 builtin and then its argument prototype would still apply. */
17106 char $ac_func ();
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17111 choke me
17112 #else
17113 char (*f) () = $ac_func;
17114 #endif
17115 #ifdef __cplusplus
17116 }
17117 #endif
17118
17119 int
17120 main ()
17121 {
17122 return f != $ac_func;
17123 ;
17124 return 0;
17125 }
17126 _ACEOF
17127 rm -f conftest.$ac_objext conftest$ac_exeext
17128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17129 (eval $ac_link) 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag"
17137 || test ! -s conftest.err'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } &&
17143 { ac_try='test -s conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 eval "$as_ac_var=yes"
17150 else
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154 eval "$as_ac_var=no"
17155 fi
17156 rm -f conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158 fi
17159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17161 if test `eval echo '${'$as_ac_var'}'` = yes; then
17162 cat >>confdefs.h <<_ACEOF
17163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17164 _ACEOF
17165
17166 fi
17167 done
17168
17169
17170 # PTY-related GNU extensions.
17171
17172 for ac_func in getpt
17173 do
17174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175 echo "$as_me:$LINENO: checking for $ac_func" >&5
17176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17177 if eval "test \"\${$as_ac_var+set}\" = set"; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17188 #define $ac_func innocuous_$ac_func
17189
17190 /* System header to define __stub macros and hopefully few prototypes,
17191 which can conflict with char $ac_func (); below.
17192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17193 <limits.h> exists even on freestanding compilers. */
17194
17195 #ifdef __STDC__
17196 # include <limits.h>
17197 #else
17198 # include <assert.h>
17199 #endif
17200
17201 #undef $ac_func
17202
17203 /* Override any gcc2 internal prototype to avoid an error. */
17204 #ifdef __cplusplus
17205 extern "C"
17206 {
17207 #endif
17208 /* We use char because int might match the return type of a gcc2
17209 builtin and then its argument prototype would still apply. */
17210 char $ac_func ();
17211 /* The GNU C library defines this for functions which it implements
17212 to always fail with ENOSYS. Some functions are actually named
17213 something starting with __ and the normal name is an alias. */
17214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17215 choke me
17216 #else
17217 char (*f) () = $ac_func;
17218 #endif
17219 #ifdef __cplusplus
17220 }
17221 #endif
17222
17223 int
17224 main ()
17225 {
17226 return f != $ac_func;
17227 ;
17228 return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233 (eval $ac_link) 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 eval "$as_ac_var=yes"
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258 eval "$as_ac_var=no"
17259 fi
17260 rm -f conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17262 fi
17263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17265 if test `eval echo '${'$as_ac_var'}'` = yes; then
17266 cat >>confdefs.h <<_ACEOF
17267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17268 _ACEOF
17269
17270 fi
17271 done
17272
17273
17274 # Check this now, so that we will NOT find the above functions in ncurses.
17275 # That is because we have not set up to link ncurses in lib-src.
17276 # It's better to believe a function is not available
17277 # than to expect to find it in ncurses.
17278
17279 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17280 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17281 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284 ac_check_lib_save_LIBS=$LIBS
17285 LIBS="-lncurses $LIBS"
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292
17293 /* Override any gcc2 internal prototype to avoid an error. */
17294 #ifdef __cplusplus
17295 extern "C"
17296 #endif
17297 /* We use char because int might match the return type of a gcc2
17298 builtin and then its argument prototype would still apply. */
17299 char tparm ();
17300 int
17301 main ()
17302 {
17303 tparm ();
17304 ;
17305 return 0;
17306 }
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_lib_ncurses_tparm=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 ac_cv_lib_ncurses_tparm=no
17336 fi
17337 rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17339 LIBS=$ac_check_lib_save_LIBS
17340 fi
17341 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17342 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17343 if test $ac_cv_lib_ncurses_tparm = yes; then
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_LIBNCURSES 1
17346 _ACEOF
17347
17348 LIBS="-lncurses $LIBS"
17349
17350 fi
17351
17352
17353 # Do we need the Hesiod library to provide the support routines?
17354 if test "$with_hesiod" = yes ; then
17355 # Don't set $LIBS here -- see comments above.
17356 resolv=no
17357 echo "$as_me:$LINENO: checking for res_send" >&5
17358 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17359 if test "${ac_cv_func_res_send+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370 #define res_send innocuous_res_send
17371
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char res_send (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17376
17377 #ifdef __STDC__
17378 # include <limits.h>
17379 #else
17380 # include <assert.h>
17381 #endif
17382
17383 #undef res_send
17384
17385 /* Override any gcc2 internal prototype to avoid an error. */
17386 #ifdef __cplusplus
17387 extern "C"
17388 {
17389 #endif
17390 /* We use char because int might match the return type of a gcc2
17391 builtin and then its argument prototype would still apply. */
17392 char res_send ();
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined (__stub_res_send) || defined (__stub___res_send)
17397 choke me
17398 #else
17399 char (*f) () = res_send;
17400 #endif
17401 #ifdef __cplusplus
17402 }
17403 #endif
17404
17405 int
17406 main ()
17407 {
17408 return f != res_send;
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_func_res_send=yes
17436 else
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 ac_cv_func_res_send=no
17441 fi
17442 rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 fi
17445 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17446 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17447 if test $ac_cv_func_res_send = yes; then
17448 :
17449 else
17450 echo "$as_me:$LINENO: checking for __res_send" >&5
17451 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17452 if test "${ac_cv_func___res_send+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455 cat >conftest.$ac_ext <<_ACEOF
17456 /* confdefs.h. */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17463 #define __res_send innocuous___res_send
17464
17465 /* System header to define __stub macros and hopefully few prototypes,
17466 which can conflict with char __res_send (); below.
17467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17468 <limits.h> exists even on freestanding compilers. */
17469
17470 #ifdef __STDC__
17471 # include <limits.h>
17472 #else
17473 # include <assert.h>
17474 #endif
17475
17476 #undef __res_send
17477
17478 /* Override any gcc2 internal prototype to avoid an error. */
17479 #ifdef __cplusplus
17480 extern "C"
17481 {
17482 #endif
17483 /* We use char because int might match the return type of a gcc2
17484 builtin and then its argument prototype would still apply. */
17485 char __res_send ();
17486 /* The GNU C library defines this for functions which it implements
17487 to always fail with ENOSYS. Some functions are actually named
17488 something starting with __ and the normal name is an alias. */
17489 #if defined (__stub___res_send) || defined (__stub_____res_send)
17490 choke me
17491 #else
17492 char (*f) () = __res_send;
17493 #endif
17494 #ifdef __cplusplus
17495 }
17496 #endif
17497
17498 int
17499 main ()
17500 {
17501 return f != __res_send;
17502 ;
17503 return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext conftest$ac_exeext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17508 (eval $ac_link) 2>conftest.er1
17509 ac_status=$?
17510 grep -v '^ *+' conftest.er1 >conftest.err
17511 rm -f conftest.er1
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
17515 { ac_try='test -z "$ac_c_werror_flag"
17516 || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest$ac_exeext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_cv_func___res_send=yes
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533 ac_cv_func___res_send=no
17534 fi
17535 rm -f conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537 fi
17538 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17539 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17540 if test $ac_cv_func___res_send = yes; then
17541 :
17542 else
17543 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17544 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17545 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 ac_check_lib_save_LIBS=$LIBS
17549 LIBS="-lresolv $LIBS"
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556
17557 /* Override any gcc2 internal prototype to avoid an error. */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17563 char res_send ();
17564 int
17565 main ()
17566 {
17567 res_send ();
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 ac_cv_lib_resolv_res_send=yes
17595 else
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 ac_cv_lib_resolv_res_send=no
17600 fi
17601 rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17604 fi
17605 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17606 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17607 if test $ac_cv_lib_resolv_res_send = yes; then
17608 resolv=yes
17609 else
17610 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17611 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17612 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615 ac_check_lib_save_LIBS=$LIBS
17616 LIBS="-lresolv $LIBS"
17617 cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623
17624 /* Override any gcc2 internal prototype to avoid an error. */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 /* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630 char __res_send ();
17631 int
17632 main ()
17633 {
17634 __res_send ();
17635 ;
17636 return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17661 ac_cv_lib_resolv___res_send=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666 ac_cv_lib_resolv___res_send=no
17667 fi
17668 rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17670 LIBS=$ac_check_lib_save_LIBS
17671 fi
17672 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17673 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17674 if test $ac_cv_lib_resolv___res_send = yes; then
17675 resolv=yes
17676 fi
17677
17678 fi
17679
17680 fi
17681
17682 fi
17683
17684 if test "$resolv" = yes ; then
17685 RESOLVLIB=-lresolv
17686
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_LIBRESOLV 1
17689 _ACEOF
17690
17691 else
17692 RESOLVLIB=
17693 fi
17694 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17695 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17696 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define hes_getmailhost innocuous_hes_getmailhost
17708
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char hes_getmailhost (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17713
17714 #ifdef __STDC__
17715 # include <limits.h>
17716 #else
17717 # include <assert.h>
17718 #endif
17719
17720 #undef hes_getmailhost
17721
17722 /* Override any gcc2 internal prototype to avoid an error. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 {
17726 #endif
17727 /* We use char because int might match the return type of a gcc2
17728 builtin and then its argument prototype would still apply. */
17729 char hes_getmailhost ();
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17734 choke me
17735 #else
17736 char (*f) () = hes_getmailhost;
17737 #endif
17738 #ifdef __cplusplus
17739 }
17740 #endif
17741
17742 int
17743 main ()
17744 {
17745 return f != hes_getmailhost;
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest$ac_exeext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_func_hes_getmailhost=yes
17773 else
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_func_hes_getmailhost=no
17778 fi
17779 rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 fi
17782 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17783 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17784 if test $ac_cv_func_hes_getmailhost = yes; then
17785 :
17786 else
17787 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17788 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17789 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792 ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-lhesiod $RESOLVLIB $LIBS"
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h. */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800
17801 /* Override any gcc2 internal prototype to avoid an error. */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 /* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17807 char hes_getmailhost ();
17808 int
17809 main ()
17810 {
17811 hes_getmailhost ();
17812 ;
17813 return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818 (eval $ac_link) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest$ac_exeext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_lib_hesiod_hes_getmailhost=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 ac_cv_lib_hesiod_hes_getmailhost=no
17844 fi
17845 rm -f conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17848 fi
17849 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17850 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17851 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17852
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_LIBHESIOD 1
17855 _ACEOF
17856
17857 else
17858 :
17859 fi
17860
17861 fi
17862
17863 fi
17864
17865 # These tell us which Kerberos-related libraries to use.
17866 if test "${with_kerberos+set}" = set; then
17867
17868 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17869 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17870 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 ac_check_lib_save_LIBS=$LIBS
17874 LIBS="-lcom_err $LIBS"
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881
17882 /* Override any gcc2 internal prototype to avoid an error. */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 /* We use char because int might match the return type of a gcc2
17887 builtin and then its argument prototype would still apply. */
17888 char com_err ();
17889 int
17890 main ()
17891 {
17892 com_err ();
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag"
17907 || test ! -s conftest.err'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; } &&
17913 { ac_try='test -s conftest$ac_exeext'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_lib_com_err_com_err=yes
17920 else
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924 ac_cv_lib_com_err_com_err=no
17925 fi
17926 rm -f conftest.err conftest.$ac_objext \
17927 conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17929 fi
17930 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17931 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17932 if test $ac_cv_lib_com_err_com_err = yes; then
17933 cat >>confdefs.h <<_ACEOF
17934 #define HAVE_LIBCOM_ERR 1
17935 _ACEOF
17936
17937 LIBS="-lcom_err $LIBS"
17938
17939 fi
17940
17941
17942 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17943 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17944 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947 ac_check_lib_save_LIBS=$LIBS
17948 LIBS="-lk5crypto $LIBS"
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h. */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955
17956 /* Override any gcc2 internal prototype to avoid an error. */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 /* We use char because int might match the return type of a gcc2
17961 builtin and then its argument prototype would still apply. */
17962 char mit_des_cbc_encrypt ();
17963 int
17964 main ()
17965 {
17966 mit_des_cbc_encrypt ();
17967 ;
17968 return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag"
17981 || test ! -s conftest.err'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest$ac_exeext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17994 else
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17999 fi
18000 rm -f conftest.err conftest.$ac_objext \
18001 conftest$ac_exeext conftest.$ac_ext
18002 LIBS=$ac_check_lib_save_LIBS
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18005 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18006 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18007 cat >>confdefs.h <<_ACEOF
18008 #define HAVE_LIBK5CRYPTO 1
18009 _ACEOF
18010
18011 LIBS="-lk5crypto $LIBS"
18012
18013 fi
18014
18015
18016 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18017 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18018 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021 ac_check_lib_save_LIBS=$LIBS
18022 LIBS="-lcrypto $LIBS"
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029
18030 /* Override any gcc2 internal prototype to avoid an error. */
18031 #ifdef __cplusplus
18032 extern "C"
18033 #endif
18034 /* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
18036 char mit_des_cbc_encrypt ();
18037 int
18038 main ()
18039 {
18040 mit_des_cbc_encrypt ();
18041 ;
18042 return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag"
18055 || test ! -s conftest.err'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; } &&
18061 { ac_try='test -s conftest$ac_exeext'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18073 fi
18074 rm -f conftest.err conftest.$ac_objext \
18075 conftest$ac_exeext conftest.$ac_ext
18076 LIBS=$ac_check_lib_save_LIBS
18077 fi
18078 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18079 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18080 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_LIBCRYPTO 1
18083 _ACEOF
18084
18085 LIBS="-lcrypto $LIBS"
18086
18087 fi
18088
18089
18090 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18091 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18092 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095 ac_check_lib_save_LIBS=$LIBS
18096 LIBS="-lkrb5 $LIBS"
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103
18104 /* Override any gcc2 internal prototype to avoid an error. */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 /* We use char because int might match the return type of a gcc2
18109 builtin and then its argument prototype would still apply. */
18110 char krb5_init_context ();
18111 int
18112 main ()
18113 {
18114 krb5_init_context ();
18115 ;
18116 return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121 (eval $ac_link) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
18128 { ac_try='test -z "$ac_c_werror_flag"
18129 || test ! -s conftest.err'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest$ac_exeext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_cv_lib_krb5_krb5_init_context=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ac_cv_lib_krb5_krb5_init_context=no
18147 fi
18148 rm -f conftest.err conftest.$ac_objext \
18149 conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18151 fi
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18153 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18154 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18155 cat >>confdefs.h <<_ACEOF
18156 #define HAVE_LIBKRB5 1
18157 _ACEOF
18158
18159 LIBS="-lkrb5 $LIBS"
18160
18161 fi
18162
18163 if test "${with_kerberos5+set}" != set; then
18164
18165 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18166 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18167 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170 ac_check_lib_save_LIBS=$LIBS
18171 LIBS="-ldes425 $LIBS"
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178
18179 /* Override any gcc2 internal prototype to avoid an error. */
18180 #ifdef __cplusplus
18181 extern "C"
18182 #endif
18183 /* We use char because int might match the return type of a gcc2
18184 builtin and then its argument prototype would still apply. */
18185 char des_cbc_encrypt ();
18186 int
18187 main ()
18188 {
18189 des_cbc_encrypt ();
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_lib_des425_des_cbc_encrypt=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_lib_des425_des_cbc_encrypt=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18226 fi
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18228 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18229 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18230 cat >>confdefs.h <<_ACEOF
18231 #define HAVE_LIBDES425 1
18232 _ACEOF
18233
18234 LIBS="-ldes425 $LIBS"
18235
18236 else
18237
18238 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18239 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18240 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243 ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-ldes $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h. */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251
18252 /* Override any gcc2 internal prototype to avoid an error. */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 /* We use char because int might match the return type of a gcc2
18257 builtin and then its argument prototype would still apply. */
18258 char des_cbc_encrypt ();
18259 int
18260 main ()
18261 {
18262 des_cbc_encrypt ();
18263 ;
18264 return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269 (eval $ac_link) 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_des_des_cbc_encrypt=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_cv_lib_des_des_cbc_encrypt=no
18295 fi
18296 rm -f conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18299 fi
18300 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18301 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18302 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18303 cat >>confdefs.h <<_ACEOF
18304 #define HAVE_LIBDES 1
18305 _ACEOF
18306
18307 LIBS="-ldes $LIBS"
18308
18309 fi
18310
18311 fi
18312
18313
18314 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18315 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18316 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-lkrb4 $LIBS"
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327
18328 /* Override any gcc2 internal prototype to avoid an error. */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 /* We use char because int might match the return type of a gcc2
18333 builtin and then its argument prototype would still apply. */
18334 char krb_get_cred ();
18335 int
18336 main ()
18337 {
18338 krb_get_cred ();
18339 ;
18340 return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345 (eval $ac_link) 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } &&
18352 { ac_try='test -z "$ac_c_werror_flag"
18353 || test ! -s conftest.err'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 ac_cv_lib_krb4_krb_get_cred=yes
18366 else
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_cv_lib_krb4_krb_get_cred=no
18371 fi
18372 rm -f conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18375 fi
18376 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18377 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18378 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18379 cat >>confdefs.h <<_ACEOF
18380 #define HAVE_LIBKRB4 1
18381 _ACEOF
18382
18383 LIBS="-lkrb4 $LIBS"
18384
18385 else
18386
18387 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18388 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18389 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392 ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lkrb $LIBS"
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400
18401 /* Override any gcc2 internal prototype to avoid an error. */
18402 #ifdef __cplusplus
18403 extern "C"
18404 #endif
18405 /* We use char because int might match the return type of a gcc2
18406 builtin and then its argument prototype would still apply. */
18407 char krb_get_cred ();
18408 int
18409 main ()
18410 {
18411 krb_get_cred ();
18412 ;
18413 return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18418 (eval $ac_link) 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag"
18426 || test ! -s conftest.err'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_krb_krb_get_cred=yes
18439 else
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_cv_lib_krb_krb_get_cred=no
18444 fi
18445 rm -f conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18448 fi
18449 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18450 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18451 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18452 cat >>confdefs.h <<_ACEOF
18453 #define HAVE_LIBKRB 1
18454 _ACEOF
18455
18456 LIBS="-lkrb $LIBS"
18457
18458 fi
18459
18460 fi
18461
18462 fi
18463
18464 if test "${with_kerberos5+set}" = set; then
18465
18466 for ac_header in krb5.h
18467 do
18468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18470 echo "$as_me:$LINENO: checking for $ac_header" >&5
18471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 fi
18475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18477 else
18478 # Is the header compilable?
18479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 $ac_includes_default
18488 #include <$ac_header>
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest.$ac_objext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_header_compiler=yes
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 ac_header_compiler=no
18518 fi
18519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18521 echo "${ECHO_T}$ac_header_compiler" >&6
18522
18523 # Is the header present?
18524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h. */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532 #include <$ac_header>
18533 _ACEOF
18534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } >/dev/null; then
18542 if test -s conftest.err; then
18543 ac_cpp_err=$ac_c_preproc_warn_flag
18544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18545 else
18546 ac_cpp_err=
18547 fi
18548 else
18549 ac_cpp_err=yes
18550 fi
18551 if test -z "$ac_cpp_err"; then
18552 ac_header_preproc=yes
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_header_preproc=no
18558 fi
18559 rm -f conftest.err conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6
18562
18563 # So? What about this header?
18564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18565 yes:no: )
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18570 ac_header_preproc=yes
18571 ;;
18572 no:yes:* )
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18585 (
18586 cat <<\_ASBOX
18587 ## ------------------------------------------ ##
18588 ## Report this to the AC_PACKAGE_NAME lists. ##
18589 ## ------------------------------------------ ##
18590 _ASBOX
18591 ) |
18592 sed "s/^/$as_me: WARNING: /" >&2
18593 ;;
18594 esac
18595 echo "$as_me:$LINENO: checking for $ac_header" >&5
18596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600 eval "$as_ac_Header=\$ac_header_preproc"
18601 fi
18602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18604
18605 fi
18606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18609 _ACEOF
18610
18611 fi
18612
18613 done
18614
18615 else
18616
18617 for ac_header in des.h
18618 do
18619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18621 echo "$as_me:$LINENO: checking for $ac_header" >&5
18622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 fi
18626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18628 else
18629 # Is the header compilable?
18630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18638 $ac_includes_default
18639 #include <$ac_header>
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643 (eval $ac_compile) 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag"
18651 || test ! -s conftest.err'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest.$ac_objext'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_header_compiler=yes
18664 else
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_header_compiler=no
18669 fi
18670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18672 echo "${ECHO_T}$ac_header_compiler" >&6
18673
18674 # Is the header present?
18675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 #include <$ac_header>
18684 _ACEOF
18685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18687 ac_status=$?
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } >/dev/null; then
18693 if test -s conftest.err; then
18694 ac_cpp_err=$ac_c_preproc_warn_flag
18695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18696 else
18697 ac_cpp_err=
18698 fi
18699 else
18700 ac_cpp_err=yes
18701 fi
18702 if test -z "$ac_cpp_err"; then
18703 ac_header_preproc=yes
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_header_preproc=no
18709 fi
18710 rm -f conftest.err conftest.$ac_ext
18711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18712 echo "${ECHO_T}$ac_header_preproc" >&6
18713
18714 # So? What about this header?
18715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18716 yes:no: )
18717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18721 ac_header_preproc=yes
18722 ;;
18723 no:yes:* )
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18736 (
18737 cat <<\_ASBOX
18738 ## ------------------------------------------ ##
18739 ## Report this to the AC_PACKAGE_NAME lists. ##
18740 ## ------------------------------------------ ##
18741 _ASBOX
18742 ) |
18743 sed "s/^/$as_me: WARNING: /" >&2
18744 ;;
18745 esac
18746 echo "$as_me:$LINENO: checking for $ac_header" >&5
18747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751 eval "$as_ac_Header=\$ac_header_preproc"
18752 fi
18753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18755
18756 fi
18757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18760 _ACEOF
18761
18762 else
18763
18764 for ac_header in kerberosIV/des.h
18765 do
18766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768 echo "$as_me:$LINENO: checking for $ac_header" >&5
18769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 fi
18773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18775 else
18776 # Is the header compilable?
18777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 $ac_includes_default
18786 #include <$ac_header>
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_header_compiler=yes
18811 else
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_header_compiler=no
18816 fi
18817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18819 echo "${ECHO_T}$ac_header_compiler" >&6
18820
18821 # Is the header present?
18822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h. */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 #include <$ac_header>
18831 _ACEOF
18832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } >/dev/null; then
18840 if test -s conftest.err; then
18841 ac_cpp_err=$ac_c_preproc_warn_flag
18842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18843 else
18844 ac_cpp_err=
18845 fi
18846 else
18847 ac_cpp_err=yes
18848 fi
18849 if test -z "$ac_cpp_err"; then
18850 ac_header_preproc=yes
18851 else
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 ac_header_preproc=no
18856 fi
18857 rm -f conftest.err conftest.$ac_ext
18858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18859 echo "${ECHO_T}$ac_header_preproc" >&6
18860
18861 # So? What about this header?
18862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18863 yes:no: )
18864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18868 ac_header_preproc=yes
18869 ;;
18870 no:yes:* )
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18883 (
18884 cat <<\_ASBOX
18885 ## ------------------------------------------ ##
18886 ## Report this to the AC_PACKAGE_NAME lists. ##
18887 ## ------------------------------------------ ##
18888 _ASBOX
18889 ) |
18890 sed "s/^/$as_me: WARNING: /" >&2
18891 ;;
18892 esac
18893 echo "$as_me:$LINENO: checking for $ac_header" >&5
18894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898 eval "$as_ac_Header=\$ac_header_preproc"
18899 fi
18900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18902
18903 fi
18904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18905 cat >>confdefs.h <<_ACEOF
18906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18907 _ACEOF
18908
18909 else
18910
18911 for ac_header in kerberos/des.h
18912 do
18913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18915 echo "$as_me:$LINENO: checking for $ac_header" >&5
18916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 fi
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922 else
18923 # Is the header compilable?
18924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18933 #include <$ac_header>
18934 _ACEOF
18935 rm -f conftest.$ac_objext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937 (eval $ac_compile) 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_header_compiler=yes
18958 else
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_header_compiler=no
18963 fi
18964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968 # Is the header present?
18969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <$ac_header>
18978 _ACEOF
18979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } >/dev/null; then
18987 if test -s conftest.err; then
18988 ac_cpp_err=$ac_c_preproc_warn_flag
18989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18990 else
18991 ac_cpp_err=
18992 fi
18993 else
18994 ac_cpp_err=yes
18995 fi
18996 if test -z "$ac_cpp_err"; then
18997 ac_header_preproc=yes
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ac_header_preproc=no
19003 fi
19004 rm -f conftest.err conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006 echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008 # So? What about this header?
19009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010 yes:no: )
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19015 ac_header_preproc=yes
19016 ;;
19017 no:yes:* )
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19030 (
19031 cat <<\_ASBOX
19032 ## ------------------------------------------ ##
19033 ## Report this to the AC_PACKAGE_NAME lists. ##
19034 ## ------------------------------------------ ##
19035 _ASBOX
19036 ) |
19037 sed "s/^/$as_me: WARNING: /" >&2
19038 ;;
19039 esac
19040 echo "$as_me:$LINENO: checking for $ac_header" >&5
19041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045 eval "$as_ac_Header=\$ac_header_preproc"
19046 fi
19047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19049
19050 fi
19051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19054 _ACEOF
19055
19056 fi
19057
19058 done
19059
19060 fi
19061
19062 done
19063
19064 fi
19065
19066 done
19067
19068
19069 for ac_header in krb.h
19070 do
19071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19073 echo "$as_me:$LINENO: checking for $ac_header" >&5
19074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 fi
19078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19080 else
19081 # Is the header compilable?
19082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h. */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 $ac_includes_default
19091 #include <$ac_header>
19092 _ACEOF
19093 rm -f conftest.$ac_objext
19094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19095 (eval $ac_compile) 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } &&
19102 { ac_try='test -z "$ac_c_werror_flag"
19103 || test ! -s conftest.err'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_header_compiler=yes
19116 else
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ac_header_compiler=no
19121 fi
19122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19124 echo "${ECHO_T}$ac_header_compiler" >&6
19125
19126 # Is the header present?
19127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h. */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 #include <$ac_header>
19136 _ACEOF
19137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } >/dev/null; then
19145 if test -s conftest.err; then
19146 ac_cpp_err=$ac_c_preproc_warn_flag
19147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19148 else
19149 ac_cpp_err=
19150 fi
19151 else
19152 ac_cpp_err=yes
19153 fi
19154 if test -z "$ac_cpp_err"; then
19155 ac_header_preproc=yes
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 ac_header_preproc=no
19161 fi
19162 rm -f conftest.err conftest.$ac_ext
19163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19164 echo "${ECHO_T}$ac_header_preproc" >&6
19165
19166 # So? What about this header?
19167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19168 yes:no: )
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19173 ac_header_preproc=yes
19174 ;;
19175 no:yes:* )
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19188 (
19189 cat <<\_ASBOX
19190 ## ------------------------------------------ ##
19191 ## Report this to the AC_PACKAGE_NAME lists. ##
19192 ## ------------------------------------------ ##
19193 _ASBOX
19194 ) |
19195 sed "s/^/$as_me: WARNING: /" >&2
19196 ;;
19197 esac
19198 echo "$as_me:$LINENO: checking for $ac_header" >&5
19199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203 eval "$as_ac_Header=\$ac_header_preproc"
19204 fi
19205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19207
19208 fi
19209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19210 cat >>confdefs.h <<_ACEOF
19211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19212 _ACEOF
19213
19214 else
19215
19216 for ac_header in kerberosIV/krb.h
19217 do
19218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19220 echo "$as_me:$LINENO: checking for $ac_header" >&5
19221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 fi
19225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19227 else
19228 # Is the header compilable?
19229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 $ac_includes_default
19238 #include <$ac_header>
19239 _ACEOF
19240 rm -f conftest.$ac_objext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest.$ac_objext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_header_compiler=yes
19263 else
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 ac_header_compiler=no
19268 fi
19269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271 echo "${ECHO_T}$ac_header_compiler" >&6
19272
19273 # Is the header present?
19274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h. */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <$ac_header>
19283 _ACEOF
19284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } >/dev/null; then
19292 if test -s conftest.err; then
19293 ac_cpp_err=$ac_c_preproc_warn_flag
19294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19295 else
19296 ac_cpp_err=
19297 fi
19298 else
19299 ac_cpp_err=yes
19300 fi
19301 if test -z "$ac_cpp_err"; then
19302 ac_header_preproc=yes
19303 else
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_header_preproc=no
19308 fi
19309 rm -f conftest.err conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19311 echo "${ECHO_T}$ac_header_preproc" >&6
19312
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19315 yes:no: )
19316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19320 ac_header_preproc=yes
19321 ;;
19322 no:yes:* )
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19335 (
19336 cat <<\_ASBOX
19337 ## ------------------------------------------ ##
19338 ## Report this to the AC_PACKAGE_NAME lists. ##
19339 ## ------------------------------------------ ##
19340 _ASBOX
19341 ) |
19342 sed "s/^/$as_me: WARNING: /" >&2
19343 ;;
19344 esac
19345 echo "$as_me:$LINENO: checking for $ac_header" >&5
19346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350 eval "$as_ac_Header=\$ac_header_preproc"
19351 fi
19352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19354
19355 fi
19356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19357 cat >>confdefs.h <<_ACEOF
19358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19359 _ACEOF
19360
19361 else
19362
19363 for ac_header in kerberos/krb.h
19364 do
19365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19367 echo "$as_me:$LINENO: checking for $ac_header" >&5
19368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 fi
19372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19374 else
19375 # Is the header compilable?
19376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 $ac_includes_default
19385 #include <$ac_header>
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag"
19397 || test ! -s conftest.err'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 ac_header_compiler=yes
19410 else
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 ac_header_compiler=no
19415 fi
19416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19418 echo "${ECHO_T}$ac_header_compiler" >&6
19419
19420 # Is the header present?
19421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h. */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <$ac_header>
19430 _ACEOF
19431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } >/dev/null; then
19439 if test -s conftest.err; then
19440 ac_cpp_err=$ac_c_preproc_warn_flag
19441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19442 else
19443 ac_cpp_err=
19444 fi
19445 else
19446 ac_cpp_err=yes
19447 fi
19448 if test -z "$ac_cpp_err"; then
19449 ac_header_preproc=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ac_header_preproc=no
19455 fi
19456 rm -f conftest.err conftest.$ac_ext
19457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19458 echo "${ECHO_T}$ac_header_preproc" >&6
19459
19460 # So? What about this header?
19461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19462 yes:no: )
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19467 ac_header_preproc=yes
19468 ;;
19469 no:yes:* )
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19482 (
19483 cat <<\_ASBOX
19484 ## ------------------------------------------ ##
19485 ## Report this to the AC_PACKAGE_NAME lists. ##
19486 ## ------------------------------------------ ##
19487 _ASBOX
19488 ) |
19489 sed "s/^/$as_me: WARNING: /" >&2
19490 ;;
19491 esac
19492 echo "$as_me:$LINENO: checking for $ac_header" >&5
19493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497 eval "$as_ac_Header=\$ac_header_preproc"
19498 fi
19499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19501
19502 fi
19503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19504 cat >>confdefs.h <<_ACEOF
19505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19506 _ACEOF
19507
19508 fi
19509
19510 done
19511
19512 fi
19513
19514 done
19515
19516 fi
19517
19518 done
19519
19520 fi
19521
19522 for ac_header in com_err.h
19523 do
19524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo "$as_me:$LINENO: checking for $ac_header" >&5
19527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 fi
19531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533 else
19534 # Is the header compilable?
19535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_header_compiler=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_header_compiler=no
19574 fi
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577 echo "${ECHO_T}$ac_header_compiler" >&6
19578
19579 # Is the header present?
19580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <$ac_header>
19589 _ACEOF
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null; then
19598 if test -s conftest.err; then
19599 ac_cpp_err=$ac_c_preproc_warn_flag
19600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19601 else
19602 ac_cpp_err=
19603 fi
19604 else
19605 ac_cpp_err=yes
19606 fi
19607 if test -z "$ac_cpp_err"; then
19608 ac_header_preproc=yes
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_preproc=no
19614 fi
19615 rm -f conftest.err conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617 echo "${ECHO_T}$ac_header_preproc" >&6
19618
19619 # So? What about this header?
19620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19621 yes:no: )
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626 ac_header_preproc=yes
19627 ;;
19628 no:yes:* )
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19641 (
19642 cat <<\_ASBOX
19643 ## ------------------------------------------ ##
19644 ## Report this to the AC_PACKAGE_NAME lists. ##
19645 ## ------------------------------------------ ##
19646 _ASBOX
19647 ) |
19648 sed "s/^/$as_me: WARNING: /" >&2
19649 ;;
19650 esac
19651 echo "$as_me:$LINENO: checking for $ac_header" >&5
19652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656 eval "$as_ac_Header=\$ac_header_preproc"
19657 fi
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660
19661 fi
19662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665 _ACEOF
19666
19667 fi
19668
19669 done
19670
19671 fi
19672
19673 # Solaris requires -lintl if you want strerror (which calls dgettext)
19674 # to return localized messages.
19675
19676 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19677 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19678 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681 ac_check_lib_save_LIBS=$LIBS
19682 LIBS="-lintl $LIBS"
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h. */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19689
19690 /* Override any gcc2 internal prototype to avoid an error. */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19696 char dgettext ();
19697 int
19698 main ()
19699 {
19700 dgettext ();
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest$ac_exeext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_lib_intl_dgettext=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_cv_lib_intl_dgettext=no
19733 fi
19734 rm -f conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19737 fi
19738 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19739 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19740 if test $ac_cv_lib_intl_dgettext = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBINTL 1
19743 _ACEOF
19744
19745 LIBS="-lintl $LIBS"
19746
19747 fi
19748
19749
19750 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19751 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19752 if test "${emacs_cv_localtime_cache+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 if test x$ac_cv_func_tzset = xyes; then
19756 if test "$cross_compiling" = yes; then
19757 # If we have tzset, assume the worst when cross-compiling.
19758 emacs_cv_localtime_cache=yes
19759 else
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h. */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 #include <time.h>
19767 extern char **environ;
19768 unset_TZ ()
19769 {
19770 char **from, **to;
19771 for (to = from = environ; (*to = *from); from++)
19772 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19773 to++;
19774 }
19775 char TZ_GMT0[] = "TZ=GMT0";
19776 char TZ_PST8[] = "TZ=PST8";
19777 main()
19778 {
19779 time_t now = time ((time_t *) 0);
19780 int hour_GMT0, hour_unset;
19781 if (putenv (TZ_GMT0) != 0)
19782 exit (1);
19783 hour_GMT0 = localtime (&now)->tm_hour;
19784 unset_TZ ();
19785 hour_unset = localtime (&now)->tm_hour;
19786 if (putenv (TZ_PST8) != 0)
19787 exit (1);
19788 if (localtime (&now)->tm_hour == hour_GMT0)
19789 exit (1);
19790 unset_TZ ();
19791 if (localtime (&now)->tm_hour != hour_unset)
19792 exit (1);
19793 exit (0);
19794 }
19795 _ACEOF
19796 rm -f conftest$ac_exeext
19797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19798 (eval $ac_link) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 emacs_cv_localtime_cache=no
19808 else
19809 echo "$as_me: program exited with status $ac_status" >&5
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ( exit $ac_status )
19814 emacs_cv_localtime_cache=yes
19815 fi
19816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19817 fi
19818 else
19819 # If we lack tzset, report that localtime does not cache TZ,
19820 # since we can't invalidate the cache if we don't have tzset.
19821 emacs_cv_localtime_cache=no
19822 fi
19823 fi
19824 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19825 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19826 if test $emacs_cv_localtime_cache = yes; then
19827
19828 cat >>confdefs.h <<\_ACEOF
19829 #define LOCALTIME_CACHE 1
19830 _ACEOF
19831
19832 fi
19833
19834 if test "x$HAVE_TIMEVAL" = xyes; then
19835
19836 for ac_func in gettimeofday
19837 do
19838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19839 echo "$as_me:$LINENO: checking for $ac_func" >&5
19840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19841 if eval "test \"\${$as_ac_var+set}\" = set"; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 else
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19852 #define $ac_func innocuous_$ac_func
19853
19854 /* System header to define __stub macros and hopefully few prototypes,
19855 which can conflict with char $ac_func (); below.
19856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19857 <limits.h> exists even on freestanding compilers. */
19858
19859 #ifdef __STDC__
19860 # include <limits.h>
19861 #else
19862 # include <assert.h>
19863 #endif
19864
19865 #undef $ac_func
19866
19867 /* Override any gcc2 internal prototype to avoid an error. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 {
19871 #endif
19872 /* We use char because int might match the return type of a gcc2
19873 builtin and then its argument prototype would still apply. */
19874 char $ac_func ();
19875 /* The GNU C library defines this for functions which it implements
19876 to always fail with ENOSYS. Some functions are actually named
19877 something starting with __ and the normal name is an alias. */
19878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19879 choke me
19880 #else
19881 char (*f) () = $ac_func;
19882 #endif
19883 #ifdef __cplusplus
19884 }
19885 #endif
19886
19887 int
19888 main ()
19889 {
19890 return f != $ac_func;
19891 ;
19892 return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext conftest$ac_exeext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19897 (eval $ac_link) 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest$ac_exeext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 eval "$as_ac_var=yes"
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922 eval "$as_ac_var=no"
19923 fi
19924 rm -f conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19926 fi
19927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19929 if test `eval echo '${'$as_ac_var'}'` = yes; then
19930 cat >>confdefs.h <<_ACEOF
19931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19932 _ACEOF
19933
19934 fi
19935 done
19936
19937 if test $ac_cv_func_gettimeofday = yes; then
19938 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19939 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19940 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949
19950 #ifdef TIME_WITH_SYS_TIME
19951 #include <sys/time.h>
19952 #include <time.h>
19953 #else
19954 #ifdef HAVE_SYS_TIME_H
19955 #include <sys/time.h>
19956 #else
19957 #include <time.h>
19958 #endif
19959 #endif
19960 int
19961 main ()
19962 {
19963 struct timeval time;
19964 gettimeofday (&time, 0);
19965 ;
19966 return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 emacs_cv_gettimeofday_two_arguments=yes
19992 else
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 emacs_cv_gettimeofday_two_arguments=no
19997 fi
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 fi
20000 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20001 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20002 if test $emacs_cv_gettimeofday_two_arguments = no; then
20003
20004 cat >>confdefs.h <<\_ACEOF
20005 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20006 _ACEOF
20007
20008 fi
20009 fi
20010 fi
20011
20012 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20013 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20014 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20015 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <sys/types.h>
20025 #include <$ac_cv_struct_tm>
20026
20027
20028 int
20029 main ()
20030 {
20031 static struct tm ac_aggr;
20032 if (ac_aggr.tm_zone)
20033 return 0;
20034 ;
20035 return 0;
20036 }
20037 _ACEOF
20038 rm -f conftest.$ac_objext
20039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20040 (eval $ac_compile) 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } &&
20047 { ac_try='test -z "$ac_c_werror_flag"
20048 || test ! -s conftest.err'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_member_struct_tm_tm_zone=yes
20061 else
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20064
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #include <sys/types.h>
20072 #include <$ac_cv_struct_tm>
20073
20074
20075 int
20076 main ()
20077 {
20078 static struct tm ac_aggr;
20079 if (sizeof ac_aggr.tm_zone)
20080 return 0;
20081 ;
20082 return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_c_werror_flag"
20095 || test ! -s conftest.err'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_cv_member_struct_tm_tm_zone=yes
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ac_cv_member_struct_tm_tm_zone=no
20113 fi
20114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20115 fi
20116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20119 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20120 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20121
20122 cat >>confdefs.h <<_ACEOF
20123 #define HAVE_STRUCT_TM_TM_ZONE 1
20124 _ACEOF
20125
20126
20127 fi
20128
20129 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20130
20131 cat >>confdefs.h <<\_ACEOF
20132 #define HAVE_TM_ZONE 1
20133 _ACEOF
20134
20135 else
20136 echo "$as_me:$LINENO: checking for tzname" >&5
20137 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20138 if test "${ac_cv_var_tzname+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <time.h>
20148 #ifndef tzname /* For SGI. */
20149 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20150 #endif
20151
20152 int
20153 main ()
20154 {
20155 atoi(*tzname);
20156 ;
20157 return 0;
20158 }
20159 _ACEOF
20160 rm -f conftest.$ac_objext conftest$ac_exeext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest$ac_exeext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_var_tzname=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_cv_var_tzname=no
20188 fi
20189 rm -f conftest.err conftest.$ac_objext \
20190 conftest$ac_exeext conftest.$ac_ext
20191 fi
20192 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20193 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20194 if test $ac_cv_var_tzname = yes; then
20195
20196 cat >>confdefs.h <<\_ACEOF
20197 #define HAVE_TZNAME 1
20198 _ACEOF
20199
20200 fi
20201 fi
20202
20203
20204 if test "$ac_cv_func_gettimeofday" = yes; then
20205 echo "$as_me:$LINENO: checking for struct timezone" >&5
20206 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20207 if test "${emacs_cv_struct_timezone+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <sys/time.h>
20217 int
20218 main ()
20219 {
20220 struct timezone tz;
20221 ;
20222 return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 if test "$cross_compiling" = yes; then
20248 emacs_cv_struct_timezone=yes
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256
20257 #ifdef TIME_WITH_SYS_TIME
20258 #include <sys/time.h>
20259 #include <time.h>
20260 #else
20261 #ifdef HAVE_SYS_TIME_H
20262 #include <sys/time.h>
20263 #else
20264 #include <time.h>
20265 #endif
20266 #endif
20267 main () {
20268 struct timeval time;
20269 struct timezone dummy;
20270 exit (gettimeofday (&time, &dummy));
20271 }
20272 _ACEOF
20273 rm -f conftest$ac_exeext
20274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20275 (eval $ac_link) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 emacs_cv_struct_timezone=yes
20285 else
20286 echo "$as_me: program exited with status $ac_status" >&5
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ( exit $ac_status )
20291 emacs_cv_struct_timezone=no
20292 fi
20293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 else
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 emacs_cv_struct_timezone=no
20300 fi
20301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20304 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20305 fi
20306
20307 ok_so_far=yes
20308 echo "$as_me:$LINENO: checking for socket" >&5
20309 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20310 if test "${ac_cv_func_socket+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20321 #define socket innocuous_socket
20322
20323 /* System header to define __stub macros and hopefully few prototypes,
20324 which can conflict with char socket (); below.
20325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20326 <limits.h> exists even on freestanding compilers. */
20327
20328 #ifdef __STDC__
20329 # include <limits.h>
20330 #else
20331 # include <assert.h>
20332 #endif
20333
20334 #undef socket
20335
20336 /* Override any gcc2 internal prototype to avoid an error. */
20337 #ifdef __cplusplus
20338 extern "C"
20339 {
20340 #endif
20341 /* We use char because int might match the return type of a gcc2
20342 builtin and then its argument prototype would still apply. */
20343 char socket ();
20344 /* The GNU C library defines this for functions which it implements
20345 to always fail with ENOSYS. Some functions are actually named
20346 something starting with __ and the normal name is an alias. */
20347 #if defined (__stub_socket) || defined (__stub___socket)
20348 choke me
20349 #else
20350 char (*f) () = socket;
20351 #endif
20352 #ifdef __cplusplus
20353 }
20354 #endif
20355
20356 int
20357 main ()
20358 {
20359 return f != socket;
20360 ;
20361 return 0;
20362 }
20363 _ACEOF
20364 rm -f conftest.$ac_objext conftest$ac_exeext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20366 (eval $ac_link) 2>conftest.er1
20367 ac_status=$?
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest$ac_exeext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_cv_func_socket=yes
20387 else
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ac_cv_func_socket=no
20392 fi
20393 rm -f conftest.err conftest.$ac_objext \
20394 conftest$ac_exeext conftest.$ac_ext
20395 fi
20396 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20397 echo "${ECHO_T}$ac_cv_func_socket" >&6
20398 if test $ac_cv_func_socket = yes; then
20399 :
20400 else
20401 ok_so_far=no
20402 fi
20403
20404 if test $ok_so_far = yes; then
20405 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20406 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20407 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20408 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 fi
20411 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20412 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20413 else
20414 # Is the header compilable?
20415 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20416 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20417 cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h. */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 $ac_includes_default
20424 #include <netinet/in.h>
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20428 (eval $ac_compile) 2>conftest.er1
20429 ac_status=$?
20430 grep -v '^ *+' conftest.er1 >conftest.err
20431 rm -f conftest.er1
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -z "$ac_c_werror_flag"
20436 || test ! -s conftest.err'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_header_compiler=yes
20449 else
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453 ac_header_compiler=no
20454 fi
20455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457 echo "${ECHO_T}$ac_header_compiler" >&6
20458
20459 # Is the header present?
20460 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20461 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 #include <netinet/in.h>
20469 _ACEOF
20470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } >/dev/null; then
20478 if test -s conftest.err; then
20479 ac_cpp_err=$ac_c_preproc_warn_flag
20480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20481 else
20482 ac_cpp_err=
20483 fi
20484 else
20485 ac_cpp_err=yes
20486 fi
20487 if test -z "$ac_cpp_err"; then
20488 ac_header_preproc=yes
20489 else
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 ac_header_preproc=no
20494 fi
20495 rm -f conftest.err conftest.$ac_ext
20496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20497 echo "${ECHO_T}$ac_header_preproc" >&6
20498
20499 # So? What about this header?
20500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20501 yes:no: )
20502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20503 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20505 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20506 ac_header_preproc=yes
20507 ;;
20508 no:yes:* )
20509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20510 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20512 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20514 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20516 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20518 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20520 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20521 (
20522 cat <<\_ASBOX
20523 ## ------------------------------------------ ##
20524 ## Report this to the AC_PACKAGE_NAME lists. ##
20525 ## ------------------------------------------ ##
20526 _ASBOX
20527 ) |
20528 sed "s/^/$as_me: WARNING: /" >&2
20529 ;;
20530 esac
20531 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20532 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20533 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 ac_cv_header_netinet_in_h=$ac_header_preproc
20537 fi
20538 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20539 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20540
20541 fi
20542 if test $ac_cv_header_netinet_in_h = yes; then
20543 :
20544 else
20545 ok_so_far=no
20546 fi
20547
20548
20549 fi
20550 if test $ok_so_far = yes; then
20551 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20552 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20553 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20554 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 fi
20557 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20558 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20559 else
20560 # Is the header compilable?
20561 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20562 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20570 #include <arpa/inet.h>
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_header_compiler=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_header_compiler=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6
20604
20605 # Is the header present?
20606 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20607 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <arpa/inet.h>
20615 _ACEOF
20616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } >/dev/null; then
20624 if test -s conftest.err; then
20625 ac_cpp_err=$ac_c_preproc_warn_flag
20626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20627 else
20628 ac_cpp_err=
20629 fi
20630 else
20631 ac_cpp_err=yes
20632 fi
20633 if test -z "$ac_cpp_err"; then
20634 ac_header_preproc=yes
20635 else
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 ac_header_preproc=no
20640 fi
20641 rm -f conftest.err conftest.$ac_ext
20642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6
20644
20645 # So? What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20647 yes:no: )
20648 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20652 ac_header_preproc=yes
20653 ;;
20654 no:yes:* )
20655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20667 (
20668 cat <<\_ASBOX
20669 ## ------------------------------------------ ##
20670 ## Report this to the AC_PACKAGE_NAME lists. ##
20671 ## ------------------------------------------ ##
20672 _ASBOX
20673 ) |
20674 sed "s/^/$as_me: WARNING: /" >&2
20675 ;;
20676 esac
20677 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20678 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20679 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 ac_cv_header_arpa_inet_h=$ac_header_preproc
20683 fi
20684 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20685 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20686
20687 fi
20688 if test $ac_cv_header_arpa_inet_h = yes; then
20689 :
20690 else
20691 ok_so_far=no
20692 fi
20693
20694
20695 fi
20696 if test $ok_so_far = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_INET_SOCKETS 1
20700 _ACEOF
20701
20702 fi
20703
20704
20705 for ac_header in sys/ioctl.h
20706 do
20707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20709 echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 fi
20714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20716 else
20717 # Is the header compilable?
20718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h. */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 $ac_includes_default
20727 #include <$ac_header>
20728 _ACEOF
20729 rm -f conftest.$ac_objext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20731 (eval $ac_compile) 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_header_compiler=yes
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_header_compiler=no
20757 fi
20758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6
20761
20762 # Is the header present?
20763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <$ac_header>
20772 _ACEOF
20773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } >/dev/null; then
20781 if test -s conftest.err; then
20782 ac_cpp_err=$ac_c_preproc_warn_flag
20783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20784 else
20785 ac_cpp_err=
20786 fi
20787 else
20788 ac_cpp_err=yes
20789 fi
20790 if test -z "$ac_cpp_err"; then
20791 ac_header_preproc=yes
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 ac_header_preproc=no
20797 fi
20798 rm -f conftest.err conftest.$ac_ext
20799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20800 echo "${ECHO_T}$ac_header_preproc" >&6
20801
20802 # So? What about this header?
20803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20804 yes:no: )
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20809 ac_header_preproc=yes
20810 ;;
20811 no:yes:* )
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20824 (
20825 cat <<\_ASBOX
20826 ## ------------------------------------------ ##
20827 ## Report this to the AC_PACKAGE_NAME lists. ##
20828 ## ------------------------------------------ ##
20829 _ASBOX
20830 ) |
20831 sed "s/^/$as_me: WARNING: /" >&2
20832 ;;
20833 esac
20834 echo "$as_me:$LINENO: checking for $ac_header" >&5
20835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839 eval "$as_ac_Header=\$ac_header_preproc"
20840 fi
20841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20843
20844 fi
20845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20848 _ACEOF
20849
20850 fi
20851
20852 done
20853
20854
20855 if test -f /usr/lpp/X11/bin/smt.exp; then
20856
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_AIX_SMT_EXP 1
20859 _ACEOF
20860
20861 fi
20862
20863 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20864 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20865 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20866 echo "$as_me:$LINENO: result: yes" >&5
20867 echo "${ECHO_T}yes" >&6
20868
20869 cat >>confdefs.h <<\_ACEOF
20870 #define HAVE_DEV_PTMX 1
20871 _ACEOF
20872
20873 else
20874 echo "$as_me:$LINENO: result: no" >&5
20875 echo "${ECHO_T}no" >&6
20876 fi
20877
20878 echo "$as_me:$LINENO: checking for pid_t" >&5
20879 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20880 if test "${ac_cv_type_pid_t+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 else
20883 cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h. */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 $ac_includes_default
20890 int
20891 main ()
20892 {
20893 if ((pid_t *) 0)
20894 return 0;
20895 if (sizeof (pid_t))
20896 return 0;
20897 ;
20898 return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20903 (eval $ac_compile) 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_objext'
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 ac_cv_type_pid_t=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 ac_cv_type_pid_t=no
20929 fi
20930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20931 fi
20932 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20934 if test $ac_cv_type_pid_t = yes; then
20935 :
20936 else
20937
20938 cat >>confdefs.h <<_ACEOF
20939 #define pid_t int
20940 _ACEOF
20941
20942 fi
20943
20944
20945
20946 for ac_header in unistd.h vfork.h
20947 do
20948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20950 echo "$as_me:$LINENO: checking for $ac_header" >&5
20951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 fi
20955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20957 else
20958 # Is the header compilable?
20959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 $ac_includes_default
20968 #include <$ac_header>
20969 _ACEOF
20970 rm -f conftest.$ac_objext
20971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972 (eval $ac_compile) 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_c_werror_flag"
20980 || test ! -s conftest.err'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try='test -s conftest.$ac_objext'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20992 ac_header_compiler=yes
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 ac_header_compiler=no
20998 fi
20999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21001 echo "${ECHO_T}$ac_header_compiler" >&6
21002
21003 # Is the header present?
21004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21006 cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h. */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <$ac_header>
21013 _ACEOF
21014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } >/dev/null; then
21022 if test -s conftest.err; then
21023 ac_cpp_err=$ac_c_preproc_warn_flag
21024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21025 else
21026 ac_cpp_err=
21027 fi
21028 else
21029 ac_cpp_err=yes
21030 fi
21031 if test -z "$ac_cpp_err"; then
21032 ac_header_preproc=yes
21033 else
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ac_header_preproc=no
21038 fi
21039 rm -f conftest.err conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21041 echo "${ECHO_T}$ac_header_preproc" >&6
21042
21043 # So? What about this header?
21044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21045 yes:no: )
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21050 ac_header_preproc=yes
21051 ;;
21052 no:yes:* )
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21065 (
21066 cat <<\_ASBOX
21067 ## ------------------------------------------ ##
21068 ## Report this to the AC_PACKAGE_NAME lists. ##
21069 ## ------------------------------------------ ##
21070 _ASBOX
21071 ) |
21072 sed "s/^/$as_me: WARNING: /" >&2
21073 ;;
21074 esac
21075 echo "$as_me:$LINENO: checking for $ac_header" >&5
21076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080 eval "$as_ac_Header=\$ac_header_preproc"
21081 fi
21082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21084
21085 fi
21086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21087 cat >>confdefs.h <<_ACEOF
21088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21089 _ACEOF
21090
21091 fi
21092
21093 done
21094
21095
21096
21097 for ac_func in fork vfork
21098 do
21099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21100 echo "$as_me:$LINENO: checking for $ac_func" >&5
21101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21102 if eval "test \"\${$as_ac_var+set}\" = set"; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 else
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21113 #define $ac_func innocuous_$ac_func
21114
21115 /* System header to define __stub macros and hopefully few prototypes,
21116 which can conflict with char $ac_func (); below.
21117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21118 <limits.h> exists even on freestanding compilers. */
21119
21120 #ifdef __STDC__
21121 # include <limits.h>
21122 #else
21123 # include <assert.h>
21124 #endif
21125
21126 #undef $ac_func
21127
21128 /* Override any gcc2 internal prototype to avoid an error. */
21129 #ifdef __cplusplus
21130 extern "C"
21131 {
21132 #endif
21133 /* We use char because int might match the return type of a gcc2
21134 builtin and then its argument prototype would still apply. */
21135 char $ac_func ();
21136 /* The GNU C library defines this for functions which it implements
21137 to always fail with ENOSYS. Some functions are actually named
21138 something starting with __ and the normal name is an alias. */
21139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21140 choke me
21141 #else
21142 char (*f) () = $ac_func;
21143 #endif
21144 #ifdef __cplusplus
21145 }
21146 #endif
21147
21148 int
21149 main ()
21150 {
21151 return f != $ac_func;
21152 ;
21153 return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21158 (eval $ac_link) 2>conftest.er1
21159 ac_status=$?
21160 grep -v '^ *+' conftest.er1 >conftest.err
21161 rm -f conftest.er1
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
21165 { ac_try='test -z "$ac_c_werror_flag"
21166 || test ! -s conftest.err'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest$ac_exeext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 eval "$as_ac_var=yes"
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 eval "$as_ac_var=no"
21184 fi
21185 rm -f conftest.err conftest.$ac_objext \
21186 conftest$ac_exeext conftest.$ac_ext
21187 fi
21188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21190 if test `eval echo '${'$as_ac_var'}'` = yes; then
21191 cat >>confdefs.h <<_ACEOF
21192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21193 _ACEOF
21194
21195 fi
21196 done
21197
21198 if test "x$ac_cv_func_fork" = xyes; then
21199 echo "$as_me:$LINENO: checking for working fork" >&5
21200 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21201 if test "${ac_cv_func_fork_works+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204 if test "$cross_compiling" = yes; then
21205 ac_cv_func_fork_works=cross
21206 else
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* By Ruediger Kuhlmann. */
21209 #include <sys/types.h>
21210 #if HAVE_UNISTD_H
21211 # include <unistd.h>
21212 #endif
21213 /* Some systems only have a dummy stub for fork() */
21214 int main ()
21215 {
21216 if (fork() < 0)
21217 exit (1);
21218 exit (0);
21219 }
21220 _ACEOF
21221 rm -f conftest$ac_exeext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21223 (eval $ac_link) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ac_cv_func_fork_works=yes
21233 else
21234 echo "$as_me: program exited with status $ac_status" >&5
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ( exit $ac_status )
21239 ac_cv_func_fork_works=no
21240 fi
21241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21242 fi
21243 fi
21244 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21245 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21246
21247 else
21248 ac_cv_func_fork_works=$ac_cv_func_fork
21249 fi
21250 if test "x$ac_cv_func_fork_works" = xcross; then
21251 case $host in
21252 *-*-amigaos* | *-*-msdosdjgpp*)
21253 # Override, as these systems have only a dummy fork() stub
21254 ac_cv_func_fork_works=no
21255 ;;
21256 *)
21257 ac_cv_func_fork_works=yes
21258 ;;
21259 esac
21260 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21261 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21262 fi
21263 ac_cv_func_vfork_works=$ac_cv_func_vfork
21264 if test "x$ac_cv_func_vfork" = xyes; then
21265 echo "$as_me:$LINENO: checking for working vfork" >&5
21266 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21267 if test "${ac_cv_func_vfork_works+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270 if test "$cross_compiling" = yes; then
21271 ac_cv_func_vfork_works=cross
21272 else
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h. */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 /* Thanks to Paul Eggert for this test. */
21280 #include <stdio.h>
21281 #include <stdlib.h>
21282 #include <sys/types.h>
21283 #include <sys/stat.h>
21284 #include <sys/wait.h>
21285 #if HAVE_UNISTD_H
21286 # include <unistd.h>
21287 #endif
21288 #if HAVE_VFORK_H
21289 # include <vfork.h>
21290 #endif
21291 /* On some sparc systems, changes by the child to local and incoming
21292 argument registers are propagated back to the parent. The compiler
21293 is told about this with #include <vfork.h>, but some compilers
21294 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21295 static variable whose address is put into a register that is
21296 clobbered by the vfork. */
21297 static void
21298 #ifdef __cplusplus
21299 sparc_address_test (int arg)
21300 # else
21301 sparc_address_test (arg) int arg;
21302 #endif
21303 {
21304 static pid_t child;
21305 if (!child) {
21306 child = vfork ();
21307 if (child < 0) {
21308 perror ("vfork");
21309 _exit(2);
21310 }
21311 if (!child) {
21312 arg = getpid();
21313 write(-1, "", 0);
21314 _exit (arg);
21315 }
21316 }
21317 }
21318
21319 int
21320 main ()
21321 {
21322 pid_t parent = getpid ();
21323 pid_t child;
21324
21325 sparc_address_test (0);
21326
21327 child = vfork ();
21328
21329 if (child == 0) {
21330 /* Here is another test for sparc vfork register problems. This
21331 test uses lots of local variables, at least as many local
21332 variables as main has allocated so far including compiler
21333 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21334 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21335 reuse the register of parent for one of the local variables,
21336 since it will think that parent can't possibly be used any more
21337 in this routine. Assigning to the local variable will thus
21338 munge parent in the parent process. */
21339 pid_t
21340 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21341 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21342 /* Convince the compiler that p..p7 are live; otherwise, it might
21343 use the same hardware register for all 8 local variables. */
21344 if (p != p1 || p != p2 || p != p3 || p != p4
21345 || p != p5 || p != p6 || p != p7)
21346 _exit(1);
21347
21348 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21349 from child file descriptors. If the child closes a descriptor
21350 before it execs or exits, this munges the parent's descriptor
21351 as well. Test for this by closing stdout in the child. */
21352 _exit(close(fileno(stdout)) != 0);
21353 } else {
21354 int status;
21355 struct stat st;
21356
21357 while (wait(&status) != child)
21358 ;
21359 exit(
21360 /* Was there some problem with vforking? */
21361 child < 0
21362
21363 /* Did the child fail? (This shouldn't happen.) */
21364 || status
21365
21366 /* Did the vfork/compiler bug occur? */
21367 || parent != getpid()
21368
21369 /* Did the file descriptor bug occur? */
21370 || fstat(fileno(stdout), &st) != 0
21371 );
21372 }
21373 }
21374 _ACEOF
21375 rm -f conftest$ac_exeext
21376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21377 (eval $ac_link) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_func_vfork_works=yes
21387 else
21388 echo "$as_me: program exited with status $ac_status" >&5
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392 ( exit $ac_status )
21393 ac_cv_func_vfork_works=no
21394 fi
21395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21396 fi
21397 fi
21398 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21399 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21400
21401 fi;
21402 if test "x$ac_cv_func_fork_works" = xcross; then
21403 ac_cv_func_vfork_works=$ac_cv_func_vfork
21404 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21405 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21406 fi
21407
21408 if test "x$ac_cv_func_vfork_works" = xyes; then
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_WORKING_VFORK 1
21412 _ACEOF
21413
21414 else
21415
21416 cat >>confdefs.h <<\_ACEOF
21417 #define vfork fork
21418 _ACEOF
21419
21420 fi
21421 if test "x$ac_cv_func_fork_works" = xyes; then
21422
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_WORKING_FORK 1
21425 _ACEOF
21426
21427 fi
21428
21429
21430 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21431 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21432 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <langinfo.h>
21442 int
21443 main ()
21444 {
21445 char* cs = nl_langinfo(CODESET);
21446 ;
21447 return 0;
21448 }
21449 _ACEOF
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21452 (eval $ac_link) 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
21459 { ac_try='test -z "$ac_c_werror_flag"
21460 || test ! -s conftest.err'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest$ac_exeext'
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 emacs_cv_langinfo_codeset=yes
21473 else
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477 emacs_cv_langinfo_codeset=no
21478 fi
21479 rm -f conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext conftest.$ac_ext
21481
21482 fi
21483 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21484 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21485 if test $emacs_cv_langinfo_codeset = yes; then
21486
21487 cat >>confdefs.h <<\_ACEOF
21488 #define HAVE_LANGINFO_CODESET 1
21489 _ACEOF
21490
21491 fi
21492
21493 echo "$as_me:$LINENO: checking for size_t" >&5
21494 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21495 if test "${ac_cv_type_size_t+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h. */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 $ac_includes_default
21505 int
21506 main ()
21507 {
21508 if ((size_t *) 0)
21509 return 0;
21510 if (sizeof (size_t))
21511 return 0;
21512 ;
21513 return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_type_size_t=yes
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ac_cv_type_size_t=no
21544 fi
21545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546 fi
21547 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21548 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21549 if test $ac_cv_type_size_t = yes; then
21550
21551 cat >>confdefs.h <<_ACEOF
21552 #define HAVE_SIZE_T 1
21553 _ACEOF
21554
21555
21556 fi
21557
21558
21559 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21560 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21561 if test "${ac_cv_type_mbstate_t+set}" = set; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 $ac_includes_default
21571 # include <wchar.h>
21572 int
21573 main ()
21574 {
21575 mbstate_t x; return sizeof x;
21576 ;
21577 return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_c_werror_flag"
21590 || test ! -s conftest.err'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 ac_cv_type_mbstate_t=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 ac_cv_type_mbstate_t=no
21608 fi
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610 fi
21611 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21612 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21613 if test $ac_cv_type_mbstate_t = yes; then
21614
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_MBSTATE_T 1
21617 _ACEOF
21618
21619 else
21620
21621 cat >>confdefs.h <<\_ACEOF
21622 #define mbstate_t int
21623 _ACEOF
21624
21625 fi
21626
21627 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21628 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21629 if test "${emacs_cv_c_restrict+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 void fred (int *restrict x);
21639 int
21640 main ()
21641 {
21642
21643 ;
21644 return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext
21648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21649 (eval $ac_compile) 2>conftest.er1
21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } &&
21656 { ac_try='test -z "$ac_c_werror_flag"
21657 || test ! -s conftest.err'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 emacs_cv_c_restrict=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 void fred (int *__restrict x);
21681 int
21682 main ()
21683 {
21684
21685 ;
21686 return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest.$ac_objext
21690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21691 (eval $ac_compile) 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } &&
21698 { ac_try='test -z "$ac_c_werror_flag"
21699 || test ! -s conftest.err'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; } &&
21705 { ac_try='test -s conftest.$ac_objext'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 emacs_cv_c_restrict=__restrict
21712 else
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 emacs_cv_c_restrict=no
21717 fi
21718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21719 fi
21720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21721 fi
21722 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21723 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21724 case "$emacs_cv_c_restrict" in
21725 yes) emacs_restrict=restrict;;
21726 no) emacs_restrict="";;
21727 *) emacs_restrict="$emacs_cv_c_restrict";;
21728 esac
21729 if test "$emacs_restrict" != __restrict; then
21730
21731 cat >>confdefs.h <<_ACEOF
21732 #define __restrict $emacs_restrict
21733 _ACEOF
21734
21735 fi
21736
21737 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21738 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21739 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 void fred (int x[__restrict]);
21749 int
21750 main ()
21751 {
21752
21753 ;
21754 return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext
21758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21759 (eval $ac_compile) 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -z "$ac_c_werror_flag"
21767 || test ! -s conftest.err'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest.$ac_objext'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 emacs_cv_c_restrict_arr=yes
21780 else
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21783
21784 emacs_cv_c_restrict_arr=no
21785 fi
21786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21787 fi
21788 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21789 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21790 if test "$emacs_cv_c_restrict_arr" = yes; then
21791
21792 cat >>confdefs.h <<\_ACEOF
21793 #define __restrict_arr __restrict
21794 _ACEOF
21795
21796 fi
21797
21798
21799
21800 # Set up the CFLAGS for real compilation, so we can substitute it.
21801 CFLAGS="$REAL_CFLAGS"
21802 CPPFLAGS="$REAL_CPPFLAGS"
21803
21804 #### Find out which version of Emacs this is.
21805 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21806 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21807 if test x"${version}" = x; then
21808 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21809 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21810 { (exit 1); exit 1; }; }
21811 fi
21812
21813 ### Specify what sort of things we'll be editing into Makefile and config.h.
21814 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define EMACS_CONFIGURATION "${canonical}"
21852 _ACEOF
21853
21854
21855 cat >>confdefs.h <<_ACEOF
21856 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21857 _ACEOF
21858
21859
21860 cat >>confdefs.h <<_ACEOF
21861 #define config_machfile "${machfile}"
21862 _ACEOF
21863
21864
21865 cat >>confdefs.h <<_ACEOF
21866 #define config_opsysfile "${opsysfile}"
21867 _ACEOF
21868
21869
21870 cat >>confdefs.h <<_ACEOF
21871 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21872 _ACEOF
21873
21874
21875 cat >>confdefs.h <<_ACEOF
21876 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21877 _ACEOF
21878
21879
21880 cat >>confdefs.h <<_ACEOF
21881 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21882 _ACEOF
21883
21884
21885 cat >>confdefs.h <<_ACEOF
21886 #define UNEXEC_SRC ${UNEXEC_SRC}
21887 _ACEOF
21888
21889
21890 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21891
21892 cat >>confdefs.h <<\_ACEOF
21893 #define HAVE_X_WINDOWS 1
21894 _ACEOF
21895
21896 fi
21897 if test "${USE_X_TOOLKIT}" != "none" ; then
21898
21899 cat >>confdefs.h <<\_ACEOF
21900 #define USE_X_TOOLKIT 1
21901 _ACEOF
21902
21903 fi
21904 if test "${HAVE_X11}" = "yes" ; then
21905
21906 cat >>confdefs.h <<\_ACEOF
21907 #define HAVE_X11 1
21908 _ACEOF
21909
21910 fi
21911 if test "${HAVE_XFREE386}" = "yes" ; then
21912
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_XFREE386 1
21915 _ACEOF
21916
21917 fi
21918 if test "${HAVE_MENUS}" = "yes" ; then
21919
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_MENUS 1
21922 _ACEOF
21923
21924 fi
21925 if test "${GNU_MALLOC}" = "yes" ; then
21926
21927 cat >>confdefs.h <<\_ACEOF
21928 #define GNU_MALLOC 1
21929 _ACEOF
21930
21931 fi
21932 if test "${REL_ALLOC}" = "yes" ; then
21933
21934 cat >>confdefs.h <<\_ACEOF
21935 #define REL_ALLOC 1
21936 _ACEOF
21937
21938 fi
21939
21940
21941
21942
21943
21944 #### Report on what we decided to do.
21945 #### Report GTK as a toolkit, even if it doesn't use Xt.
21946 #### It makes printing result more understandable as using GTK sets
21947 #### toolkit_scroll_bars to yes by default.
21948 if test "${HAVE_GTK}" = "yes"; then
21949 USE_X_TOOLKIT=GTK
21950 fi
21951
21952 echo "
21953 Configured for \`${canonical}'.
21954
21955 Where should the build process find the source code? ${srcdir}
21956 What operating system and machine description files should Emacs use?
21957 \`${opsysfile}' and \`${machfile}'
21958 What compiler should emacs be built with? ${CC} ${CFLAGS}
21959 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21960 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21961 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21962 What window system should Emacs use? ${window_system}
21963 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21964
21965 if test -n "${x_includes}"; then
21966 echo " Where do we find X Windows header files? ${x_includes}"
21967 else
21968 echo " Where do we find X Windows header files? Standard dirs"
21969 fi
21970 if test -n "${x_libraries}"; then
21971 echo " Where do we find X Windows libraries? ${x_libraries}"
21972 else
21973 echo " Where do we find X Windows libraries? Standard dirs"
21974 fi
21975
21976 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21977 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21978 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21979 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21980 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21981 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21982 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21983 echo
21984
21985 if test $USE_XASSERTS = yes; then
21986 echo " Compiling with asserts turned on."
21987 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21988 echo
21989 fi
21990
21991
21992
21993 # Remove any trailing slashes in these variables.
21994 test "${prefix}" != NONE &&
21995 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21996 test "${exec_prefix}" != NONE &&
21997 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21998
21999 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22000 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22001 ## from Makefile.c can correctly provide the arg `-traditional' to the
22002 ## C preprocessor.
22003
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 yes..yes
22011 _ACEOF
22012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22013 $EGREP "yes..yes" >/dev/null 2>&1; then
22014 CPP_NEED_TRADITIONAL=no
22015 else
22016 CPP_NEED_TRADITIONAL=yes
22017 fi
22018 rm -f conftest*
22019
22020
22021 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"
22022 ac_config_commands="$ac_config_commands default"
22023 cat >confcache <<\_ACEOF
22024 # This file is a shell script that caches the results of configure
22025 # tests run on this system so they can be shared between configure
22026 # scripts and configure runs, see configure's option --config-cache.
22027 # It is not useful on other systems. If it contains results you don't
22028 # want to keep, you may remove or edit it.
22029 #
22030 # config.status only pays attention to the cache file if you give it
22031 # the --recheck option to rerun configure.
22032 #
22033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22035 # following values.
22036
22037 _ACEOF
22038
22039 # The following way of writing the cache mishandles newlines in values,
22040 # but we know of no workaround that is simple, portable, and efficient.
22041 # So, don't put newlines in cache variables' values.
22042 # Ultrix sh set writes to stderr and can't be redirected directly,
22043 # and sets the high bit in the cache file unless we assign to the vars.
22044 {
22045 (set) 2>&1 |
22046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22047 *ac_space=\ *)
22048 # `set' does not quote correctly, so add quotes (double-quote
22049 # substitution turns \\\\ into \\, and sed turns \\ into \).
22050 sed -n \
22051 "s/'/'\\\\''/g;
22052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22053 ;;
22054 *)
22055 # `set' quotes correctly as required by POSIX, so do not add quotes.
22056 sed -n \
22057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22058 ;;
22059 esac;
22060 } |
22061 sed '
22062 t clear
22063 : clear
22064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22065 t end
22066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22067 : end' >>confcache
22068 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22069 if test -w $cache_file; then
22070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22071 cat confcache >$cache_file
22072 else
22073 echo "not updating unwritable cache $cache_file"
22074 fi
22075 fi
22076 rm -f confcache
22077
22078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22079 # Let make expand exec_prefix.
22080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22081
22082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22084 # trailing colons and then remove the whole line if VPATH becomes empty
22085 # (actually we leave an empty line to preserve line numbers).
22086 if test "x$srcdir" = x.; then
22087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22088 s/:*\$(srcdir):*/:/;
22089 s/:*\${srcdir}:*/:/;
22090 s/:*@srcdir@:*/:/;
22091 s/^\([^=]*=[ ]*\):*/\1/;
22092 s/:*$//;
22093 s/^[^=]*=[ ]*$//;
22094 }'
22095 fi
22096
22097 DEFS=-DHAVE_CONFIG_H
22098
22099 ac_libobjs=
22100 ac_ltlibobjs=
22101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22102 # 1. Remove the extension, and $U if already installed.
22103 ac_i=`echo "$ac_i" |
22104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22105 # 2. Add them.
22106 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22107 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22108 done
22109 LIBOBJS=$ac_libobjs
22110
22111 LTLIBOBJS=$ac_ltlibobjs
22112
22113
22114
22115 : ${CONFIG_STATUS=./config.status}
22116 ac_clean_files_save=$ac_clean_files
22117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22118 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22119 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22120 cat >$CONFIG_STATUS <<_ACEOF
22121 #! $SHELL
22122 # Generated by $as_me.
22123 # Run this file to recreate the current configuration.
22124 # Compiler output produced by configure, useful for debugging
22125 # configure, is in config.log if it exists.
22126
22127 debug=false
22128 ac_cs_recheck=false
22129 ac_cs_silent=false
22130 SHELL=\${CONFIG_SHELL-$SHELL}
22131 _ACEOF
22132
22133 cat >>$CONFIG_STATUS <<\_ACEOF
22134 ## --------------------- ##
22135 ## M4sh Initialization. ##
22136 ## --------------------- ##
22137
22138 # Be Bourne compatible
22139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22140 emulate sh
22141 NULLCMD=:
22142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22143 # is contrary to our usage. Disable this feature.
22144 alias -g '${1+"$@"}'='"$@"'
22145 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22146 set -o posix
22147 fi
22148 DUALCASE=1; export DUALCASE # for MKS sh
22149
22150 # Support unset when possible.
22151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22152 as_unset=unset
22153 else
22154 as_unset=false
22155 fi
22156
22157
22158 # Work around bugs in pre-3.0 UWIN ksh.
22159 $as_unset ENV MAIL MAILPATH
22160 PS1='$ '
22161 PS2='> '
22162 PS4='+ '
22163
22164 # NLS nuisances.
22165 for as_var in \
22166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22168 LC_TELEPHONE LC_TIME
22169 do
22170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22171 eval $as_var=C; export $as_var
22172 else
22173 $as_unset $as_var
22174 fi
22175 done
22176
22177 # Required to use basename.
22178 if expr a : '\(a\)' >/dev/null 2>&1; then
22179 as_expr=expr
22180 else
22181 as_expr=false
22182 fi
22183
22184 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22185 as_basename=basename
22186 else
22187 as_basename=false
22188 fi
22189
22190
22191 # Name of the executable.
22192 as_me=`$as_basename "$0" ||
22193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22194 X"$0" : 'X\(//\)$' \| \
22195 X"$0" : 'X\(/\)$' \| \
22196 . : '\(.\)' 2>/dev/null ||
22197 echo X/"$0" |
22198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22199 /^X\/\(\/\/\)$/{ s//\1/; q; }
22200 /^X\/\(\/\).*/{ s//\1/; q; }
22201 s/.*/./; q'`
22202
22203
22204 # PATH needs CR, and LINENO needs CR and PATH.
22205 # Avoid depending upon Character Ranges.
22206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22209 as_cr_digits='0123456789'
22210 as_cr_alnum=$as_cr_Letters$as_cr_digits
22211
22212 # The user is always right.
22213 if test "${PATH_SEPARATOR+set}" != set; then
22214 echo "#! /bin/sh" >conf$$.sh
22215 echo "exit 0" >>conf$$.sh
22216 chmod +x conf$$.sh
22217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22218 PATH_SEPARATOR=';'
22219 else
22220 PATH_SEPARATOR=:
22221 fi
22222 rm -f conf$$.sh
22223 fi
22224
22225
22226 as_lineno_1=$LINENO
22227 as_lineno_2=$LINENO
22228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22229 test "x$as_lineno_1" != "x$as_lineno_2" &&
22230 test "x$as_lineno_3" = "x$as_lineno_2" || {
22231 # Find who we are. Look in the path if we contain no path at all
22232 # relative or not.
22233 case $0 in
22234 *[\\/]* ) as_myself=$0 ;;
22235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22236 for as_dir in $PATH
22237 do
22238 IFS=$as_save_IFS
22239 test -z "$as_dir" && as_dir=.
22240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22241 done
22242
22243 ;;
22244 esac
22245 # We did not find ourselves, most probably we were run as `sh COMMAND'
22246 # in which case we are not to be found in the path.
22247 if test "x$as_myself" = x; then
22248 as_myself=$0
22249 fi
22250 if test ! -f "$as_myself"; then
22251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22252 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22253 { (exit 1); exit 1; }; }
22254 fi
22255 case $CONFIG_SHELL in
22256 '')
22257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22258 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22259 do
22260 IFS=$as_save_IFS
22261 test -z "$as_dir" && as_dir=.
22262 for as_base in sh bash ksh sh5; do
22263 case $as_dir in
22264 /*)
22265 if ("$as_dir/$as_base" -c '
22266 as_lineno_1=$LINENO
22267 as_lineno_2=$LINENO
22268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22269 test "x$as_lineno_1" != "x$as_lineno_2" &&
22270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22273 CONFIG_SHELL=$as_dir/$as_base
22274 export CONFIG_SHELL
22275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22276 fi;;
22277 esac
22278 done
22279 done
22280 ;;
22281 esac
22282
22283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22284 # uniformly replaced by the line number. The first 'sed' inserts a
22285 # line-number line before each line; the second 'sed' does the real
22286 # work. The second script uses 'N' to pair each line-number line
22287 # with the numbered line, and appends trailing '-' during
22288 # substitution so that $LINENO is not a special case at line end.
22289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22291 sed '=' <$as_myself |
22292 sed '
22293 N
22294 s,$,-,
22295 : loop
22296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22297 t loop
22298 s,-$,,
22299 s,^['$as_cr_digits']*\n,,
22300 ' >$as_me.lineno &&
22301 chmod +x $as_me.lineno ||
22302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22303 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22304 { (exit 1); exit 1; }; }
22305
22306 # Don't try to exec as it changes $[0], causing all sort of problems
22307 # (the dirname of $[0] is not the place where we might find the
22308 # original and so on. Autoconf is especially sensible to this).
22309 . ./$as_me.lineno
22310 # Exit status is that of the last command.
22311 exit
22312 }
22313
22314
22315 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22316 *c*,-n*) ECHO_N= ECHO_C='
22317 ' ECHO_T=' ' ;;
22318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22320 esac
22321
22322 if expr a : '\(a\)' >/dev/null 2>&1; then
22323 as_expr=expr
22324 else
22325 as_expr=false
22326 fi
22327
22328 rm -f conf$$ conf$$.exe conf$$.file
22329 echo >conf$$.file
22330 if ln -s conf$$.file conf$$ 2>/dev/null; then
22331 # We could just check for DJGPP; but this test a) works b) is more generic
22332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22333 if test -f conf$$.exe; then
22334 # Don't use ln at all; we don't have any links
22335 as_ln_s='cp -p'
22336 else
22337 as_ln_s='ln -s'
22338 fi
22339 elif ln conf$$.file conf$$ 2>/dev/null; then
22340 as_ln_s=ln
22341 else
22342 as_ln_s='cp -p'
22343 fi
22344 rm -f conf$$ conf$$.exe conf$$.file
22345
22346 if mkdir -p . 2>/dev/null; then
22347 as_mkdir_p=:
22348 else
22349 test -d ./-p && rmdir ./-p
22350 as_mkdir_p=false
22351 fi
22352
22353 as_executable_p="test -f"
22354
22355 # Sed expression to map a string onto a valid CPP name.
22356 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22357
22358 # Sed expression to map a string onto a valid variable name.
22359 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22360
22361
22362 # IFS
22363 # We need space, tab and new line, in precisely that order.
22364 as_nl='
22365 '
22366 IFS=" $as_nl"
22367
22368 # CDPATH.
22369 $as_unset CDPATH
22370
22371 exec 6>&1
22372
22373 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22374 # report actual input values of CONFIG_FILES etc. instead of their
22375 # values after options handling. Logging --version etc. is OK.
22376 exec 5>>config.log
22377 {
22378 echo
22379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22380 ## Running $as_me. ##
22381 _ASBOX
22382 } >&5
22383 cat >&5 <<_CSEOF
22384
22385 This file was extended by $as_me, which was
22386 generated by GNU Autoconf 2.59. Invocation command line was
22387
22388 CONFIG_FILES = $CONFIG_FILES
22389 CONFIG_HEADERS = $CONFIG_HEADERS
22390 CONFIG_LINKS = $CONFIG_LINKS
22391 CONFIG_COMMANDS = $CONFIG_COMMANDS
22392 $ $0 $@
22393
22394 _CSEOF
22395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22396 echo >&5
22397 _ACEOF
22398
22399 # Files that config.status was made for.
22400 if test -n "$ac_config_files"; then
22401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22402 fi
22403
22404 if test -n "$ac_config_headers"; then
22405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22406 fi
22407
22408 if test -n "$ac_config_links"; then
22409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22410 fi
22411
22412 if test -n "$ac_config_commands"; then
22413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22414 fi
22415
22416 cat >>$CONFIG_STATUS <<\_ACEOF
22417
22418 ac_cs_usage="\
22419 \`$as_me' instantiates files from templates according to the
22420 current configuration.
22421
22422 Usage: $0 [OPTIONS] [FILE]...
22423
22424 -h, --help print this help, then exit
22425 -V, --version print version number, then exit
22426 -q, --quiet do not print progress messages
22427 -d, --debug don't remove temporary files
22428 --recheck update $as_me by reconfiguring in the same conditions
22429 --file=FILE[:TEMPLATE]
22430 instantiate the configuration file FILE
22431 --header=FILE[:TEMPLATE]
22432 instantiate the configuration header FILE
22433
22434 Configuration files:
22435 $config_files
22436
22437 Configuration headers:
22438 $config_headers
22439
22440 Configuration commands:
22441 $config_commands
22442
22443 Report bugs to <bug-autoconf@gnu.org>."
22444 _ACEOF
22445
22446 cat >>$CONFIG_STATUS <<_ACEOF
22447 ac_cs_version="\\
22448 config.status
22449 configured by $0, generated by GNU Autoconf 2.59,
22450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22451
22452 Copyright (C) 2003 Free Software Foundation, Inc.
22453 This config.status script is free software; the Free Software Foundation
22454 gives unlimited permission to copy, distribute and modify it."
22455 srcdir=$srcdir
22456 INSTALL="$INSTALL"
22457 _ACEOF
22458
22459 cat >>$CONFIG_STATUS <<\_ACEOF
22460 # If no file are specified by the user, then we need to provide default
22461 # value. By we need to know if files were specified by the user.
22462 ac_need_defaults=:
22463 while test $# != 0
22464 do
22465 case $1 in
22466 --*=*)
22467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22469 ac_shift=:
22470 ;;
22471 -*)
22472 ac_option=$1
22473 ac_optarg=$2
22474 ac_shift=shift
22475 ;;
22476 *) # This is not an option, so the user has probably given explicit
22477 # arguments.
22478 ac_option=$1
22479 ac_need_defaults=false;;
22480 esac
22481
22482 case $ac_option in
22483 # Handling of the options.
22484 _ACEOF
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22487 ac_cs_recheck=: ;;
22488 --version | --vers* | -V )
22489 echo "$ac_cs_version"; exit 0 ;;
22490 --he | --h)
22491 # Conflict between --help and --header
22492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22493 Try \`$0 --help' for more information." >&5
22494 echo "$as_me: error: ambiguous option: $1
22495 Try \`$0 --help' for more information." >&2;}
22496 { (exit 1); exit 1; }; };;
22497 --help | --hel | -h )
22498 echo "$ac_cs_usage"; exit 0 ;;
22499 --debug | --d* | -d )
22500 debug=: ;;
22501 --file | --fil | --fi | --f )
22502 $ac_shift
22503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22504 ac_need_defaults=false;;
22505 --header | --heade | --head | --hea )
22506 $ac_shift
22507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22508 ac_need_defaults=false;;
22509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22511 ac_cs_silent=: ;;
22512
22513 # This is an error.
22514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22515 Try \`$0 --help' for more information." >&5
22516 echo "$as_me: error: unrecognized option: $1
22517 Try \`$0 --help' for more information." >&2;}
22518 { (exit 1); exit 1; }; } ;;
22519
22520 *) ac_config_targets="$ac_config_targets $1" ;;
22521
22522 esac
22523 shift
22524 done
22525
22526 ac_configure_extra_args=
22527
22528 if $ac_cs_silent; then
22529 exec 6>/dev/null
22530 ac_configure_extra_args="$ac_configure_extra_args --silent"
22531 fi
22532
22533 _ACEOF
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 if \$ac_cs_recheck; then
22536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22538 fi
22539
22540 _ACEOF
22541
22542 cat >>$CONFIG_STATUS <<_ACEOF
22543 #
22544 # INIT-COMMANDS section.
22545 #
22546
22547 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22548
22549 _ACEOF
22550
22551
22552
22553 cat >>$CONFIG_STATUS <<\_ACEOF
22554 for ac_config_target in $ac_config_targets
22555 do
22556 case "$ac_config_target" in
22557 # Handling of arguments.
22558 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22559 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22560 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22561 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22562 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22563 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22564 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22565 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22566 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22567 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22568 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22569 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22572 { (exit 1); exit 1; }; };;
22573 esac
22574 done
22575
22576 # If the user did not use the arguments to specify the items to instantiate,
22577 # then the envvar interface is used. Set only those that are not.
22578 # We use the long form for the default assignment because of an extremely
22579 # bizarre bug on SunOS 4.1.3.
22580 if $ac_need_defaults; then
22581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22584 fi
22585
22586 # Have a temporary directory for convenience. Make it in the build tree
22587 # simply because there is no reason to put it here, and in addition,
22588 # creating and moving files from /tmp can sometimes cause problems.
22589 # Create a temporary directory, and hook for its removal unless debugging.
22590 $debug ||
22591 {
22592 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22593 trap '{ (exit 1); exit 1; }' 1 2 13 15
22594 }
22595
22596 # Create a (secure) tmp directory for tmp files.
22597
22598 {
22599 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22600 test -n "$tmp" && test -d "$tmp"
22601 } ||
22602 {
22603 tmp=./confstat$$-$RANDOM
22604 (umask 077 && mkdir $tmp)
22605 } ||
22606 {
22607 echo "$me: cannot create a temporary directory in ." >&2
22608 { (exit 1); exit 1; }
22609 }
22610
22611 _ACEOF
22612
22613 cat >>$CONFIG_STATUS <<_ACEOF
22614
22615 #
22616 # CONFIG_FILES section.
22617 #
22618
22619 # No need to generate the scripts if there are no CONFIG_FILES.
22620 # This happens for instance when ./config.status config.h
22621 if test -n "\$CONFIG_FILES"; then
22622 # Protect against being on the right side of a sed subst in config.status.
22623 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22624 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22625 s,@SHELL@,$SHELL,;t t
22626 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22627 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22628 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22629 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22630 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22631 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22632 s,@exec_prefix@,$exec_prefix,;t t
22633 s,@prefix@,$prefix,;t t
22634 s,@program_transform_name@,$program_transform_name,;t t
22635 s,@bindir@,$bindir,;t t
22636 s,@sbindir@,$sbindir,;t t
22637 s,@libexecdir@,$libexecdir,;t t
22638 s,@datadir@,$datadir,;t t
22639 s,@sysconfdir@,$sysconfdir,;t t
22640 s,@sharedstatedir@,$sharedstatedir,;t t
22641 s,@localstatedir@,$localstatedir,;t t
22642 s,@libdir@,$libdir,;t t
22643 s,@includedir@,$includedir,;t t
22644 s,@oldincludedir@,$oldincludedir,;t t
22645 s,@infodir@,$infodir,;t t
22646 s,@mandir@,$mandir,;t t
22647 s,@build_alias@,$build_alias,;t t
22648 s,@host_alias@,$host_alias,;t t
22649 s,@target_alias@,$target_alias,;t t
22650 s,@DEFS@,$DEFS,;t t
22651 s,@ECHO_C@,$ECHO_C,;t t
22652 s,@ECHO_N@,$ECHO_N,;t t
22653 s,@ECHO_T@,$ECHO_T,;t t
22654 s,@LIBS@,$LIBS,;t t
22655 s,@MAINT@,$MAINT,;t t
22656 s,@build@,$build,;t t
22657 s,@build_cpu@,$build_cpu,;t t
22658 s,@build_vendor@,$build_vendor,;t t
22659 s,@build_os@,$build_os,;t t
22660 s,@host@,$host,;t t
22661 s,@host_cpu@,$host_cpu,;t t
22662 s,@host_vendor@,$host_vendor,;t t
22663 s,@host_os@,$host_os,;t t
22664 s,@CC@,$CC,;t t
22665 s,@CFLAGS@,$CFLAGS,;t t
22666 s,@LDFLAGS@,$LDFLAGS,;t t
22667 s,@CPPFLAGS@,$CPPFLAGS,;t t
22668 s,@ac_ct_CC@,$ac_ct_CC,;t t
22669 s,@EXEEXT@,$EXEEXT,;t t
22670 s,@OBJEXT@,$OBJEXT,;t t
22671 s,@LN_S@,$LN_S,;t t
22672 s,@CPP@,$CPP,;t t
22673 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22674 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22675 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22676 s,@RANLIB@,$RANLIB,;t t
22677 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22678 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22679 s,@EGREP@,$EGREP,;t t
22680 s,@LIBSOUND@,$LIBSOUND,;t t
22681 s,@SET_MAKE@,$SET_MAKE,;t t
22682 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22683 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22684 s,@GTK_LIBS@,$GTK_LIBS,;t t
22685 s,@ALLOCA@,$ALLOCA,;t t
22686 s,@liblockfile@,$liblockfile,;t t
22687 s,@LIBOBJS@,$LIBOBJS,;t t
22688 s,@NEED_SETGID@,$NEED_SETGID,;t t
22689 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22690 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22691 s,@version@,$version,;t t
22692 s,@configuration@,$configuration,;t t
22693 s,@canonical@,$canonical,;t t
22694 s,@srcdir@,$srcdir,;t t
22695 s,@lispdir@,$lispdir,;t t
22696 s,@locallisppath@,$locallisppath,;t t
22697 s,@lisppath@,$lisppath,;t t
22698 s,@x_default_search_path@,$x_default_search_path,;t t
22699 s,@etcdir@,$etcdir,;t t
22700 s,@archlibdir@,$archlibdir,;t t
22701 s,@docdir@,$docdir,;t t
22702 s,@bitmapdir@,$bitmapdir,;t t
22703 s,@gamedir@,$gamedir,;t t
22704 s,@gameuser@,$gameuser,;t t
22705 s,@c_switch_system@,$c_switch_system,;t t
22706 s,@c_switch_machine@,$c_switch_machine,;t t
22707 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22708 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22709 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22710 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22711 s,@machfile@,$machfile,;t t
22712 s,@opsysfile@,$opsysfile,;t t
22713 s,@carbon_appdir@,$carbon_appdir,;t t
22714 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22715 CEOF
22716
22717 _ACEOF
22718
22719 cat >>$CONFIG_STATUS <<\_ACEOF
22720 # Split the substitutions into bite-sized pieces for seds with
22721 # small command number limits, like on Digital OSF/1 and HP-UX.
22722 ac_max_sed_lines=48
22723 ac_sed_frag=1 # Number of current file.
22724 ac_beg=1 # First line for current file.
22725 ac_end=$ac_max_sed_lines # Line after last line for current file.
22726 ac_more_lines=:
22727 ac_sed_cmds=
22728 while $ac_more_lines; do
22729 if test $ac_beg -gt 1; then
22730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22731 else
22732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22733 fi
22734 if test ! -s $tmp/subs.frag; then
22735 ac_more_lines=false
22736 else
22737 # The purpose of the label and of the branching condition is to
22738 # speed up the sed processing (if there are no `@' at all, there
22739 # is no need to browse any of the substitutions).
22740 # These are the two extra sed commands mentioned above.
22741 (echo ':t
22742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22743 if test -z "$ac_sed_cmds"; then
22744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22745 else
22746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22747 fi
22748 ac_sed_frag=`expr $ac_sed_frag + 1`
22749 ac_beg=$ac_end
22750 ac_end=`expr $ac_end + $ac_max_sed_lines`
22751 fi
22752 done
22753 if test -z "$ac_sed_cmds"; then
22754 ac_sed_cmds=cat
22755 fi
22756 fi # test -n "$CONFIG_FILES"
22757
22758 _ACEOF
22759 cat >>$CONFIG_STATUS <<\_ACEOF
22760 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22762 case $ac_file in
22763 - | *:- | *:-:* ) # input from stdin
22764 cat >$tmp/stdin
22765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22769 * ) ac_file_in=$ac_file.in ;;
22770 esac
22771
22772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775 X"$ac_file" : 'X\(//\)[^/]' \| \
22776 X"$ac_file" : 'X\(//\)$' \| \
22777 X"$ac_file" : 'X\(/\)' \| \
22778 . : '\(.\)' 2>/dev/null ||
22779 echo X"$ac_file" |
22780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22782 /^X\(\/\/\)$/{ s//\1/; q; }
22783 /^X\(\/\).*/{ s//\1/; q; }
22784 s/.*/./; q'`
22785 { if $as_mkdir_p; then
22786 mkdir -p "$ac_dir"
22787 else
22788 as_dir="$ac_dir"
22789 as_dirs=
22790 while test ! -d "$as_dir"; do
22791 as_dirs="$as_dir $as_dirs"
22792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22794 X"$as_dir" : 'X\(//\)[^/]' \| \
22795 X"$as_dir" : 'X\(//\)$' \| \
22796 X"$as_dir" : 'X\(/\)' \| \
22797 . : '\(.\)' 2>/dev/null ||
22798 echo X"$as_dir" |
22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22801 /^X\(\/\/\)$/{ s//\1/; q; }
22802 /^X\(\/\).*/{ s//\1/; q; }
22803 s/.*/./; q'`
22804 done
22805 test ! -n "$as_dirs" || mkdir $as_dirs
22806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22808 { (exit 1); exit 1; }; }; }
22809
22810 ac_builddir=.
22811
22812 if test "$ac_dir" != .; then
22813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22814 # A "../" for each directory in $ac_dir_suffix.
22815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22816 else
22817 ac_dir_suffix= ac_top_builddir=
22818 fi
22819
22820 case $srcdir in
22821 .) # No --srcdir option. We are building in place.
22822 ac_srcdir=.
22823 if test -z "$ac_top_builddir"; then
22824 ac_top_srcdir=.
22825 else
22826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22827 fi ;;
22828 [\\/]* | ?:[\\/]* ) # Absolute path.
22829 ac_srcdir=$srcdir$ac_dir_suffix;
22830 ac_top_srcdir=$srcdir ;;
22831 *) # Relative path.
22832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22833 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22834 esac
22835
22836 # Do not use `cd foo && pwd` to compute absolute paths, because
22837 # the directories may not exist.
22838 case `pwd` in
22839 .) ac_abs_builddir="$ac_dir";;
22840 *)
22841 case "$ac_dir" in
22842 .) ac_abs_builddir=`pwd`;;
22843 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22844 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22845 esac;;
22846 esac
22847 case $ac_abs_builddir in
22848 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22849 *)
22850 case ${ac_top_builddir}. in
22851 .) ac_abs_top_builddir=$ac_abs_builddir;;
22852 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22853 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22854 esac;;
22855 esac
22856 case $ac_abs_builddir in
22857 .) ac_abs_srcdir=$ac_srcdir;;
22858 *)
22859 case $ac_srcdir in
22860 .) ac_abs_srcdir=$ac_abs_builddir;;
22861 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22862 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22863 esac;;
22864 esac
22865 case $ac_abs_builddir in
22866 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22867 *)
22868 case $ac_top_srcdir in
22869 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22870 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22871 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22872 esac;;
22873 esac
22874
22875
22876 case $INSTALL in
22877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22878 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22879 esac
22880
22881 if test x"$ac_file" != x-; then
22882 { echo "$as_me:$LINENO: creating $ac_file" >&5
22883 echo "$as_me: creating $ac_file" >&6;}
22884 rm -f "$ac_file"
22885 fi
22886 # Let's still pretend it is `configure' which instantiates (i.e., don't
22887 # use $as_me), people would be surprised to read:
22888 # /* config.h. Generated by config.status. */
22889 if test x"$ac_file" = x-; then
22890 configure_input=
22891 else
22892 configure_input="$ac_file. "
22893 fi
22894 configure_input=$configure_input"Generated from `echo $ac_file_in |
22895 sed 's,.*/,,'` by configure."
22896
22897 # First look for the input files in the build tree, otherwise in the
22898 # src tree.
22899 ac_file_inputs=`IFS=:
22900 for f in $ac_file_in; do
22901 case $f in
22902 -) echo $tmp/stdin ;;
22903 [\\/$]*)
22904 # Absolute (can't be DOS-style, as IFS=:)
22905 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22906 echo "$as_me: error: cannot find input file: $f" >&2;}
22907 { (exit 1); exit 1; }; }
22908 echo "$f";;
22909 *) # Relative
22910 if test -f "$f"; then
22911 # Build tree
22912 echo "$f"
22913 elif test -f "$srcdir/$f"; then
22914 # Source tree
22915 echo "$srcdir/$f"
22916 else
22917 # /dev/null tree
22918 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22919 echo "$as_me: error: cannot find input file: $f" >&2;}
22920 { (exit 1); exit 1; }; }
22921 fi;;
22922 esac
22923 done` || { (exit 1); exit 1; }
22924 _ACEOF
22925 cat >>$CONFIG_STATUS <<_ACEOF
22926 sed "$ac_vpsub
22927 $extrasub
22928 _ACEOF
22929 cat >>$CONFIG_STATUS <<\_ACEOF
22930 :t
22931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22932 s,@configure_input@,$configure_input,;t t
22933 s,@srcdir@,$ac_srcdir,;t t
22934 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22935 s,@top_srcdir@,$ac_top_srcdir,;t t
22936 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22937 s,@builddir@,$ac_builddir,;t t
22938 s,@abs_builddir@,$ac_abs_builddir,;t t
22939 s,@top_builddir@,$ac_top_builddir,;t t
22940 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22941 s,@INSTALL@,$ac_INSTALL,;t t
22942 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22943 rm -f $tmp/stdin
22944 if test x"$ac_file" != x-; then
22945 mv $tmp/out $ac_file
22946 else
22947 cat $tmp/out
22948 rm -f $tmp/out
22949 fi
22950
22951 done
22952 _ACEOF
22953 cat >>$CONFIG_STATUS <<\_ACEOF
22954
22955 #
22956 # CONFIG_HEADER section.
22957 #
22958
22959 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22960 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22961 #
22962 # ac_d sets the value in "#define NAME VALUE" lines.
22963 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22964 ac_dB='[ ].*$,\1#\2'
22965 ac_dC=' '
22966 ac_dD=',;t'
22967 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22968 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22969 ac_uB='$,\1#\2define\3'
22970 ac_uC=' '
22971 ac_uD=',;t'
22972
22973 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22975 case $ac_file in
22976 - | *:- | *:-:* ) # input from stdin
22977 cat >$tmp/stdin
22978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22982 * ) ac_file_in=$ac_file.in ;;
22983 esac
22984
22985 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22986 echo "$as_me: creating $ac_file" >&6;}
22987
22988 # First look for the input files in the build tree, otherwise in the
22989 # src tree.
22990 ac_file_inputs=`IFS=:
22991 for f in $ac_file_in; do
22992 case $f in
22993 -) echo $tmp/stdin ;;
22994 [\\/$]*)
22995 # Absolute (can't be DOS-style, as IFS=:)
22996 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22997 echo "$as_me: error: cannot find input file: $f" >&2;}
22998 { (exit 1); exit 1; }; }
22999 # Do quote $f, to prevent DOS paths from being IFS'd.
23000 echo "$f";;
23001 *) # Relative
23002 if test -f "$f"; then
23003 # Build tree
23004 echo "$f"
23005 elif test -f "$srcdir/$f"; then
23006 # Source tree
23007 echo "$srcdir/$f"
23008 else
23009 # /dev/null tree
23010 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23011 echo "$as_me: error: cannot find input file: $f" >&2;}
23012 { (exit 1); exit 1; }; }
23013 fi;;
23014 esac
23015 done` || { (exit 1); exit 1; }
23016 # Remove the trailing spaces.
23017 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23018
23019 _ACEOF
23020
23021 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23022 # `conftest.undefs', that substitutes the proper values into
23023 # config.h.in to produce config.h. The first handles `#define'
23024 # templates, and the second `#undef' templates.
23025 # And first: Protect against being on the right side of a sed subst in
23026 # config.status. Protect against being in an unquoted here document
23027 # in config.status.
23028 rm -f conftest.defines conftest.undefs
23029 # Using a here document instead of a string reduces the quoting nightmare.
23030 # Putting comments in sed scripts is not portable.
23031 #
23032 # `end' is used to avoid that the second main sed command (meant for
23033 # 0-ary CPP macros) applies to n-ary macro definitions.
23034 # See the Autoconf documentation for `clear'.
23035 cat >confdef2sed.sed <<\_ACEOF
23036 s/[\\&,]/\\&/g
23037 s,[\\$`],\\&,g
23038 t clear
23039 : clear
23040 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23041 t end
23042 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23043 : end
23044 _ACEOF
23045 # If some macros were called several times there might be several times
23046 # the same #defines, which is useless. Nevertheless, we may not want to
23047 # sort them, since we want the *last* AC-DEFINE to be honored.
23048 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23049 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23050 rm -f confdef2sed.sed
23051
23052 # This sed command replaces #undef with comments. This is necessary, for
23053 # example, in the case of _POSIX_SOURCE, which is predefined and required
23054 # on some systems where configure will not decide to define it.
23055 cat >>conftest.undefs <<\_ACEOF
23056 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23057 _ACEOF
23058
23059 # Break up conftest.defines because some shells have a limit on the size
23060 # of here documents, and old seds have small limits too (100 cmds).
23061 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23062 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23063 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23064 echo ' :' >>$CONFIG_STATUS
23065 rm -f conftest.tail
23066 while grep . conftest.defines >/dev/null
23067 do
23068 # Write a limited-size here document to $tmp/defines.sed.
23069 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23070 # Speed up: don't consider the non `#define' lines.
23071 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23072 # Work around the forget-to-reset-the-flag bug.
23073 echo 't clr' >>$CONFIG_STATUS
23074 echo ': clr' >>$CONFIG_STATUS
23075 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23076 echo 'CEOF
23077 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23078 rm -f $tmp/in
23079 mv $tmp/out $tmp/in
23080 ' >>$CONFIG_STATUS
23081 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23082 rm -f conftest.defines
23083 mv conftest.tail conftest.defines
23084 done
23085 rm -f conftest.defines
23086 echo ' fi # grep' >>$CONFIG_STATUS
23087 echo >>$CONFIG_STATUS
23088
23089 # Break up conftest.undefs because some shells have a limit on the size
23090 # of here documents, and old seds have small limits too (100 cmds).
23091 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23092 rm -f conftest.tail
23093 while grep . conftest.undefs >/dev/null
23094 do
23095 # Write a limited-size here document to $tmp/undefs.sed.
23096 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23097 # Speed up: don't consider the non `#undef'
23098 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23099 # Work around the forget-to-reset-the-flag bug.
23100 echo 't clr' >>$CONFIG_STATUS
23101 echo ': clr' >>$CONFIG_STATUS
23102 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23103 echo 'CEOF
23104 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23105 rm -f $tmp/in
23106 mv $tmp/out $tmp/in
23107 ' >>$CONFIG_STATUS
23108 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23109 rm -f conftest.undefs
23110 mv conftest.tail conftest.undefs
23111 done
23112 rm -f conftest.undefs
23113
23114 cat >>$CONFIG_STATUS <<\_ACEOF
23115 # Let's still pretend it is `configure' which instantiates (i.e., don't
23116 # use $as_me), people would be surprised to read:
23117 # /* config.h. Generated by config.status. */
23118 if test x"$ac_file" = x-; then
23119 echo "/* Generated by configure. */" >$tmp/config.h
23120 else
23121 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23122 fi
23123 cat $tmp/in >>$tmp/config.h
23124 rm -f $tmp/in
23125 if test x"$ac_file" != x-; then
23126 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23127 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23128 echo "$as_me: $ac_file is unchanged" >&6;}
23129 else
23130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23132 X"$ac_file" : 'X\(//\)[^/]' \| \
23133 X"$ac_file" : 'X\(//\)$' \| \
23134 X"$ac_file" : 'X\(/\)' \| \
23135 . : '\(.\)' 2>/dev/null ||
23136 echo X"$ac_file" |
23137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23139 /^X\(\/\/\)$/{ s//\1/; q; }
23140 /^X\(\/\).*/{ s//\1/; q; }
23141 s/.*/./; q'`
23142 { if $as_mkdir_p; then
23143 mkdir -p "$ac_dir"
23144 else
23145 as_dir="$ac_dir"
23146 as_dirs=
23147 while test ! -d "$as_dir"; do
23148 as_dirs="$as_dir $as_dirs"
23149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23151 X"$as_dir" : 'X\(//\)[^/]' \| \
23152 X"$as_dir" : 'X\(//\)$' \| \
23153 X"$as_dir" : 'X\(/\)' \| \
23154 . : '\(.\)' 2>/dev/null ||
23155 echo X"$as_dir" |
23156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23158 /^X\(\/\/\)$/{ s//\1/; q; }
23159 /^X\(\/\).*/{ s//\1/; q; }
23160 s/.*/./; q'`
23161 done
23162 test ! -n "$as_dirs" || mkdir $as_dirs
23163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23165 { (exit 1); exit 1; }; }; }
23166
23167 rm -f $ac_file
23168 mv $tmp/config.h $ac_file
23169 fi
23170 else
23171 cat $tmp/config.h
23172 rm -f $tmp/config.h
23173 fi
23174 done
23175 _ACEOF
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23177
23178 #
23179 # CONFIG_COMMANDS section.
23180 #
23181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23182 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23183 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23184 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186 X"$ac_dest" : 'X\(//\)[^/]' \| \
23187 X"$ac_dest" : 'X\(//\)$' \| \
23188 X"$ac_dest" : 'X\(/\)' \| \
23189 . : '\(.\)' 2>/dev/null ||
23190 echo X"$ac_dest" |
23191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23193 /^X\(\/\/\)$/{ s//\1/; q; }
23194 /^X\(\/\).*/{ s//\1/; q; }
23195 s/.*/./; q'`
23196 { if $as_mkdir_p; then
23197 mkdir -p "$ac_dir"
23198 else
23199 as_dir="$ac_dir"
23200 as_dirs=
23201 while test ! -d "$as_dir"; do
23202 as_dirs="$as_dir $as_dirs"
23203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23205 X"$as_dir" : 'X\(//\)[^/]' \| \
23206 X"$as_dir" : 'X\(//\)$' \| \
23207 X"$as_dir" : 'X\(/\)' \| \
23208 . : '\(.\)' 2>/dev/null ||
23209 echo X"$as_dir" |
23210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23212 /^X\(\/\/\)$/{ s//\1/; q; }
23213 /^X\(\/\).*/{ s//\1/; q; }
23214 s/.*/./; q'`
23215 done
23216 test ! -n "$as_dirs" || mkdir $as_dirs
23217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23219 { (exit 1); exit 1; }; }; }
23220
23221 ac_builddir=.
23222
23223 if test "$ac_dir" != .; then
23224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23225 # A "../" for each directory in $ac_dir_suffix.
23226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23227 else
23228 ac_dir_suffix= ac_top_builddir=
23229 fi
23230
23231 case $srcdir in
23232 .) # No --srcdir option. We are building in place.
23233 ac_srcdir=.
23234 if test -z "$ac_top_builddir"; then
23235 ac_top_srcdir=.
23236 else
23237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23238 fi ;;
23239 [\\/]* | ?:[\\/]* ) # Absolute path.
23240 ac_srcdir=$srcdir$ac_dir_suffix;
23241 ac_top_srcdir=$srcdir ;;
23242 *) # Relative path.
23243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23245 esac
23246
23247 # Do not use `cd foo && pwd` to compute absolute paths, because
23248 # the directories may not exist.
23249 case `pwd` in
23250 .) ac_abs_builddir="$ac_dir";;
23251 *)
23252 case "$ac_dir" in
23253 .) ac_abs_builddir=`pwd`;;
23254 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23255 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23256 esac;;
23257 esac
23258 case $ac_abs_builddir in
23259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23260 *)
23261 case ${ac_top_builddir}. in
23262 .) ac_abs_top_builddir=$ac_abs_builddir;;
23263 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23264 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23265 esac;;
23266 esac
23267 case $ac_abs_builddir in
23268 .) ac_abs_srcdir=$ac_srcdir;;
23269 *)
23270 case $ac_srcdir in
23271 .) ac_abs_srcdir=$ac_abs_builddir;;
23272 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23273 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23274 esac;;
23275 esac
23276 case $ac_abs_builddir in
23277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23278 *)
23279 case $ac_top_srcdir in
23280 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23281 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23282 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23283 esac;;
23284 esac
23285
23286
23287 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23288 echo "$as_me: executing $ac_dest commands" >&6;}
23289 case $ac_dest in
23290 default )
23291
23292 ### Make the necessary directories, if they don't exist.
23293 for dir in etc lisp ; do
23294 test -d ${dir} || mkdir ${dir}
23295 done
23296
23297 # Build src/Makefile from ${srcdir}/src/Makefile.c
23298 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23299 # This must be done after src/config.h is built, since we rely on that file.
23300
23301 # Now get this: Some word that is part of the ${srcdir} directory name
23302 # or the ${configuration} value might, just might, happen to be an
23303 # identifier like `sun4' or `i386' or something, and be predefined by
23304 # the C preprocessor to some helpful value like 1, or maybe the empty
23305 # string. Needless to say consequent macro substitutions are less
23306 # than conducive to the makefile finding the correct directory.
23307 undefs="`echo $top_srcdir $configuration $canonical |
23308 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23309 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23310 `"
23311
23312 echo creating src/epaths.h
23313 ${MAKE-make} epaths-force
23314
23315 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23316 # `..' to `. .' unless invoked with -traditional
23317
23318 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23319 CPPFLAGS="$CPPFLAGS -traditional"
23320 fi
23321
23322 echo creating lib-src/Makefile
23323 ( cd lib-src
23324 rm -f junk.c junk1.c junk2.c
23325 sed -e '/start of cpp stuff/q' \
23326 < Makefile.c > junk1.c
23327 sed -e '1,/start of cpp stuff/d'\
23328 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23329 < Makefile.c > junk.c
23330 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23331 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23332 cat junk1.c junk2.c > Makefile.new
23333 rm -f junk.c junk1.c junk2.c
23334 chmod 444 Makefile.new
23335 mv -f Makefile.new Makefile
23336 )
23337
23338 echo creating src/Makefile
23339 ( cd src
23340 rm -f junk.c junk1.c junk2.c
23341 sed -e '/start of cpp stuff/q' \
23342 < Makefile.c > junk1.c
23343 sed -e '1,/start of cpp stuff/d'\
23344 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23345 < Makefile.c > junk.c
23346 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23347 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23348 cat junk1.c junk2.c > Makefile.new
23349 rm -f junk.c junk1.c junk2.c
23350 chmod 444 Makefile.new
23351 mv -f Makefile.new Makefile
23352 )
23353
23354 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23355 echo creating src/.gdbinit
23356 echo source $srcdir/src/.gdbinit > src/.gdbinit
23357 fi
23358
23359 # This is how we know whether to re-run configure in certain cases.
23360 touch src/config.stamp
23361
23362 ;;
23363 esac
23364 done
23365 _ACEOF
23366
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368
23369 { (exit 0); exit 0; }
23370 _ACEOF
23371 chmod +x $CONFIG_STATUS
23372 ac_clean_files=$ac_clean_files_save
23373
23374
23375 # configure is writing to config.log, and then calls config.status.
23376 # config.status does its own redirection, appending to config.log.
23377 # Unfortunately, on DOS this fails, as config.log is still kept open
23378 # by configure, so config.status won't be able to write to it; its
23379 # output is simply discarded. So we exec the FD to /dev/null,
23380 # effectively closing config.log, so it can be properly (re)opened and
23381 # appended to by config.status. When coming back to configure, we
23382 # need to make the FD available again.
23383 if test "$no_create" != yes; then
23384 ac_cs_success=:
23385 ac_config_status_args=
23386 test "$silent" = yes &&
23387 ac_config_status_args="$ac_config_status_args --quiet"
23388 exec 5>/dev/null
23389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23390 exec 5>>config.log
23391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23392 # would make configure fail if this is the last instruction.
23393 $ac_cs_success || { (exit 1); exit 1; }
23394 fi
23395
23396