]> code.delx.au - gnu-emacs/blob - configure
configure.in (HAVE_MALLOC_MALLOC_H): Test for malloc/malloc.h
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SETARCH SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576 fi
1577
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1580
1581 ### Canonicalize the configuration name.
1582
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1597 fi
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 canonical=$host
1663 configuration=${host_alias-$host}
1664
1665
1666
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1670
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1679 ###
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1685 ###
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1689
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1692
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1700 ;;
1701
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1706
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1710
1711 fi
1712
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1729 ;;
1730
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1743 ;;
1744
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1748 ;;
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1753 ;;
1754
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1770 ;;
1771
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1780 ;;
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1783 ;;
1784
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1800 ;;
1801
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1804 ;;
1805
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1808 ;;
1809
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1813 ;;
1814
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1818 ;;
1819
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1823 ;;
1824
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1828 ;;
1829
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1833 ;;
1834
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1838 ;;
1839
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1843 ;;
1844
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1848 ;;
1849
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1853 ;;
1854
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1856
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1863 ;;
1864
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1872 ;;
1873
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1877 ;;
1878
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1884 ;;
1885
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1889 ;;
1890
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1894 ;;
1895
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1904 ;;
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1909 ;;
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1912 ;;
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1915 ;;
1916
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1922 ;;
1923
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1927 ;;
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1930 ;;
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1933 ;;
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1936 ;;
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1939 ;;
1940
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1949 fi
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1954 fi
1955 fi
1956 ;;
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1963 ;;
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1966 ;;
1967
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1971 ;;
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1974 ;;
1975
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1979 ;;
1980
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1984 ;;
1985
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1988
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1992 ;;
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1995 ;;
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
1998 ;;
1999
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2009 ;;
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2013 ;;
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2018 ;;
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2022 ;;
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2025 ;;
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2029 ;;
2030
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2034 ;;
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2046 ;;
2047
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2051 ;;
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2054 ;;
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2057 ;;
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2060 ;;
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2063 ;;
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2066 ;;
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2069 ;;
2070
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2086 ;;
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2089 ;;
2090
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2094 ;;
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2097 ;;
2098
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2102 ;;
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2105 ;;
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2108 ;;
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2111 ;;
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2114 ;;
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2117 ;;
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2120 ;;
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2123 ;;
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2126 ;;
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2129 ;;
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2132 ;;
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2135 ;;
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2138 ;;
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2141 ;;
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2144 ;;
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2147 ;;
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2150 ;;
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2156 ;;
2157
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2161 ;;
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2164 ;;
2165
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2169 ;;
2170
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2174 ;;
2175
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2179 ;;
2180
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2185 ;;
2186
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2192 ;;
2193
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2197 ;;
2198
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2203 ;;
2204
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2208 ;;
2209
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2215 ;;
2216
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2220 ;;
2221
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2225 ;;
2226
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2230 ;;
2231
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2235
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2246 ;;
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2251 ;;
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2256 ;;
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2259 ;;
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2262 ;;
2263
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2267 ;;
2268
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2272 ;;
2273
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2277 ;;
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2280 ;;
2281
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2285 ;;
2286
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2290 ;;
2291
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2295 ;;
2296
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2300 ;;
2301
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2307 ;;
2308
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2312 ;;
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2315 ;;
2316
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2322 ;;
2323
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2328 ;;
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2331 ;;
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2335 ;;
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2338 ;;
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2346 ;;
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2354 ;;
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2357 ;;
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2360 ;;
2361
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2365 ;;
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2368 ;;
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2371 ;;
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2374 ;;
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2377 ;;
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2380 ;;
2381
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2385 ;;
2386
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2390 ;;
2391
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2417 ;;
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2421 ;;
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2430 ;;
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2435 ;;
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2440 ;;
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2445 ;;
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2449 ;;
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2459 fi
2460 ;;
2461 *) ;;
2462 esac
2463 ;;
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2466 ;;
2467
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2471 ;;
2472
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2476 ;;
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2479 ;;
2480
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2484 ;;
2485
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2489 ;;
2490
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2494 ;;
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2499 ;;
2500
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2505 ;;
2506
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2510 ;;
2511
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2524 ;;
2525
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2531 ;;
2532
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2536 ;;
2537
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2541 ;;
2542
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2555 ;;
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2567 ;;
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2575 ;;
2576
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2580 ;;
2581
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2585 ;;
2586
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2592 ;;
2593
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2597 ;;
2598
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2609 fi
2610 ;;
2611
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2615 ;;
2616
2617 * )
2618 unported=yes
2619 ;;
2620 esac
2621
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2650 fi
2651 fi
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658 fi
2659
2660
2661
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2668 fi
2669
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2672
2673
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2676
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2679
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2683 * )
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 fi
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2762 fi
2763
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2842 fi
2843
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2847 fi
2848
2849 fi
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 fi
2902
2903 fi
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2907 do
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2941 fi
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985 test -n "$ac_ct_CC" && break
2986 done
2987
2988 CC=$ac_ct_CC
2989 fi
2990
2991 fi
2992
2993
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
2999
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3019
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3051
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3057 do
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3061 ;;
3062 conftest.$ac_ext )
3063 # This is the source file.
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3076 * )
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3089 fi
3090
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3094
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120 fi
3121 fi
3122 fi
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3125
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3134
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 fi
3214
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_compiler_gnu=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 ac_compiler_gnu=no
3272 fi
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 CFLAGS="-g"
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_g=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 ac_cv_prog_cc_g=no
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3343 fi
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_prog_cc_stdc=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372 char **p;
3373 int i;
3374 {
3375 return p[i];
3376 }
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3378 {
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3385 }
3386
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3402 int
3403 main ()
3404 {
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc=$ac_arg
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 fi
3449 rm -f conftest.err conftest.$ac_objext
3450 done
3451 rm -f conftest.$ac_ext conftest.$ac_objext
3452 CC=$ac_save_CC
3453
3454 fi
3455
3456 case "x$ac_cv_prog_cc_stdc" in
3457 x|xno)
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3460 *)
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC="$CC $ac_cv_prog_cc_stdc" ;;
3464 esac
3465
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #ifndef __cplusplus
3472 choke me
3473 #endif
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3498 '' \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3503 'void exit (int);'
3504 do
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_declaration
3512 #include <stdlib.h>
3513 int
3514 main ()
3515 {
3516 exit (42);
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 :
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 continue
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_declaration
3558 int
3559 main ()
3560 {
3561 exit (42);
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 rm -f conftest*
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3601 fi
3602
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 fi
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618 CPP=
3619 fi
3620
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3625 then
3626 CPP="$NON_GNU_CPP"
3627 fi
3628
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3633 test x$cc_specified != xyes
3634 then
3635 CC="$NON_GNU_CC"
3636 fi
3637
3638 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3639 then
3640 CC="$CC $GCC_TEST_OPTIONS"
3641 fi
3642
3643 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3644 then
3645 CC="$CC $NON_GCC_TEST_OPTIONS"
3646 fi
3647
3648 #### Some other nice autoconf tests.
3649
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652 LN_S=$as_ln_s
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3659 fi
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670 CPP=
3671 fi
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678 do
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699 Syntax error
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715 else
3716 ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719 :
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 # Broken: fails on valid input.
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null; then
3747 if test -s conftest.err; then
3748 ac_cpp_err=$ac_c_preproc_warn_flag
3749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 else
3751 ac_cpp_err=
3752 fi
3753 else
3754 ac_cpp_err=yes
3755 fi
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773 break
3774 fi
3775
3776 done
3777 ac_cv_prog_CPP=$CPP
3778
3779 fi
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3783 fi
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3788 do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3821 fi
3822 else
3823 ac_cpp_err=yes
3824 fi
3825 if test -z "$ac_cpp_err"; then
3826 :
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 # Broken: fails on valid input.
3832 continue
3833 fi
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3859 fi
3860 else
3861 ac_cpp_err=yes
3862 fi
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3873 fi
3874 rm -f conftest.err conftest.$ac_ext
3875
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then
3880 :
3881 else
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in
3921 ./ | .// | /cC/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3924 /usr/ucb/* ) ;;
3925 *)
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3935 :
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3939 :
3940 else
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 break 3
3943 fi
3944 fi
3945 done
3946 done
3947 ;;
3948 esac
3949 done
3950
3951
3952 fi
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3955 else
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3961 fi
3962 fi
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3965
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3969
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3971
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3973
3974 if test "x$RANLIB" = x; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999
4000 fi
4001 fi
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011 fi
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4039 fi
4040 fi
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 RANLIB=$ac_ct_RANLIB
4051 else
4052 RANLIB="$ac_cv_prog_RANLIB"
4053 fi
4054
4055 fi
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $INSTALL_INFO in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4066 ;;
4067 *)
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081
4082 ;;
4083 esac
4084 fi
4085 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4086
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093 fi
4094
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 case $INSTALL_INFO in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4105 ;;
4106 *)
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in /usr/sbin
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120
4121 ;;
4122 esac
4123 fi
4124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4125
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 case $INSTALL_INFO in
4142 [\\/]* | ?:[\\/]*)
4143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4144 ;;
4145 *)
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in /sbin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4161 ;;
4162 esac
4163 fi
4164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4165
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174
4175
4176 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4177 then
4178 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4179 fi
4180
4181 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4182 then
4183 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4184 fi
4185
4186
4187 late_LDFLAGS=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4190 else
4191 LDFLAGS="$LDFLAGS -znocombreloc"
4192 fi
4193
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4196
4197 cat >conftest.$ac_ext <<_ACEOF
4198 main(){return 0;}
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 LDFLAGS=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4234
4235
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242 then ac_cv_prog_egrep='grep -E'
4243 else ac_cv_prog_egrep='egrep'
4244 fi
4245 fi
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4249
4250
4251
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef _AIX
4261 yes
4262 #endif
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev/null 2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h <<\_ACEOF
4270 #define _ALL_SOURCE 1
4271 _ACEOF
4272
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277 rm -f conftest*
4278
4279
4280
4281
4282 #### Extract some information from the operating system and machine files.
4283
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4290
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4297
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4300
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4303 ### anyway.
4304 tempcname="conftest.c"
4305
4306 echo '
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4311 #endif
4312 #ifndef LIBS_SYSTEM
4313 #define LIBS_SYSTEM
4314 #endif
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4317 #endif
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4320 #endif
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4324
4325 #ifndef LIB_X11_LIB
4326 #define LIB_X11_LIB -lX11
4327 #endif
4328
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4331 #endif
4332
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4335 #endif
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4337
4338 #ifdef UNEXEC
4339 configure___ unexec=UNEXEC
4340 #else
4341 configure___ unexec=unexec.o
4342 #endif
4343
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4346 #else
4347 configure___ system_malloc=no
4348 #endif
4349
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4352 #else
4353 configure___ use_mmap_for_buffers=no
4354 #endif
4355
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4358 #endif
4359
4360 #ifndef C_OPTIMIZE_SWITCH
4361 #ifdef __GNUC__
4362 #define C_OPTIMIZE_SWITCH -O2
4363 #else
4364 #define C_OPTIMIZE_SWITCH -O
4365 #endif
4366 #endif
4367
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4370 #endif
4371
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4374 #endif
4375
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4378 #endif
4379
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4382
4383 #ifdef THIS_IS_CONFIGURE
4384
4385 /* Get the CFLAGS for tests in configure. */
4386 #ifdef __GNUC__
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4388 #else
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4390 #endif
4391
4392 #else /* not THIS_IS_CONFIGURE */
4393
4394 /* Get the CFLAGS for real compilation. */
4395 #ifdef __GNUC__
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4400
4401 #endif /* not THIS_IS_CONFIGURE */
4402 ' > ${tempcname}
4403
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4412 else
4413 REAL_CFLAGS="$CFLAGS"
4414 fi
4415 rm ${tempcname}
4416
4417 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4418
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4420
4421 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4422 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4423 else
4424 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4425 fi
4426
4427
4428
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define _GNU_SOURCE 1
4432 _ACEOF
4433
4434
4435
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval="$enable_largefile"
4439
4440 fi;
4441 if test "$enable_largefile" != no; then
4442
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_cv_sys_largefile_CC=no
4449 if test "$GCC" != yes; then
4450 ac_save_CC=$CC
4451 while :; do
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4468 ? 1 : -1];
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 break
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 fi
4505 rm -f conftest.err conftest.$ac_objext
4506 CC="$CC -n32"
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC=' -n32'; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 fi
4535 rm -f conftest.err conftest.$ac_objext
4536 break
4537 done
4538 CC=$ac_save_CC
4539 rm -f conftest.$ac_ext
4540 fi
4541 fi
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no; then
4545 CC=$CC$ac_cv_sys_largefile_CC
4546 fi
4547
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 while :; do
4554 ac_cv_sys_file_offset_bits=no
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4569 ? 1 : -1];
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 break
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 fi
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4622 ? 1 : -1];
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits=64; break
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 fi
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660 break
4661 done
4662 fi
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no; then
4666
4667 cat >>confdefs.h <<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4669 _ACEOF
4670
4671 fi
4672 rm -f conftest*
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 while :; do
4679 ac_cv_sys_large_files=no
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 break
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 fi
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4747 ? 1 : -1];
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files=1; break
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 break
4786 done
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no; then
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4794 _ACEOF
4795
4796 fi
4797 rm -f conftest*
4798 fi
4799
4800
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <stdlib.h>
4815 #include <stdarg.h>
4816 #include <string.h>
4817 #include <float.h>
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_header_stdc=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <string.h>
4867
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev/null 2>&1; then
4871 :
4872 else
4873 ac_cv_header_stdc=no
4874 fi
4875 rm -f conftest*
4876
4877 fi
4878
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then
4892 :
4893 else
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4903 :
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ctype.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4922
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 int
4925 main ()
4926 {
4927 int i;
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4931 exit(2);
4932 exit (0);
4933 }
4934 _ACEOF
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 :
4947 else
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ( exit $ac_status )
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4965 _ACEOF
4966
4967 fi
4968
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980 inttypes.h stdint.h unistd.h
4981 do
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4995
4996 #include <$ac_header>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 eval "$as_ac_Header=no"
5026 fi
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034 _ACEOF
5035
5036 fi
5037
5038 done
5039
5040
5041
5042
5043
5044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5045 do
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 fi
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 else
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ac_header_compiler=no
5096 fi
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5100
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5111 _ACEOF
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null; then
5120 if test -s conftest.err; then
5121 ac_cpp_err=$ac_c_preproc_warn_flag
5122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123 else
5124 ac_cpp_err=
5125 fi
5126 else
5127 ac_cpp_err=yes
5128 fi
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_header_preproc=no
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5140
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143 yes:no: )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc=yes
5149 ;;
5150 no:yes:* )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163 (
5164 cat <<\_ASBOX
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5168 _ASBOX
5169 ) |
5170 sed "s/^/$as_me: WARNING: /" >&2
5171 ;;
5172 esac
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=\$ac_header_preproc"
5179 fi
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182
5183 fi
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 fi
5190
5191 done
5192
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lossaudio $LIBS"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char _oss_ioctl ();
5215 int
5216 main ()
5217 {
5218 _oss_ioctl ();
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_cv_lib_ossaudio__oss_ioctl=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5259 LIBSOUND=-lossaudio
5260 else
5261 LIBSOUND=
5262 fi
5263
5264
5265 fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5291 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5293 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5294 do
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 fi
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304 else
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler=yes
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 ac_header_compiler=no
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5349
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5360 _ACEOF
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_c_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 else
5373 ac_cpp_err=
5374 fi
5375 else
5376 ac_cpp_err=yes
5377 fi
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_header_preproc=no
5385 fi
5386 rm -f conftest.err conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5389
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 yes:no: )
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc=yes
5398 ;;
5399 no:yes:* )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5412 (
5413 cat <<\_ASBOX
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5417 _ASBOX
5418 ) |
5419 sed "s/^/$as_me: WARNING: /" >&2
5420 ;;
5421 esac
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 eval "$as_ac_Header=\$ac_header_preproc"
5428 fi
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431
5432 fi
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 _ACEOF
5437
5438 fi
5439
5440 done
5441
5442
5443 for ac_header in term.h
5444 do
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <$ac_header>
5458 _ACEOF
5459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5470 else
5471 ac_cpp_err=
5472 fi
5473 else
5474 ac_cpp_err=yes
5475 fi
5476 if test -z "$ac_cpp_err"; then
5477 eval "$as_ac_Header=yes"
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 eval "$as_ac_Header=no"
5483 fi
5484 rm -f conftest.err conftest.$ac_ext
5485 fi
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 _ACEOF
5492
5493 fi
5494
5495 done
5496
5497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5499 if test "${ac_cv_header_stdc+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <stdlib.h>
5509 #include <stdarg.h>
5510 #include <string.h>
5511 #include <float.h>
5512
5513 int
5514 main ()
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_header_stdc=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <string.h>
5561
5562 _ACEOF
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 $EGREP "memchr" >/dev/null 2>&1; then
5565 :
5566 else
5567 ac_cv_header_stdc=no
5568 fi
5569 rm -f conftest*
5570
5571 fi
5572
5573 if test $ac_cv_header_stdc = yes; then
5574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <stdlib.h>
5582
5583 _ACEOF
5584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585 $EGREP "free" >/dev/null 2>&1; then
5586 :
5587 else
5588 ac_cv_header_stdc=no
5589 fi
5590 rm -f conftest*
5591
5592 fi
5593
5594 if test $ac_cv_header_stdc = yes; then
5595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5596 if test "$cross_compiling" = yes; then
5597 :
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <ctype.h>
5606 #if ((' ' & 0x0FF) == 0x020)
5607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5609 #else
5610 # define ISLOWER(c) \
5611 (('a' <= (c) && (c) <= 'i') \
5612 || ('j' <= (c) && (c) <= 'r') \
5613 || ('s' <= (c) && (c) <= 'z'))
5614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5615 #endif
5616
5617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5618 int
5619 main ()
5620 {
5621 int i;
5622 for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i))
5624 || toupper (i) != TOUPPER (i))
5625 exit(2);
5626 exit (0);
5627 }
5628 _ACEOF
5629 rm -f conftest$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 :
5641 else
5642 echo "$as_me: program exited with status $ac_status" >&5
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 ( exit $ac_status )
5647 ac_cv_header_stdc=no
5648 fi
5649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 fi
5652 fi
5653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5655 if test $ac_cv_header_stdc = yes; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define STDC_HEADERS 1
5659 _ACEOF
5660
5661 fi
5662
5663 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5665 if test "${ac_cv_header_time+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 #include <sys/time.h>
5676 #include <time.h>
5677
5678 int
5679 main ()
5680 {
5681 if ((struct tm *) 0)
5682 return 0;
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_header_time=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_cv_header_time=no
5715 fi
5716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5719 echo "${ECHO_T}$ac_cv_header_time" >&6
5720 if test $ac_cv_header_time = yes; then
5721
5722 cat >>confdefs.h <<\_ACEOF
5723 #define TIME_WITH_SYS_TIME 1
5724 _ACEOF
5725
5726 fi
5727
5728 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5729 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5730 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 int
5741 main ()
5742 {
5743 #ifndef sys_siglist
5744 char *p = (char *) sys_siglist;
5745 #endif
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_have_decl_sys_siglist=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_have_decl_sys_siglist=no
5779 fi
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5783 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5784 if test $ac_cv_have_decl_sys_siglist = yes; then
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define HAVE_DECL_SYS_SIGLIST 1
5788 _ACEOF
5789
5790
5791 else
5792 cat >>confdefs.h <<_ACEOF
5793 #define HAVE_DECL_SYS_SIGLIST 0
5794 _ACEOF
5795
5796
5797 fi
5798
5799
5800 if test $ac_cv_have_decl_sys_siglist != yes; then
5801 # For Tru64, at least:
5802 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5803 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5804 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5814 int
5815 main ()
5816 {
5817 #ifndef __sys_siglist
5818 char *p = (char *) __sys_siglist;
5819 #endif
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_have_decl___sys_siglist=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cv_have_decl___sys_siglist=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5857 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5858 if test $ac_cv_have_decl___sys_siglist = yes; then
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_DECL___SYS_SIGLIST 1
5862 _ACEOF
5863
5864
5865 else
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_DECL___SYS_SIGLIST 0
5868 _ACEOF
5869
5870
5871 fi
5872
5873
5874 if test $ac_cv_have_decl___sys_siglist = yes; then
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define sys_siglist __sys_siglist
5878 _ACEOF
5879
5880 fi
5881 fi
5882 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5883 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5884 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 #include <sys/wait.h>
5895 #ifndef WEXITSTATUS
5896 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5897 #endif
5898 #ifndef WIFEXITED
5899 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5900 #endif
5901
5902 int
5903 main ()
5904 {
5905 int s;
5906 wait (&s);
5907 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_header_sys_wait_h=yes
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_cv_header_sys_wait_h=no
5940 fi
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5944 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5945 if test $ac_cv_header_sys_wait_h = yes; then
5946
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_SYS_WAIT_H 1
5949 _ACEOF
5950
5951 fi
5952
5953
5954 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5955 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5956 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #ifdef TIME_WITH_SYS_TIME
5966 #include <sys/time.h>
5967 #include <time.h>
5968 #else
5969 #ifdef HAVE_SYS_TIME_H
5970 #include <sys/time.h>
5971 #else
5972 #include <time.h>
5973 #endif
5974 #endif
5975 #ifdef HAVE_UTIME_H
5976 #include <utime.h>
5977 #endif
5978 int
5979 main ()
5980 {
5981 static struct utimbuf x; x.actime = x.modtime;
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 emacs_cv_struct_utimbuf=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 emacs_cv_struct_utimbuf=no
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6018 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6019 if test $emacs_cv_struct_utimbuf = yes; then
6020
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_STRUCT_UTIMBUF 1
6023 _ACEOF
6024
6025 fi
6026
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039 #include <signal.h>
6040 #ifdef signal
6041 # undef signal
6042 #endif
6043 #ifdef __cplusplus
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6045 #else
6046 void (*signal ()) ();
6047 #endif
6048
6049 int
6050 main ()
6051 {
6052 int i;
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal=void
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_cv_type_signal=int
6085 fi
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6090
6091 cat >>confdefs.h <<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6093 _ACEOF
6094
6095
6096
6097 echo "$as_me:$LINENO: checking for speed_t" >&5
6098 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6099 if test "${emacs_cv_speed_t+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <termios.h>
6109 int
6110 main ()
6111 {
6112 speed_t x = 1;
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 emacs_cv_speed_t=yes
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 emacs_cv_speed_t=no
6145 fi
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6149 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6150 if test $emacs_cv_speed_t = yes; then
6151
6152 cat >>confdefs.h <<\_ACEOF
6153 #define HAVE_SPEED_T 1
6154 _ACEOF
6155
6156 fi
6157
6158 echo "$as_me:$LINENO: checking for struct timeval" >&5
6159 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6160 if test "${emacs_cv_struct_timeval+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #ifdef TIME_WITH_SYS_TIME
6170 #include <sys/time.h>
6171 #include <time.h>
6172 #else
6173 #ifdef HAVE_SYS_TIME_H
6174 #include <sys/time.h>
6175 #else
6176 #include <time.h>
6177 #endif
6178 #endif
6179 int
6180 main ()
6181 {
6182 static struct timeval x; x.tv_sec = x.tv_usec;
6183 ;
6184 return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_struct_timeval=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 emacs_cv_struct_timeval=no
6215 fi
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6219 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6220 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6221 if test $emacs_cv_struct_timeval = yes; then
6222
6223 cat >>confdefs.h <<\_ACEOF
6224 #define HAVE_TIMEVAL 1
6225 _ACEOF
6226
6227 fi
6228
6229 echo "$as_me:$LINENO: checking for struct exception" >&5
6230 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_exception+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <math.h>
6241 int
6242 main ()
6243 {
6244 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 emacs_cv_struct_exception=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 emacs_cv_struct_exception=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 fi
6280 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6281 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6282 HAVE_EXCEPTION=$emacs_cv_struct_exception
6283 if test $emacs_cv_struct_exception != yes; then
6284
6285 cat >>confdefs.h <<\_ACEOF
6286 #define NO_MATHERR 1
6287 _ACEOF
6288
6289 fi
6290
6291
6292 for ac_header in sys/socket.h
6293 do
6294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 fi
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6303 else
6304 # Is the header compilable?
6305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6314 #include <$ac_header>
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_header_compiler=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_header_compiler=no
6344 fi
6345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347 echo "${ECHO_T}$ac_header_compiler" >&6
6348
6349 # Is the header present?
6350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <$ac_header>
6359 _ACEOF
6360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } >/dev/null; then
6368 if test -s conftest.err; then
6369 ac_cpp_err=$ac_c_preproc_warn_flag
6370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371 else
6372 ac_cpp_err=
6373 fi
6374 else
6375 ac_cpp_err=yes
6376 fi
6377 if test -z "$ac_cpp_err"; then
6378 ac_header_preproc=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_header_preproc=no
6384 fi
6385 rm -f conftest.err conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387 echo "${ECHO_T}$ac_header_preproc" >&6
6388
6389 # So? What about this header?
6390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6391 yes:no: )
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396 ac_header_preproc=yes
6397 ;;
6398 no:yes:* )
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6411 (
6412 cat <<\_ASBOX
6413 ## ------------------------------------------ ##
6414 ## Report this to the AC_PACKAGE_NAME lists. ##
6415 ## ------------------------------------------ ##
6416 _ASBOX
6417 ) |
6418 sed "s/^/$as_me: WARNING: /" >&2
6419 ;;
6420 esac
6421 echo "$as_me:$LINENO: checking for $ac_header" >&5
6422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 eval "$as_ac_Header=\$ac_header_preproc"
6427 fi
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430
6431 fi
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 _ACEOF
6436
6437 fi
6438
6439 done
6440
6441
6442 for ac_header in net/if.h
6443 do
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457 #if HAVE_SYS_SOCKET_H
6458 #include <sys/socket.h>
6459 #endif
6460
6461 #include <$ac_header>
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 eval "$as_ac_Header=yes"
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 eval "$as_ac_Header=no"
6491 fi
6492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499 _ACEOF
6500
6501 fi
6502
6503 done
6504
6505
6506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6508 if test "${ac_cv_struct_tm+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <sys/types.h>
6518 #include <time.h>
6519
6520 int
6521 main ()
6522 {
6523 struct tm *tp; tp->tm_sec;
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_struct_tm=time.h
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_cv_struct_tm=sys/time.h
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6560 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6561 if test $ac_cv_struct_tm = sys/time.h; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define TM_IN_SYS_TIME 1
6565 _ACEOF
6566
6567 fi
6568
6569 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6570 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6571 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <$ac_cv_struct_tm>
6582
6583
6584 int
6585 main ()
6586 {
6587 static struct tm ac_aggr;
6588 if (ac_aggr.tm_zone)
6589 return 0;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_member_struct_tm_tm_zone=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6629
6630
6631 int
6632 main ()
6633 {
6634 static struct tm ac_aggr;
6635 if (sizeof ac_aggr.tm_zone)
6636 return 0;
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_member_struct_tm_tm_zone=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ac_cv_member_struct_tm_tm_zone=no
6669 fi
6670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6675 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6676 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6677
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_STRUCT_TM_TM_ZONE 1
6680 _ACEOF
6681
6682
6683 fi
6684
6685 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_TM_ZONE 1
6689 _ACEOF
6690
6691 else
6692 echo "$as_me:$LINENO: checking for tzname" >&5
6693 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6694 if test "${ac_cv_var_tzname+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <time.h>
6704 #ifndef tzname /* For SGI. */
6705 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6706 #endif
6707
6708 int
6709 main ()
6710 {
6711 atoi(*tzname);
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_var_tzname=yes
6739 else
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743 ac_cv_var_tzname=no
6744 fi
6745 rm -f conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6747 fi
6748 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6749 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6750 if test $ac_cv_var_tzname = yes; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_TZNAME 1
6754 _ACEOF
6755
6756 fi
6757 fi
6758
6759 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6760 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6761 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <time.h>
6771
6772 int
6773 main ()
6774 {
6775 static struct tm ac_aggr;
6776 if (ac_aggr.tm_gmtoff)
6777 return 0;
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_member_struct_tm_tm_gmtoff=yes
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <time.h>
6816
6817 int
6818 main ()
6819 {
6820 static struct tm ac_aggr;
6821 if (sizeof ac_aggr.tm_gmtoff)
6822 return 0;
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_member_struct_tm_tm_gmtoff=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_cv_member_struct_tm_tm_gmtoff=no
6855 fi
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6862 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6863
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_TM_GMTOFF 1
6866 _ACEOF
6867
6868 fi
6869
6870 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6871 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6872 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6884 #endif
6885 #if HAVE_NET_IF_H
6886 #include <net/if.h>
6887 #endif
6888
6889 int
6890 main ()
6891 {
6892 static struct ifreq ac_aggr;
6893 if (ac_aggr.ifr_flags)
6894 return 0;
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_member_struct_ifreq_ifr_flags=yes
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 #if HAVE_SYS_SOCKET_H
6934 #include <sys/socket.h>
6935 #endif
6936 #if HAVE_NET_IF_H
6937 #include <net/if.h>
6938 #endif
6939
6940 int
6941 main ()
6942 {
6943 static struct ifreq ac_aggr;
6944 if (sizeof ac_aggr.ifr_flags)
6945 return 0;
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_ifreq_ifr_flags=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ac_cv_member_struct_ifreq_ifr_flags=no
6978 fi
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6986
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6989 _ACEOF
6990
6991
6992 fi
6993 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7007 #endif
7008 #if HAVE_NET_IF_H
7009 #include <net/if.h>
7010 #endif
7011
7012 int
7013 main ()
7014 {
7015 static struct ifreq ac_aggr;
7016 if (ac_aggr.ifr_hwaddr)
7017 return 0;
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7058 #endif
7059 #if HAVE_NET_IF_H
7060 #include <net/if.h>
7061 #endif
7062
7063 int
7064 main ()
7065 {
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_hwaddr)
7068 return 0;
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7101 fi
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7107 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7108 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7109
7110 cat >>confdefs.h <<_ACEOF
7111 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7112 _ACEOF
7113
7114
7115 fi
7116 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7117 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7118 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #if HAVE_SYS_SOCKET_H
7129 #include <sys/socket.h>
7130 #endif
7131 #if HAVE_NET_IF_H
7132 #include <net/if.h>
7133 #endif
7134
7135 int
7136 main ()
7137 {
7138 static struct ifreq ac_aggr;
7139 if (ac_aggr.ifr_netmask)
7140 return 0;
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_member_struct_ifreq_ifr_netmask=yes
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #if HAVE_SYS_SOCKET_H
7180 #include <sys/socket.h>
7181 #endif
7182 #if HAVE_NET_IF_H
7183 #include <net/if.h>
7184 #endif
7185
7186 int
7187 main ()
7188 {
7189 static struct ifreq ac_aggr;
7190 if (sizeof ac_aggr.ifr_netmask)
7191 return 0;
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_member_struct_ifreq_ifr_netmask=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 ac_cv_member_struct_ifreq_ifr_netmask=no
7224 fi
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228 fi
7229 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7230 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7231 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7232
7233 cat >>confdefs.h <<_ACEOF
7234 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7235 _ACEOF
7236
7237
7238 fi
7239 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7240 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7241 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7251 #if HAVE_SYS_SOCKET_H
7252 #include <sys/socket.h>
7253 #endif
7254 #if HAVE_NET_IF_H
7255 #include <net/if.h>
7256 #endif
7257
7258 int
7259 main ()
7260 {
7261 static struct ifreq ac_aggr;
7262 if (ac_aggr.ifr_broadaddr)
7263 return 0;
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #if HAVE_SYS_SOCKET_H
7303 #include <sys/socket.h>
7304 #endif
7305 #if HAVE_NET_IF_H
7306 #include <net/if.h>
7307 #endif
7308
7309 int
7310 main ()
7311 {
7312 static struct ifreq ac_aggr;
7313 if (sizeof ac_aggr.ifr_broadaddr)
7314 return 0;
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7347 fi
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7353 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7354 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7355
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7358 _ACEOF
7359
7360
7361 fi
7362 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7363 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7364 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 #if HAVE_SYS_SOCKET_H
7375 #include <sys/socket.h>
7376 #endif
7377 #if HAVE_NET_IF_H
7378 #include <net/if.h>
7379 #endif
7380
7381 int
7382 main ()
7383 {
7384 static struct ifreq ac_aggr;
7385 if (ac_aggr.ifr_addr)
7386 return 0;
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_member_struct_ifreq_ifr_addr=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 $ac_includes_default
7425 #if HAVE_SYS_SOCKET_H
7426 #include <sys/socket.h>
7427 #endif
7428 #if HAVE_NET_IF_H
7429 #include <net/if.h>
7430 #endif
7431
7432 int
7433 main ()
7434 {
7435 static struct ifreq ac_aggr;
7436 if (sizeof ac_aggr.ifr_addr)
7437 return 0;
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_member_struct_ifreq_ifr_addr=yes
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_cv_member_struct_ifreq_ifr_addr=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7476 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7477 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7478
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7481 _ACEOF
7482
7483
7484 fi
7485
7486
7487
7488 echo "$as_me:$LINENO: checking for function prototypes" >&5
7489 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7490 if test "$ac_cv_prog_cc_stdc" != no; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492 echo "${ECHO_T}yes" >&6
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define PROTOTYPES 1
7496 _ACEOF
7497
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define __PROTOTYPES 1
7501 _ACEOF
7502
7503 else
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 fi
7507
7508 echo "$as_me:$LINENO: checking for working volatile" >&5
7509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7510 if test "${ac_cv_c_volatile+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519
7520 int
7521 main ()
7522 {
7523
7524 volatile int x;
7525 int * volatile y;
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_c_volatile=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 ac_cv_c_volatile=no
7558 fi
7559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7563 if test $ac_cv_c_volatile = no; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define volatile
7567 _ACEOF
7568
7569 fi
7570
7571 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7572 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7573 if test "${ac_cv_c_const+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582
7583 int
7584 main ()
7585 {
7586 /* FIXME: Include the comments suggested by Paul. */
7587 #ifndef __cplusplus
7588 /* Ultrix mips cc rejects this. */
7589 typedef int charset[2];
7590 const charset x;
7591 /* SunOS 4.1.1 cc rejects this. */
7592 char const *const *ccp;
7593 char **p;
7594 /* NEC SVR4.0.2 mips cc rejects this. */
7595 struct point {int x, y;};
7596 static struct point const zero = {0,0};
7597 /* AIX XL C 1.02.0.0 rejects this.
7598 It does not let you subtract one const X* pointer from another in
7599 an arm of an if-expression whose if-part is not a constant
7600 expression */
7601 const char *g = "string";
7602 ccp = &g + (g ? g-g : 0);
7603 /* HPUX 7.0 cc rejects these. */
7604 ++ccp;
7605 p = (char**) ccp;
7606 ccp = (char const *const *) p;
7607 { /* SCO 3.2v4 cc rejects this. */
7608 char *t;
7609 char const *s = 0 ? (char *) 0 : (char const *) 0;
7610
7611 *t++ = 0;
7612 }
7613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7614 int x[] = {25, 17};
7615 const int *foo = &x[0];
7616 ++foo;
7617 }
7618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7619 typedef const int *iptr;
7620 iptr p = 0;
7621 ++p;
7622 }
7623 { /* AIX XL C 1.02.0.0 rejects this saying
7624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7625 struct s { int j; const int *ap[3]; };
7626 struct s *b; b->j = 5;
7627 }
7628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7629 const int foo = 10;
7630 }
7631 #endif
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 ac_cv_c_const=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_c_const=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7669 echo "${ECHO_T}$ac_cv_c_const" >&6
7670 if test $ac_cv_c_const = no; then
7671
7672 cat >>confdefs.h <<\_ACEOF
7673 #define const
7674 _ACEOF
7675
7676 fi
7677
7678 echo "$as_me:$LINENO: checking for void * support" >&5
7679 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7680 if test "${emacs_cv_void_star+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689
7690 int
7691 main ()
7692 {
7693 void * foo;
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 emacs_cv_void_star=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 emacs_cv_void_star=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7730 echo "${ECHO_T}$emacs_cv_void_star" >&6
7731 if test $emacs_cv_void_star = yes; then
7732 cat >>confdefs.h <<\_ACEOF
7733 #define POINTER_TYPE void
7734 _ACEOF
7735
7736 else
7737 cat >>confdefs.h <<\_ACEOF
7738 #define POINTER_TYPE char
7739 _ACEOF
7740
7741 fi
7742
7743
7744 echo "$as_me:$LINENO: checking whether heap start address is randomized" >&5
7745 echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6
7746 if test x"$ac_cv_header_unistd_h" != x && test x"$ac_cv_header_stdlib_h" != x
7747 then
7748 if test "$cross_compiling" = yes; then
7749 emacs_cv_randomheap='assuming no'
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 #include <stdio.h>
7758 #include <unistd.h>
7759 #include <stdlib.h>
7760 int main (int argc, char *argv[])
7761 {
7762 unsigned long old_sbrk = 0;
7763 unsigned long this_sbrk = (unsigned long) sbrk(0);
7764 int nr = 1;
7765 if (argc != 1) {
7766 old_sbrk = strtoul (argv[1], 0, 0);
7767 nr = atoi (argv[2])+1;
7768 }
7769 if (argc == 1 || (old_sbrk == this_sbrk && nr < 3))
7770 {
7771 char buf1[32], buf2[32];
7772 sprintf (buf1, "%lu", this_sbrk);
7773 sprintf (buf2, "%d", nr);
7774 execl (argv[0], argv[0], buf1, buf2, 0);
7775 exit (-1);
7776 }
7777 exit (this_sbrk == old_sbrk);
7778 }
7779 _ACEOF
7780 rm -f conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_randomheap=yes
7792 else
7793 echo "$as_me: program exited with status $ac_status" >&5
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ( exit $ac_status )
7798 emacs_cv_randomheap=no
7799 fi
7800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 else
7803 emacs_cv_randomheap='assuming no'
7804 fi
7805 echo "$as_me:$LINENO: result: $emacs_cv_randomheap" >&5
7806 echo "${ECHO_T}$emacs_cv_randomheap" >&6
7807
7808 if test "$emacs_cv_randomheap" = yes; then
7809 # Extract the first word of "setarch", so it can be a program name with args.
7810 set dummy setarch; ac_word=$2
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813 if test "${ac_cv_path_SETARCH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 case $SETARCH in
7817 [\\/]* | ?:[\\/]*)
7818 ac_cv_path_SETARCH="$SETARCH" # Let the user override the test with a path.
7819 ;;
7820 *)
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_SETARCH="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834
7835 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH="no"
7836 ;;
7837 esac
7838 fi
7839 SETARCH=$ac_cv_path_SETARCH
7840
7841 if test -n "$SETARCH"; then
7842 echo "$as_me:$LINENO: result: $SETARCH" >&5
7843 echo "${ECHO_T}$SETARCH" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7847 fi
7848
7849
7850 if test "$SETARCH" != no && test "$machine" = "intel386"; then
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_RANDOM_HEAPSTART 1
7854 _ACEOF
7855
7856 else
7857 emacs_cv_randomheap=warn
7858 fi
7859 fi
7860
7861
7862
7863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7865 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.make <<\_ACEOF
7870 all:
7871 @echo 'ac_maketemp="$(MAKE)"'
7872 _ACEOF
7873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7875 if test -n "$ac_maketemp"; then
7876 eval ac_cv_prog_make_${ac_make}_set=yes
7877 else
7878 eval ac_cv_prog_make_${ac_make}_set=no
7879 fi
7880 rm -f conftest.make
7881 fi
7882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7885 SET_MAKE=
7886 else
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 SET_MAKE="MAKE=${MAKE-make}"
7890 fi
7891
7892
7893 echo "$as_me:$LINENO: checking for long file names" >&5
7894 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7895 if test "${ac_cv_sys_long_file_names+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 ac_cv_sys_long_file_names=yes
7899 # Test for long file names in all the places we know might matter:
7900 # . the current directory, where building will happen
7901 # $prefix/lib where we will be installing things
7902 # $exec_prefix/lib likewise
7903 # eval it to expand exec_prefix.
7904 # $TMPDIR if set, where it might want to write temporary files
7905 # if $TMPDIR is not set:
7906 # /tmp where it might want to write temporary files
7907 # /var/tmp likewise
7908 # /usr/tmp likewise
7909 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7910 ac_tmpdirs=$TMPDIR
7911 else
7912 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7913 fi
7914 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7915 test -d $ac_dir || continue
7916 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7917 ac_xdir=$ac_dir/cf$$
7918 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7919 ac_tf1=$ac_xdir/conftest9012345
7920 ac_tf2=$ac_xdir/conftest9012346
7921 (echo 1 >$ac_tf1) 2>/dev/null
7922 (echo 2 >$ac_tf2) 2>/dev/null
7923 ac_val=`cat $ac_tf1 2>/dev/null`
7924 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7925 ac_cv_sys_long_file_names=no
7926 rm -rf $ac_xdir 2>/dev/null
7927 break
7928 fi
7929 rm -rf $ac_xdir 2>/dev/null
7930 done
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7933 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7934 if test $ac_cv_sys_long_file_names = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_LONG_FILE_NAMES 1
7938 _ACEOF
7939
7940 fi
7941
7942
7943 #### Choose a window system.
7944
7945 echo "$as_me:$LINENO: checking for X" >&5
7946 echo $ECHO_N "checking for X... $ECHO_C" >&6
7947
7948
7949 # Check whether --with-x or --without-x was given.
7950 if test "${with_x+set}" = set; then
7951 withval="$with_x"
7952
7953 fi;
7954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7955 if test "x$with_x" = xno; then
7956 # The user explicitly disabled X.
7957 have_x=disabled
7958 else
7959 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7960 # Both variables are already set.
7961 have_x=yes
7962 else
7963 if test "${ac_cv_have_x+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 # One or both of the vars are not set, and there is no cached value.
7967 ac_x_includes=no ac_x_libraries=no
7968 rm -fr conftest.dir
7969 if mkdir conftest.dir; then
7970 cd conftest.dir
7971 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7972 cat >Imakefile <<'_ACEOF'
7973 acfindx:
7974 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7975 _ACEOF
7976 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7978 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7980 for ac_extension in a so sl; do
7981 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7982 test -f $ac_im_libdir/libX11.$ac_extension; then
7983 ac_im_usrlibdir=$ac_im_libdir; break
7984 fi
7985 done
7986 # Screen out bogus values from the imake configuration. They are
7987 # bogus both because they are the default anyway, and because
7988 # using them would break gcc on systems where it needs fixed includes.
7989 case $ac_im_incroot in
7990 /usr/include) ;;
7991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7992 esac
7993 case $ac_im_usrlibdir in
7994 /usr/lib | /lib) ;;
7995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7996 esac
7997 fi
7998 cd ..
7999 rm -fr conftest.dir
8000 fi
8001
8002 # Standard set of common directories for X headers.
8003 # Check X11 before X11Rn because it is often a symlink to the current release.
8004 ac_x_header_dirs='
8005 /usr/X11/include
8006 /usr/X11R6/include
8007 /usr/X11R5/include
8008 /usr/X11R4/include
8009
8010 /usr/include/X11
8011 /usr/include/X11R6
8012 /usr/include/X11R5
8013 /usr/include/X11R4
8014
8015 /usr/local/X11/include
8016 /usr/local/X11R6/include
8017 /usr/local/X11R5/include
8018 /usr/local/X11R4/include
8019
8020 /usr/local/include/X11
8021 /usr/local/include/X11R6
8022 /usr/local/include/X11R5
8023 /usr/local/include/X11R4
8024
8025 /usr/X386/include
8026 /usr/x386/include
8027 /usr/XFree86/include/X11
8028
8029 /usr/include
8030 /usr/local/include
8031 /usr/unsupported/include
8032 /usr/athena/include
8033 /usr/local/x11r5/include
8034 /usr/lpp/Xamples/include
8035
8036 /usr/openwin/include
8037 /usr/openwin/share/include'
8038
8039 if test "$ac_x_includes" = no; then
8040 # Guess where to find include files, by looking for Intrinsic.h.
8041 # First, try using that file with no special directory specified.
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Intrinsic.h>
8049 _ACEOF
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null; then
8058 if test -s conftest.err; then
8059 ac_cpp_err=$ac_c_preproc_warn_flag
8060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8061 else
8062 ac_cpp_err=
8063 fi
8064 else
8065 ac_cpp_err=yes
8066 fi
8067 if test -z "$ac_cpp_err"; then
8068 # We can compile using X headers with no special include directory.
8069 ac_x_includes=
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 for ac_dir in $ac_x_header_dirs; do
8075 if test -r "$ac_dir/X11/Intrinsic.h"; then
8076 ac_x_includes=$ac_dir
8077 break
8078 fi
8079 done
8080 fi
8081 rm -f conftest.err conftest.$ac_ext
8082 fi # $ac_x_includes = no
8083
8084 if test "$ac_x_libraries" = no; then
8085 # Check for the libraries.
8086 # See if we find them without any special options.
8087 # Don't add to $LIBS permanently.
8088 ac_save_LIBS=$LIBS
8089 LIBS="-lXt $LIBS"
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <X11/Intrinsic.h>
8097 int
8098 main ()
8099 {
8100 XtMalloc (0)
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 LIBS=$ac_save_LIBS
8128 # We can link X programs with no special library path.
8129 ac_x_libraries=
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 LIBS=$ac_save_LIBS
8135 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8136 do
8137 # Don't even attempt the hair of trying to link an X program!
8138 for ac_extension in a so sl; do
8139 if test -r $ac_dir/libXt.$ac_extension; then
8140 ac_x_libraries=$ac_dir
8141 break 2
8142 fi
8143 done
8144 done
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 fi # $ac_x_libraries = no
8149
8150 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8151 # Didn't find X anywhere. Cache the known absence of X.
8152 ac_cv_have_x="have_x=no"
8153 else
8154 # Record where we found X for the cache.
8155 ac_cv_have_x="have_x=yes \
8156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8157 fi
8158 fi
8159
8160 fi
8161 eval "$ac_cv_have_x"
8162 fi # $with_x != no
8163
8164 if test "$have_x" != yes; then
8165 echo "$as_me:$LINENO: result: $have_x" >&5
8166 echo "${ECHO_T}$have_x" >&6
8167 no_x=yes
8168 else
8169 # If each of the values was on the command line, it overrides each guess.
8170 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8171 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8172 # Update the cache value to reflect the command line values.
8173 ac_cv_have_x="have_x=yes \
8174 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8175 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8176 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8177 fi
8178
8179 if test "$no_x" = yes; then
8180 window_system=none
8181 else
8182 window_system=x11
8183 fi
8184
8185 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8186 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8187 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8188 x_default_search_path=""
8189 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8190 x_search_path="\
8191 ${x_library}/X11/%L/%T/%N%C%S:\
8192 ${x_library}/X11/%l/%T/%N%C%S:\
8193 ${x_library}/X11/%T/%N%C%S:\
8194 ${x_library}/X11/%L/%T/%N%S:\
8195 ${x_library}/X11/%l/%T/%N%S:\
8196 ${x_library}/X11/%T/%N%S"
8197 if test x"${x_default_search_path}" = x; then
8198 x_default_search_path=${x_search_path}
8199 else
8200 x_default_search_path="${x_search_path}:${x_default_search_path}"
8201 fi
8202 done
8203 fi
8204 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8205 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8206 fi
8207
8208 if test x"${x_includes}" = x; then
8209 bitmapdir=/usr/include/X11/bitmaps
8210 else
8211 # accumulate include directories that have X11 bitmap subdirectories
8212 bmd_acc="dummyval"
8213 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8214 if test -d "${bmd}/X11/bitmaps"; then
8215 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8216 fi
8217 if test -d "${bmd}/bitmaps"; then
8218 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8219 fi
8220 done
8221 if test ${bmd_acc} != "dummyval"; then
8222 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8223 fi
8224 fi
8225
8226 case "${window_system}" in
8227 x11 )
8228 HAVE_X_WINDOWS=yes
8229 HAVE_X11=yes
8230 case "${with_x_toolkit}" in
8231 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8232 motif ) USE_X_TOOLKIT=MOTIF ;;
8233 gtk ) with_gtk=yes
8234 USE_X_TOOLKIT=none ;;
8235 no ) USE_X_TOOLKIT=none ;;
8236 * ) USE_X_TOOLKIT=maybe ;;
8237 esac
8238 ;;
8239 none )
8240 HAVE_X_WINDOWS=no
8241 HAVE_X11=no
8242 USE_X_TOOLKIT=none
8243 ;;
8244 esac
8245
8246 ### If we're using X11, we should use the X menu package.
8247 HAVE_MENUS=no
8248 case ${HAVE_X11} in
8249 yes ) HAVE_MENUS=yes ;;
8250 esac
8251
8252 if test "${opsys}" = "hpux9"; then
8253 case "${x_libraries}" in
8254 *X11R4* )
8255 opsysfile="s/hpux9-x11r4.h"
8256 ;;
8257 esac
8258 fi
8259
8260 if test "${opsys}" = "hpux9shr"; then
8261 case "${x_libraries}" in
8262 *X11R4* )
8263 opsysfile="s/hpux9shxr4.h"
8264 ;;
8265 esac
8266 fi
8267
8268 ### Compute the unexec source name from the object name.
8269 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8270
8271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8272 # Assume not, until told otherwise.
8273 GNU_MALLOC=yes
8274 doug_lea_malloc=yes
8275 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8276 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8288 #define malloc_get_state innocuous_malloc_get_state
8289
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char malloc_get_state (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8294
8295 #ifdef __STDC__
8296 # include <limits.h>
8297 #else
8298 # include <assert.h>
8299 #endif
8300
8301 #undef malloc_get_state
8302
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 #ifdef __cplusplus
8305 extern "C"
8306 {
8307 #endif
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310 char malloc_get_state ();
8311 /* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8315 choke me
8316 #else
8317 char (*f) () = malloc_get_state;
8318 #endif
8319 #ifdef __cplusplus
8320 }
8321 #endif
8322
8323 int
8324 main ()
8325 {
8326 return f != malloc_get_state;
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 ac_cv_func_malloc_get_state=yes
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_cv_func_malloc_get_state=no
8359 fi
8360 rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8364 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8365 if test $ac_cv_func_malloc_get_state = yes; then
8366 :
8367 else
8368 doug_lea_malloc=no
8369 fi
8370
8371 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8372 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8373 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define malloc_set_state innocuous_malloc_set_state
8385
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char malloc_set_state (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8390
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8396
8397 #undef malloc_set_state
8398
8399 /* Override any gcc2 internal prototype to avoid an error. */
8400 #ifdef __cplusplus
8401 extern "C"
8402 {
8403 #endif
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char malloc_set_state ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8411 choke me
8412 #else
8413 char (*f) () = malloc_set_state;
8414 #endif
8415 #ifdef __cplusplus
8416 }
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 return f != malloc_set_state;
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_malloc_set_state=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_func_malloc_set_state=no
8455 fi
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8460 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8461 if test $ac_cv_func_malloc_set_state = yes; then
8462 :
8463 else
8464 doug_lea_malloc=no
8465 fi
8466
8467 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8468 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8469 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 extern void (* __after_morecore_hook)();
8479 int
8480 main ()
8481 {
8482 __after_morecore_hook = 0
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 emacs_cv_var___after_morecore_hook=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 emacs_cv_var___after_morecore_hook=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 fi
8519 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8520 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8521 if test $emacs_cv_var___after_morecore_hook = no; then
8522 doug_lea_malloc=no
8523 fi
8524 if test "${system_malloc}" = "yes"; then
8525 GNU_MALLOC=no
8526 GNU_MALLOC_reason="
8527 (The GNU allocators don't work with this system configuration.)"
8528 fi
8529 if test "$doug_lea_malloc" = "yes" ; then
8530 if test "$GNU_MALLOC" = yes ; then
8531 GNU_MALLOC_reason="
8532 (Using Doug Lea's new malloc from the GNU C Library.)"
8533 fi
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define DOUG_LEA_MALLOC 1
8537 _ACEOF
8538
8539 fi
8540
8541 if test x"${REL_ALLOC}" = x; then
8542 REL_ALLOC=${GNU_MALLOC}
8543 fi
8544
8545
8546
8547
8548 for ac_header in stdlib.h unistd.h
8549 do
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 fi
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559 else
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_header_compiler=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8604
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <$ac_header>
8615 _ACEOF
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev/null; then
8624 if test -s conftest.err; then
8625 ac_cpp_err=$ac_c_preproc_warn_flag
8626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8627 else
8628 ac_cpp_err=
8629 fi
8630 else
8631 ac_cpp_err=yes
8632 fi
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_header_preproc=no
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8644
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8647 yes:no: )
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652 ac_header_preproc=yes
8653 ;;
8654 no:yes:* )
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667 (
8668 cat <<\_ASBOX
8669 ## ------------------------------------------ ##
8670 ## Report this to the AC_PACKAGE_NAME lists. ##
8671 ## ------------------------------------------ ##
8672 _ASBOX
8673 ) |
8674 sed "s/^/$as_me: WARNING: /" >&2
8675 ;;
8676 esac
8677 echo "$as_me:$LINENO: checking for $ac_header" >&5
8678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682 eval "$as_ac_Header=\$ac_header_preproc"
8683 fi
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8686
8687 fi
8688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8691 _ACEOF
8692
8693 fi
8694
8695 done
8696
8697
8698 for ac_func in getpagesize
8699 do
8700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701 echo "$as_me:$LINENO: checking for $ac_func" >&5
8702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703 if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8715
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8720
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726
8727 #undef $ac_func
8728
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 {
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736 char $ac_func ();
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741 choke me
8742 #else
8743 char (*f) () = $ac_func;
8744 #endif
8745 #ifdef __cplusplus
8746 }
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 return f != $ac_func;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 eval "$as_ac_var=no"
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 _ACEOF
8795
8796 fi
8797 done
8798
8799 echo "$as_me:$LINENO: checking for working mmap" >&5
8800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 if test "$cross_compiling" = yes; then
8805 ac_cv_func_mmap_fixed_mapped=no
8806 else
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8815 #undef malloc
8816
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8833
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8838
8839 #include <fcntl.h>
8840 #include <sys/mman.h>
8841
8842 #if !STDC_HEADERS && !HAVE_STDLIB_H
8843 char *malloc ();
8844 #endif
8845
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #if !HAVE_GETPAGESIZE
8848 /* Assume that all systems that can run configure have sys/param.h. */
8849 # if !HAVE_SYS_PARAM_H
8850 # define HAVE_SYS_PARAM_H 1
8851 # endif
8852
8853 # ifdef _SC_PAGESIZE
8854 # define getpagesize() sysconf(_SC_PAGESIZE)
8855 # else /* no _SC_PAGESIZE */
8856 # if HAVE_SYS_PARAM_H
8857 # include <sys/param.h>
8858 # ifdef EXEC_PAGESIZE
8859 # define getpagesize() EXEC_PAGESIZE
8860 # else /* no EXEC_PAGESIZE */
8861 # ifdef NBPG
8862 # define getpagesize() NBPG * CLSIZE
8863 # ifndef CLSIZE
8864 # define CLSIZE 1
8865 # endif /* no CLSIZE */
8866 # else /* no NBPG */
8867 # ifdef NBPC
8868 # define getpagesize() NBPC
8869 # else /* no NBPC */
8870 # ifdef PAGESIZE
8871 # define getpagesize() PAGESIZE
8872 # endif /* PAGESIZE */
8873 # endif /* no NBPC */
8874 # endif /* no NBPG */
8875 # endif /* no EXEC_PAGESIZE */
8876 # else /* no HAVE_SYS_PARAM_H */
8877 # define getpagesize() 8192 /* punt totally */
8878 # endif /* no HAVE_SYS_PARAM_H */
8879 # endif /* no _SC_PAGESIZE */
8880
8881 #endif /* no HAVE_GETPAGESIZE */
8882
8883 int
8884 main ()
8885 {
8886 char *data, *data2, *data3;
8887 int i, pagesize;
8888 int fd;
8889
8890 pagesize = getpagesize ();
8891
8892 /* First, make a file with some known garbage in it. */
8893 data = (char *) malloc (pagesize);
8894 if (!data)
8895 exit (1);
8896 for (i = 0; i < pagesize; ++i)
8897 *(data + i) = rand ();
8898 umask (0);
8899 fd = creat ("conftest.mmap", 0600);
8900 if (fd < 0)
8901 exit (1);
8902 if (write (fd, data, pagesize) != pagesize)
8903 exit (1);
8904 close (fd);
8905
8906 /* Next, try to mmap the file at a fixed address which already has
8907 something else allocated at it. If we can, also make sure that
8908 we see the same garbage. */
8909 fd = open ("conftest.mmap", O_RDWR);
8910 if (fd < 0)
8911 exit (1);
8912 data2 = (char *) malloc (2 * pagesize);
8913 if (!data2)
8914 exit (1);
8915 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8916 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8918 exit (1);
8919 for (i = 0; i < pagesize; ++i)
8920 if (*(data + i) != *(data2 + i))
8921 exit (1);
8922
8923 /* Finally, make sure that changes to the mapped area do not
8924 percolate back to the file as seen by read(). (This is a bug on
8925 some variants of i386 svr4.0.) */
8926 for (i = 0; i < pagesize; ++i)
8927 *(data2 + i) = *(data2 + i) + 1;
8928 data3 = (char *) malloc (pagesize);
8929 if (!data3)
8930 exit (1);
8931 if (read (fd, data3, pagesize) != pagesize)
8932 exit (1);
8933 for (i = 0; i < pagesize; ++i)
8934 if (*(data + i) != *(data3 + i))
8935 exit (1);
8936 close (fd);
8937 exit (0);
8938 }
8939 _ACEOF
8940 rm -f conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_func_mmap_fixed_mapped=yes
8952 else
8953 echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ( exit $ac_status )
8958 ac_cv_func_mmap_fixed_mapped=no
8959 fi
8960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_MMAP 1
8969 _ACEOF
8970
8971 fi
8972 rm -f conftest.mmap
8973
8974 if test $use_mmap_for_buffers = yes; then
8975 REL_ALLOC=no
8976 fi
8977
8978 LIBS="$libsrc_libs $LIBS"
8979
8980
8981 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-ldnet $LIBS"
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char dnet_ntoa ();
9002 int
9003 main ()
9004 {
9005 dnet_ntoa ();
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dnet_dnet_ntoa=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037 ac_cv_lib_dnet_dnet_ntoa=no
9038 fi
9039 rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9046 cat >>confdefs.h <<_ACEOF
9047 #define HAVE_LIBDNET 1
9048 _ACEOF
9049
9050 LIBS="-ldnet $LIBS"
9051
9052 fi
9053
9054
9055 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9056 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9057 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lXbsd $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068
9069
9070 int
9071 main ()
9072 {
9073 main ();
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_lib_Xbsd_main=yes
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_cv_lib_Xbsd_main=no
9106 fi
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 LIBS=$ac_check_lib_save_LIBS
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9112 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9113 if test $ac_cv_lib_Xbsd_main = yes; then
9114 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9115 fi
9116
9117
9118
9119 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9120 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-lpthreads $LIBS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132
9133 /* Override any gcc2 internal prototype to avoid an error. */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char cma_open ();
9140 int
9141 main ()
9142 {
9143 cma_open ();
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_pthreads_cma_open=yes
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_cv_lib_pthreads_cma_open=no
9176 fi
9177 rm -f conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9180 fi
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9182 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9183 if test $ac_cv_lib_pthreads_cma_open = yes; then
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_LIBPTHREADS 1
9186 _ACEOF
9187
9188 LIBS="-lpthreads $LIBS"
9189
9190 fi
9191
9192
9193 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9194 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9195 if test -d /usr/X386/include; then
9196 HAVE_XFREE386=yes
9197 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9198 else
9199 HAVE_XFREE386=no
9200 fi
9201 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9202 echo "${ECHO_T}$HAVE_XFREE386" >&6
9203
9204
9205 case ${host_os} in
9206 aix*)
9207 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9208 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9209 if test "${gdb_cv_bigtoc+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212
9213 case $GCC in
9214 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9215 *) gdb_cv_bigtoc=-bbigtoc ;;
9216 esac
9217
9218 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229 int i;
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 :
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 gdb_cv_bigtoc=
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265
9266 fi
9267 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9268 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9269 ;;
9270 esac
9271
9272 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9273 # used for the tests that follow. We set them back to REAL_CFLAGS and
9274 # REAL_CPPFLAGS later on.
9275
9276 REAL_CPPFLAGS="$CPPFLAGS"
9277
9278 if test "${HAVE_X11}" = "yes"; then
9279 DEFS="$C_SWITCH_X_SITE $DEFS"
9280 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9281 LIBS="$LIBX $LIBS"
9282 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9283 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9284
9285 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9286 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9287 # but it's more convenient here to set LD_RUN_PATH
9288 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9289 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9290 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9291 export LD_RUN_PATH
9292 fi
9293
9294 if test "${opsys}" = "gnu-linux"; then
9295 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9296 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303
9304 int
9305 main ()
9306 {
9307 XOpenDisplay ("foo");
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 xlinux_first_failure=no
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 xlinux_first_failure=yes
9340 fi
9341 rm -f conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test "${xlinux_first_failure}" = "yes"; then
9344 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9345 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9346 OLD_CPPFLAGS="$CPPFLAGS"
9347 OLD_LIBS="$LIBS"
9348 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9349 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9350 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9351 LIBS="$LIBS -b i486-linuxaout"
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358
9359 int
9360 main ()
9361 {
9362 XOpenDisplay ("foo");
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 xlinux_second_failure=no
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394 xlinux_second_failure=yes
9395 fi
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test "${xlinux_second_failure}" = "yes"; then
9399 # If we get the same failure with -b, there is no use adding -b.
9400 # So take it out. This plays safe.
9401 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9402 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9403 CPPFLAGS="$OLD_CPPFLAGS"
9404 LIBS="$OLD_LIBS"
9405 echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6
9407 else
9408 echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9410 fi
9411 else
9412 echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9414 fi
9415 fi
9416
9417 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9418 # header files included from there.
9419 echo "$as_me:$LINENO: checking for Xkb" >&5
9420 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 #include <X11/Xlib.h>
9428 #include <X11/XKBlib.h>
9429 int
9430 main ()
9431 {
9432 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 emacs_xkb=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 emacs_xkb=no
9465 fi
9466 rm -f conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9469 echo "${ECHO_T}$emacs_xkb" >&6
9470 if test $emacs_xkb = yes; then
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_XKBGETKEYBOARD 1
9474 _ACEOF
9475
9476 fi
9477
9478
9479
9480
9481
9482 for ac_func in XrmSetDatabase XScreenResourceString \
9483 XScreenNumberOfScreen XSetWMProtocols
9484 do
9485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define $ac_func innocuous_$ac_func
9500
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9505
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9511
9512 #undef $ac_func
9513
9514 /* Override any gcc2 internal prototype to avoid an error. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char $ac_func ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 choke me
9527 #else
9528 char (*f) () = $ac_func;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != $ac_func;
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 eval "$as_ac_var=no"
9570 fi
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 fi
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9579 _ACEOF
9580
9581 fi
9582 done
9583
9584 fi
9585
9586 if test "${window_system}" = "x11"; then
9587 echo "$as_me:$LINENO: checking X11 version 6" >&5
9588 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9589 if test "${emacs_cv_x11_version_6+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h. */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <X11/Xlib.h>
9599 int
9600 main ()
9601 {
9602 #if XlibSpecificationRelease < 6
9603 fail;
9604 #endif
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 emacs_cv_x11_version_6=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 emacs_cv_x11_version_6=no
9638 fi
9639 rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 fi
9642
9643 if test $emacs_cv_x11_version_6 = yes; then
9644 echo "$as_me:$LINENO: result: 6 or newer" >&5
9645 echo "${ECHO_T}6 or newer" >&6
9646
9647 cat >>confdefs.h <<\_ACEOF
9648 #define HAVE_X11R6 1
9649 _ACEOF
9650
9651 else
9652 echo "$as_me:$LINENO: result: before 6" >&5
9653 echo "${ECHO_T}before 6" >&6
9654 fi
9655 fi
9656
9657 if test "${window_system}" = "x11"; then
9658 echo "$as_me:$LINENO: checking X11 version 5" >&5
9659 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9660 if test "${emacs_cv_x11_version_5+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <X11/Xlib.h>
9670 int
9671 main ()
9672 {
9673 #if XlibSpecificationRelease < 5
9674 fail;
9675 #endif
9676
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -z "$ac_c_werror_flag"
9691 || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 emacs_cv_x11_version_5=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 emacs_cv_x11_version_5=no
9709 fi
9710 rm -f conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 fi
9713
9714 if test $emacs_cv_x11_version_5 = yes; then
9715 echo "$as_me:$LINENO: result: 5 or newer" >&5
9716 echo "${ECHO_T}5 or newer" >&6
9717 HAVE_X11R5=yes
9718
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_X11R5 1
9721 _ACEOF
9722
9723 else
9724 HAVE_X11R5=no
9725 echo "$as_me:$LINENO: result: before 5" >&5
9726 echo "${ECHO_T}before 5" >&6
9727 fi
9728 fi
9729
9730
9731
9732 HAVE_GTK=no
9733 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9734 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9735 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9736 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9737 { (exit 1); exit 1; }; };
9738 fi
9739 GLIB_REQUIRED=2.0.1
9740 GTK_REQUIRED=2.0.1
9741 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9742
9743 if test "X${with_pkg_config_prog}" != X; then
9744 PKG_CONFIG="${with_pkg_config_prog}"
9745 fi
9746
9747 succeeded=no
9748
9749 if test -z "$PKG_CONFIG"; then
9750 # Extract the first word of "pkg-config", so it can be a program name with args.
9751 set dummy pkg-config; ac_word=$2
9752 echo "$as_me:$LINENO: checking for $ac_word" >&5
9753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 case $PKG_CONFIG in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9760 ;;
9761 *)
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9764 do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9772 fi
9773 done
9774 done
9775
9776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9777 ;;
9778 esac
9779 fi
9780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9781
9782 if test -n "$PKG_CONFIG"; then
9783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9784 echo "${ECHO_T}$PKG_CONFIG" >&6
9785 else
9786 echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6
9788 fi
9789
9790 fi
9791
9792 if test "$PKG_CONFIG" = "no" ; then
9793 echo "*** The pkg-config script could not be found. Make sure it is"
9794 echo "*** in your path, or give the full path to pkg-config with"
9795 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9797 else
9798 PKG_CONFIG_MIN_VERSION=0.9.0
9799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9800 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9801 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9802
9803 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9806 succeeded=yes
9807
9808 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9809 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9810 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9811 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9812 echo "${ECHO_T}$GTK_CFLAGS" >&6
9813
9814 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9815 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9816 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9817 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9818 echo "${ECHO_T}$GTK_LIBS" >&6
9819 else
9820 GTK_CFLAGS=""
9821 GTK_LIBS=""
9822 ## If we have a custom action on failure, don't print errors, but
9823 ## do set a variable so people can do so.
9824 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9825 echo $GTK_PKG_ERRORS
9826 fi
9827
9828
9829
9830 else
9831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9833 fi
9834 fi
9835
9836 if test $succeeded = yes; then
9837 :
9838 else
9839 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9840 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9841 { (exit 1); exit 1; }; }
9842 fi
9843
9844
9845
9846 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9847 CFLAGS="$CFLAGS $GTK_CFLAGS"
9848 LIBS="$GTK_LIBS $LIBS"
9849 HAVE_GTK=yes
9850
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_GTK 1
9853 _ACEOF
9854
9855 USE_X_TOOLKIT=none
9856
9857 with_toolkit_scroll_bars=yes
9858
9859 HAVE_GTK_MULTIDISPLAY=no
9860
9861 for ac_func in gdk_display_open
9862 do
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9878
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9883
9884 #ifdef __STDC__
9885 # include <limits.h>
9886 #else
9887 # include <assert.h>
9888 #endif
9889
9890 #undef $ac_func
9891
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 {
9896 #endif
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9899 char $ac_func ();
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9904 choke me
9905 #else
9906 char (*f) () = $ac_func;
9907 #endif
9908 #ifdef __cplusplus
9909 }
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915 return f != $ac_func;
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 eval "$as_ac_var=yes"
9943 else
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 eval "$as_ac_var=no"
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9957 _ACEOF
9958 HAVE_GTK_MULTIDISPLAY=yes
9959 fi
9960 done
9961
9962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_GTK_MULTIDISPLAY 1
9966 _ACEOF
9967
9968 fi
9969 fi
9970
9971 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9972 if test x"${HAVE_X11R5}" = xyes; then
9973 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9974 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9975 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984
9985 #include <X11/Intrinsic.h>
9986 #include <X11/Xaw/Simple.h>
9987 int
9988 main ()
9989 {
9990
9991 ;
9992 return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 emacs_cv_x11_version_5_with_xaw=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 emacs_cv_x11_version_5_with_xaw=no
10023 fi
10024 rm -f conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 fi
10027
10028 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10029 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10030 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10031 USE_X_TOOLKIT=LUCID
10032 else
10033 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10034 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10035 USE_X_TOOLKIT=none
10036 fi
10037 else
10038 USE_X_TOOLKIT=none
10039 fi
10040 fi
10041
10042 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10043
10044 if test "${USE_X_TOOLKIT}" != "none"; then
10045 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10046 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10047 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <X11/Intrinsic.h>
10057 int
10058 main ()
10059 {
10060 #if XtSpecificationRelease < 6
10061 fail;
10062 #endif
10063
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 emacs_cv_x11_toolkit_version_6=yes
10091 else
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 emacs_cv_x11_toolkit_version_6=no
10096 fi
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 fi
10100
10101 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10102 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10103 echo "$as_me:$LINENO: result: 6 or newer" >&5
10104 echo "${ECHO_T}6 or newer" >&6
10105
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_X11XTR6 1
10108 _ACEOF
10109
10110 else
10111 echo "$as_me:$LINENO: result: before 6" >&5
10112 echo "${ECHO_T}before 6" >&6
10113 fi
10114
10115 OLDLIBS="$LIBS"
10116 if test x$HAVE_X11XTR6 = xyes; then
10117 LIBS="-lXt -lSM -lICE $LIBS"
10118 else
10119 LIBS="-lXt $LIBS"
10120 fi
10121
10122 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10123 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10124 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-lXmu $LIBS"
10129 cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h. */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135
10136 /* Override any gcc2 internal prototype to avoid an error. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10142 char XmuConvertStandardSelection ();
10143 int
10144 main ()
10145 {
10146 XmuConvertStandardSelection ();
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10179 fi
10180 rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10185 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10186 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_LIBXMU 1
10189 _ACEOF
10190
10191 LIBS="-lXmu $LIBS"
10192
10193 fi
10194
10195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10196 fi
10197
10198 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10199 if test "${HAVE_X11}" = "yes"; then
10200 if test "${USE_X_TOOLKIT}" != "none"; then
10201
10202 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10203 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-lXext $LIBS"
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215
10216 /* Override any gcc2 internal prototype to avoid an error. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222 char XShapeQueryExtension ();
10223 int
10224 main ()
10225 {
10226 XShapeQueryExtension ();
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_Xext_XShapeQueryExtension=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 ac_cv_lib_Xext_XShapeQueryExtension=no
10259 fi
10260 rm -f conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10265 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10266 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE_LIBXEXT 1
10269 _ACEOF
10270
10271 LIBS="-lXext $LIBS"
10272
10273 fi
10274
10275 fi
10276 fi
10277
10278 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10279 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10280 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10281 if test "${emacs_cv_lesstif+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 # We put this in CFLAGS temporarily to precede other -I options
10285 # that might be in CFLAGS temporarily.
10286 # We put this in CPPFLAGS where it precedes the other -I options.
10287 OLD_CPPFLAGS=$CPPFLAGS
10288 OLD_CFLAGS=$CFLAGS
10289 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10290 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10298 int
10299 main ()
10300 {
10301 int x = 5;
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest.$ac_objext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 emacs_cv_lesstif=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 emacs_cv_lesstif=no
10334 fi
10335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10338 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10339 if test $emacs_cv_lesstif = yes; then
10340 # Make sure this -I option remains in CPPFLAGS after it is set
10341 # back to REAL_CPPFLAGS.
10342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10343 # have those other -I options anyway. Ultimately, having this
10344 # directory ultimately in CPPFLAGS will be enough.
10345 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10346 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10347 else
10348 CFLAGS=$OLD_CFLAGS
10349 CPPFLAGS=$OLD_CPPFLAGS
10350 fi
10351 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10352 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 #include <Xm/Xm.h>
10363 int
10364 main ()
10365 {
10366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10367 int x = 5;
10368 #else
10369 Motif version prior to 2.1.
10370 #endif
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 emacs_cv_motif_version_2_1=yes
10398 else
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 emacs_cv_motif_version_2_1=no
10403 fi
10404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10407 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10408 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10409 if test $emacs_cv_motif_version_2_1 = yes; then
10410 HAVE_LIBXP=no
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_MOTIF_2_1 1
10414 _ACEOF
10415
10416 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10417 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10418 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-lXp $LIBS"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char XpCreateContext ();
10437 int
10438 main ()
10439 {
10440 XpCreateContext ();
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_Xp_XpCreateContext=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 ac_cv_lib_Xp_XpCreateContext=no
10473 fi
10474 rm -f conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10479 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10480 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10481 HAVE_LIBXP=yes
10482 fi
10483
10484 if test ${HAVE_LIBXP} = yes; then
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_LIBXP 1
10488 _ACEOF
10489
10490 fi
10491 fi
10492 fi
10493
10494 ### Is -lXaw3d available?
10495 HAVE_XAW3D=no
10496 if test "${HAVE_X11}" = "yes"; then
10497 if test "${USE_X_TOOLKIT}" != "none"; then
10498 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10499 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10500 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xaw3d/Scrollbar.h>
10510 _ACEOF
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev/null; then
10519 if test -s conftest.err; then
10520 ac_cpp_err=$ac_c_preproc_warn_flag
10521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10522 else
10523 ac_cpp_err=
10524 fi
10525 else
10526 ac_cpp_err=yes
10527 fi
10528 if test -z "$ac_cpp_err"; then
10529 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10535 fi
10536 rm -f conftest.err conftest.$ac_ext
10537 fi
10538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10539 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10540 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10541 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10542 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10543 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lXaw3d $LIBS"
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554
10555 /* Override any gcc2 internal prototype to avoid an error. */
10556 #ifdef __cplusplus
10557 extern "C"
10558 #endif
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561 char XawScrollbarSetThumb ();
10562 int
10563 main ()
10564 {
10565 XawScrollbarSetThumb ();
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10598 fi
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10604 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10605 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10606 HAVE_XAW3D=yes
10607 fi
10608
10609 fi
10610
10611
10612 if test "${HAVE_XAW3D}" = "yes"; then
10613
10614 cat >>confdefs.h <<\_ACEOF
10615 #define HAVE_XAW3D 1
10616 _ACEOF
10617
10618 fi
10619 fi
10620 fi
10621
10622
10623
10624 USE_TOOLKIT_SCROLL_BARS=no
10625 if test "${with_toolkit_scroll_bars}" != "no"; then
10626 if test "${USE_X_TOOLKIT}" != "none"; then
10627 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define USE_TOOLKIT_SCROLL_BARS 1
10630 _ACEOF
10631
10632 HAVE_XAW3D=no
10633 USE_TOOLKIT_SCROLL_BARS=yes
10634 elif test "${HAVE_XAW3D}" = "yes"; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define USE_TOOLKIT_SCROLL_BARS 1
10637 _ACEOF
10638
10639 USE_TOOLKIT_SCROLL_BARS=yes
10640 fi
10641 elif test "${HAVE_GTK}" = "yes"; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define USE_TOOLKIT_SCROLL_BARS 1
10644 _ACEOF
10645
10646 USE_TOOLKIT_SCROLL_BARS=yes
10647 fi
10648 fi
10649
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 #include <X11/Xlib.h>
10658 #include <X11/Xresource.h>
10659 int
10660 main ()
10661 {
10662 XIMProc callback;
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 HAVE_XIM=yes
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_XIM 1
10693 _ACEOF
10694
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 HAVE_XIM=no
10700 fi
10701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10702
10703
10704 if test "${with_xim}" != "no"; then
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define USE_XIM 1
10708 _ACEOF
10709
10710 fi
10711
10712
10713 if test "${HAVE_XIM}" != "no"; then
10714 late_CFLAGS=$CFLAGS
10715 if test "$GCC" = yes; then
10716 CFLAGS="$CFLAGS --pedantic-errors"
10717 fi
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724
10725 #include <X11/Xlib.h>
10726 #include <X11/Xresource.h>
10727 int
10728 main ()
10729 {
10730 Display *display;
10731 XrmDatabase db;
10732 char *res_name;
10733 char *res_class;
10734 XIMProc callback;
10735 XPointer *client_data;
10736 #ifndef __GNUC__
10737 /* If we're not using GCC, it's probably not XFree86, and this is
10738 probably right, but we can't use something like --pedantic-errors. */
10739 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10740 char*, XIMProc, XPointer*);
10741 #endif
10742 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10743 client_data);
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 emacs_cv_arg6_star=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 fi
10776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10777
10778 if test "$emacs_cv_arg6_star" = yes; then
10779 cat >>confdefs.h <<\_ACEOF
10780 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10781 _ACEOF
10782
10783 else
10784 cat >>confdefs.h <<\_ACEOF
10785 #define XRegisterIMInstantiateCallback_arg6 XPointer
10786 _ACEOF
10787
10788 fi
10789 CFLAGS=$late_CFLAGS
10790 fi
10791
10792 ### Use -lXpm if available, unless `--with-xpm=no'.
10793 HAVE_XPM=no
10794 if test "${HAVE_X11}" = "yes"; then
10795 if test "${with_xpm}" != "no"; then
10796 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10797 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10798 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10799 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 fi
10802 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10803 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10804 else
10805 # Is the header compilable?
10806 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10807 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <X11/xpm.h>
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>conftest.er1
10820 ac_status=$?
10821 grep -v '^ *+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -z "$ac_c_werror_flag"
10827 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler=yes
10840 else
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_header_compiler=no
10845 fi
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10848 echo "${ECHO_T}$ac_header_compiler" >&6
10849
10850 # Is the header present?
10851 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10852 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <X11/xpm.h>
10860 _ACEOF
10861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev/null; then
10869 if test -s conftest.err; then
10870 ac_cpp_err=$ac_c_preproc_warn_flag
10871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10872 else
10873 ac_cpp_err=
10874 fi
10875 else
10876 ac_cpp_err=yes
10877 fi
10878 if test -z "$ac_cpp_err"; then
10879 ac_header_preproc=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_header_preproc=no
10885 fi
10886 rm -f conftest.err conftest.$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888 echo "${ECHO_T}$ac_header_preproc" >&6
10889
10890 # So? What about this header?
10891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892 yes:no: )
10893 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10894 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10896 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10897 ac_header_preproc=yes
10898 ;;
10899 no:yes:* )
10900 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10905 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10907 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10909 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10911 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10912 (
10913 cat <<\_ASBOX
10914 ## ------------------------------------------ ##
10915 ## Report this to the AC_PACKAGE_NAME lists. ##
10916 ## ------------------------------------------ ##
10917 _ASBOX
10918 ) |
10919 sed "s/^/$as_me: WARNING: /" >&2
10920 ;;
10921 esac
10922 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10923 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 ac_cv_header_X11_xpm_h=$ac_header_preproc
10928 fi
10929 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10930 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10931
10932 fi
10933 if test $ac_cv_header_X11_xpm_h = yes; then
10934 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10935 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10936 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lXpm -lX11 $LIBS"
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char XpmReadFileToPixmap ();
10955 int
10956 main ()
10957 {
10958 XpmReadFileToPixmap ();
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10991 fi
10992 rm -f conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10997 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10998 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10999 HAVE_XPM=yes
11000 fi
11001
11002 fi
11003
11004
11005 if test "${HAVE_XPM}" = "yes"; then
11006 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11007 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include "X11/xpm.h"
11015 #ifndef XpmReturnAllocPixels
11016 no_return_alloc_pixels
11017 #endif
11018
11019 _ACEOF
11020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11022 HAVE_XPM=no
11023 else
11024 HAVE_XPM=yes
11025 fi
11026 rm -f conftest*
11027
11028
11029 if test "${HAVE_XPM}" = "yes"; then
11030 echo "$as_me:$LINENO: result: yes" >&5
11031 echo "${ECHO_T}yes" >&6
11032 else
11033 echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6
11035 fi
11036 fi
11037 fi
11038
11039 if test "${HAVE_XPM}" = "yes"; then
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_XPM 1
11043 _ACEOF
11044
11045 fi
11046 fi
11047
11048 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11049 HAVE_JPEG=no
11050 if test "${HAVE_X11}" = "yes"; then
11051 if test "${with_jpeg}" != "no"; then
11052 if test "${ac_cv_header_jerror_h+set}" = set; then
11053 echo "$as_me:$LINENO: checking for jerror.h" >&5
11054 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11055 if test "${ac_cv_header_jerror_h+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 fi
11058 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11059 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11060 else
11061 # Is the header compilable?
11062 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11063 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <jerror.h>
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler=yes
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_header_compiler=no
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6
11105
11106 # Is the header present?
11107 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11108 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <jerror.h>
11116 _ACEOF
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11128 else
11129 ac_cpp_err=
11130 fi
11131 else
11132 ac_cpp_err=yes
11133 fi
11134 if test -z "$ac_cpp_err"; then
11135 ac_header_preproc=yes
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
11141 fi
11142 rm -f conftest.err conftest.$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144 echo "${ECHO_T}$ac_header_preproc" >&6
11145
11146 # So? What about this header?
11147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11148 yes:no: )
11149 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11150 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11152 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc=yes
11154 ;;
11155 no:yes:* )
11156 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11161 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11163 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11167 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11168 (
11169 cat <<\_ASBOX
11170 ## ------------------------------------------ ##
11171 ## Report this to the AC_PACKAGE_NAME lists. ##
11172 ## ------------------------------------------ ##
11173 _ASBOX
11174 ) |
11175 sed "s/^/$as_me: WARNING: /" >&2
11176 ;;
11177 esac
11178 echo "$as_me:$LINENO: checking for jerror.h" >&5
11179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11180 if test "${ac_cv_header_jerror_h+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 ac_cv_header_jerror_h=$ac_header_preproc
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11187
11188 fi
11189 if test $ac_cv_header_jerror_h = yes; then
11190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-ljpeg $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 /* We use char because int might match the return type of a gcc2
11209 builtin and then its argument prototype would still apply. */
11210 char jpeg_destroy_compress ();
11211 int
11212 main ()
11213 {
11214 jpeg_destroy_compress ();
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag"
11229 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11247 fi
11248 rm -f conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11253 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11254 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11255 HAVE_JPEG=yes
11256 fi
11257
11258 fi
11259
11260
11261 fi
11262
11263
11264 if test "${HAVE_JPEG}" = "yes"; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_JPEG 1
11267 _ACEOF
11268
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <jpeglib.h>
11276 version=JPEG_LIB_VERSION
11277
11278 _ACEOF
11279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11280 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_JPEG 1
11283 _ACEOF
11284
11285 else
11286 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11287 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11288 HAVE_JPEG=no
11289 fi
11290 rm -f conftest*
11291
11292 fi
11293 fi
11294
11295 ### Use -lpng if available, unless `--with-png=no'.
11296 HAVE_PNG=no
11297 if test "${HAVE_X11}" = "yes"; then
11298 if test "${with_png}" != "no"; then
11299 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11300 # in /usr/include/libpng.
11301
11302
11303 for ac_header in png.h libpng/png.h
11304 do
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 fi
11312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11314 else
11315 # Is the header compilable?
11316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler=yes
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_header_compiler=no
11355 fi
11356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6
11359
11360 # Is the header present?
11361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <$ac_header>
11370 _ACEOF
11371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev/null; then
11379 if test -s conftest.err; then
11380 ac_cpp_err=$ac_c_preproc_warn_flag
11381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11382 else
11383 ac_cpp_err=
11384 fi
11385 else
11386 ac_cpp_err=yes
11387 fi
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_preproc=no
11395 fi
11396 rm -f conftest.err conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6
11399
11400 # So? What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11402 yes:no: )
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407 ac_header_preproc=yes
11408 ;;
11409 no:yes:* )
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11422 (
11423 cat <<\_ASBOX
11424 ## ------------------------------------------ ##
11425 ## Report this to the AC_PACKAGE_NAME lists. ##
11426 ## ------------------------------------------ ##
11427 _ASBOX
11428 ) |
11429 sed "s/^/$as_me: WARNING: /" >&2
11430 ;;
11431 esac
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 eval "$as_ac_Header=\$ac_header_preproc"
11438 fi
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11441
11442 fi
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 _ACEOF
11447
11448 fi
11449
11450 done
11451
11452 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11453 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11454 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11455 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lpng -lz -lm $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11473 char png_get_channels ();
11474 int
11475 main ()
11476 {
11477 png_get_channels ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_lib_png_png_get_channels=yes
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_lib_png_png_get_channels=no
11510 fi
11511 rm -f conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11516 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11517 if test $ac_cv_lib_png_png_get_channels = yes; then
11518 HAVE_PNG=yes
11519 fi
11520
11521 fi
11522 fi
11523
11524 if test "${HAVE_PNG}" = "yes"; then
11525
11526 cat >>confdefs.h <<\_ACEOF
11527 #define HAVE_PNG 1
11528 _ACEOF
11529
11530 fi
11531 fi
11532
11533 ### Use -ltiff if available, unless `--with-tiff=no'.
11534 HAVE_TIFF=no
11535 if test "${HAVE_X11}" = "yes"; then
11536 if test "${with_tiff}" != "no"; then
11537 if test "${ac_cv_header_tiffio_h+set}" = set; then
11538 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11539 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11540 if test "${ac_cv_header_tiffio_h+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 fi
11543 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11544 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11545 else
11546 # Is the header compilable?
11547 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11548 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 $ac_includes_default
11556 #include <tiffio.h>
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_header_compiler=yes
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_header_compiler=no
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6
11590
11591 # Is the header present?
11592 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11593 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <tiffio.h>
11601 _ACEOF
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev/null; then
11610 if test -s conftest.err; then
11611 ac_cpp_err=$ac_c_preproc_warn_flag
11612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11613 else
11614 ac_cpp_err=
11615 fi
11616 else
11617 ac_cpp_err=yes
11618 fi
11619 if test -z "$ac_cpp_err"; then
11620 ac_header_preproc=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 ac_header_preproc=no
11626 fi
11627 rm -f conftest.err conftest.$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629 echo "${ECHO_T}$ac_header_preproc" >&6
11630
11631 # So? What about this header?
11632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 yes:no: )
11634 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11635 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11637 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc=yes
11639 ;;
11640 no:yes:* )
11641 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11642 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11644 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11646 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11648 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11652 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11653 (
11654 cat <<\_ASBOX
11655 ## ------------------------------------------ ##
11656 ## Report this to the AC_PACKAGE_NAME lists. ##
11657 ## ------------------------------------------ ##
11658 _ASBOX
11659 ) |
11660 sed "s/^/$as_me: WARNING: /" >&2
11661 ;;
11662 esac
11663 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11664 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11665 if test "${ac_cv_header_tiffio_h+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 ac_cv_header_tiffio_h=$ac_header_preproc
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11671 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11672
11673 fi
11674 if test $ac_cv_header_tiffio_h = yes; then
11675 tifflibs="-lz -lm"
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11678 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11679 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11680 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ltiff $tifflibs $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char TIFFGetVersion ();
11699 int
11700 main ()
11701 {
11702 TIFFGetVersion ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_tiff_TIFFGetVersion=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ac_cv_lib_tiff_TIFFGetVersion=no
11735 fi
11736 rm -f conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11741 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11742 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11743 HAVE_TIFF=yes
11744 fi
11745
11746 fi
11747
11748
11749 fi
11750
11751 if test "${HAVE_TIFF}" = "yes"; then
11752
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_TIFF 1
11755 _ACEOF
11756
11757 fi
11758 fi
11759
11760 ### Use -lgif if available, unless `--with-gif=no'.
11761 HAVE_GIF=no
11762 if test "${HAVE_X11}" = "yes"; then
11763 if test "${with_gif}" != "no"; then
11764 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11765 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11766 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11767 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 fi
11770 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11772 else
11773 # Is the header compilable?
11774 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11775 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <gif_lib.h>
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_header_compiler=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 ac_header_compiler=no
11813 fi
11814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11817
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11820 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <gif_lib.h>
11828 _ACEOF
11829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 else
11841 ac_cpp_err=
11842 fi
11843 else
11844 ac_cpp_err=yes
11845 fi
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_header_preproc=no
11853 fi
11854 rm -f conftest.err conftest.$ac_ext
11855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11856 echo "${ECHO_T}$ac_header_preproc" >&6
11857
11858 # So? What about this header?
11859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11860 yes:no: )
11861 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11862 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11864 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11865 ac_header_preproc=yes
11866 ;;
11867 no:yes:* )
11868 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11869 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11871 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11873 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11875 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11877 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11879 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11880 (
11881 cat <<\_ASBOX
11882 ## ------------------------------------------ ##
11883 ## Report this to the AC_PACKAGE_NAME lists. ##
11884 ## ------------------------------------------ ##
11885 _ASBOX
11886 ) |
11887 sed "s/^/$as_me: WARNING: /" >&2
11888 ;;
11889 esac
11890 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11891 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11892 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 ac_cv_header_gif_lib_h=$ac_header_preproc
11896 fi
11897 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11899
11900 fi
11901 if test $ac_cv_header_gif_lib_h = yes; then
11902 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11903 # Earlier versions can crash Emacs.
11904 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11905 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11906 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lungif $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char EGifPutExtensionLast ();
11925 int
11926 main ()
11927 {
11928 EGifPutExtensionLast ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_lib_ungif_EGifPutExtensionLast=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11967 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11968 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11969 HAVE_GIF=yes
11970 fi
11971
11972 fi
11973
11974
11975 fi
11976
11977 if test "${HAVE_GIF}" = "yes"; then
11978
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_GIF 1
11981 _ACEOF
11982
11983 fi
11984 fi
11985
11986 ### Use Mac OS X Carbon API to implement GUI.
11987 HAVE_CARBON=no
11988 if test "${with_carbon}" != "no"; then
11989 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11990 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11991 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11997 else
11998 # Is the header compilable?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #include <Carbon/Carbon.h>
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_c_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_header_compiler=yes
12033 else
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 ac_header_compiler=no
12038 fi
12039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6
12042
12043 # Is the header present?
12044 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12045 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <Carbon/Carbon.h>
12053 _ACEOF
12054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null; then
12062 if test -s conftest.err; then
12063 ac_cpp_err=$ac_c_preproc_warn_flag
12064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12065 else
12066 ac_cpp_err=
12067 fi
12068 else
12069 ac_cpp_err=yes
12070 fi
12071 if test -z "$ac_cpp_err"; then
12072 ac_header_preproc=yes
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 ac_header_preproc=no
12078 fi
12079 rm -f conftest.err conftest.$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081 echo "${ECHO_T}$ac_header_preproc" >&6
12082
12083 # So? What about this header?
12084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12085 yes:no: )
12086 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12087 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12089 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc=yes
12091 ;;
12092 no:yes:* )
12093 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12098 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12100 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12102 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12104 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12105 (
12106 cat <<\_ASBOX
12107 ## ------------------------------------------ ##
12108 ## Report this to the AC_PACKAGE_NAME lists. ##
12109 ## ------------------------------------------ ##
12110 _ASBOX
12111 ) |
12112 sed "s/^/$as_me: WARNING: /" >&2
12113 ;;
12114 esac
12115 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12116 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12117 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12121 fi
12122 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12123 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12124
12125 fi
12126 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12127 HAVE_CARBON=yes
12128 fi
12129
12130
12131 fi
12132
12133 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12134 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12135 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12136 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 fi
12139 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12140 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12141 else
12142 # Is the header compilable?
12143 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12144 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <malloc/malloc.h>
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_header_compiler=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181 ac_header_compiler=no
12182 fi
12183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6
12186
12187 # Is the header present?
12188 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12189 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <malloc/malloc.h>
12197 _ACEOF
12198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } >/dev/null; then
12206 if test -s conftest.err; then
12207 ac_cpp_err=$ac_c_preproc_warn_flag
12208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12209 else
12210 ac_cpp_err=
12211 fi
12212 else
12213 ac_cpp_err=yes
12214 fi
12215 if test -z "$ac_cpp_err"; then
12216 ac_header_preproc=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_header_preproc=no
12222 fi
12223 rm -f conftest.err conftest.$ac_ext
12224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12225 echo "${ECHO_T}$ac_header_preproc" >&6
12226
12227 # So? What about this header?
12228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12229 yes:no: )
12230 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12231 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12233 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12234 ac_header_preproc=yes
12235 ;;
12236 no:yes:* )
12237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12238 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12240 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12242 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12244 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12246 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12248 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12249 (
12250 cat <<\_ASBOX
12251 ## ------------------------------------------ ##
12252 ## Report this to the AC_PACKAGE_NAME lists. ##
12253 ## ------------------------------------------ ##
12254 _ASBOX
12255 ) |
12256 sed "s/^/$as_me: WARNING: /" >&2
12257 ;;
12258 esac
12259 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12260 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12261 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12265 fi
12266 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12268
12269 fi
12270 if test $ac_cv_header_malloc_malloc_h = yes; then
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_MALLOC_MALLOC_H 1
12274 _ACEOF
12275
12276 fi
12277
12278
12279
12280 if test "${HAVE_CARBON}" = "yes"; then
12281
12282 cat >>confdefs.h <<\_ACEOF
12283 #define HAVE_CARBON 1
12284 _ACEOF
12285
12286 window_system=mac
12287 ## Specify the install directory
12288 carbon_appdir=
12289 if test "${carbon_appdir_x}" != ""; then
12290 case ${carbon_appdir_x} in
12291 y | ye | yes) carbon_appdir=/Applications ;;
12292 * ) carbon_appdir=${carbon_appdir_x} ;;
12293 esac
12294 fi
12295 # We also have mouse menus.
12296 HAVE_MENUS=yes
12297 fi
12298
12299 ### Use session management (-lSM -lICE) if available
12300 HAVE_X_SM=no
12301 if test "${HAVE_X11}" = "yes"; then
12302 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12303 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12304 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12305 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12309 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12310 else
12311 # Is the header compilable?
12312 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12313 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12321 #include <X11/SM/SMlib.h>
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag"
12333 || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_header_compiler=yes
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 ac_header_compiler=no
12351 fi
12352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6
12355
12356 # Is the header present?
12357 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12358 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <X11/SM/SMlib.h>
12366 _ACEOF
12367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } >/dev/null; then
12375 if test -s conftest.err; then
12376 ac_cpp_err=$ac_c_preproc_warn_flag
12377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12378 else
12379 ac_cpp_err=
12380 fi
12381 else
12382 ac_cpp_err=yes
12383 fi
12384 if test -z "$ac_cpp_err"; then
12385 ac_header_preproc=yes
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_header_preproc=no
12391 fi
12392 rm -f conftest.err conftest.$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12394 echo "${ECHO_T}$ac_header_preproc" >&6
12395
12396 # So? What about this header?
12397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12398 yes:no: )
12399 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12400 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12402 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12403 ac_header_preproc=yes
12404 ;;
12405 no:yes:* )
12406 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12407 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12409 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12411 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12413 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12415 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12417 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12418 (
12419 cat <<\_ASBOX
12420 ## ------------------------------------------ ##
12421 ## Report this to the AC_PACKAGE_NAME lists. ##
12422 ## ------------------------------------------ ##
12423 _ASBOX
12424 ) |
12425 sed "s/^/$as_me: WARNING: /" >&2
12426 ;;
12427 esac
12428 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12429 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12430 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12436 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12437
12438 fi
12439 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12440 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12441 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12442 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445 ac_check_lib_save_LIBS=$LIBS
12446 LIBS="-lSM -lICE $LIBS"
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
12454 /* Override any gcc2 internal prototype to avoid an error. */
12455 #ifdef __cplusplus
12456 extern "C"
12457 #endif
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12460 char SmcOpenConnection ();
12461 int
12462 main ()
12463 {
12464 SmcOpenConnection ();
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_lib_SM_SmcOpenConnection=yes
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_cv_lib_SM_SmcOpenConnection=no
12497 fi
12498 rm -f conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 LIBS=$ac_check_lib_save_LIBS
12501 fi
12502 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12503 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12504 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12505 HAVE_X_SM=yes
12506 fi
12507
12508 fi
12509
12510
12511
12512 if test "${HAVE_X_SM}" = "yes"; then
12513
12514 cat >>confdefs.h <<\_ACEOF
12515 #define HAVE_X_SM 1
12516 _ACEOF
12517
12518 case "$LIBS" in
12519 *-lSM*) ;;
12520 *) LIBS="-lSM -lICE $LIBS" ;;
12521 esac
12522 fi
12523 fi
12524
12525 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12526 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12527 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12528 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 #include <netdb.h>
12538 int
12539 main ()
12540 {
12541 return h_errno;
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_c_werror_flag"
12556 || test ! -s conftest.err'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 emacs_cv_netdb_declares_h_errno=yes
12569 else
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 emacs_cv_netdb_declares_h_errno=no
12574 fi
12575 rm -f conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12579 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12580 if test $emacs_cv_netdb_declares_h_errno = yes; then
12581
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_H_ERRNO 1
12584 _ACEOF
12585
12586 fi
12587
12588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12589 # for constant arguments. Useless!
12590 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12591 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12592 if test "${ac_cv_working_alloca_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <alloca.h>
12602 int
12603 main ()
12604 {
12605 char *p = (char *) alloca (2 * sizeof (int));
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_working_alloca_h=yes
12633 else
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637 ac_cv_working_alloca_h=no
12638 fi
12639 rm -f conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12643 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12644 if test $ac_cv_working_alloca_h = yes; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_ALLOCA_H 1
12648 _ACEOF
12649
12650 fi
12651
12652 echo "$as_me:$LINENO: checking for alloca" >&5
12653 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12654 if test "${ac_cv_func_alloca_works+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 #ifdef __GNUC__
12664 # define alloca __builtin_alloca
12665 #else
12666 # ifdef _MSC_VER
12667 # include <malloc.h>
12668 # define alloca _alloca
12669 # else
12670 # if HAVE_ALLOCA_H
12671 # include <alloca.h>
12672 # else
12673 # ifdef _AIX
12674 #pragma alloca
12675 # else
12676 # ifndef alloca /* predefined by HP cc +Olibcalls */
12677 char *alloca ();
12678 # endif
12679 # endif
12680 # endif
12681 # endif
12682 #endif
12683
12684 int
12685 main ()
12686 {
12687 char *p = (char *) alloca (1);
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694 (eval $ac_link) 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_alloca_works=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 ac_cv_func_alloca_works=no
12720 fi
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 fi
12724 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12725 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12726
12727 if test $ac_cv_func_alloca_works = yes; then
12728
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_ALLOCA 1
12731 _ACEOF
12732
12733 else
12734 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12735 # that cause trouble. Some versions do not even contain alloca or
12736 # contain a buggy version. If you still want to use their alloca,
12737 # use ar to extract alloca.o from them instead of compiling alloca.c.
12738
12739 ALLOCA=alloca.$ac_objext
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define C_ALLOCA 1
12743 _ACEOF
12744
12745
12746 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12747 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12748 if test "${ac_cv_os_cray+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #if defined(CRAY) && ! defined(CRAY2)
12758 webecray
12759 #else
12760 wenotbecray
12761 #endif
12762
12763 _ACEOF
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "webecray" >/dev/null 2>&1; then
12766 ac_cv_os_cray=yes
12767 else
12768 ac_cv_os_cray=no
12769 fi
12770 rm -f conftest*
12771
12772 fi
12773 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12774 echo "${ECHO_T}$ac_cv_os_cray" >&6
12775 if test $ac_cv_os_cray = yes; then
12776 for ac_func in _getb67 GETB67 getb67; do
12777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12778 echo "$as_me:$LINENO: checking for $ac_func" >&5
12779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12780 if eval "test \"\${$as_ac_var+set}\" = set"; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791 #define $ac_func innocuous_$ac_func
12792
12793 /* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char $ac_func (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12797
12798 #ifdef __STDC__
12799 # include <limits.h>
12800 #else
12801 # include <assert.h>
12802 #endif
12803
12804 #undef $ac_func
12805
12806 /* Override any gcc2 internal prototype to avoid an error. */
12807 #ifdef __cplusplus
12808 extern "C"
12809 {
12810 #endif
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12813 char $ac_func ();
12814 /* The GNU C library defines this for functions which it implements
12815 to always fail with ENOSYS. Some functions are actually named
12816 something starting with __ and the normal name is an alias. */
12817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12818 choke me
12819 #else
12820 char (*f) () = $ac_func;
12821 #endif
12822 #ifdef __cplusplus
12823 }
12824 #endif
12825
12826 int
12827 main ()
12828 {
12829 return f != $ac_func;
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -z "$ac_c_werror_flag"
12844 || test ! -s conftest.err'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 eval "$as_ac_var=yes"
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 eval "$as_ac_var=no"
12862 fi
12863 rm -f conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 fi
12866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12868 if test `eval echo '${'$as_ac_var'}'` = yes; then
12869
12870 cat >>confdefs.h <<_ACEOF
12871 #define CRAY_STACKSEG_END $ac_func
12872 _ACEOF
12873
12874 break
12875 fi
12876
12877 done
12878 fi
12879
12880 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12881 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12882 if test "${ac_cv_c_stack_direction+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885 if test "$cross_compiling" = yes; then
12886 ac_cv_c_stack_direction=0
12887 else
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 int
12895 find_stack_direction ()
12896 {
12897 static char *addr = 0;
12898 auto char dummy;
12899 if (addr == 0)
12900 {
12901 addr = &dummy;
12902 return find_stack_direction ();
12903 }
12904 else
12905 return (&dummy > addr) ? 1 : -1;
12906 }
12907
12908 int
12909 main ()
12910 {
12911 exit (find_stack_direction () < 0);
12912 }
12913 _ACEOF
12914 rm -f conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_c_stack_direction=1
12926 else
12927 echo "$as_me: program exited with status $ac_status" >&5
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ( exit $ac_status )
12932 ac_cv_c_stack_direction=-1
12933 fi
12934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12935 fi
12936 fi
12937 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12938 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12939
12940 cat >>confdefs.h <<_ACEOF
12941 #define STACK_DIRECTION $ac_cv_c_stack_direction
12942 _ACEOF
12943
12944
12945 fi
12946
12947
12948 # fmod, logb, and frexp are found in -lm on most systems.
12949 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12950
12951 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12952 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12953 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-lm $LIBS"
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964
12965 /* Override any gcc2 internal prototype to avoid an error. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12971 char sqrt ();
12972 int
12973 main ()
12974 {
12975 sqrt ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag"
12990 || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_lib_m_sqrt=yes
13003 else
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 ac_cv_lib_m_sqrt=no
13008 fi
13009 rm -f conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13014 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13015 if test $ac_cv_lib_m_sqrt = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_LIBM 1
13018 _ACEOF
13019
13020 LIBS="-lm $LIBS"
13021
13022 fi
13023
13024
13025 # Check for mail-locking functions in a "mail" library. Probably this should
13026 # have the same check as for liblockfile below.
13027
13028 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13029 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13030 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 ac_check_lib_save_LIBS=$LIBS
13034 LIBS="-lmail $LIBS"
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041
13042 /* Override any gcc2 internal prototype to avoid an error. */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048 char maillock ();
13049 int
13050 main ()
13051 {
13052 maillock ();
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -z "$ac_c_werror_flag"
13067 || test ! -s conftest.err'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_lib_mail_maillock=yes
13080 else
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084 ac_cv_lib_mail_maillock=no
13085 fi
13086 rm -f conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13089 fi
13090 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13091 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13092 if test $ac_cv_lib_mail_maillock = yes; then
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_LIBMAIL 1
13095 _ACEOF
13096
13097 LIBS="-lmail $LIBS"
13098
13099 fi
13100
13101
13102 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13103 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13104 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-llockfile $LIBS"
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char maillock ();
13123 int
13124 main ()
13125 {
13126 maillock ();
13127 ;
13128 return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_lib_lockfile_maillock=yes
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 ac_cv_lib_lockfile_maillock=no
13159 fi
13160 rm -f conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13163 fi
13164 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13165 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13166 if test $ac_cv_lib_lockfile_maillock = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_LIBLOCKFILE 1
13169 _ACEOF
13170
13171 LIBS="-llockfile $LIBS"
13172
13173 fi
13174
13175 # If we have the shared liblockfile, assume we must use it for mail
13176 # locking (e.g. Debian). If we couldn't link against liblockfile
13177 # (no liblockfile.a installed), ensure that we don't need to.
13178 if test "$ac_cv_lib_lockfile_maillock" = no; then
13179 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13180 set dummy liblockfile.so; ac_word=$2
13181 echo "$as_me:$LINENO: checking for $ac_word" >&5
13182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13183 if test "${ac_cv_prog_liblockfile+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186 if test -n "$liblockfile"; then
13187 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13191 for as_dir in $as_dummy
13192 do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_prog_liblockfile="yes"
13198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201 done
13202 done
13203
13204 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13205 fi
13206 fi
13207 liblockfile=$ac_cv_prog_liblockfile
13208 if test -n "$liblockfile"; then
13209 echo "$as_me:$LINENO: result: $liblockfile" >&5
13210 echo "${ECHO_T}$liblockfile" >&6
13211 else
13212 echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6
13214 fi
13215
13216 if test $ac_cv_prog_liblockfile = yes; then
13217 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13218 This probably means that movemail could lose mail.
13219 There may be a \`development' package to install containing liblockfile." >&5
13220 echo "$as_me: error: Shared liblockfile found but can't link against it.
13221 This probably means that movemail could lose mail.
13222 There may be a \`development' package to install containing liblockfile." >&2;}
13223 { (exit 1); exit 1; }; }
13224 else :
13225 fi
13226 fi
13227
13228 for ac_func in touchlock
13229 do
13230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13231 echo "$as_me:$LINENO: checking for $ac_func" >&5
13232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13233 if eval "test \"\${$as_ac_var+set}\" = set"; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13244 #define $ac_func innocuous_$ac_func
13245
13246 /* System header to define __stub macros and hopefully few prototypes,
13247 which can conflict with char $ac_func (); below.
13248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13249 <limits.h> exists even on freestanding compilers. */
13250
13251 #ifdef __STDC__
13252 # include <limits.h>
13253 #else
13254 # include <assert.h>
13255 #endif
13256
13257 #undef $ac_func
13258
13259 /* Override any gcc2 internal prototype to avoid an error. */
13260 #ifdef __cplusplus
13261 extern "C"
13262 {
13263 #endif
13264 /* We use char because int might match the return type of a gcc2
13265 builtin and then its argument prototype would still apply. */
13266 char $ac_func ();
13267 /* The GNU C library defines this for functions which it implements
13268 to always fail with ENOSYS. Some functions are actually named
13269 something starting with __ and the normal name is an alias. */
13270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13271 choke me
13272 #else
13273 char (*f) () = $ac_func;
13274 #endif
13275 #ifdef __cplusplus
13276 }
13277 #endif
13278
13279 int
13280 main ()
13281 {
13282 return f != $ac_func;
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 rm -f conftest.$ac_objext conftest$ac_exeext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13289 (eval $ac_link) 2>conftest.er1
13290 ac_status=$?
13291 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } &&
13296 { ac_try='test -z "$ac_c_werror_flag"
13297 || test ! -s conftest.err'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest$ac_exeext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 eval "$as_ac_var=yes"
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 eval "$as_ac_var=no"
13315 fi
13316 rm -f conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 fi
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13324 _ACEOF
13325
13326 fi
13327 done
13328
13329
13330 for ac_header in maillock.h
13331 do
13332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 fi
13339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13341 else
13342 # Is the header compilable?
13343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h. */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 $ac_includes_default
13352 #include <$ac_header>
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_header_compiler=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_header_compiler=no
13382 fi
13383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385 echo "${ECHO_T}$ac_header_compiler" >&6
13386
13387 # Is the header present?
13388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <$ac_header>
13397 _ACEOF
13398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } >/dev/null; then
13406 if test -s conftest.err; then
13407 ac_cpp_err=$ac_c_preproc_warn_flag
13408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13409 else
13410 ac_cpp_err=
13411 fi
13412 else
13413 ac_cpp_err=yes
13414 fi
13415 if test -z "$ac_cpp_err"; then
13416 ac_header_preproc=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_header_preproc=no
13422 fi
13423 rm -f conftest.err conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13425 echo "${ECHO_T}$ac_header_preproc" >&6
13426
13427 # So? What about this header?
13428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 yes:no: )
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13434 ac_header_preproc=yes
13435 ;;
13436 no:yes:* )
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13449 (
13450 cat <<\_ASBOX
13451 ## ------------------------------------------ ##
13452 ## Report this to the AC_PACKAGE_NAME lists. ##
13453 ## ------------------------------------------ ##
13454 _ASBOX
13455 ) |
13456 sed "s/^/$as_me: WARNING: /" >&2
13457 ;;
13458 esac
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 eval "$as_ac_Header=\$ac_header_preproc"
13465 fi
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468
13469 fi
13470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471 cat >>confdefs.h <<_ACEOF
13472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13473 _ACEOF
13474
13475 fi
13476
13477 done
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 for ac_func in gethostname getdomainname dup2 \
13547 rename closedir mkdir rmdir sysinfo \
13548 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13549 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13550 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13551 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13552 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13553 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13554 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13555 do
13556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13557 echo "$as_me:$LINENO: checking for $ac_func" >&5
13558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13559 if eval "test \"\${$as_ac_var+set}\" = set"; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h. */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13570 #define $ac_func innocuous_$ac_func
13571
13572 /* System header to define __stub macros and hopefully few prototypes,
13573 which can conflict with char $ac_func (); below.
13574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13575 <limits.h> exists even on freestanding compilers. */
13576
13577 #ifdef __STDC__
13578 # include <limits.h>
13579 #else
13580 # include <assert.h>
13581 #endif
13582
13583 #undef $ac_func
13584
13585 /* Override any gcc2 internal prototype to avoid an error. */
13586 #ifdef __cplusplus
13587 extern "C"
13588 {
13589 #endif
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13592 char $ac_func ();
13593 /* The GNU C library defines this for functions which it implements
13594 to always fail with ENOSYS. Some functions are actually named
13595 something starting with __ and the normal name is an alias. */
13596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13597 choke me
13598 #else
13599 char (*f) () = $ac_func;
13600 #endif
13601 #ifdef __cplusplus
13602 }
13603 #endif
13604
13605 int
13606 main ()
13607 {
13608 return f != $ac_func;
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 eval "$as_ac_var=yes"
13636 else
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 eval "$as_ac_var=no"
13641 fi
13642 rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 fi
13645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13647 if test `eval echo '${'$as_ac_var'}'` = yes; then
13648 cat >>confdefs.h <<_ACEOF
13649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13650 _ACEOF
13651
13652 fi
13653 done
13654
13655
13656
13657 for ac_header in sys/un.h
13658 do
13659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo "$as_me:$LINENO: checking for $ac_header" >&5
13662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 fi
13666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13668 else
13669 # Is the header compilable?
13670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 $ac_includes_default
13679 #include <$ac_header>
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_header_compiler=yes
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_header_compiler=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13712 echo "${ECHO_T}$ac_header_compiler" >&6
13713
13714 # Is the header present?
13715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13717 cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h. */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 #include <$ac_header>
13724 _ACEOF
13725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } >/dev/null; then
13733 if test -s conftest.err; then
13734 ac_cpp_err=$ac_c_preproc_warn_flag
13735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13736 else
13737 ac_cpp_err=
13738 fi
13739 else
13740 ac_cpp_err=yes
13741 fi
13742 if test -z "$ac_cpp_err"; then
13743 ac_header_preproc=yes
13744 else
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_header_preproc=no
13749 fi
13750 rm -f conftest.err conftest.$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13752 echo "${ECHO_T}$ac_header_preproc" >&6
13753
13754 # So? What about this header?
13755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13756 yes:no: )
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13761 ac_header_preproc=yes
13762 ;;
13763 no:yes:* )
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13776 (
13777 cat <<\_ASBOX
13778 ## ------------------------------------------ ##
13779 ## Report this to the AC_PACKAGE_NAME lists. ##
13780 ## ------------------------------------------ ##
13781 _ASBOX
13782 ) |
13783 sed "s/^/$as_me: WARNING: /" >&2
13784 ;;
13785 esac
13786 echo "$as_me:$LINENO: checking for $ac_header" >&5
13787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791 eval "$as_ac_Header=\$ac_header_preproc"
13792 fi
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13795
13796 fi
13797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13800 _ACEOF
13801
13802 fi
13803
13804 done
13805
13806
13807
13808
13809
13810 for ac_header in stdlib.h sys/time.h unistd.h
13811 do
13812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13814 echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 fi
13819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13821 else
13822 # Is the header compilable?
13823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 $ac_includes_default
13832 #include <$ac_header>
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_header_compiler=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_header_compiler=no
13862 fi
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6
13866
13867 # Is the header present?
13868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <$ac_header>
13877 _ACEOF
13878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null; then
13886 if test -s conftest.err; then
13887 ac_cpp_err=$ac_c_preproc_warn_flag
13888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13889 else
13890 ac_cpp_err=
13891 fi
13892 else
13893 ac_cpp_err=yes
13894 fi
13895 if test -z "$ac_cpp_err"; then
13896 ac_header_preproc=yes
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_header_preproc=no
13902 fi
13903 rm -f conftest.err conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6
13906
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 yes:no: )
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13915 ;;
13916 no:yes:* )
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13929 (
13930 cat <<\_ASBOX
13931 ## ------------------------------------------ ##
13932 ## Report this to the AC_PACKAGE_NAME lists. ##
13933 ## ------------------------------------------ ##
13934 _ASBOX
13935 ) |
13936 sed "s/^/$as_me: WARNING: /" >&2
13937 ;;
13938 esac
13939 echo "$as_me:$LINENO: checking for $ac_header" >&5
13940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 eval "$as_ac_Header=\$ac_header_preproc"
13945 fi
13946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13948
13949 fi
13950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13953 _ACEOF
13954
13955 fi
13956
13957 done
13958
13959
13960 for ac_func in alarm
13961 do
13962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13963 echo "$as_me:$LINENO: checking for $ac_func" >&5
13964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_var+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13976 #define $ac_func innocuous_$ac_func
13977
13978 /* System header to define __stub macros and hopefully few prototypes,
13979 which can conflict with char $ac_func (); below.
13980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13981 <limits.h> exists even on freestanding compilers. */
13982
13983 #ifdef __STDC__
13984 # include <limits.h>
13985 #else
13986 # include <assert.h>
13987 #endif
13988
13989 #undef $ac_func
13990
13991 /* Override any gcc2 internal prototype to avoid an error. */
13992 #ifdef __cplusplus
13993 extern "C"
13994 {
13995 #endif
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char $ac_func ();
13999 /* The GNU C library defines this for functions which it implements
14000 to always fail with ENOSYS. Some functions are actually named
14001 something starting with __ and the normal name is an alias. */
14002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14003 choke me
14004 #else
14005 char (*f) () = $ac_func;
14006 #endif
14007 #ifdef __cplusplus
14008 }
14009 #endif
14010
14011 int
14012 main ()
14013 {
14014 return f != $ac_func;
14015 ;
14016 return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_var=yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 eval "$as_ac_var=no"
14047 fi
14048 rm -f conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 fi
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14053 if test `eval echo '${'$as_ac_var'}'` = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14056 _ACEOF
14057
14058 fi
14059 done
14060
14061 echo "$as_me:$LINENO: checking for working mktime" >&5
14062 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14063 if test "${ac_cv_func_working_mktime+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 if test "$cross_compiling" = yes; then
14067 ac_cv_func_working_mktime=no
14068 else
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 /* Test program from Paul Eggert and Tony Leneis. */
14076 #if TIME_WITH_SYS_TIME
14077 # include <sys/time.h>
14078 # include <time.h>
14079 #else
14080 # if HAVE_SYS_TIME_H
14081 # include <sys/time.h>
14082 # else
14083 # include <time.h>
14084 # endif
14085 #endif
14086
14087 #if HAVE_STDLIB_H
14088 # include <stdlib.h>
14089 #endif
14090
14091 #if HAVE_UNISTD_H
14092 # include <unistd.h>
14093 #endif
14094
14095 #if !HAVE_ALARM
14096 # define alarm(X) /* empty */
14097 #endif
14098
14099 /* Work around redefinition to rpl_putenv by other config tests. */
14100 #undef putenv
14101
14102 static time_t time_t_max;
14103 static time_t time_t_min;
14104
14105 /* Values we'll use to set the TZ environment variable. */
14106 static char *tz_strings[] = {
14107 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14108 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14109 };
14110 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14111
14112 /* Fail if mktime fails to convert a date in the spring-forward gap.
14113 Based on a problem report from Andreas Jaeger. */
14114 static void
14115 spring_forward_gap ()
14116 {
14117 /* glibc (up to about 1998-10-07) failed this test. */
14118 struct tm tm;
14119
14120 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14121 instead of "TZ=America/Vancouver" in order to detect the bug even
14122 on systems that don't support the Olson extension, or don't have the
14123 full zoneinfo tables installed. */
14124 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14125
14126 tm.tm_year = 98;
14127 tm.tm_mon = 3;
14128 tm.tm_mday = 5;
14129 tm.tm_hour = 2;
14130 tm.tm_min = 0;
14131 tm.tm_sec = 0;
14132 tm.tm_isdst = -1;
14133 if (mktime (&tm) == (time_t)-1)
14134 exit (1);
14135 }
14136
14137 static void
14138 mktime_test1 (now)
14139 time_t now;
14140 {
14141 struct tm *lt;
14142 if ((lt = localtime (&now)) && mktime (lt) != now)
14143 exit (1);
14144 }
14145
14146 static void
14147 mktime_test (now)
14148 time_t now;
14149 {
14150 mktime_test1 (now);
14151 mktime_test1 ((time_t) (time_t_max - now));
14152 mktime_test1 ((time_t) (time_t_min + now));
14153 }
14154
14155 static void
14156 irix_6_4_bug ()
14157 {
14158 /* Based on code from Ariel Faigon. */
14159 struct tm tm;
14160 tm.tm_year = 96;
14161 tm.tm_mon = 3;
14162 tm.tm_mday = 0;
14163 tm.tm_hour = 0;
14164 tm.tm_min = 0;
14165 tm.tm_sec = 0;
14166 tm.tm_isdst = -1;
14167 mktime (&tm);
14168 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14169 exit (1);
14170 }
14171
14172 static void
14173 bigtime_test (j)
14174 int j;
14175 {
14176 struct tm tm;
14177 time_t now;
14178 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14179 now = mktime (&tm);
14180 if (now != (time_t) -1)
14181 {
14182 struct tm *lt = localtime (&now);
14183 if (! (lt
14184 && lt->tm_year == tm.tm_year
14185 && lt->tm_mon == tm.tm_mon
14186 && lt->tm_mday == tm.tm_mday
14187 && lt->tm_hour == tm.tm_hour
14188 && lt->tm_min == tm.tm_min
14189 && lt->tm_sec == tm.tm_sec
14190 && lt->tm_yday == tm.tm_yday
14191 && lt->tm_wday == tm.tm_wday
14192 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14193 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14194 exit (1);
14195 }
14196 }
14197
14198 int
14199 main ()
14200 {
14201 time_t t, delta;
14202 int i, j;
14203
14204 /* This test makes some buggy mktime implementations loop.
14205 Give up after 60 seconds; a mktime slower than that
14206 isn't worth using anyway. */
14207 alarm (60);
14208
14209 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14210 continue;
14211 time_t_max--;
14212 if ((time_t) -1 < 0)
14213 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14214 continue;
14215 delta = time_t_max / 997; /* a suitable prime number */
14216 for (i = 0; i < N_STRINGS; i++)
14217 {
14218 if (tz_strings[i])
14219 putenv (tz_strings[i]);
14220
14221 for (t = 0; t <= time_t_max - delta; t += delta)
14222 mktime_test (t);
14223 mktime_test ((time_t) 1);
14224 mktime_test ((time_t) (60 * 60));
14225 mktime_test ((time_t) (60 * 60 * 24));
14226
14227 for (j = 1; 0 < j; j *= 2)
14228 bigtime_test (j);
14229 bigtime_test (j - 1);
14230 }
14231 irix_6_4_bug ();
14232 spring_forward_gap ();
14233 exit (0);
14234 }
14235 _ACEOF
14236 rm -f conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_func_working_mktime=yes
14248 else
14249 echo "$as_me: program exited with status $ac_status" >&5
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253 ( exit $ac_status )
14254 ac_cv_func_working_mktime=no
14255 fi
14256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 fi
14259 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14260 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14261 if test $ac_cv_func_working_mktime = no; then
14262 case $LIBOBJS in
14263 "mktime.$ac_objext" | \
14264 *" mktime.$ac_objext" | \
14265 "mktime.$ac_objext "* | \
14266 *" mktime.$ac_objext "* ) ;;
14267 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14268 esac
14269
14270 fi
14271
14272 if test "$ac_cv_func_working_mktime" = no; then
14273
14274 cat >>confdefs.h <<\_ACEOF
14275 #define BROKEN_MKTIME 1
14276 _ACEOF
14277
14278 fi
14279
14280 ac_have_func=no # yes means we've found a way to get the load average.
14281
14282 # Make sure getloadavg.c is where it belongs, at configure-time.
14283 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14284 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14285 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14286 { (exit 1); exit 1; }; }
14287
14288 ac_save_LIBS=$LIBS
14289
14290 # Check for getloadavg, but be sure not to touch the cache variable.
14291 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14292 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14293 if test "${ac_cv_func_getloadavg+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14304 #define getloadavg innocuous_getloadavg
14305
14306 /* System header to define __stub macros and hopefully few prototypes,
14307 which can conflict with char getloadavg (); below.
14308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14309 <limits.h> exists even on freestanding compilers. */
14310
14311 #ifdef __STDC__
14312 # include <limits.h>
14313 #else
14314 # include <assert.h>
14315 #endif
14316
14317 #undef getloadavg
14318
14319 /* Override any gcc2 internal prototype to avoid an error. */
14320 #ifdef __cplusplus
14321 extern "C"
14322 {
14323 #endif
14324 /* We use char because int might match the return type of a gcc2
14325 builtin and then its argument prototype would still apply. */
14326 char getloadavg ();
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14331 choke me
14332 #else
14333 char (*f) () = getloadavg;
14334 #endif
14335 #ifdef __cplusplus
14336 }
14337 #endif
14338
14339 int
14340 main ()
14341 {
14342 return f != getloadavg;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_func_getloadavg=yes
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_cv_func_getloadavg=no
14375 fi
14376 rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 fi
14379 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14380 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14381 if test $ac_cv_func_getloadavg = yes; then
14382 exit 0
14383 else
14384 exit 1
14385 fi
14386 ) && ac_have_func=yes
14387
14388 # On HPUX9, an unprivileged user can get load averages through this function.
14389
14390 for ac_func in pstat_getdynamic
14391 do
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14407
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14412
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14418
14419 #undef $ac_func
14420
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 {
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14428 char $ac_func ();
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 char (*f) () = $ac_func;
14436 #endif
14437 #ifdef __cplusplus
14438 }
14439 #endif
14440
14441 int
14442 main ()
14443 {
14444 return f != $ac_func;
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest$ac_exeext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 eval "$as_ac_var=yes"
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 eval "$as_ac_var=no"
14477 fi
14478 rm -f conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 fi
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486 _ACEOF
14487
14488 fi
14489 done
14490
14491
14492 # Solaris has libkstat which does not require root.
14493
14494 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14495 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14496 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499 ac_check_lib_save_LIBS=$LIBS
14500 LIBS="-lkstat $LIBS"
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507
14508 /* Override any gcc2 internal prototype to avoid an error. */
14509 #ifdef __cplusplus
14510 extern "C"
14511 #endif
14512 /* We use char because int might match the return type of a gcc2
14513 builtin and then its argument prototype would still apply. */
14514 char kstat_open ();
14515 int
14516 main ()
14517 {
14518 kstat_open ();
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest$ac_exeext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_lib_kstat_kstat_open=yes
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_cv_lib_kstat_kstat_open=no
14551 fi
14552 rm -f conftest.err conftest.$ac_objext \
14553 conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14557 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14558 if test $ac_cv_lib_kstat_kstat_open = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBKSTAT 1
14561 _ACEOF
14562
14563 LIBS="-lkstat $LIBS"
14564
14565 fi
14566
14567 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14568
14569 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14570 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14571 # to get the right answer into the cache.
14572 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14573 if test $ac_have_func = no; then
14574 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14575 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14576 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 ac_check_lib_save_LIBS=$LIBS
14580 LIBS="-lelf $LIBS"
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char elf_begin ();
14595 int
14596 main ()
14597 {
14598 elf_begin ();
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_lib_elf_elf_begin=yes
14626 else
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_cv_lib_elf_elf_begin=no
14631 fi
14632 rm -f conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 LIBS=$ac_check_lib_save_LIBS
14635 fi
14636 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14637 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14638 if test $ac_cv_lib_elf_elf_begin = yes; then
14639 LIBS="-lelf $LIBS"
14640 fi
14641
14642 fi
14643 if test $ac_have_func = no; then
14644 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14645 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14646 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 ac_check_lib_save_LIBS=$LIBS
14650 LIBS="-lkvm $LIBS"
14651 cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h. */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657
14658 /* Override any gcc2 internal prototype to avoid an error. */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 /* We use char because int might match the return type of a gcc2
14663 builtin and then its argument prototype would still apply. */
14664 char kvm_open ();
14665 int
14666 main ()
14667 {
14668 kvm_open ();
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -z "$ac_c_werror_flag"
14683 || test ! -s conftest.err'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; } &&
14689 { ac_try='test -s conftest$ac_exeext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_cv_lib_kvm_kvm_open=yes
14696 else
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 ac_cv_lib_kvm_kvm_open=no
14701 fi
14702 rm -f conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14704 LIBS=$ac_check_lib_save_LIBS
14705 fi
14706 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14707 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14708 if test $ac_cv_lib_kvm_kvm_open = yes; then
14709 LIBS="-lkvm $LIBS"
14710 fi
14711
14712 # Check for the 4.4BSD definition of getloadavg.
14713 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14714 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14715 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 ac_check_lib_save_LIBS=$LIBS
14719 LIBS="-lutil $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726
14727 /* Override any gcc2 internal prototype to avoid an error. */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char getloadavg ();
14734 int
14735 main ()
14736 {
14737 getloadavg ();
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_util_getloadavg=yes
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_cv_lib_util_getloadavg=no
14770 fi
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14773 LIBS=$ac_check_lib_save_LIBS
14774 fi
14775 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14776 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14777 if test $ac_cv_lib_util_getloadavg = yes; then
14778 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14779 fi
14780
14781 fi
14782
14783 if test $ac_have_func = no; then
14784 # There is a commonly available library for RS/6000 AIX.
14785 # Since it is not a standard part of AIX, it might be installed locally.
14786 ac_getloadavg_LIBS=$LIBS
14787 LIBS="-L/usr/local/lib $LIBS"
14788 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14789 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14790 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793 ac_check_lib_save_LIBS=$LIBS
14794 LIBS="-lgetloadavg $LIBS"
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801
14802 /* Override any gcc2 internal prototype to avoid an error. */
14803 #ifdef __cplusplus
14804 extern "C"
14805 #endif
14806 /* We use char because int might match the return type of a gcc2
14807 builtin and then its argument prototype would still apply. */
14808 char getloadavg ();
14809 int
14810 main ()
14811 {
14812 getloadavg ();
14813 ;
14814 return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext conftest$ac_exeext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14819 (eval $ac_link) 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag"
14827 || test ! -s conftest.err'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_lib_getloadavg_getloadavg=yes
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 ac_cv_lib_getloadavg_getloadavg=no
14845 fi
14846 rm -f conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14849 fi
14850 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14851 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14852 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14853 LIBS="-lgetloadavg $LIBS"
14854 else
14855 LIBS=$ac_getloadavg_LIBS
14856 fi
14857
14858 fi
14859
14860 # Make sure it is really in the library, if we think we found it,
14861 # otherwise set up the replacement function.
14862
14863 for ac_func in getloadavg
14864 do
14865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 echo "$as_me:$LINENO: checking for $ac_func" >&5
14867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14868 if eval "test \"\${$as_ac_var+set}\" = set"; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14880
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14885
14886 #ifdef __STDC__
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14891
14892 #undef $ac_func
14893
14894 /* Override any gcc2 internal prototype to avoid an error. */
14895 #ifdef __cplusplus
14896 extern "C"
14897 {
14898 #endif
14899 /* We use char because int might match the return type of a gcc2
14900 builtin and then its argument prototype would still apply. */
14901 char $ac_func ();
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14906 choke me
14907 #else
14908 char (*f) () = $ac_func;
14909 #endif
14910 #ifdef __cplusplus
14911 }
14912 #endif
14913
14914 int
14915 main ()
14916 {
14917 return f != $ac_func;
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14924 (eval $ac_link) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest$ac_exeext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 eval "$as_ac_var=yes"
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 eval "$as_ac_var=no"
14950 fi
14951 rm -f conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 fi
14954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14956 if test `eval echo '${'$as_ac_var'}'` = yes; then
14957 cat >>confdefs.h <<_ACEOF
14958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14959 _ACEOF
14960
14961 else
14962 case $LIBOBJS in
14963 "getloadavg.$ac_objext" | \
14964 *" getloadavg.$ac_objext" | \
14965 "getloadavg.$ac_objext "* | \
14966 *" getloadavg.$ac_objext "* ) ;;
14967 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14968 esac
14969
14970
14971 cat >>confdefs.h <<\_ACEOF
14972 #define C_GETLOADAVG 1
14973 _ACEOF
14974
14975 # Figure out what our getloadavg.c needs.
14976 ac_have_func=no
14977 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14978 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14979 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14980 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 fi
14983 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14984 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14985 else
14986 # Is the header compilable?
14987 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14988 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h. */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 $ac_includes_default
14996 #include <sys/dg_sys_info.h>
14997 _ACEOF
14998 rm -f conftest.$ac_objext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15000 (eval $ac_compile) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag"
15008 || test ! -s conftest.err'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest.$ac_objext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_header_compiler=yes
15021 else
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_header_compiler=no
15026 fi
15027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029 echo "${ECHO_T}$ac_header_compiler" >&6
15030
15031 # Is the header present?
15032 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15033 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <sys/dg_sys_info.h>
15041 _ACEOF
15042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev/null; then
15050 if test -s conftest.err; then
15051 ac_cpp_err=$ac_c_preproc_warn_flag
15052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15053 else
15054 ac_cpp_err=
15055 fi
15056 else
15057 ac_cpp_err=yes
15058 fi
15059 if test -z "$ac_cpp_err"; then
15060 ac_header_preproc=yes
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064
15065 ac_header_preproc=no
15066 fi
15067 rm -f conftest.err conftest.$ac_ext
15068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 echo "${ECHO_T}$ac_header_preproc" >&6
15070
15071 # So? What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073 yes:no: )
15074 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15075 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15077 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15078 ac_header_preproc=yes
15079 ;;
15080 no:yes:* )
15081 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15082 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15084 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15086 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15088 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15090 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15092 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15093 (
15094 cat <<\_ASBOX
15095 ## ------------------------------------------ ##
15096 ## Report this to the AC_PACKAGE_NAME lists. ##
15097 ## ------------------------------------------ ##
15098 _ASBOX
15099 ) |
15100 sed "s/^/$as_me: WARNING: /" >&2
15101 ;;
15102 esac
15103 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15104 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15105 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15109 fi
15110 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15112
15113 fi
15114 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15115 ac_have_func=yes
15116
15117 cat >>confdefs.h <<\_ACEOF
15118 #define DGUX 1
15119 _ACEOF
15120
15121
15122 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15123 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15124 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127 ac_check_lib_save_LIBS=$LIBS
15128 LIBS="-ldgc $LIBS"
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 #ifdef __cplusplus
15138 extern "C"
15139 #endif
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142 char dg_sys_info ();
15143 int
15144 main ()
15145 {
15146 dg_sys_info ();
15147 ;
15148 return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_dgc_dg_sys_info=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178 ac_cv_lib_dgc_dg_sys_info=no
15179 fi
15180 rm -f conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15183 fi
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15185 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15186 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188 #define HAVE_LIBDGC 1
15189 _ACEOF
15190
15191 LIBS="-ldgc $LIBS"
15192
15193 fi
15194
15195 fi
15196
15197
15198
15199 if test "${ac_cv_header_locale_h+set}" = set; then
15200 echo "$as_me:$LINENO: checking for locale.h" >&5
15201 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15202 if test "${ac_cv_header_locale_h+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 fi
15205 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15206 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15207 else
15208 # Is the header compilable?
15209 echo "$as_me:$LINENO: checking locale.h usability" >&5
15210 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h. */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <locale.h>
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222 (eval $ac_compile) 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag"
15230 || test ! -s conftest.err'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247 ac_header_compiler=no
15248 fi
15249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251 echo "${ECHO_T}$ac_header_compiler" >&6
15252
15253 # Is the header present?
15254 echo "$as_me:$LINENO: checking locale.h presence" >&5
15255 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include <locale.h>
15263 _ACEOF
15264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null; then
15272 if test -s conftest.err; then
15273 ac_cpp_err=$ac_c_preproc_warn_flag
15274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15275 else
15276 ac_cpp_err=
15277 fi
15278 else
15279 ac_cpp_err=yes
15280 fi
15281 if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_header_preproc=no
15288 fi
15289 rm -f conftest.err conftest.$ac_ext
15290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291 echo "${ECHO_T}$ac_header_preproc" >&6
15292
15293 # So? What about this header?
15294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
15296 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15297 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15299 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
15301 ;;
15302 no:yes:* )
15303 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15304 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15306 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15308 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15310 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15314 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15315 (
15316 cat <<\_ASBOX
15317 ## ------------------------------------------ ##
15318 ## Report this to the AC_PACKAGE_NAME lists. ##
15319 ## ------------------------------------------ ##
15320 _ASBOX
15321 ) |
15322 sed "s/^/$as_me: WARNING: /" >&2
15323 ;;
15324 esac
15325 echo "$as_me:$LINENO: checking for locale.h" >&5
15326 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15327 if test "${ac_cv_header_locale_h+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330 ac_cv_header_locale_h=$ac_header_preproc
15331 fi
15332 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15333 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15334
15335 fi
15336
15337
15338
15339 for ac_func in setlocale
15340 do
15341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15342 echo "$as_me:$LINENO: checking for $ac_func" >&5
15343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15344 if eval "test \"\${$as_ac_var+set}\" = set"; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15355 #define $ac_func innocuous_$ac_func
15356
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func (); below.
15359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15360 <limits.h> exists even on freestanding compilers. */
15361
15362 #ifdef __STDC__
15363 # include <limits.h>
15364 #else
15365 # include <assert.h>
15366 #endif
15367
15368 #undef $ac_func
15369
15370 /* Override any gcc2 internal prototype to avoid an error. */
15371 #ifdef __cplusplus
15372 extern "C"
15373 {
15374 #endif
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15377 char $ac_func ();
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15382 choke me
15383 #else
15384 char (*f) () = $ac_func;
15385 #endif
15386 #ifdef __cplusplus
15387 }
15388 #endif
15389
15390 int
15391 main ()
15392 {
15393 return f != $ac_func;
15394 ;
15395 return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 eval "$as_ac_var=yes"
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 eval "$as_ac_var=no"
15426 fi
15427 rm -f conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 fi
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15435 _ACEOF
15436
15437 fi
15438 done
15439
15440
15441 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15442 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15443 # Irix 4.0.5F has the header but not the library.
15444 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15445 ac_have_func=yes
15446
15447 cat >>confdefs.h <<\_ACEOF
15448 #define SVR4 1
15449 _ACEOF
15450
15451 fi
15452
15453 if test $ac_have_func = no; then
15454 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15455 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15456 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15457 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15461 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15462 else
15463 # Is the header compilable?
15464 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15465 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 $ac_includes_default
15473 #include <inq_stats/cpustats.h>
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_header_compiler=yes
15498 else
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_header_compiler=no
15503 fi
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15506 echo "${ECHO_T}$ac_header_compiler" >&6
15507
15508 # Is the header present?
15509 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15510 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <inq_stats/cpustats.h>
15518 _ACEOF
15519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } >/dev/null; then
15527 if test -s conftest.err; then
15528 ac_cpp_err=$ac_c_preproc_warn_flag
15529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15530 else
15531 ac_cpp_err=
15532 fi
15533 else
15534 ac_cpp_err=yes
15535 fi
15536 if test -z "$ac_cpp_err"; then
15537 ac_header_preproc=yes
15538 else
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ac_header_preproc=no
15543 fi
15544 rm -f conftest.err conftest.$ac_ext
15545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15546 echo "${ECHO_T}$ac_header_preproc" >&6
15547
15548 # So? What about this header?
15549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15550 yes:no: )
15551 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15552 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15554 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15555 ac_header_preproc=yes
15556 ;;
15557 no:yes:* )
15558 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15559 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15561 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15563 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15565 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15567 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15569 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15570 (
15571 cat <<\_ASBOX
15572 ## ------------------------------------------ ##
15573 ## Report this to the AC_PACKAGE_NAME lists. ##
15574 ## ------------------------------------------ ##
15575 _ASBOX
15576 ) |
15577 sed "s/^/$as_me: WARNING: /" >&2
15578 ;;
15579 esac
15580 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15581 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15582 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15586 fi
15587 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15588 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15589
15590 fi
15591 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15592 ac_have_func=yes
15593
15594 cat >>confdefs.h <<\_ACEOF
15595 #define UMAX 1
15596 _ACEOF
15597
15598
15599 cat >>confdefs.h <<\_ACEOF
15600 #define UMAX4_3 1
15601 _ACEOF
15602
15603 fi
15604
15605
15606 fi
15607
15608 if test $ac_have_func = no; then
15609 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15610 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15611 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15612 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 fi
15615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15617 else
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15620 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <sys/cpustats.h>
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler=yes
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 ac_header_compiler=no
15658 fi
15659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15662
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15665 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <sys/cpustats.h>
15673 _ACEOF
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev/null; then
15682 if test -s conftest.err; then
15683 ac_cpp_err=$ac_c_preproc_warn_flag
15684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15685 else
15686 ac_cpp_err=
15687 fi
15688 else
15689 ac_cpp_err=yes
15690 fi
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ac_header_preproc=no
15698 fi
15699 rm -f conftest.err conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15702
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
15706 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15711 ;;
15712 no:yes:* )
15713 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15725 (
15726 cat <<\_ASBOX
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15730 _ASBOX
15731 ) |
15732 sed "s/^/$as_me: WARNING: /" >&2
15733 ;;
15734 esac
15735 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15736 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15737 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15741 fi
15742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15743 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15744
15745 fi
15746 if test $ac_cv_header_sys_cpustats_h = yes; then
15747 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15748 #define UMAX 1
15749 _ACEOF
15750
15751 fi
15752
15753
15754 fi
15755
15756 if test $ac_have_func = no; then
15757
15758 for ac_header in mach/mach.h
15759 do
15760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15762 echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 fi
15767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15769 else
15770 # Is the header compilable?
15771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15780 #include <$ac_header>
15781 _ACEOF
15782 rm -f conftest.$ac_objext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15784 (eval $ac_compile) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_header_compiler=no
15810 fi
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813 echo "${ECHO_T}$ac_header_compiler" >&6
15814
15815 # Is the header present?
15816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 #include <$ac_header>
15825 _ACEOF
15826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 else
15838 ac_cpp_err=
15839 fi
15840 else
15841 ac_cpp_err=yes
15842 fi
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_header_preproc=no
15850 fi
15851 rm -f conftest.err conftest.$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6
15854
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15863 ;;
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15877 (
15878 cat <<\_ASBOX
15879 ## ------------------------------------------ ##
15880 ## Report this to the AC_PACKAGE_NAME lists. ##
15881 ## ------------------------------------------ ##
15882 _ASBOX
15883 ) |
15884 sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886 esac
15887 echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15893 fi
15894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15896
15897 fi
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 _ACEOF
15902
15903 fi
15904
15905 done
15906
15907 fi
15908
15909
15910 for ac_header in nlist.h
15911 do
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15914 echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 fi
15919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15921 else
15922 # Is the header compilable?
15923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 $ac_includes_default
15932 #include <$ac_header>
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936 (eval $ac_compile) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 ac_header_compiler=yes
15957 else
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_header_compiler=no
15962 fi
15963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15965 echo "${ECHO_T}$ac_header_compiler" >&6
15966
15967 # Is the header present?
15968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <$ac_header>
15977 _ACEOF
15978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } >/dev/null; then
15986 if test -s conftest.err; then
15987 ac_cpp_err=$ac_c_preproc_warn_flag
15988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15989 else
15990 ac_cpp_err=
15991 fi
15992 else
15993 ac_cpp_err=yes
15994 fi
15995 if test -z "$ac_cpp_err"; then
15996 ac_header_preproc=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ac_header_preproc=no
16002 fi
16003 rm -f conftest.err conftest.$ac_ext
16004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16005 echo "${ECHO_T}$ac_header_preproc" >&6
16006
16007 # So? What about this header?
16008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16009 yes:no: )
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16014 ac_header_preproc=yes
16015 ;;
16016 no:yes:* )
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16029 (
16030 cat <<\_ASBOX
16031 ## ------------------------------------------ ##
16032 ## Report this to the AC_PACKAGE_NAME lists. ##
16033 ## ------------------------------------------ ##
16034 _ASBOX
16035 ) |
16036 sed "s/^/$as_me: WARNING: /" >&2
16037 ;;
16038 esac
16039 echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044 eval "$as_ac_Header=\$ac_header_preproc"
16045 fi
16046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16048
16049 fi
16050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16053 _ACEOF
16054 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16055 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16056 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <nlist.h>
16066
16067 int
16068 main ()
16069 {
16070 static struct nlist ac_aggr;
16071 if (ac_aggr.n_un.n_name)
16072 return 0;
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_member_struct_nlist_n_un_n_name=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <nlist.h>
16111
16112 int
16113 main ()
16114 {
16115 static struct nlist ac_aggr;
16116 if (sizeof ac_aggr.n_un.n_name)
16117 return 0;
16118 ;
16119 return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_member_struct_nlist_n_un_n_name=yes
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 ac_cv_member_struct_nlist_n_un_n_name=no
16150 fi
16151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16154 fi
16155 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16156 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16157 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16158
16159 cat >>confdefs.h <<_ACEOF
16160 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16161 _ACEOF
16162
16163
16164 cat >>confdefs.h <<\_ACEOF
16165 #define NLIST_NAME_UNION 1
16166 _ACEOF
16167
16168 fi
16169
16170
16171 fi
16172
16173 done
16174
16175 fi
16176 done
16177
16178
16179 # Some definitions of getloadavg require that the program be installed setgid.
16180 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16181 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16182 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h. */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16192 #ifdef LDAV_PRIVILEGED
16193 Yowza Am I SETGID yet
16194 #endif
16195 _ACEOF
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16198 ac_cv_func_getloadavg_setgid=yes
16199 else
16200 ac_cv_func_getloadavg_setgid=no
16201 fi
16202 rm -f conftest*
16203
16204 fi
16205 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16206 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16207 if test $ac_cv_func_getloadavg_setgid = yes; then
16208 NEED_SETGID=true
16209
16210 cat >>confdefs.h <<\_ACEOF
16211 #define GETLOADAVG_PRIVILEGED 1
16212 _ACEOF
16213
16214 else
16215 NEED_SETGID=false
16216 fi
16217
16218 if test $ac_cv_func_getloadavg_setgid = yes; then
16219 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16220 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16221 if test "${ac_cv_group_kmem+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16225 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16226 # If we got an error (system does not support symlinks), try without -L.
16227 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16228 ac_cv_group_kmem=`echo $ac_ls_output \
16229 | sed -ne 's/[ ][ ]*/ /g;
16230 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16231 / /s/.* //;p;'`
16232
16233 fi
16234 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16235 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16236 KMEM_GROUP=$ac_cv_group_kmem
16237 fi
16238 if test "x$ac_save_LIBS" = x; then
16239 GETLOADAVG_LIBS=$LIBS
16240 else
16241 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16242 fi
16243 LIBS=$ac_save_LIBS
16244
16245
16246
16247 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16248 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16249 if test "${ac_cv_sys_largefile_source+set}" = set; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252 while :; do
16253 ac_cv_sys_largefile_source=no
16254 cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h. */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 #include <stdio.h>
16261 int
16262 main ()
16263 {
16264 return !fseeko;
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 break
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 fi
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #define _LARGEFILE_SOURCE 1
16305 #include <stdio.h>
16306 int
16307 main ()
16308 {
16309 return !fseeko;
16310 ;
16311 return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_cv_sys_largefile_source=1; break
16337 else
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 break
16344 done
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16347 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16348 if test "$ac_cv_sys_largefile_source" != no; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16352 _ACEOF
16353
16354 fi
16355 rm -f conftest*
16356
16357 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16358 # in glibc 2.1.3, but that breaks too many other things.
16359 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16360 echo "$as_me:$LINENO: checking for fseeko" >&5
16361 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16362 if test "${ac_cv_func_fseeko+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 #include <stdio.h>
16372 int
16373 main ()
16374 {
16375 return fseeko && fseeko (stdin, 0, 0);
16376 ;
16377 return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_func_fseeko=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_cv_func_fseeko=no
16408 fi
16409 rm -f conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
16411 fi
16412 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16413 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16414 if test $ac_cv_func_fseeko = yes; then
16415
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_FSEEKO 1
16418 _ACEOF
16419
16420 fi
16421
16422
16423 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16424 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16425 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428 # Use it with a single arg.
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 $ac_includes_default
16436 int
16437 main ()
16438 {
16439 getpgrp (0);
16440 ;
16441 return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_func_getpgrp_void=no
16467 else
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_cv_func_getpgrp_void=yes
16472 fi
16473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474
16475 fi
16476 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16477 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16478 if test $ac_cv_func_getpgrp_void = yes; then
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define GETPGRP_VOID 1
16482 _ACEOF
16483
16484 fi
16485
16486
16487
16488 for ac_func in strftime
16489 do
16490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16491 echo "$as_me:$LINENO: checking for $ac_func" >&5
16492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16493 if eval "test \"\${$as_ac_var+set}\" = set"; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16504 #define $ac_func innocuous_$ac_func
16505
16506 /* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char $ac_func (); below.
16508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509 <limits.h> exists even on freestanding compilers. */
16510
16511 #ifdef __STDC__
16512 # include <limits.h>
16513 #else
16514 # include <assert.h>
16515 #endif
16516
16517 #undef $ac_func
16518
16519 /* Override any gcc2 internal prototype to avoid an error. */
16520 #ifdef __cplusplus
16521 extern "C"
16522 {
16523 #endif
16524 /* We use char because int might match the return type of a gcc2
16525 builtin and then its argument prototype would still apply. */
16526 char $ac_func ();
16527 /* The GNU C library defines this for functions which it implements
16528 to always fail with ENOSYS. Some functions are actually named
16529 something starting with __ and the normal name is an alias. */
16530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16531 choke me
16532 #else
16533 char (*f) () = $ac_func;
16534 #endif
16535 #ifdef __cplusplus
16536 }
16537 #endif
16538
16539 int
16540 main ()
16541 {
16542 return f != $ac_func;
16543 ;
16544 return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag"
16557 || test ! -s conftest.err'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 eval "$as_ac_var=yes"
16570 else
16571 echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 eval "$as_ac_var=no"
16575 fi
16576 rm -f conftest.err conftest.$ac_objext \
16577 conftest$ac_exeext conftest.$ac_ext
16578 fi
16579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16581 if test `eval echo '${'$as_ac_var'}'` = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16584 _ACEOF
16585
16586 else
16587 # strftime is in -lintl on SCO UNIX.
16588 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16589 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16590 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593 ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-lintl $LIBS"
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601
16602 /* Override any gcc2 internal prototype to avoid an error. */
16603 #ifdef __cplusplus
16604 extern "C"
16605 #endif
16606 /* We use char because int might match the return type of a gcc2
16607 builtin and then its argument prototype would still apply. */
16608 char strftime ();
16609 int
16610 main ()
16611 {
16612 strftime ();
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_lib_intl_strftime=yes
16640 else
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16643
16644 ac_cv_lib_intl_strftime=no
16645 fi
16646 rm -f conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext conftest.$ac_ext
16648 LIBS=$ac_check_lib_save_LIBS
16649 fi
16650 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16651 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16652 if test $ac_cv_lib_intl_strftime = yes; then
16653 cat >>confdefs.h <<\_ACEOF
16654 #define HAVE_STRFTIME 1
16655 _ACEOF
16656
16657 LIBS="-lintl $LIBS"
16658 fi
16659
16660 fi
16661 done
16662
16663
16664 # UNIX98 PTYs.
16665
16666 for ac_func in grantpt
16667 do
16668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16669 echo "$as_me:$LINENO: checking for $ac_func" >&5
16670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_var+set}\" = set"; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16682 #define $ac_func innocuous_$ac_func
16683
16684 /* System header to define __stub macros and hopefully few prototypes,
16685 which can conflict with char $ac_func (); below.
16686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16687 <limits.h> exists even on freestanding compilers. */
16688
16689 #ifdef __STDC__
16690 # include <limits.h>
16691 #else
16692 # include <assert.h>
16693 #endif
16694
16695 #undef $ac_func
16696
16697 /* Override any gcc2 internal prototype to avoid an error. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 {
16701 #endif
16702 /* We use char because int might match the return type of a gcc2
16703 builtin and then its argument prototype would still apply. */
16704 char $ac_func ();
16705 /* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709 choke me
16710 #else
16711 char (*f) () = $ac_func;
16712 #endif
16713 #ifdef __cplusplus
16714 }
16715 #endif
16716
16717 int
16718 main ()
16719 {
16720 return f != $ac_func;
16721 ;
16722 return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 eval "$as_ac_var=yes"
16748 else
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 eval "$as_ac_var=no"
16753 fi
16754 rm -f conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext conftest.$ac_ext
16756 fi
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16759 if test `eval echo '${'$as_ac_var'}'` = yes; then
16760 cat >>confdefs.h <<_ACEOF
16761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16762 _ACEOF
16763
16764 fi
16765 done
16766
16767
16768 # PTY-related GNU extensions.
16769
16770 for ac_func in getpt
16771 do
16772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16773 echo "$as_me:$LINENO: checking for $ac_func" >&5
16774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16775 if eval "test \"\${$as_ac_var+set}\" = set"; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778 cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h. */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16786 #define $ac_func innocuous_$ac_func
16787
16788 /* System header to define __stub macros and hopefully few prototypes,
16789 which can conflict with char $ac_func (); below.
16790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16791 <limits.h> exists even on freestanding compilers. */
16792
16793 #ifdef __STDC__
16794 # include <limits.h>
16795 #else
16796 # include <assert.h>
16797 #endif
16798
16799 #undef $ac_func
16800
16801 /* Override any gcc2 internal prototype to avoid an error. */
16802 #ifdef __cplusplus
16803 extern "C"
16804 {
16805 #endif
16806 /* We use char because int might match the return type of a gcc2
16807 builtin and then its argument prototype would still apply. */
16808 char $ac_func ();
16809 /* The GNU C library defines this for functions which it implements
16810 to always fail with ENOSYS. Some functions are actually named
16811 something starting with __ and the normal name is an alias. */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16813 choke me
16814 #else
16815 char (*f) () = $ac_func;
16816 #endif
16817 #ifdef __cplusplus
16818 }
16819 #endif
16820
16821 int
16822 main ()
16823 {
16824 return f != $ac_func;
16825 ;
16826 return 0;
16827 }
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 eval "$as_ac_var=yes"
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16855
16856 eval "$as_ac_var=no"
16857 fi
16858 rm -f conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860 fi
16861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16863 if test `eval echo '${'$as_ac_var'}'` = yes; then
16864 cat >>confdefs.h <<_ACEOF
16865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16866 _ACEOF
16867
16868 fi
16869 done
16870
16871
16872 # Check this now, so that we will NOT find the above functions in ncurses.
16873 # That is because we have not set up to link ncurses in lib-src.
16874 # It's better to believe a function is not available
16875 # than to expect to find it in ncurses.
16876
16877 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16878 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16879 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 ac_check_lib_save_LIBS=$LIBS
16883 LIBS="-lncurses $LIBS"
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890
16891 /* Override any gcc2 internal prototype to avoid an error. */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 /* We use char because int might match the return type of a gcc2
16896 builtin and then its argument prototype would still apply. */
16897 char tparm ();
16898 int
16899 main ()
16900 {
16901 tparm ();
16902 ;
16903 return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag"
16916 || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_ncurses_tparm=yes
16929 else
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_lib_ncurses_tparm=no
16934 fi
16935 rm -f conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16940 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16941 if test $ac_cv_lib_ncurses_tparm = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_LIBNCURSES 1
16944 _ACEOF
16945
16946 LIBS="-lncurses $LIBS"
16947
16948 fi
16949
16950
16951 # Do we need the Hesiod library to provide the support routines?
16952 if test "$with_hesiod" = yes ; then
16953 # Don't set $LIBS here -- see comments above.
16954 resolv=no
16955 echo "$as_me:$LINENO: checking for res_send" >&5
16956 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16957 if test "${ac_cv_func_res_send+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16968 #define res_send innocuous_res_send
16969
16970 /* System header to define __stub macros and hopefully few prototypes,
16971 which can conflict with char res_send (); below.
16972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16973 <limits.h> exists even on freestanding compilers. */
16974
16975 #ifdef __STDC__
16976 # include <limits.h>
16977 #else
16978 # include <assert.h>
16979 #endif
16980
16981 #undef res_send
16982
16983 /* Override any gcc2 internal prototype to avoid an error. */
16984 #ifdef __cplusplus
16985 extern "C"
16986 {
16987 #endif
16988 /* We use char because int might match the return type of a gcc2
16989 builtin and then its argument prototype would still apply. */
16990 char res_send ();
16991 /* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994 #if defined (__stub_res_send) || defined (__stub___res_send)
16995 choke me
16996 #else
16997 char (*f) () = res_send;
16998 #endif
16999 #ifdef __cplusplus
17000 }
17001 #endif
17002
17003 int
17004 main ()
17005 {
17006 return f != res_send;
17007 ;
17008 return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_func_res_send=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_cv_func_res_send=no
17039 fi
17040 rm -f conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17042 fi
17043 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17044 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17045 if test $ac_cv_func_res_send = yes; then
17046 :
17047 else
17048 echo "$as_me:$LINENO: checking for __res_send" >&5
17049 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17050 if test "${ac_cv_func___res_send+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053 cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h. */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17061 #define __res_send innocuous___res_send
17062
17063 /* System header to define __stub macros and hopefully few prototypes,
17064 which can conflict with char __res_send (); below.
17065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066 <limits.h> exists even on freestanding compilers. */
17067
17068 #ifdef __STDC__
17069 # include <limits.h>
17070 #else
17071 # include <assert.h>
17072 #endif
17073
17074 #undef __res_send
17075
17076 /* Override any gcc2 internal prototype to avoid an error. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 {
17080 #endif
17081 /* We use char because int might match the return type of a gcc2
17082 builtin and then its argument prototype would still apply. */
17083 char __res_send ();
17084 /* The GNU C library defines this for functions which it implements
17085 to always fail with ENOSYS. Some functions are actually named
17086 something starting with __ and the normal name is an alias. */
17087 #if defined (__stub___res_send) || defined (__stub_____res_send)
17088 choke me
17089 #else
17090 char (*f) () = __res_send;
17091 #endif
17092 #ifdef __cplusplus
17093 }
17094 #endif
17095
17096 int
17097 main ()
17098 {
17099 return f != __res_send;
17100 ;
17101 return 0;
17102 }
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_func___res_send=yes
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 ac_cv_func___res_send=no
17132 fi
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 fi
17136 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17137 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17138 if test $ac_cv_func___res_send = yes; then
17139 :
17140 else
17141 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17142 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17143 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lresolv $LIBS"
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154
17155 /* Override any gcc2 internal prototype to avoid an error. */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 /* We use char because int might match the return type of a gcc2
17160 builtin and then its argument prototype would still apply. */
17161 char res_send ();
17162 int
17163 main ()
17164 {
17165 res_send ();
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_lib_resolv_res_send=yes
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_cv_lib_resolv_res_send=no
17198 fi
17199 rm -f conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201 LIBS=$ac_check_lib_save_LIBS
17202 fi
17203 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17204 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17205 if test $ac_cv_lib_resolv_res_send = yes; then
17206 resolv=yes
17207 else
17208 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17209 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17210 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213 ac_check_lib_save_LIBS=$LIBS
17214 LIBS="-lresolv $LIBS"
17215 cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h. */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221
17222 /* Override any gcc2 internal prototype to avoid an error. */
17223 #ifdef __cplusplus
17224 extern "C"
17225 #endif
17226 /* We use char because int might match the return type of a gcc2
17227 builtin and then its argument prototype would still apply. */
17228 char __res_send ();
17229 int
17230 main ()
17231 {
17232 __res_send ();
17233 ;
17234 return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext conftest$ac_exeext
17238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17239 (eval $ac_link) 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag"
17247 || test ! -s conftest.err'
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); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_cv_lib_resolv___res_send=yes
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ac_cv_lib_resolv___res_send=no
17265 fi
17266 rm -f conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17272 if test $ac_cv_lib_resolv___res_send = yes; then
17273 resolv=yes
17274 fi
17275
17276 fi
17277
17278 fi
17279
17280 fi
17281
17282 if test "$resolv" = yes ; then
17283 RESOLVLIB=-lresolv
17284
17285 cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_LIBRESOLV 1
17287 _ACEOF
17288
17289 else
17290 RESOLVLIB=
17291 fi
17292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17305 #define hes_getmailhost innocuous_hes_getmailhost
17306
17307 /* System header to define __stub macros and hopefully few prototypes,
17308 which can conflict with char hes_getmailhost (); below.
17309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17310 <limits.h> exists even on freestanding compilers. */
17311
17312 #ifdef __STDC__
17313 # include <limits.h>
17314 #else
17315 # include <assert.h>
17316 #endif
17317
17318 #undef hes_getmailhost
17319
17320 /* Override any gcc2 internal prototype to avoid an error. */
17321 #ifdef __cplusplus
17322 extern "C"
17323 {
17324 #endif
17325 /* We use char because int might match the return type of a gcc2
17326 builtin and then its argument prototype would still apply. */
17327 char hes_getmailhost ();
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17332 choke me
17333 #else
17334 char (*f) () = hes_getmailhost;
17335 #endif
17336 #ifdef __cplusplus
17337 }
17338 #endif
17339
17340 int
17341 main ()
17342 {
17343 return f != hes_getmailhost;
17344 ;
17345 return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_func_hes_getmailhost=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_cv_func_hes_getmailhost=no
17376 fi
17377 rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379 fi
17380 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17381 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17382 if test $ac_cv_func_hes_getmailhost = yes; then
17383 :
17384 else
17385 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17386 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17387 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390 ac_check_lib_save_LIBS=$LIBS
17391 LIBS="-lhesiod $RESOLVLIB $LIBS"
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398
17399 /* Override any gcc2 internal prototype to avoid an error. */
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 /* We use char because int might match the return type of a gcc2
17404 builtin and then its argument prototype would still apply. */
17405 char hes_getmailhost ();
17406 int
17407 main ()
17408 {
17409 hes_getmailhost ();
17410 ;
17411 return 0;
17412 }
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -z "$ac_c_werror_flag"
17424 || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_hesiod_hes_getmailhost=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 ac_cv_lib_hesiod_hes_getmailhost=no
17442 fi
17443 rm -f conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17445 LIBS=$ac_check_lib_save_LIBS
17446 fi
17447 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_LIBHESIOD 1
17453 _ACEOF
17454
17455 else
17456 :
17457 fi
17458
17459 fi
17460
17461 fi
17462
17463 # These tell us which Kerberos-related libraries to use.
17464 if test "${with_kerberos+set}" = set; then
17465
17466 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17467 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471 ac_check_lib_save_LIBS=$LIBS
17472 LIBS="-lcom_err $LIBS"
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479
17480 /* Override any gcc2 internal prototype to avoid an error. */
17481 #ifdef __cplusplus
17482 extern "C"
17483 #endif
17484 /* We use char because int might match the return type of a gcc2
17485 builtin and then its argument prototype would still apply. */
17486 char com_err ();
17487 int
17488 main ()
17489 {
17490 com_err ();
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag"
17505 || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_lib_com_err_com_err=yes
17518 else
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ac_cv_lib_com_err_com_err=no
17523 fi
17524 rm -f conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17526 LIBS=$ac_check_lib_save_LIBS
17527 fi
17528 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17529 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17530 if test $ac_cv_lib_com_err_com_err = yes; then
17531 cat >>confdefs.h <<_ACEOF
17532 #define HAVE_LIBCOM_ERR 1
17533 _ACEOF
17534
17535 LIBS="-lcom_err $LIBS"
17536
17537 fi
17538
17539
17540 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17541 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17542 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545 ac_check_lib_save_LIBS=$LIBS
17546 LIBS="-lk5crypto $LIBS"
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553
17554 /* Override any gcc2 internal prototype to avoid an error. */
17555 #ifdef __cplusplus
17556 extern "C"
17557 #endif
17558 /* We use char because int might match the return type of a gcc2
17559 builtin and then its argument prototype would still apply. */
17560 char mit_des_cbc_encrypt ();
17561 int
17562 main ()
17563 {
17564 mit_des_cbc_encrypt ();
17565 ;
17566 return 0;
17567 }
17568 _ACEOF
17569 rm -f conftest.$ac_objext conftest$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>conftest.er1
17572 ac_status=$?
17573 grep -v '^ *+' conftest.er1 >conftest.err
17574 rm -f conftest.er1
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try='test -z "$ac_c_werror_flag"
17579 || test ! -s conftest.err'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17597 fi
17598 rm -f conftest.err conftest.$ac_objext \
17599 conftest$ac_exeext conftest.$ac_ext
17600 LIBS=$ac_check_lib_save_LIBS
17601 fi
17602 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17603 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17604 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17605 cat >>confdefs.h <<_ACEOF
17606 #define HAVE_LIBK5CRYPTO 1
17607 _ACEOF
17608
17609 LIBS="-lk5crypto $LIBS"
17610
17611 fi
17612
17613
17614 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17615 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17616 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619 ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-lcrypto $LIBS"
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627
17628 /* Override any gcc2 internal prototype to avoid an error. */
17629 #ifdef __cplusplus
17630 extern "C"
17631 #endif
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17634 char mit_des_cbc_encrypt ();
17635 int
17636 main ()
17637 {
17638 mit_des_cbc_encrypt ();
17639 ;
17640 return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17674 LIBS=$ac_check_lib_save_LIBS
17675 fi
17676 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17677 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17678 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17679 cat >>confdefs.h <<_ACEOF
17680 #define HAVE_LIBCRYPTO 1
17681 _ACEOF
17682
17683 LIBS="-lcrypto $LIBS"
17684
17685 fi
17686
17687
17688 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17689 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17690 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 ac_check_lib_save_LIBS=$LIBS
17694 LIBS="-lkrb5 $LIBS"
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701
17702 /* Override any gcc2 internal prototype to avoid an error. */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 /* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708 char krb5_init_context ();
17709 int
17710 main ()
17711 {
17712 krb5_init_context ();
17713 ;
17714 return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_lib_krb5_krb5_init_context=yes
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744 ac_cv_lib_krb5_krb5_init_context=no
17745 fi
17746 rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17749 fi
17750 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17751 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17752 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_LIBKRB5 1
17755 _ACEOF
17756
17757 LIBS="-lkrb5 $LIBS"
17758
17759 fi
17760
17761 if test "${with_kerberos5+set}" != set; then
17762
17763 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17764 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17765 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768 ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-ldes425 $LIBS"
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17776
17777 /* Override any gcc2 internal prototype to avoid an error. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17783 char des_cbc_encrypt ();
17784 int
17785 main ()
17786 {
17787 des_cbc_encrypt ();
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>conftest.er1
17795 ac_status=$?
17796 grep -v '^ *+' conftest.er1 >conftest.err
17797 rm -f conftest.er1
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try='test -z "$ac_c_werror_flag"
17802 || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest$ac_exeext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_lib_des425_des_cbc_encrypt=yes
17815 else
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819 ac_cv_lib_des425_des_cbc_encrypt=no
17820 fi
17821 rm -f conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17823 LIBS=$ac_check_lib_save_LIBS
17824 fi
17825 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17826 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17827 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_LIBDES425 1
17830 _ACEOF
17831
17832 LIBS="-ldes425 $LIBS"
17833
17834 else
17835
17836 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17837 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17838 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-ldes $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849
17850 /* Override any gcc2 internal prototype to avoid an error. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856 char des_cbc_encrypt ();
17857 int
17858 main ()
17859 {
17860 des_cbc_encrypt ();
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_des_des_cbc_encrypt=yes
17888 else
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_cv_lib_des_des_cbc_encrypt=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17899 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17900 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define HAVE_LIBDES 1
17903 _ACEOF
17904
17905 LIBS="-ldes $LIBS"
17906
17907 fi
17908
17909 fi
17910
17911
17912 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17913 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17914 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 ac_check_lib_save_LIBS=$LIBS
17918 LIBS="-lkrb4 $LIBS"
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925
17926 /* Override any gcc2 internal prototype to avoid an error. */
17927 #ifdef __cplusplus
17928 extern "C"
17929 #endif
17930 /* We use char because int might match the return type of a gcc2
17931 builtin and then its argument prototype would still apply. */
17932 char krb_get_cred ();
17933 int
17934 main ()
17935 {
17936 krb_get_cred ();
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_krb4_krb_get_cred=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_cv_lib_krb4_krb_get_cred=no
17969 fi
17970 rm -f conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17973 fi
17974 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17975 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17976 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_LIBKRB4 1
17979 _ACEOF
17980
17981 LIBS="-lkrb4 $LIBS"
17982
17983 else
17984
17985 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17986 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17987 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-lkrb $LIBS"
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998
17999 /* Override any gcc2 internal prototype to avoid an error. */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 /* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18005 char krb_get_cred ();
18006 int
18007 main ()
18008 {
18009 krb_get_cred ();
18010 ;
18011 return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_lib_krb_krb_get_cred=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_lib_krb_krb_get_cred=no
18042 fi
18043 rm -f conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18046 fi
18047 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18048 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18049 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18050 cat >>confdefs.h <<_ACEOF
18051 #define HAVE_LIBKRB 1
18052 _ACEOF
18053
18054 LIBS="-lkrb $LIBS"
18055
18056 fi
18057
18058 fi
18059
18060 fi
18061
18062 if test "${with_kerberos5+set}" = set; then
18063
18064 for ac_header in krb5.h
18065 do
18066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18068 echo "$as_me:$LINENO: checking for $ac_header" >&5
18069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 fi
18073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18075 else
18076 # Is the header compilable?
18077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18079 cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h. */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085 $ac_includes_default
18086 #include <$ac_header>
18087 _ACEOF
18088 rm -f conftest.$ac_objext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18090 (eval $ac_compile) 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_c_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest.$ac_objext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_header_compiler=yes
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 ac_header_compiler=no
18116 fi
18117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18119 echo "${ECHO_T}$ac_header_compiler" >&6
18120
18121 # Is the header present?
18122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 #include <$ac_header>
18131 _ACEOF
18132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } >/dev/null; then
18140 if test -s conftest.err; then
18141 ac_cpp_err=$ac_c_preproc_warn_flag
18142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18143 else
18144 ac_cpp_err=
18145 fi
18146 else
18147 ac_cpp_err=yes
18148 fi
18149 if test -z "$ac_cpp_err"; then
18150 ac_header_preproc=yes
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18154
18155 ac_header_preproc=no
18156 fi
18157 rm -f conftest.err conftest.$ac_ext
18158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18159 echo "${ECHO_T}$ac_header_preproc" >&6
18160
18161 # So? What about this header?
18162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18163 yes:no: )
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18168 ac_header_preproc=yes
18169 ;;
18170 no:yes:* )
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18183 (
18184 cat <<\_ASBOX
18185 ## ------------------------------------------ ##
18186 ## Report this to the AC_PACKAGE_NAME lists. ##
18187 ## ------------------------------------------ ##
18188 _ASBOX
18189 ) |
18190 sed "s/^/$as_me: WARNING: /" >&2
18191 ;;
18192 esac
18193 echo "$as_me:$LINENO: checking for $ac_header" >&5
18194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 eval "$as_ac_Header=\$ac_header_preproc"
18199 fi
18200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18202
18203 fi
18204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18207 _ACEOF
18208
18209 fi
18210
18211 done
18212
18213 else
18214
18215 for ac_header in des.h
18216 do
18217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18219 echo "$as_me:$LINENO: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 fi
18224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18226 else
18227 # Is the header compilable?
18228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h. */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18237 #include <$ac_header>
18238 _ACEOF
18239 rm -f conftest.$ac_objext
18240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241 (eval $ac_compile) 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag"
18249 || test ! -s conftest.err'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_header_compiler=yes
18262 else
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 ac_header_compiler=no
18267 fi
18268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18270 echo "${ECHO_T}$ac_header_compiler" >&6
18271
18272 # Is the header present?
18273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 #include <$ac_header>
18282 _ACEOF
18283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev/null; then
18291 if test -s conftest.err; then
18292 ac_cpp_err=$ac_c_preproc_warn_flag
18293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18294 else
18295 ac_cpp_err=
18296 fi
18297 else
18298 ac_cpp_err=yes
18299 fi
18300 if test -z "$ac_cpp_err"; then
18301 ac_header_preproc=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ac_header_preproc=no
18307 fi
18308 rm -f conftest.err conftest.$ac_ext
18309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18310 echo "${ECHO_T}$ac_header_preproc" >&6
18311
18312 # So? What about this header?
18313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18314 yes:no: )
18315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18319 ac_header_preproc=yes
18320 ;;
18321 no:yes:* )
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18334 (
18335 cat <<\_ASBOX
18336 ## ------------------------------------------ ##
18337 ## Report this to the AC_PACKAGE_NAME lists. ##
18338 ## ------------------------------------------ ##
18339 _ASBOX
18340 ) |
18341 sed "s/^/$as_me: WARNING: /" >&2
18342 ;;
18343 esac
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349 eval "$as_ac_Header=\$ac_header_preproc"
18350 fi
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18353
18354 fi
18355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18358 _ACEOF
18359
18360 else
18361
18362 for ac_header in kerberosIV/des.h
18363 do
18364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366 echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 fi
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18373 else
18374 # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <$ac_header>
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_header_compiler=yes
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_header_compiler=no
18414 fi
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18418
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <$ac_header>
18429 _ACEOF
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null; then
18438 if test -s conftest.err; then
18439 ac_cpp_err=$ac_c_preproc_warn_flag
18440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18441 else
18442 ac_cpp_err=
18443 fi
18444 else
18445 ac_cpp_err=yes
18446 fi
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_header_preproc=no
18454 fi
18455 rm -f conftest.err conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18458
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18461 yes:no: )
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc=yes
18467 ;;
18468 no:yes:* )
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18481 (
18482 cat <<\_ASBOX
18483 ## ------------------------------------------ ##
18484 ## Report this to the AC_PACKAGE_NAME lists. ##
18485 ## ------------------------------------------ ##
18486 _ASBOX
18487 ) |
18488 sed "s/^/$as_me: WARNING: /" >&2
18489 ;;
18490 esac
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496 eval "$as_ac_Header=\$ac_header_preproc"
18497 fi
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18500
18501 fi
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18505 _ACEOF
18506
18507 else
18508
18509 for ac_header in kerberos/des.h
18510 do
18511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18513 echo "$as_me:$LINENO: checking for $ac_header" >&5
18514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 fi
18518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18520 else
18521 # Is the header compilable?
18522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h. */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 $ac_includes_default
18531 #include <$ac_header>
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 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); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_header_compiler=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_header_compiler=no
18561 fi
18562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18564 echo "${ECHO_T}$ac_header_compiler" >&6
18565
18566 # Is the header present?
18567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <$ac_header>
18576 _ACEOF
18577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } >/dev/null; then
18585 if test -s conftest.err; then
18586 ac_cpp_err=$ac_c_preproc_warn_flag
18587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18588 else
18589 ac_cpp_err=
18590 fi
18591 else
18592 ac_cpp_err=yes
18593 fi
18594 if test -z "$ac_cpp_err"; then
18595 ac_header_preproc=yes
18596 else
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18599
18600 ac_header_preproc=no
18601 fi
18602 rm -f conftest.err conftest.$ac_ext
18603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18604 echo "${ECHO_T}$ac_header_preproc" >&6
18605
18606 # So? What about this header?
18607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18608 yes:no: )
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18613 ac_header_preproc=yes
18614 ;;
18615 no:yes:* )
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18628 (
18629 cat <<\_ASBOX
18630 ## ------------------------------------------ ##
18631 ## Report this to the AC_PACKAGE_NAME lists. ##
18632 ## ------------------------------------------ ##
18633 _ASBOX
18634 ) |
18635 sed "s/^/$as_me: WARNING: /" >&2
18636 ;;
18637 esac
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643 eval "$as_ac_Header=\$ac_header_preproc"
18644 fi
18645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18647
18648 fi
18649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18650 cat >>confdefs.h <<_ACEOF
18651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18652 _ACEOF
18653
18654 fi
18655
18656 done
18657
18658 fi
18659
18660 done
18661
18662 fi
18663
18664 done
18665
18666
18667 for ac_header in krb.h
18668 do
18669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 fi
18676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18678 else
18679 # Is the header compilable?
18680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_header_compiler=yes
18714 else
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ac_header_compiler=no
18719 fi
18720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18722 echo "${ECHO_T}$ac_header_compiler" >&6
18723
18724 # Is the header present?
18725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <$ac_header>
18734 _ACEOF
18735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } >/dev/null; then
18743 if test -s conftest.err; then
18744 ac_cpp_err=$ac_c_preproc_warn_flag
18745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18746 else
18747 ac_cpp_err=
18748 fi
18749 else
18750 ac_cpp_err=yes
18751 fi
18752 if test -z "$ac_cpp_err"; then
18753 ac_header_preproc=yes
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_header_preproc=no
18759 fi
18760 rm -f conftest.err conftest.$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18762 echo "${ECHO_T}$ac_header_preproc" >&6
18763
18764 # So? What about this header?
18765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18766 yes:no: )
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18771 ac_header_preproc=yes
18772 ;;
18773 no:yes:* )
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18786 (
18787 cat <<\_ASBOX
18788 ## ------------------------------------------ ##
18789 ## Report this to the AC_PACKAGE_NAME lists. ##
18790 ## ------------------------------------------ ##
18791 _ASBOX
18792 ) |
18793 sed "s/^/$as_me: WARNING: /" >&2
18794 ;;
18795 esac
18796 echo "$as_me:$LINENO: checking for $ac_header" >&5
18797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 eval "$as_ac_Header=\$ac_header_preproc"
18802 fi
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18805
18806 fi
18807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18808 cat >>confdefs.h <<_ACEOF
18809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 else
18813
18814 for ac_header in kerberosIV/krb.h
18815 do
18816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18818 echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 fi
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18825 else
18826 # Is the header compilable?
18827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <$ac_header>
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_header_compiler=yes
18861 else
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 ac_header_compiler=no
18866 fi
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6
18870
18871 # Is the header present?
18872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18881 _ACEOF
18882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18884 ac_status=$?
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } >/dev/null; then
18890 if test -s conftest.err; then
18891 ac_cpp_err=$ac_c_preproc_warn_flag
18892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18893 else
18894 ac_cpp_err=
18895 fi
18896 else
18897 ac_cpp_err=yes
18898 fi
18899 if test -z "$ac_cpp_err"; then
18900 ac_header_preproc=yes
18901 else
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_header_preproc=no
18906 fi
18907 rm -f conftest.err conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18909 echo "${ECHO_T}$ac_header_preproc" >&6
18910
18911 # So? What about this header?
18912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18913 yes:no: )
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18918 ac_header_preproc=yes
18919 ;;
18920 no:yes:* )
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18933 (
18934 cat <<\_ASBOX
18935 ## ------------------------------------------ ##
18936 ## Report this to the AC_PACKAGE_NAME lists. ##
18937 ## ------------------------------------------ ##
18938 _ASBOX
18939 ) |
18940 sed "s/^/$as_me: WARNING: /" >&2
18941 ;;
18942 esac
18943 echo "$as_me:$LINENO: checking for $ac_header" >&5
18944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948 eval "$as_ac_Header=\$ac_header_preproc"
18949 fi
18950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18952
18953 fi
18954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18957 _ACEOF
18958
18959 else
18960
18961 for ac_header in kerberos/krb.h
18962 do
18963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18965 echo "$as_me:$LINENO: checking for $ac_header" >&5
18966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 fi
18970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18972 else
18973 # Is the header compilable?
18974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 $ac_includes_default
18983 #include <$ac_header>
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag"
18995 || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_header_compiler=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_header_compiler=no
19013 fi
19014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19016 echo "${ECHO_T}$ac_header_compiler" >&6
19017
19018 # Is the header present?
19019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 #include <$ac_header>
19028 _ACEOF
19029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } >/dev/null; then
19037 if test -s conftest.err; then
19038 ac_cpp_err=$ac_c_preproc_warn_flag
19039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19040 else
19041 ac_cpp_err=
19042 fi
19043 else
19044 ac_cpp_err=yes
19045 fi
19046 if test -z "$ac_cpp_err"; then
19047 ac_header_preproc=yes
19048 else
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 ac_header_preproc=no
19053 fi
19054 rm -f conftest.err conftest.$ac_ext
19055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19056 echo "${ECHO_T}$ac_header_preproc" >&6
19057
19058 # So? What about this header?
19059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19060 yes:no: )
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19065 ac_header_preproc=yes
19066 ;;
19067 no:yes:* )
19068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19080 (
19081 cat <<\_ASBOX
19082 ## ------------------------------------------ ##
19083 ## Report this to the AC_PACKAGE_NAME lists. ##
19084 ## ------------------------------------------ ##
19085 _ASBOX
19086 ) |
19087 sed "s/^/$as_me: WARNING: /" >&2
19088 ;;
19089 esac
19090 echo "$as_me:$LINENO: checking for $ac_header" >&5
19091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095 eval "$as_ac_Header=\$ac_header_preproc"
19096 fi
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19099
19100 fi
19101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19102 cat >>confdefs.h <<_ACEOF
19103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19104 _ACEOF
19105
19106 fi
19107
19108 done
19109
19110 fi
19111
19112 done
19113
19114 fi
19115
19116 done
19117
19118 fi
19119
19120 for ac_header in com_err.h
19121 do
19122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19124 echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 fi
19129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19131 else
19132 # Is the header compilable?
19133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <$ac_header>
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_c_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_header_compiler=yes
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 ac_header_compiler=no
19172 fi
19173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19175 echo "${ECHO_T}$ac_header_compiler" >&6
19176
19177 # Is the header present?
19178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <$ac_header>
19187 _ACEOF
19188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } >/dev/null; then
19196 if test -s conftest.err; then
19197 ac_cpp_err=$ac_c_preproc_warn_flag
19198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19199 else
19200 ac_cpp_err=
19201 fi
19202 else
19203 ac_cpp_err=yes
19204 fi
19205 if test -z "$ac_cpp_err"; then
19206 ac_header_preproc=yes
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_header_preproc=no
19212 fi
19213 rm -f conftest.err conftest.$ac_ext
19214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19215 echo "${ECHO_T}$ac_header_preproc" >&6
19216
19217 # So? What about this header?
19218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19219 yes:no: )
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19224 ac_header_preproc=yes
19225 ;;
19226 no:yes:* )
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19239 (
19240 cat <<\_ASBOX
19241 ## ------------------------------------------ ##
19242 ## Report this to the AC_PACKAGE_NAME lists. ##
19243 ## ------------------------------------------ ##
19244 _ASBOX
19245 ) |
19246 sed "s/^/$as_me: WARNING: /" >&2
19247 ;;
19248 esac
19249 echo "$as_me:$LINENO: checking for $ac_header" >&5
19250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 eval "$as_ac_Header=\$ac_header_preproc"
19255 fi
19256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19258
19259 fi
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261 cat >>confdefs.h <<_ACEOF
19262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263 _ACEOF
19264
19265 fi
19266
19267 done
19268
19269 fi
19270
19271 # Solaris requires -lintl if you want strerror (which calls dgettext)
19272 # to return localized messages.
19273
19274 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19275 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19276 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 else
19279 ac_check_lib_save_LIBS=$LIBS
19280 LIBS="-lintl $LIBS"
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287
19288 /* Override any gcc2 internal prototype to avoid an error. */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19294 char dgettext ();
19295 int
19296 main ()
19297 {
19298 dgettext ();
19299 ;
19300 return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_lib_intl_dgettext=yes
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ac_cv_lib_intl_dgettext=no
19331 fi
19332 rm -f conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19334 LIBS=$ac_check_lib_save_LIBS
19335 fi
19336 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19337 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19338 if test $ac_cv_lib_intl_dgettext = yes; then
19339 cat >>confdefs.h <<_ACEOF
19340 #define HAVE_LIBINTL 1
19341 _ACEOF
19342
19343 LIBS="-lintl $LIBS"
19344
19345 fi
19346
19347
19348 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19349 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19350 if test "${emacs_cv_localtime_cache+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353 if test x$ac_cv_func_tzset = xyes; then
19354 if test "$cross_compiling" = yes; then
19355 # If we have tzset, assume the worst when cross-compiling.
19356 emacs_cv_localtime_cache=yes
19357 else
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 #include <time.h>
19365 extern char **environ;
19366 unset_TZ ()
19367 {
19368 char **from, **to;
19369 for (to = from = environ; (*to = *from); from++)
19370 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19371 to++;
19372 }
19373 char TZ_GMT0[] = "TZ=GMT0";
19374 char TZ_PST8[] = "TZ=PST8";
19375 main()
19376 {
19377 time_t now = time ((time_t *) 0);
19378 int hour_GMT0, hour_unset;
19379 if (putenv (TZ_GMT0) != 0)
19380 exit (1);
19381 hour_GMT0 = localtime (&now)->tm_hour;
19382 unset_TZ ();
19383 hour_unset = localtime (&now)->tm_hour;
19384 if (putenv (TZ_PST8) != 0)
19385 exit (1);
19386 if (localtime (&now)->tm_hour == hour_GMT0)
19387 exit (1);
19388 unset_TZ ();
19389 if (localtime (&now)->tm_hour != hour_unset)
19390 exit (1);
19391 exit (0);
19392 }
19393 _ACEOF
19394 rm -f conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396 (eval $ac_link) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 emacs_cv_localtime_cache=no
19406 else
19407 echo "$as_me: program exited with status $ac_status" >&5
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ( exit $ac_status )
19412 emacs_cv_localtime_cache=yes
19413 fi
19414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19415 fi
19416 else
19417 # If we lack tzset, report that localtime does not cache TZ,
19418 # since we can't invalidate the cache if we don't have tzset.
19419 emacs_cv_localtime_cache=no
19420 fi
19421 fi
19422 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19423 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19424 if test $emacs_cv_localtime_cache = yes; then
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define LOCALTIME_CACHE 1
19428 _ACEOF
19429
19430 fi
19431
19432 if test "x$HAVE_TIMEVAL" = xyes; then
19433
19434 for ac_func in gettimeofday
19435 do
19436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19437 echo "$as_me:$LINENO: checking for $ac_func" >&5
19438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19439 if eval "test \"\${$as_ac_var+set}\" = set"; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19450 #define $ac_func innocuous_$ac_func
19451
19452 /* System header to define __stub macros and hopefully few prototypes,
19453 which can conflict with char $ac_func (); below.
19454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19455 <limits.h> exists even on freestanding compilers. */
19456
19457 #ifdef __STDC__
19458 # include <limits.h>
19459 #else
19460 # include <assert.h>
19461 #endif
19462
19463 #undef $ac_func
19464
19465 /* Override any gcc2 internal prototype to avoid an error. */
19466 #ifdef __cplusplus
19467 extern "C"
19468 {
19469 #endif
19470 /* We use char because int might match the return type of a gcc2
19471 builtin and then its argument prototype would still apply. */
19472 char $ac_func ();
19473 /* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19477 choke me
19478 #else
19479 char (*f) () = $ac_func;
19480 #endif
19481 #ifdef __cplusplus
19482 }
19483 #endif
19484
19485 int
19486 main ()
19487 {
19488 return f != $ac_func;
19489 ;
19490 return 0;
19491 }
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 eval "$as_ac_var=yes"
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 eval "$as_ac_var=no"
19521 fi
19522 rm -f conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524 fi
19525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19527 if test `eval echo '${'$as_ac_var'}'` = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530 _ACEOF
19531
19532 fi
19533 done
19534
19535 if test $ac_cv_func_gettimeofday = yes; then
19536 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19537 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19538 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547
19548 #ifdef TIME_WITH_SYS_TIME
19549 #include <sys/time.h>
19550 #include <time.h>
19551 #else
19552 #ifdef HAVE_SYS_TIME_H
19553 #include <sys/time.h>
19554 #else
19555 #include <time.h>
19556 #endif
19557 #endif
19558 int
19559 main ()
19560 {
19561 struct timeval time;
19562 gettimeofday (&time, 0);
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 emacs_cv_gettimeofday_two_arguments=yes
19590 else
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 emacs_cv_gettimeofday_two_arguments=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 fi
19598 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19599 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19600 if test $emacs_cv_gettimeofday_two_arguments = no; then
19601
19602 cat >>confdefs.h <<\_ACEOF
19603 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19604 _ACEOF
19605
19606 fi
19607 fi
19608 fi
19609
19610 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19611 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <sys/types.h>
19623 #include <$ac_cv_struct_tm>
19624
19625
19626 int
19627 main ()
19628 {
19629 static struct tm ac_aggr;
19630 if (ac_aggr.tm_zone)
19631 return 0;
19632 ;
19633 return 0;
19634 }
19635 _ACEOF
19636 rm -f conftest.$ac_objext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>conftest.er1
19639 ac_status=$?
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_member_struct_tm_tm_zone=yes
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <sys/types.h>
19670 #include <$ac_cv_struct_tm>
19671
19672
19673 int
19674 main ()
19675 {
19676 static struct tm ac_aggr;
19677 if (sizeof ac_aggr.tm_zone)
19678 return 0;
19679 ;
19680 return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19685 (eval $ac_compile) 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_member_struct_tm_tm_zone=yes
19706 else
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_member_struct_tm_tm_zone=no
19711 fi
19712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19713 fi
19714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715 fi
19716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19717 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19718 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19719
19720 cat >>confdefs.h <<_ACEOF
19721 #define HAVE_STRUCT_TM_TM_ZONE 1
19722 _ACEOF
19723
19724
19725 fi
19726
19727 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19728
19729 cat >>confdefs.h <<\_ACEOF
19730 #define HAVE_TM_ZONE 1
19731 _ACEOF
19732
19733 else
19734 echo "$as_me:$LINENO: checking for tzname" >&5
19735 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19736 if test "${ac_cv_var_tzname+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 #include <time.h>
19746 #ifndef tzname /* For SGI. */
19747 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19748 #endif
19749
19750 int
19751 main ()
19752 {
19753 atoi(*tzname);
19754 ;
19755 return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_var_tzname=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 ac_cv_var_tzname=no
19786 fi
19787 rm -f conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19789 fi
19790 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19791 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19792 if test $ac_cv_var_tzname = yes; then
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_TZNAME 1
19796 _ACEOF
19797
19798 fi
19799 fi
19800
19801
19802 if test "$ac_cv_func_gettimeofday" = yes; then
19803 echo "$as_me:$LINENO: checking for struct timezone" >&5
19804 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19805 if test "${emacs_cv_struct_timezone+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h. */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 #include <sys/time.h>
19815 int
19816 main ()
19817 {
19818 struct timezone tz;
19819 ;
19820 return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 if test "$cross_compiling" = yes; then
19846 emacs_cv_struct_timezone=yes
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854
19855 #ifdef TIME_WITH_SYS_TIME
19856 #include <sys/time.h>
19857 #include <time.h>
19858 #else
19859 #ifdef HAVE_SYS_TIME_H
19860 #include <sys/time.h>
19861 #else
19862 #include <time.h>
19863 #endif
19864 #endif
19865 main () {
19866 struct timeval time;
19867 struct timezone dummy;
19868 exit (gettimeofday (&time, &dummy));
19869 }
19870 _ACEOF
19871 rm -f conftest$ac_exeext
19872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19873 (eval $ac_link) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 emacs_cv_struct_timezone=yes
19883 else
19884 echo "$as_me: program exited with status $ac_status" >&5
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ( exit $ac_status )
19889 emacs_cv_struct_timezone=no
19890 fi
19891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19892 fi
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 emacs_cv_struct_timezone=no
19898 fi
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900 fi
19901 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19902 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19903 fi
19904
19905 ok_so_far=yes
19906 echo "$as_me:$LINENO: checking for socket" >&5
19907 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19908 if test "${ac_cv_func_socket+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define socket innocuous_socket
19920
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char socket (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19925
19926 #ifdef __STDC__
19927 # include <limits.h>
19928 #else
19929 # include <assert.h>
19930 #endif
19931
19932 #undef socket
19933
19934 /* Override any gcc2 internal prototype to avoid an error. */
19935 #ifdef __cplusplus
19936 extern "C"
19937 {
19938 #endif
19939 /* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19941 char socket ();
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined (__stub_socket) || defined (__stub___socket)
19946 choke me
19947 #else
19948 char (*f) () = socket;
19949 #endif
19950 #ifdef __cplusplus
19951 }
19952 #endif
19953
19954 int
19955 main ()
19956 {
19957 return f != socket;
19958 ;
19959 return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest.$ac_objext conftest$ac_exeext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19964 (eval $ac_link) 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest$ac_exeext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_func_socket=yes
19985 else
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_cv_func_socket=no
19990 fi
19991 rm -f conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 fi
19994 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19995 echo "${ECHO_T}$ac_cv_func_socket" >&6
19996 if test $ac_cv_func_socket = yes; then
19997 :
19998 else
19999 ok_so_far=no
20000 fi
20001
20002 if test $ok_so_far = yes; then
20003 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20004 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20005 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 fi
20009 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20010 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20011 else
20012 # Is the header compilable?
20013 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20014 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h. */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 $ac_includes_default
20022 #include <netinet/in.h>
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest.$ac_objext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 ac_header_compiler=yes
20047 else
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_header_compiler=no
20052 fi
20053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6
20056
20057 # Is the header present?
20058 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20059 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <netinet/in.h>
20067 _ACEOF
20068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } >/dev/null; then
20076 if test -s conftest.err; then
20077 ac_cpp_err=$ac_c_preproc_warn_flag
20078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20079 else
20080 ac_cpp_err=
20081 fi
20082 else
20083 ac_cpp_err=yes
20084 fi
20085 if test -z "$ac_cpp_err"; then
20086 ac_header_preproc=yes
20087 else
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ac_header_preproc=no
20092 fi
20093 rm -f conftest.err conftest.$ac_ext
20094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20095 echo "${ECHO_T}$ac_header_preproc" >&6
20096
20097 # So? What about this header?
20098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20099 yes:no: )
20100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20101 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20103 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20104 ac_header_preproc=yes
20105 ;;
20106 no:yes:* )
20107 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20108 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20110 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20112 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20114 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20116 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20118 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20119 (
20120 cat <<\_ASBOX
20121 ## ------------------------------------------ ##
20122 ## Report this to the AC_PACKAGE_NAME lists. ##
20123 ## ------------------------------------------ ##
20124 _ASBOX
20125 ) |
20126 sed "s/^/$as_me: WARNING: /" >&2
20127 ;;
20128 esac
20129 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20130 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20131 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 ac_cv_header_netinet_in_h=$ac_header_preproc
20135 fi
20136 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20137 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20138
20139 fi
20140 if test $ac_cv_header_netinet_in_h = yes; then
20141 :
20142 else
20143 ok_so_far=no
20144 fi
20145
20146
20147 fi
20148 if test $ok_so_far = yes; then
20149 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20150 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20151 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20152 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 fi
20155 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20156 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20157 else
20158 # Is the header compilable?
20159 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20160 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 #include <arpa/inet.h>
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_header_compiler=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 ac_header_compiler=no
20198 fi
20199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 echo "${ECHO_T}$ac_header_compiler" >&6
20202
20203 # Is the header present?
20204 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20205 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h. */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 #include <arpa/inet.h>
20213 _ACEOF
20214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } >/dev/null; then
20222 if test -s conftest.err; then
20223 ac_cpp_err=$ac_c_preproc_warn_flag
20224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20225 else
20226 ac_cpp_err=
20227 fi
20228 else
20229 ac_cpp_err=yes
20230 fi
20231 if test -z "$ac_cpp_err"; then
20232 ac_header_preproc=yes
20233 else
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20236
20237 ac_header_preproc=no
20238 fi
20239 rm -f conftest.err conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6
20242
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20245 yes:no: )
20246 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20247 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20249 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20250 ac_header_preproc=yes
20251 ;;
20252 no:yes:* )
20253 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20254 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20256 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20258 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20260 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20262 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20264 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20265 (
20266 cat <<\_ASBOX
20267 ## ------------------------------------------ ##
20268 ## Report this to the AC_PACKAGE_NAME lists. ##
20269 ## ------------------------------------------ ##
20270 _ASBOX
20271 ) |
20272 sed "s/^/$as_me: WARNING: /" >&2
20273 ;;
20274 esac
20275 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20276 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20277 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280 ac_cv_header_arpa_inet_h=$ac_header_preproc
20281 fi
20282 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20283 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20284
20285 fi
20286 if test $ac_cv_header_arpa_inet_h = yes; then
20287 :
20288 else
20289 ok_so_far=no
20290 fi
20291
20292
20293 fi
20294 if test $ok_so_far = yes; then
20295
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE_INET_SOCKETS 1
20298 _ACEOF
20299
20300 fi
20301
20302
20303 for ac_header in sys/ioctl.h
20304 do
20305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20307 echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 fi
20312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20314 else
20315 # Is the header compilable?
20316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_includes_default
20325 #include <$ac_header>
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler=yes
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_header_compiler=no
20355 fi
20356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20359
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include <$ac_header>
20370 _ACEOF
20371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } >/dev/null; then
20379 if test -s conftest.err; then
20380 ac_cpp_err=$ac_c_preproc_warn_flag
20381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20382 else
20383 ac_cpp_err=
20384 fi
20385 else
20386 ac_cpp_err=yes
20387 fi
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_preproc=no
20395 fi
20396 rm -f conftest.err conftest.$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20399
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20402 yes:no: )
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc=yes
20408 ;;
20409 no:yes:* )
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20422 (
20423 cat <<\_ASBOX
20424 ## ------------------------------------------ ##
20425 ## Report this to the AC_PACKAGE_NAME lists. ##
20426 ## ------------------------------------------ ##
20427 _ASBOX
20428 ) |
20429 sed "s/^/$as_me: WARNING: /" >&2
20430 ;;
20431 esac
20432 echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437 eval "$as_ac_Header=\$ac_header_preproc"
20438 fi
20439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20441
20442 fi
20443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20444 cat >>confdefs.h <<_ACEOF
20445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20446 _ACEOF
20447
20448 fi
20449
20450 done
20451
20452
20453 if test -f /usr/lpp/X11/bin/smt.exp; then
20454
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_AIX_SMT_EXP 1
20457 _ACEOF
20458
20459 fi
20460
20461 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20462 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20463 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20464 echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6
20466
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_DEV_PTMX 1
20469 _ACEOF
20470
20471 else
20472 echo "$as_me:$LINENO: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20474 fi
20475
20476 echo "$as_me:$LINENO: checking for pid_t" >&5
20477 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20478 if test "${ac_cv_type_pid_t+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h. */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 $ac_includes_default
20488 int
20489 main ()
20490 {
20491 if ((pid_t *) 0)
20492 return 0;
20493 if (sizeof (pid_t))
20494 return 0;
20495 ;
20496 return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_type_pid_t=yes
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_cv_type_pid_t=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 fi
20530 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20532 if test $ac_cv_type_pid_t = yes; then
20533 :
20534 else
20535
20536 cat >>confdefs.h <<_ACEOF
20537 #define pid_t int
20538 _ACEOF
20539
20540 fi
20541
20542
20543
20544 for ac_header in unistd.h vfork.h
20545 do
20546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20548 echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 fi
20553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20555 else
20556 # Is the header compilable?
20557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h. */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 $ac_includes_default
20566 #include <$ac_header>
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20570 (eval $ac_compile) 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try='test -z "$ac_c_werror_flag"
20578 || test ! -s conftest.err'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest.$ac_objext'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 ac_header_compiler=yes
20591 else
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 ac_header_compiler=no
20596 fi
20597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20599 echo "${ECHO_T}$ac_header_compiler" >&6
20600
20601 # Is the header present?
20602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <$ac_header>
20611 _ACEOF
20612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20614 ac_status=$?
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } >/dev/null; then
20620 if test -s conftest.err; then
20621 ac_cpp_err=$ac_c_preproc_warn_flag
20622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20623 else
20624 ac_cpp_err=
20625 fi
20626 else
20627 ac_cpp_err=yes
20628 fi
20629 if test -z "$ac_cpp_err"; then
20630 ac_header_preproc=yes
20631 else
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20634
20635 ac_header_preproc=no
20636 fi
20637 rm -f conftest.err conftest.$ac_ext
20638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20639 echo "${ECHO_T}$ac_header_preproc" >&6
20640
20641 # So? What about this header?
20642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20643 yes:no: )
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20648 ac_header_preproc=yes
20649 ;;
20650 no:yes:* )
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20663 (
20664 cat <<\_ASBOX
20665 ## ------------------------------------------ ##
20666 ## Report this to the AC_PACKAGE_NAME lists. ##
20667 ## ------------------------------------------ ##
20668 _ASBOX
20669 ) |
20670 sed "s/^/$as_me: WARNING: /" >&2
20671 ;;
20672 esac
20673 echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678 eval "$as_ac_Header=\$ac_header_preproc"
20679 fi
20680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20682
20683 fi
20684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20685 cat >>confdefs.h <<_ACEOF
20686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20687 _ACEOF
20688
20689 fi
20690
20691 done
20692
20693
20694
20695 for ac_func in fork vfork
20696 do
20697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20698 echo "$as_me:$LINENO: checking for $ac_func" >&5
20699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20700 if eval "test \"\${$as_ac_var+set}\" = set"; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 else
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20711 #define $ac_func innocuous_$ac_func
20712
20713 /* System header to define __stub macros and hopefully few prototypes,
20714 which can conflict with char $ac_func (); below.
20715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20716 <limits.h> exists even on freestanding compilers. */
20717
20718 #ifdef __STDC__
20719 # include <limits.h>
20720 #else
20721 # include <assert.h>
20722 #endif
20723
20724 #undef $ac_func
20725
20726 /* Override any gcc2 internal prototype to avoid an error. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 {
20730 #endif
20731 /* We use char because int might match the return type of a gcc2
20732 builtin and then its argument prototype would still apply. */
20733 char $ac_func ();
20734 /* The GNU C library defines this for functions which it implements
20735 to always fail with ENOSYS. Some functions are actually named
20736 something starting with __ and the normal name is an alias. */
20737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20738 choke me
20739 #else
20740 char (*f) () = $ac_func;
20741 #endif
20742 #ifdef __cplusplus
20743 }
20744 #endif
20745
20746 int
20747 main ()
20748 {
20749 return f != $ac_func;
20750 ;
20751 return 0;
20752 }
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 eval "$as_ac_var=yes"
20777 else
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781 eval "$as_ac_var=no"
20782 fi
20783 rm -f conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20785 fi
20786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20788 if test `eval echo '${'$as_ac_var'}'` = yes; then
20789 cat >>confdefs.h <<_ACEOF
20790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20791 _ACEOF
20792
20793 fi
20794 done
20795
20796 if test "x$ac_cv_func_fork" = xyes; then
20797 echo "$as_me:$LINENO: checking for working fork" >&5
20798 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20799 if test "${ac_cv_func_fork_works+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 if test "$cross_compiling" = yes; then
20803 ac_cv_func_fork_works=cross
20804 else
20805 cat >conftest.$ac_ext <<_ACEOF
20806 /* By Ruediger Kuhlmann. */
20807 #include <sys/types.h>
20808 #if HAVE_UNISTD_H
20809 # include <unistd.h>
20810 #endif
20811 /* Some systems only have a dummy stub for fork() */
20812 int main ()
20813 {
20814 if (fork() < 0)
20815 exit (1);
20816 exit (0);
20817 }
20818 _ACEOF
20819 rm -f conftest$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_func_fork_works=yes
20831 else
20832 echo "$as_me: program exited with status $ac_status" >&5
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ( exit $ac_status )
20837 ac_cv_func_fork_works=no
20838 fi
20839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20840 fi
20841 fi
20842 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20843 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20844
20845 else
20846 ac_cv_func_fork_works=$ac_cv_func_fork
20847 fi
20848 if test "x$ac_cv_func_fork_works" = xcross; then
20849 case $host in
20850 *-*-amigaos* | *-*-msdosdjgpp*)
20851 # Override, as these systems have only a dummy fork() stub
20852 ac_cv_func_fork_works=no
20853 ;;
20854 *)
20855 ac_cv_func_fork_works=yes
20856 ;;
20857 esac
20858 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20859 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20860 fi
20861 ac_cv_func_vfork_works=$ac_cv_func_vfork
20862 if test "x$ac_cv_func_vfork" = xyes; then
20863 echo "$as_me:$LINENO: checking for working vfork" >&5
20864 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20865 if test "${ac_cv_func_vfork_works+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20868 if test "$cross_compiling" = yes; then
20869 ac_cv_func_vfork_works=cross
20870 else
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 /* Thanks to Paul Eggert for this test. */
20878 #include <stdio.h>
20879 #include <stdlib.h>
20880 #include <sys/types.h>
20881 #include <sys/stat.h>
20882 #include <sys/wait.h>
20883 #if HAVE_UNISTD_H
20884 # include <unistd.h>
20885 #endif
20886 #if HAVE_VFORK_H
20887 # include <vfork.h>
20888 #endif
20889 /* On some sparc systems, changes by the child to local and incoming
20890 argument registers are propagated back to the parent. The compiler
20891 is told about this with #include <vfork.h>, but some compilers
20892 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20893 static variable whose address is put into a register that is
20894 clobbered by the vfork. */
20895 static void
20896 #ifdef __cplusplus
20897 sparc_address_test (int arg)
20898 # else
20899 sparc_address_test (arg) int arg;
20900 #endif
20901 {
20902 static pid_t child;
20903 if (!child) {
20904 child = vfork ();
20905 if (child < 0) {
20906 perror ("vfork");
20907 _exit(2);
20908 }
20909 if (!child) {
20910 arg = getpid();
20911 write(-1, "", 0);
20912 _exit (arg);
20913 }
20914 }
20915 }
20916
20917 int
20918 main ()
20919 {
20920 pid_t parent = getpid ();
20921 pid_t child;
20922
20923 sparc_address_test (0);
20924
20925 child = vfork ();
20926
20927 if (child == 0) {
20928 /* Here is another test for sparc vfork register problems. This
20929 test uses lots of local variables, at least as many local
20930 variables as main has allocated so far including compiler
20931 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20932 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20933 reuse the register of parent for one of the local variables,
20934 since it will think that parent can't possibly be used any more
20935 in this routine. Assigning to the local variable will thus
20936 munge parent in the parent process. */
20937 pid_t
20938 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20939 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20940 /* Convince the compiler that p..p7 are live; otherwise, it might
20941 use the same hardware register for all 8 local variables. */
20942 if (p != p1 || p != p2 || p != p3 || p != p4
20943 || p != p5 || p != p6 || p != p7)
20944 _exit(1);
20945
20946 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20947 from child file descriptors. If the child closes a descriptor
20948 before it execs or exits, this munges the parent's descriptor
20949 as well. Test for this by closing stdout in the child. */
20950 _exit(close(fileno(stdout)) != 0);
20951 } else {
20952 int status;
20953 struct stat st;
20954
20955 while (wait(&status) != child)
20956 ;
20957 exit(
20958 /* Was there some problem with vforking? */
20959 child < 0
20960
20961 /* Did the child fail? (This shouldn't happen.) */
20962 || status
20963
20964 /* Did the vfork/compiler bug occur? */
20965 || parent != getpid()
20966
20967 /* Did the file descriptor bug occur? */
20968 || fstat(fileno(stdout), &st) != 0
20969 );
20970 }
20971 }
20972 _ACEOF
20973 rm -f conftest$ac_exeext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975 (eval $ac_link) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_func_vfork_works=yes
20985 else
20986 echo "$as_me: program exited with status $ac_status" >&5
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990 ( exit $ac_status )
20991 ac_cv_func_vfork_works=no
20992 fi
20993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 fi
20995 fi
20996 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20997 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20998
20999 fi;
21000 if test "x$ac_cv_func_fork_works" = xcross; then
21001 ac_cv_func_vfork_works=$ac_cv_func_vfork
21002 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21003 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21004 fi
21005
21006 if test "x$ac_cv_func_vfork_works" = xyes; then
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_WORKING_VFORK 1
21010 _ACEOF
21011
21012 else
21013
21014 cat >>confdefs.h <<\_ACEOF
21015 #define vfork fork
21016 _ACEOF
21017
21018 fi
21019 if test "x$ac_cv_func_fork_works" = xyes; then
21020
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_WORKING_FORK 1
21023 _ACEOF
21024
21025 fi
21026
21027
21028 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21029 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21030 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <langinfo.h>
21040 int
21041 main ()
21042 {
21043 char* cs = nl_langinfo(CODESET);
21044 ;
21045 return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try='test -z "$ac_c_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 emacs_cv_langinfo_codeset=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 emacs_cv_langinfo_codeset=no
21076 fi
21077 rm -f conftest.err conftest.$ac_objext \
21078 conftest$ac_exeext conftest.$ac_ext
21079
21080 fi
21081 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21082 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21083 if test $emacs_cv_langinfo_codeset = yes; then
21084
21085 cat >>confdefs.h <<\_ACEOF
21086 #define HAVE_LANGINFO_CODESET 1
21087 _ACEOF
21088
21089 fi
21090
21091 echo "$as_me:$LINENO: checking for size_t" >&5
21092 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21093 if test "${ac_cv_type_size_t+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 $ac_includes_default
21103 int
21104 main ()
21105 {
21106 if ((size_t *) 0)
21107 return 0;
21108 if (sizeof (size_t))
21109 return 0;
21110 ;
21111 return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest.$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>conftest.er1
21117 ac_status=$?
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -z "$ac_c_werror_flag"
21124 || test ! -s conftest.err'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; } &&
21130 { ac_try='test -s conftest.$ac_objext'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_type_size_t=yes
21137 else
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 ac_cv_type_size_t=no
21142 fi
21143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21144 fi
21145 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21146 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21147 if test $ac_cv_type_size_t = yes; then
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define HAVE_SIZE_T 1
21151 _ACEOF
21152
21153
21154 fi
21155
21156
21157 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21158 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21159 if test "${ac_cv_type_mbstate_t+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21169 # include <wchar.h>
21170 int
21171 main ()
21172 {
21173 mbstate_t x; return sizeof x;
21174 ;
21175 return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21180 (eval $ac_compile) 2>conftest.er1
21181 ac_status=$?
21182 grep -v '^ *+' conftest.er1 >conftest.err
21183 rm -f conftest.er1
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } &&
21187 { ac_try='test -z "$ac_c_werror_flag"
21188 || test ! -s conftest.err'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try='test -s conftest.$ac_objext'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; }; then
21200 ac_cv_type_mbstate_t=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_cv_type_mbstate_t=no
21206 fi
21207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 fi
21209 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21210 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21211 if test $ac_cv_type_mbstate_t = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_MBSTATE_T 1
21215 _ACEOF
21216
21217 else
21218
21219 cat >>confdefs.h <<\_ACEOF
21220 #define mbstate_t int
21221 _ACEOF
21222
21223 fi
21224
21225 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21226 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21227 if test "${emacs_cv_c_restrict+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 void fred (int *restrict x);
21237 int
21238 main ()
21239 {
21240
21241 ;
21242 return 0;
21243 }
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 emacs_cv_c_restrict=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 void fred (int *__restrict x);
21279 int
21280 main ()
21281 {
21282
21283 ;
21284 return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289 (eval $ac_compile) 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_c_werror_flag"
21297 || test ! -s conftest.err'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 emacs_cv_c_restrict=__restrict
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 emacs_cv_c_restrict=no
21315 fi
21316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21321 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21322 case "$emacs_cv_c_restrict" in
21323 yes) emacs_restrict=restrict;;
21324 no) emacs_restrict="";;
21325 *) emacs_restrict="$emacs_cv_c_restrict";;
21326 esac
21327 if test "$emacs_restrict" != __restrict; then
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define __restrict $emacs_restrict
21331 _ACEOF
21332
21333 fi
21334
21335 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21336 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21337 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 void fred (int x[__restrict]);
21347 int
21348 main ()
21349 {
21350
21351 ;
21352 return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 emacs_cv_c_restrict_arr=yes
21378 else
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 emacs_cv_c_restrict_arr=no
21383 fi
21384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21385 fi
21386 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21387 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21388 if test "$emacs_cv_c_restrict_arr" = yes; then
21389
21390 cat >>confdefs.h <<\_ACEOF
21391 #define __restrict_arr __restrict
21392 _ACEOF
21393
21394 fi
21395
21396
21397
21398 # Set up the CFLAGS for real compilation, so we can substitute it.
21399 CFLAGS="$REAL_CFLAGS"
21400 CPPFLAGS="$REAL_CPPFLAGS"
21401
21402 #### Find out which version of Emacs this is.
21403 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21404 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21405 if test x"${version}" = x; then
21406 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21407 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21408 { (exit 1); exit 1; }; }
21409 fi
21410
21411 ### Specify what sort of things we'll be editing into Makefile and config.h.
21412 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448 cat >>confdefs.h <<_ACEOF
21449 #define EMACS_CONFIGURATION "${canonical}"
21450 _ACEOF
21451
21452
21453 cat >>confdefs.h <<_ACEOF
21454 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21455 _ACEOF
21456
21457
21458 cat >>confdefs.h <<_ACEOF
21459 #define config_machfile "${machfile}"
21460 _ACEOF
21461
21462
21463 cat >>confdefs.h <<_ACEOF
21464 #define config_opsysfile "${opsysfile}"
21465 _ACEOF
21466
21467
21468 cat >>confdefs.h <<_ACEOF
21469 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21470 _ACEOF
21471
21472
21473 cat >>confdefs.h <<_ACEOF
21474 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21475 _ACEOF
21476
21477
21478 cat >>confdefs.h <<_ACEOF
21479 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21480 _ACEOF
21481
21482
21483 cat >>confdefs.h <<_ACEOF
21484 #define UNEXEC_SRC ${UNEXEC_SRC}
21485 _ACEOF
21486
21487
21488 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21489
21490 cat >>confdefs.h <<\_ACEOF
21491 #define HAVE_X_WINDOWS 1
21492 _ACEOF
21493
21494 fi
21495 if test "${USE_X_TOOLKIT}" != "none" ; then
21496
21497 cat >>confdefs.h <<\_ACEOF
21498 #define USE_X_TOOLKIT 1
21499 _ACEOF
21500
21501 fi
21502 if test "${HAVE_X11}" = "yes" ; then
21503
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_X11 1
21506 _ACEOF
21507
21508 fi
21509 if test "${HAVE_XFREE386}" = "yes" ; then
21510
21511 cat >>confdefs.h <<\_ACEOF
21512 #define HAVE_XFREE386 1
21513 _ACEOF
21514
21515 fi
21516 if test "${HAVE_MENUS}" = "yes" ; then
21517
21518 cat >>confdefs.h <<\_ACEOF
21519 #define HAVE_MENUS 1
21520 _ACEOF
21521
21522 fi
21523 if test "${GNU_MALLOC}" = "yes" ; then
21524
21525 cat >>confdefs.h <<\_ACEOF
21526 #define GNU_MALLOC 1
21527 _ACEOF
21528
21529 fi
21530 if test "${REL_ALLOC}" = "yes" ; then
21531
21532 cat >>confdefs.h <<\_ACEOF
21533 #define REL_ALLOC 1
21534 _ACEOF
21535
21536 fi
21537
21538
21539
21540
21541
21542 #### Report on what we decided to do.
21543 #### Report GTK as a toolkit, even if it doesn't use Xt.
21544 #### It makes printing result more understandable as using GTK sets
21545 #### toolkit_scroll_bars to yes by default.
21546 if test "${HAVE_GTK}" = "yes"; then
21547 USE_X_TOOLKIT=GTK
21548 fi
21549
21550 echo "
21551 Configured for \`${canonical}'.
21552
21553 Where should the build process find the source code? ${srcdir}
21554 What operating system and machine description files should Emacs use?
21555 \`${opsysfile}' and \`${machfile}'
21556 What compiler should emacs be built with? ${CC} ${CFLAGS}
21557 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21558 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21559 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21560 What window system should Emacs use? ${window_system}
21561 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21562
21563 if test -n "${x_includes}"; then
21564 echo " Where do we find X Windows header files? ${x_includes}"
21565 else
21566 echo " Where do we find X Windows header files? Standard dirs"
21567 fi
21568 if test -n "${x_libraries}"; then
21569 echo " Where do we find X Windows libraries? ${x_libraries}"
21570 else
21571 echo " Where do we find X Windows libraries? Standard dirs"
21572 fi
21573
21574 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21575 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21576 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21577 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21578 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21579 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21580 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21581 echo
21582
21583 if test "$emacs_cv_randomheap" = warn; then
21584 { echo "$as_me:$LINENO: WARNING:
21585 **********************************************************************
21586
21587 Heap start address is randomized and no workaround is known.
21588 Emacs will probably dump core when temacs is run in the build phase.
21589 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21590 for further information.
21591
21592 **********************************************************************
21593 " >&5
21594 echo "$as_me: WARNING:
21595 **********************************************************************
21596
21597 Heap start address is randomized and no workaround is known.
21598 Emacs will probably dump core when temacs is run in the build phase.
21599 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21600 for further information.
21601
21602 **********************************************************************
21603 " >&2;}
21604 fi
21605
21606 # Remove any trailing slashes in these variables.
21607 test "${prefix}" != NONE &&
21608 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21609 test "${exec_prefix}" != NONE &&
21610 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21611
21612 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21613 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21614 ## from Makefile.c can correctly provide the arg `-traditional' to the
21615 ## C preprocessor.
21616
21617 cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h. */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 yes..yes
21624 _ACEOF
21625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21626 $EGREP "yes..yes" >/dev/null 2>&1; then
21627 CPP_NEED_TRADITIONAL=no
21628 else
21629 CPP_NEED_TRADITIONAL=yes
21630 fi
21631 rm -f conftest*
21632
21633
21634 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"
21635 ac_config_commands="$ac_config_commands default"
21636 cat >confcache <<\_ACEOF
21637 # This file is a shell script that caches the results of configure
21638 # tests run on this system so they can be shared between configure
21639 # scripts and configure runs, see configure's option --config-cache.
21640 # It is not useful on other systems. If it contains results you don't
21641 # want to keep, you may remove or edit it.
21642 #
21643 # config.status only pays attention to the cache file if you give it
21644 # the --recheck option to rerun configure.
21645 #
21646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21648 # following values.
21649
21650 _ACEOF
21651
21652 # The following way of writing the cache mishandles newlines in values,
21653 # but we know of no workaround that is simple, portable, and efficient.
21654 # So, don't put newlines in cache variables' values.
21655 # Ultrix sh set writes to stderr and can't be redirected directly,
21656 # and sets the high bit in the cache file unless we assign to the vars.
21657 {
21658 (set) 2>&1 |
21659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21660 *ac_space=\ *)
21661 # `set' does not quote correctly, so add quotes (double-quote
21662 # substitution turns \\\\ into \\, and sed turns \\ into \).
21663 sed -n \
21664 "s/'/'\\\\''/g;
21665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21666 ;;
21667 *)
21668 # `set' quotes correctly as required by POSIX, so do not add quotes.
21669 sed -n \
21670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21671 ;;
21672 esac;
21673 } |
21674 sed '
21675 t clear
21676 : clear
21677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21678 t end
21679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21680 : end' >>confcache
21681 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21682 if test -w $cache_file; then
21683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21684 cat confcache >$cache_file
21685 else
21686 echo "not updating unwritable cache $cache_file"
21687 fi
21688 fi
21689 rm -f confcache
21690
21691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21692 # Let make expand exec_prefix.
21693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21694
21695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21697 # trailing colons and then remove the whole line if VPATH becomes empty
21698 # (actually we leave an empty line to preserve line numbers).
21699 if test "x$srcdir" = x.; then
21700 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21701 s/:*\$(srcdir):*/:/;
21702 s/:*\${srcdir}:*/:/;
21703 s/:*@srcdir@:*/:/;
21704 s/^\([^=]*=[ ]*\):*/\1/;
21705 s/:*$//;
21706 s/^[^=]*=[ ]*$//;
21707 }'
21708 fi
21709
21710 DEFS=-DHAVE_CONFIG_H
21711
21712 ac_libobjs=
21713 ac_ltlibobjs=
21714 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21715 # 1. Remove the extension, and $U if already installed.
21716 ac_i=`echo "$ac_i" |
21717 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21718 # 2. Add them.
21719 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21720 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21721 done
21722 LIBOBJS=$ac_libobjs
21723
21724 LTLIBOBJS=$ac_ltlibobjs
21725
21726
21727
21728 : ${CONFIG_STATUS=./config.status}
21729 ac_clean_files_save=$ac_clean_files
21730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21731 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21732 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21733 cat >$CONFIG_STATUS <<_ACEOF
21734 #! $SHELL
21735 # Generated by $as_me.
21736 # Run this file to recreate the current configuration.
21737 # Compiler output produced by configure, useful for debugging
21738 # configure, is in config.log if it exists.
21739
21740 debug=false
21741 ac_cs_recheck=false
21742 ac_cs_silent=false
21743 SHELL=\${CONFIG_SHELL-$SHELL}
21744 _ACEOF
21745
21746 cat >>$CONFIG_STATUS <<\_ACEOF
21747 ## --------------------- ##
21748 ## M4sh Initialization. ##
21749 ## --------------------- ##
21750
21751 # Be Bourne compatible
21752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21753 emulate sh
21754 NULLCMD=:
21755 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21756 # is contrary to our usage. Disable this feature.
21757 alias -g '${1+"$@"}'='"$@"'
21758 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21759 set -o posix
21760 fi
21761 DUALCASE=1; export DUALCASE # for MKS sh
21762
21763 # Support unset when possible.
21764 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21765 as_unset=unset
21766 else
21767 as_unset=false
21768 fi
21769
21770
21771 # Work around bugs in pre-3.0 UWIN ksh.
21772 $as_unset ENV MAIL MAILPATH
21773 PS1='$ '
21774 PS2='> '
21775 PS4='+ '
21776
21777 # NLS nuisances.
21778 for as_var in \
21779 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21780 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21781 LC_TELEPHONE LC_TIME
21782 do
21783 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21784 eval $as_var=C; export $as_var
21785 else
21786 $as_unset $as_var
21787 fi
21788 done
21789
21790 # Required to use basename.
21791 if expr a : '\(a\)' >/dev/null 2>&1; then
21792 as_expr=expr
21793 else
21794 as_expr=false
21795 fi
21796
21797 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21798 as_basename=basename
21799 else
21800 as_basename=false
21801 fi
21802
21803
21804 # Name of the executable.
21805 as_me=`$as_basename "$0" ||
21806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21807 X"$0" : 'X\(//\)$' \| \
21808 X"$0" : 'X\(/\)$' \| \
21809 . : '\(.\)' 2>/dev/null ||
21810 echo X/"$0" |
21811 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21812 /^X\/\(\/\/\)$/{ s//\1/; q; }
21813 /^X\/\(\/\).*/{ s//\1/; q; }
21814 s/.*/./; q'`
21815
21816
21817 # PATH needs CR, and LINENO needs CR and PATH.
21818 # Avoid depending upon Character Ranges.
21819 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21822 as_cr_digits='0123456789'
21823 as_cr_alnum=$as_cr_Letters$as_cr_digits
21824
21825 # The user is always right.
21826 if test "${PATH_SEPARATOR+set}" != set; then
21827 echo "#! /bin/sh" >conf$$.sh
21828 echo "exit 0" >>conf$$.sh
21829 chmod +x conf$$.sh
21830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21831 PATH_SEPARATOR=';'
21832 else
21833 PATH_SEPARATOR=:
21834 fi
21835 rm -f conf$$.sh
21836 fi
21837
21838
21839 as_lineno_1=$LINENO
21840 as_lineno_2=$LINENO
21841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21842 test "x$as_lineno_1" != "x$as_lineno_2" &&
21843 test "x$as_lineno_3" = "x$as_lineno_2" || {
21844 # Find who we are. Look in the path if we contain no path at all
21845 # relative or not.
21846 case $0 in
21847 *[\\/]* ) as_myself=$0 ;;
21848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21850 do
21851 IFS=$as_save_IFS
21852 test -z "$as_dir" && as_dir=.
21853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21854 done
21855
21856 ;;
21857 esac
21858 # We did not find ourselves, most probably we were run as `sh COMMAND'
21859 # in which case we are not to be found in the path.
21860 if test "x$as_myself" = x; then
21861 as_myself=$0
21862 fi
21863 if test ! -f "$as_myself"; then
21864 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21865 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21866 { (exit 1); exit 1; }; }
21867 fi
21868 case $CONFIG_SHELL in
21869 '')
21870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21871 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21872 do
21873 IFS=$as_save_IFS
21874 test -z "$as_dir" && as_dir=.
21875 for as_base in sh bash ksh sh5; do
21876 case $as_dir in
21877 /*)
21878 if ("$as_dir/$as_base" -c '
21879 as_lineno_1=$LINENO
21880 as_lineno_2=$LINENO
21881 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21882 test "x$as_lineno_1" != "x$as_lineno_2" &&
21883 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21884 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21885 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21886 CONFIG_SHELL=$as_dir/$as_base
21887 export CONFIG_SHELL
21888 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21889 fi;;
21890 esac
21891 done
21892 done
21893 ;;
21894 esac
21895
21896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21897 # uniformly replaced by the line number. The first 'sed' inserts a
21898 # line-number line before each line; the second 'sed' does the real
21899 # work. The second script uses 'N' to pair each line-number line
21900 # with the numbered line, and appends trailing '-' during
21901 # substitution so that $LINENO is not a special case at line end.
21902 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21903 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21904 sed '=' <$as_myself |
21905 sed '
21906 N
21907 s,$,-,
21908 : loop
21909 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21910 t loop
21911 s,-$,,
21912 s,^['$as_cr_digits']*\n,,
21913 ' >$as_me.lineno &&
21914 chmod +x $as_me.lineno ||
21915 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21916 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21917 { (exit 1); exit 1; }; }
21918
21919 # Don't try to exec as it changes $[0], causing all sort of problems
21920 # (the dirname of $[0] is not the place where we might find the
21921 # original and so on. Autoconf is especially sensible to this).
21922 . ./$as_me.lineno
21923 # Exit status is that of the last command.
21924 exit
21925 }
21926
21927
21928 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21929 *c*,-n*) ECHO_N= ECHO_C='
21930 ' ECHO_T=' ' ;;
21931 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21932 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21933 esac
21934
21935 if expr a : '\(a\)' >/dev/null 2>&1; then
21936 as_expr=expr
21937 else
21938 as_expr=false
21939 fi
21940
21941 rm -f conf$$ conf$$.exe conf$$.file
21942 echo >conf$$.file
21943 if ln -s conf$$.file conf$$ 2>/dev/null; then
21944 # We could just check for DJGPP; but this test a) works b) is more generic
21945 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21946 if test -f conf$$.exe; then
21947 # Don't use ln at all; we don't have any links
21948 as_ln_s='cp -p'
21949 else
21950 as_ln_s='ln -s'
21951 fi
21952 elif ln conf$$.file conf$$ 2>/dev/null; then
21953 as_ln_s=ln
21954 else
21955 as_ln_s='cp -p'
21956 fi
21957 rm -f conf$$ conf$$.exe conf$$.file
21958
21959 if mkdir -p . 2>/dev/null; then
21960 as_mkdir_p=:
21961 else
21962 test -d ./-p && rmdir ./-p
21963 as_mkdir_p=false
21964 fi
21965
21966 as_executable_p="test -f"
21967
21968 # Sed expression to map a string onto a valid CPP name.
21969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21970
21971 # Sed expression to map a string onto a valid variable name.
21972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21973
21974
21975 # IFS
21976 # We need space, tab and new line, in precisely that order.
21977 as_nl='
21978 '
21979 IFS=" $as_nl"
21980
21981 # CDPATH.
21982 $as_unset CDPATH
21983
21984 exec 6>&1
21985
21986 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21987 # report actual input values of CONFIG_FILES etc. instead of their
21988 # values after options handling. Logging --version etc. is OK.
21989 exec 5>>config.log
21990 {
21991 echo
21992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21993 ## Running $as_me. ##
21994 _ASBOX
21995 } >&5
21996 cat >&5 <<_CSEOF
21997
21998 This file was extended by $as_me, which was
21999 generated by GNU Autoconf 2.59. Invocation command line was
22000
22001 CONFIG_FILES = $CONFIG_FILES
22002 CONFIG_HEADERS = $CONFIG_HEADERS
22003 CONFIG_LINKS = $CONFIG_LINKS
22004 CONFIG_COMMANDS = $CONFIG_COMMANDS
22005 $ $0 $@
22006
22007 _CSEOF
22008 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22009 echo >&5
22010 _ACEOF
22011
22012 # Files that config.status was made for.
22013 if test -n "$ac_config_files"; then
22014 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22015 fi
22016
22017 if test -n "$ac_config_headers"; then
22018 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22019 fi
22020
22021 if test -n "$ac_config_links"; then
22022 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22023 fi
22024
22025 if test -n "$ac_config_commands"; then
22026 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22027 fi
22028
22029 cat >>$CONFIG_STATUS <<\_ACEOF
22030
22031 ac_cs_usage="\
22032 \`$as_me' instantiates files from templates according to the
22033 current configuration.
22034
22035 Usage: $0 [OPTIONS] [FILE]...
22036
22037 -h, --help print this help, then exit
22038 -V, --version print version number, then exit
22039 -q, --quiet do not print progress messages
22040 -d, --debug don't remove temporary files
22041 --recheck update $as_me by reconfiguring in the same conditions
22042 --file=FILE[:TEMPLATE]
22043 instantiate the configuration file FILE
22044 --header=FILE[:TEMPLATE]
22045 instantiate the configuration header FILE
22046
22047 Configuration files:
22048 $config_files
22049
22050 Configuration headers:
22051 $config_headers
22052
22053 Configuration commands:
22054 $config_commands
22055
22056 Report bugs to <bug-autoconf@gnu.org>."
22057 _ACEOF
22058
22059 cat >>$CONFIG_STATUS <<_ACEOF
22060 ac_cs_version="\\
22061 config.status
22062 configured by $0, generated by GNU Autoconf 2.59,
22063 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22064
22065 Copyright (C) 2003 Free Software Foundation, Inc.
22066 This config.status script is free software; the Free Software Foundation
22067 gives unlimited permission to copy, distribute and modify it."
22068 srcdir=$srcdir
22069 INSTALL="$INSTALL"
22070 _ACEOF
22071
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 # If no file are specified by the user, then we need to provide default
22074 # value. By we need to know if files were specified by the user.
22075 ac_need_defaults=:
22076 while test $# != 0
22077 do
22078 case $1 in
22079 --*=*)
22080 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22081 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22082 ac_shift=:
22083 ;;
22084 -*)
22085 ac_option=$1
22086 ac_optarg=$2
22087 ac_shift=shift
22088 ;;
22089 *) # This is not an option, so the user has probably given explicit
22090 # arguments.
22091 ac_option=$1
22092 ac_need_defaults=false;;
22093 esac
22094
22095 case $ac_option in
22096 # Handling of the options.
22097 _ACEOF
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22100 ac_cs_recheck=: ;;
22101 --version | --vers* | -V )
22102 echo "$ac_cs_version"; exit 0 ;;
22103 --he | --h)
22104 # Conflict between --help and --header
22105 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22106 Try \`$0 --help' for more information." >&5
22107 echo "$as_me: error: ambiguous option: $1
22108 Try \`$0 --help' for more information." >&2;}
22109 { (exit 1); exit 1; }; };;
22110 --help | --hel | -h )
22111 echo "$ac_cs_usage"; exit 0 ;;
22112 --debug | --d* | -d )
22113 debug=: ;;
22114 --file | --fil | --fi | --f )
22115 $ac_shift
22116 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117 ac_need_defaults=false;;
22118 --header | --heade | --head | --hea )
22119 $ac_shift
22120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121 ac_need_defaults=false;;
22122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22124 ac_cs_silent=: ;;
22125
22126 # This is an error.
22127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22128 Try \`$0 --help' for more information." >&5
22129 echo "$as_me: error: unrecognized option: $1
22130 Try \`$0 --help' for more information." >&2;}
22131 { (exit 1); exit 1; }; } ;;
22132
22133 *) ac_config_targets="$ac_config_targets $1" ;;
22134
22135 esac
22136 shift
22137 done
22138
22139 ac_configure_extra_args=
22140
22141 if $ac_cs_silent; then
22142 exec 6>/dev/null
22143 ac_configure_extra_args="$ac_configure_extra_args --silent"
22144 fi
22145
22146 _ACEOF
22147 cat >>$CONFIG_STATUS <<_ACEOF
22148 if \$ac_cs_recheck; then
22149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22151 fi
22152
22153 _ACEOF
22154
22155 cat >>$CONFIG_STATUS <<_ACEOF
22156 #
22157 # INIT-COMMANDS section.
22158 #
22159
22160 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22161
22162 _ACEOF
22163
22164
22165
22166 cat >>$CONFIG_STATUS <<\_ACEOF
22167 for ac_config_target in $ac_config_targets
22168 do
22169 case "$ac_config_target" in
22170 # Handling of arguments.
22171 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22172 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22173 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22174 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22175 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22176 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22177 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22178 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22179 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22180 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22181 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22182 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22183 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22184 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22185 { (exit 1); exit 1; }; };;
22186 esac
22187 done
22188
22189 # If the user did not use the arguments to specify the items to instantiate,
22190 # then the envvar interface is used. Set only those that are not.
22191 # We use the long form for the default assignment because of an extremely
22192 # bizarre bug on SunOS 4.1.3.
22193 if $ac_need_defaults; then
22194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22197 fi
22198
22199 # Have a temporary directory for convenience. Make it in the build tree
22200 # simply because there is no reason to put it here, and in addition,
22201 # creating and moving files from /tmp can sometimes cause problems.
22202 # Create a temporary directory, and hook for its removal unless debugging.
22203 $debug ||
22204 {
22205 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22206 trap '{ (exit 1); exit 1; }' 1 2 13 15
22207 }
22208
22209 # Create a (secure) tmp directory for tmp files.
22210
22211 {
22212 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22213 test -n "$tmp" && test -d "$tmp"
22214 } ||
22215 {
22216 tmp=./confstat$$-$RANDOM
22217 (umask 077 && mkdir $tmp)
22218 } ||
22219 {
22220 echo "$me: cannot create a temporary directory in ." >&2
22221 { (exit 1); exit 1; }
22222 }
22223
22224 _ACEOF
22225
22226 cat >>$CONFIG_STATUS <<_ACEOF
22227
22228 #
22229 # CONFIG_FILES section.
22230 #
22231
22232 # No need to generate the scripts if there are no CONFIG_FILES.
22233 # This happens for instance when ./config.status config.h
22234 if test -n "\$CONFIG_FILES"; then
22235 # Protect against being on the right side of a sed subst in config.status.
22236 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22237 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22238 s,@SHELL@,$SHELL,;t t
22239 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22240 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22241 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22242 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22243 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22244 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22245 s,@exec_prefix@,$exec_prefix,;t t
22246 s,@prefix@,$prefix,;t t
22247 s,@program_transform_name@,$program_transform_name,;t t
22248 s,@bindir@,$bindir,;t t
22249 s,@sbindir@,$sbindir,;t t
22250 s,@libexecdir@,$libexecdir,;t t
22251 s,@datadir@,$datadir,;t t
22252 s,@sysconfdir@,$sysconfdir,;t t
22253 s,@sharedstatedir@,$sharedstatedir,;t t
22254 s,@localstatedir@,$localstatedir,;t t
22255 s,@libdir@,$libdir,;t t
22256 s,@includedir@,$includedir,;t t
22257 s,@oldincludedir@,$oldincludedir,;t t
22258 s,@infodir@,$infodir,;t t
22259 s,@mandir@,$mandir,;t t
22260 s,@build_alias@,$build_alias,;t t
22261 s,@host_alias@,$host_alias,;t t
22262 s,@target_alias@,$target_alias,;t t
22263 s,@DEFS@,$DEFS,;t t
22264 s,@ECHO_C@,$ECHO_C,;t t
22265 s,@ECHO_N@,$ECHO_N,;t t
22266 s,@ECHO_T@,$ECHO_T,;t t
22267 s,@LIBS@,$LIBS,;t t
22268 s,@MAINT@,$MAINT,;t t
22269 s,@build@,$build,;t t
22270 s,@build_cpu@,$build_cpu,;t t
22271 s,@build_vendor@,$build_vendor,;t t
22272 s,@build_os@,$build_os,;t t
22273 s,@host@,$host,;t t
22274 s,@host_cpu@,$host_cpu,;t t
22275 s,@host_vendor@,$host_vendor,;t t
22276 s,@host_os@,$host_os,;t t
22277 s,@CC@,$CC,;t t
22278 s,@CFLAGS@,$CFLAGS,;t t
22279 s,@LDFLAGS@,$LDFLAGS,;t t
22280 s,@CPPFLAGS@,$CPPFLAGS,;t t
22281 s,@ac_ct_CC@,$ac_ct_CC,;t t
22282 s,@EXEEXT@,$EXEEXT,;t t
22283 s,@OBJEXT@,$OBJEXT,;t t
22284 s,@LN_S@,$LN_S,;t t
22285 s,@CPP@,$CPP,;t t
22286 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22287 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22288 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22289 s,@RANLIB@,$RANLIB,;t t
22290 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22291 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22292 s,@EGREP@,$EGREP,;t t
22293 s,@LIBSOUND@,$LIBSOUND,;t t
22294 s,@SETARCH@,$SETARCH,;t t
22295 s,@SET_MAKE@,$SET_MAKE,;t t
22296 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22297 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22298 s,@GTK_LIBS@,$GTK_LIBS,;t t
22299 s,@ALLOCA@,$ALLOCA,;t t
22300 s,@liblockfile@,$liblockfile,;t t
22301 s,@LIBOBJS@,$LIBOBJS,;t t
22302 s,@NEED_SETGID@,$NEED_SETGID,;t t
22303 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22304 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22305 s,@version@,$version,;t t
22306 s,@configuration@,$configuration,;t t
22307 s,@canonical@,$canonical,;t t
22308 s,@srcdir@,$srcdir,;t t
22309 s,@lispdir@,$lispdir,;t t
22310 s,@locallisppath@,$locallisppath,;t t
22311 s,@lisppath@,$lisppath,;t t
22312 s,@x_default_search_path@,$x_default_search_path,;t t
22313 s,@etcdir@,$etcdir,;t t
22314 s,@archlibdir@,$archlibdir,;t t
22315 s,@docdir@,$docdir,;t t
22316 s,@bitmapdir@,$bitmapdir,;t t
22317 s,@gamedir@,$gamedir,;t t
22318 s,@gameuser@,$gameuser,;t t
22319 s,@c_switch_system@,$c_switch_system,;t t
22320 s,@c_switch_machine@,$c_switch_machine,;t t
22321 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22322 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22323 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22324 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22325 s,@machfile@,$machfile,;t t
22326 s,@opsysfile@,$opsysfile,;t t
22327 s,@carbon_appdir@,$carbon_appdir,;t t
22328 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22329 CEOF
22330
22331 _ACEOF
22332
22333 cat >>$CONFIG_STATUS <<\_ACEOF
22334 # Split the substitutions into bite-sized pieces for seds with
22335 # small command number limits, like on Digital OSF/1 and HP-UX.
22336 ac_max_sed_lines=48
22337 ac_sed_frag=1 # Number of current file.
22338 ac_beg=1 # First line for current file.
22339 ac_end=$ac_max_sed_lines # Line after last line for current file.
22340 ac_more_lines=:
22341 ac_sed_cmds=
22342 while $ac_more_lines; do
22343 if test $ac_beg -gt 1; then
22344 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22345 else
22346 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22347 fi
22348 if test ! -s $tmp/subs.frag; then
22349 ac_more_lines=false
22350 else
22351 # The purpose of the label and of the branching condition is to
22352 # speed up the sed processing (if there are no `@' at all, there
22353 # is no need to browse any of the substitutions).
22354 # These are the two extra sed commands mentioned above.
22355 (echo ':t
22356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22357 if test -z "$ac_sed_cmds"; then
22358 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22359 else
22360 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22361 fi
22362 ac_sed_frag=`expr $ac_sed_frag + 1`
22363 ac_beg=$ac_end
22364 ac_end=`expr $ac_end + $ac_max_sed_lines`
22365 fi
22366 done
22367 if test -z "$ac_sed_cmds"; then
22368 ac_sed_cmds=cat
22369 fi
22370 fi # test -n "$CONFIG_FILES"
22371
22372 _ACEOF
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22374 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22376 case $ac_file in
22377 - | *:- | *:-:* ) # input from stdin
22378 cat >$tmp/stdin
22379 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22381 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22383 * ) ac_file_in=$ac_file.in ;;
22384 esac
22385
22386 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22387 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389 X"$ac_file" : 'X\(//\)[^/]' \| \
22390 X"$ac_file" : 'X\(//\)$' \| \
22391 X"$ac_file" : 'X\(/\)' \| \
22392 . : '\(.\)' 2>/dev/null ||
22393 echo X"$ac_file" |
22394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22396 /^X\(\/\/\)$/{ s//\1/; q; }
22397 /^X\(\/\).*/{ s//\1/; q; }
22398 s/.*/./; q'`
22399 { if $as_mkdir_p; then
22400 mkdir -p "$ac_dir"
22401 else
22402 as_dir="$ac_dir"
22403 as_dirs=
22404 while test ! -d "$as_dir"; do
22405 as_dirs="$as_dir $as_dirs"
22406 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22408 X"$as_dir" : 'X\(//\)[^/]' \| \
22409 X"$as_dir" : 'X\(//\)$' \| \
22410 X"$as_dir" : 'X\(/\)' \| \
22411 . : '\(.\)' 2>/dev/null ||
22412 echo X"$as_dir" |
22413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22415 /^X\(\/\/\)$/{ s//\1/; q; }
22416 /^X\(\/\).*/{ s//\1/; q; }
22417 s/.*/./; q'`
22418 done
22419 test ! -n "$as_dirs" || mkdir $as_dirs
22420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22422 { (exit 1); exit 1; }; }; }
22423
22424 ac_builddir=.
22425
22426 if test "$ac_dir" != .; then
22427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22428 # A "../" for each directory in $ac_dir_suffix.
22429 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22430 else
22431 ac_dir_suffix= ac_top_builddir=
22432 fi
22433
22434 case $srcdir in
22435 .) # No --srcdir option. We are building in place.
22436 ac_srcdir=.
22437 if test -z "$ac_top_builddir"; then
22438 ac_top_srcdir=.
22439 else
22440 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22441 fi ;;
22442 [\\/]* | ?:[\\/]* ) # Absolute path.
22443 ac_srcdir=$srcdir$ac_dir_suffix;
22444 ac_top_srcdir=$srcdir ;;
22445 *) # Relative path.
22446 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22447 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22448 esac
22449
22450 # Do not use `cd foo && pwd` to compute absolute paths, because
22451 # the directories may not exist.
22452 case `pwd` in
22453 .) ac_abs_builddir="$ac_dir";;
22454 *)
22455 case "$ac_dir" in
22456 .) ac_abs_builddir=`pwd`;;
22457 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22458 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22459 esac;;
22460 esac
22461 case $ac_abs_builddir in
22462 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22463 *)
22464 case ${ac_top_builddir}. in
22465 .) ac_abs_top_builddir=$ac_abs_builddir;;
22466 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22467 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22468 esac;;
22469 esac
22470 case $ac_abs_builddir in
22471 .) ac_abs_srcdir=$ac_srcdir;;
22472 *)
22473 case $ac_srcdir in
22474 .) ac_abs_srcdir=$ac_abs_builddir;;
22475 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22476 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22477 esac;;
22478 esac
22479 case $ac_abs_builddir in
22480 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22481 *)
22482 case $ac_top_srcdir in
22483 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22484 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22485 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22486 esac;;
22487 esac
22488
22489
22490 case $INSTALL in
22491 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22492 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22493 esac
22494
22495 if test x"$ac_file" != x-; then
22496 { echo "$as_me:$LINENO: creating $ac_file" >&5
22497 echo "$as_me: creating $ac_file" >&6;}
22498 rm -f "$ac_file"
22499 fi
22500 # Let's still pretend it is `configure' which instantiates (i.e., don't
22501 # use $as_me), people would be surprised to read:
22502 # /* config.h. Generated by config.status. */
22503 if test x"$ac_file" = x-; then
22504 configure_input=
22505 else
22506 configure_input="$ac_file. "
22507 fi
22508 configure_input=$configure_input"Generated from `echo $ac_file_in |
22509 sed 's,.*/,,'` by configure."
22510
22511 # First look for the input files in the build tree, otherwise in the
22512 # src tree.
22513 ac_file_inputs=`IFS=:
22514 for f in $ac_file_in; do
22515 case $f in
22516 -) echo $tmp/stdin ;;
22517 [\\/$]*)
22518 # Absolute (can't be DOS-style, as IFS=:)
22519 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22520 echo "$as_me: error: cannot find input file: $f" >&2;}
22521 { (exit 1); exit 1; }; }
22522 echo "$f";;
22523 *) # Relative
22524 if test -f "$f"; then
22525 # Build tree
22526 echo "$f"
22527 elif test -f "$srcdir/$f"; then
22528 # Source tree
22529 echo "$srcdir/$f"
22530 else
22531 # /dev/null tree
22532 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22533 echo "$as_me: error: cannot find input file: $f" >&2;}
22534 { (exit 1); exit 1; }; }
22535 fi;;
22536 esac
22537 done` || { (exit 1); exit 1; }
22538 _ACEOF
22539 cat >>$CONFIG_STATUS <<_ACEOF
22540 sed "$ac_vpsub
22541 $extrasub
22542 _ACEOF
22543 cat >>$CONFIG_STATUS <<\_ACEOF
22544 :t
22545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22546 s,@configure_input@,$configure_input,;t t
22547 s,@srcdir@,$ac_srcdir,;t t
22548 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22549 s,@top_srcdir@,$ac_top_srcdir,;t t
22550 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22551 s,@builddir@,$ac_builddir,;t t
22552 s,@abs_builddir@,$ac_abs_builddir,;t t
22553 s,@top_builddir@,$ac_top_builddir,;t t
22554 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22555 s,@INSTALL@,$ac_INSTALL,;t t
22556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22557 rm -f $tmp/stdin
22558 if test x"$ac_file" != x-; then
22559 mv $tmp/out $ac_file
22560 else
22561 cat $tmp/out
22562 rm -f $tmp/out
22563 fi
22564
22565 done
22566 _ACEOF
22567 cat >>$CONFIG_STATUS <<\_ACEOF
22568
22569 #
22570 # CONFIG_HEADER section.
22571 #
22572
22573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22575 #
22576 # ac_d sets the value in "#define NAME VALUE" lines.
22577 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22578 ac_dB='[ ].*$,\1#\2'
22579 ac_dC=' '
22580 ac_dD=',;t'
22581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22582 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22583 ac_uB='$,\1#\2define\3'
22584 ac_uC=' '
22585 ac_uD=',;t'
22586
22587 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22589 case $ac_file in
22590 - | *:- | *:-:* ) # input from stdin
22591 cat >$tmp/stdin
22592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22596 * ) ac_file_in=$ac_file.in ;;
22597 esac
22598
22599 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22600 echo "$as_me: creating $ac_file" >&6;}
22601
22602 # First look for the input files in the build tree, otherwise in the
22603 # src tree.
22604 ac_file_inputs=`IFS=:
22605 for f in $ac_file_in; do
22606 case $f in
22607 -) echo $tmp/stdin ;;
22608 [\\/$]*)
22609 # Absolute (can't be DOS-style, as IFS=:)
22610 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612 { (exit 1); exit 1; }; }
22613 # Do quote $f, to prevent DOS paths from being IFS'd.
22614 echo "$f";;
22615 *) # Relative
22616 if test -f "$f"; then
22617 # Build tree
22618 echo "$f"
22619 elif test -f "$srcdir/$f"; then
22620 # Source tree
22621 echo "$srcdir/$f"
22622 else
22623 # /dev/null tree
22624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22625 echo "$as_me: error: cannot find input file: $f" >&2;}
22626 { (exit 1); exit 1; }; }
22627 fi;;
22628 esac
22629 done` || { (exit 1); exit 1; }
22630 # Remove the trailing spaces.
22631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22632
22633 _ACEOF
22634
22635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22636 # `conftest.undefs', that substitutes the proper values into
22637 # config.h.in to produce config.h. The first handles `#define'
22638 # templates, and the second `#undef' templates.
22639 # And first: Protect against being on the right side of a sed subst in
22640 # config.status. Protect against being in an unquoted here document
22641 # in config.status.
22642 rm -f conftest.defines conftest.undefs
22643 # Using a here document instead of a string reduces the quoting nightmare.
22644 # Putting comments in sed scripts is not portable.
22645 #
22646 # `end' is used to avoid that the second main sed command (meant for
22647 # 0-ary CPP macros) applies to n-ary macro definitions.
22648 # See the Autoconf documentation for `clear'.
22649 cat >confdef2sed.sed <<\_ACEOF
22650 s/[\\&,]/\\&/g
22651 s,[\\$`],\\&,g
22652 t clear
22653 : clear
22654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22655 t end
22656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22657 : end
22658 _ACEOF
22659 # If some macros were called several times there might be several times
22660 # the same #defines, which is useless. Nevertheless, we may not want to
22661 # sort them, since we want the *last* AC-DEFINE to be honored.
22662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22664 rm -f confdef2sed.sed
22665
22666 # This sed command replaces #undef with comments. This is necessary, for
22667 # example, in the case of _POSIX_SOURCE, which is predefined and required
22668 # on some systems where configure will not decide to define it.
22669 cat >>conftest.undefs <<\_ACEOF
22670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22671 _ACEOF
22672
22673 # Break up conftest.defines because some shells have a limit on the size
22674 # of here documents, and old seds have small limits too (100 cmds).
22675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22678 echo ' :' >>$CONFIG_STATUS
22679 rm -f conftest.tail
22680 while grep . conftest.defines >/dev/null
22681 do
22682 # Write a limited-size here document to $tmp/defines.sed.
22683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22684 # Speed up: don't consider the non `#define' lines.
22685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22686 # Work around the forget-to-reset-the-flag bug.
22687 echo 't clr' >>$CONFIG_STATUS
22688 echo ': clr' >>$CONFIG_STATUS
22689 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22690 echo 'CEOF
22691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22692 rm -f $tmp/in
22693 mv $tmp/out $tmp/in
22694 ' >>$CONFIG_STATUS
22695 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22696 rm -f conftest.defines
22697 mv conftest.tail conftest.defines
22698 done
22699 rm -f conftest.defines
22700 echo ' fi # grep' >>$CONFIG_STATUS
22701 echo >>$CONFIG_STATUS
22702
22703 # Break up conftest.undefs because some shells have a limit on the size
22704 # of here documents, and old seds have small limits too (100 cmds).
22705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22706 rm -f conftest.tail
22707 while grep . conftest.undefs >/dev/null
22708 do
22709 # Write a limited-size here document to $tmp/undefs.sed.
22710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22711 # Speed up: don't consider the non `#undef'
22712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22713 # Work around the forget-to-reset-the-flag bug.
22714 echo 't clr' >>$CONFIG_STATUS
22715 echo ': clr' >>$CONFIG_STATUS
22716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22717 echo 'CEOF
22718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22719 rm -f $tmp/in
22720 mv $tmp/out $tmp/in
22721 ' >>$CONFIG_STATUS
22722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22723 rm -f conftest.undefs
22724 mv conftest.tail conftest.undefs
22725 done
22726 rm -f conftest.undefs
22727
22728 cat >>$CONFIG_STATUS <<\_ACEOF
22729 # Let's still pretend it is `configure' which instantiates (i.e., don't
22730 # use $as_me), people would be surprised to read:
22731 # /* config.h. Generated by config.status. */
22732 if test x"$ac_file" = x-; then
22733 echo "/* Generated by configure. */" >$tmp/config.h
22734 else
22735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22736 fi
22737 cat $tmp/in >>$tmp/config.h
22738 rm -f $tmp/in
22739 if test x"$ac_file" != x-; then
22740 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22742 echo "$as_me: $ac_file is unchanged" >&6;}
22743 else
22744 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22746 X"$ac_file" : 'X\(//\)[^/]' \| \
22747 X"$ac_file" : 'X\(//\)$' \| \
22748 X"$ac_file" : 'X\(/\)' \| \
22749 . : '\(.\)' 2>/dev/null ||
22750 echo X"$ac_file" |
22751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22753 /^X\(\/\/\)$/{ s//\1/; q; }
22754 /^X\(\/\).*/{ s//\1/; q; }
22755 s/.*/./; q'`
22756 { if $as_mkdir_p; then
22757 mkdir -p "$ac_dir"
22758 else
22759 as_dir="$ac_dir"
22760 as_dirs=
22761 while test ! -d "$as_dir"; do
22762 as_dirs="$as_dir $as_dirs"
22763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765 X"$as_dir" : 'X\(//\)[^/]' \| \
22766 X"$as_dir" : 'X\(//\)$' \| \
22767 X"$as_dir" : 'X\(/\)' \| \
22768 . : '\(.\)' 2>/dev/null ||
22769 echo X"$as_dir" |
22770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22772 /^X\(\/\/\)$/{ s//\1/; q; }
22773 /^X\(\/\).*/{ s//\1/; q; }
22774 s/.*/./; q'`
22775 done
22776 test ! -n "$as_dirs" || mkdir $as_dirs
22777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22779 { (exit 1); exit 1; }; }; }
22780
22781 rm -f $ac_file
22782 mv $tmp/config.h $ac_file
22783 fi
22784 else
22785 cat $tmp/config.h
22786 rm -f $tmp/config.h
22787 fi
22788 done
22789 _ACEOF
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22791
22792 #
22793 # CONFIG_COMMANDS section.
22794 #
22795 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800 X"$ac_dest" : 'X\(//\)[^/]' \| \
22801 X"$ac_dest" : 'X\(//\)$' \| \
22802 X"$ac_dest" : 'X\(/\)' \| \
22803 . : '\(.\)' 2>/dev/null ||
22804 echo X"$ac_dest" |
22805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22807 /^X\(\/\/\)$/{ s//\1/; q; }
22808 /^X\(\/\).*/{ s//\1/; q; }
22809 s/.*/./; q'`
22810 { if $as_mkdir_p; then
22811 mkdir -p "$ac_dir"
22812 else
22813 as_dir="$ac_dir"
22814 as_dirs=
22815 while test ! -d "$as_dir"; do
22816 as_dirs="$as_dir $as_dirs"
22817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22819 X"$as_dir" : 'X\(//\)[^/]' \| \
22820 X"$as_dir" : 'X\(//\)$' \| \
22821 X"$as_dir" : 'X\(/\)' \| \
22822 . : '\(.\)' 2>/dev/null ||
22823 echo X"$as_dir" |
22824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22826 /^X\(\/\/\)$/{ s//\1/; q; }
22827 /^X\(\/\).*/{ s//\1/; q; }
22828 s/.*/./; q'`
22829 done
22830 test ! -n "$as_dirs" || mkdir $as_dirs
22831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22833 { (exit 1); exit 1; }; }; }
22834
22835 ac_builddir=.
22836
22837 if test "$ac_dir" != .; then
22838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22839 # A "../" for each directory in $ac_dir_suffix.
22840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22841 else
22842 ac_dir_suffix= ac_top_builddir=
22843 fi
22844
22845 case $srcdir in
22846 .) # No --srcdir option. We are building in place.
22847 ac_srcdir=.
22848 if test -z "$ac_top_builddir"; then
22849 ac_top_srcdir=.
22850 else
22851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22852 fi ;;
22853 [\\/]* | ?:[\\/]* ) # Absolute path.
22854 ac_srcdir=$srcdir$ac_dir_suffix;
22855 ac_top_srcdir=$srcdir ;;
22856 *) # Relative path.
22857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22859 esac
22860
22861 # Do not use `cd foo && pwd` to compute absolute paths, because
22862 # the directories may not exist.
22863 case `pwd` in
22864 .) ac_abs_builddir="$ac_dir";;
22865 *)
22866 case "$ac_dir" in
22867 .) ac_abs_builddir=`pwd`;;
22868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22870 esac;;
22871 esac
22872 case $ac_abs_builddir in
22873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22874 *)
22875 case ${ac_top_builddir}. in
22876 .) ac_abs_top_builddir=$ac_abs_builddir;;
22877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22879 esac;;
22880 esac
22881 case $ac_abs_builddir in
22882 .) ac_abs_srcdir=$ac_srcdir;;
22883 *)
22884 case $ac_srcdir in
22885 .) ac_abs_srcdir=$ac_abs_builddir;;
22886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22888 esac;;
22889 esac
22890 case $ac_abs_builddir in
22891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22892 *)
22893 case $ac_top_srcdir in
22894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22897 esac;;
22898 esac
22899
22900
22901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22902 echo "$as_me: executing $ac_dest commands" >&6;}
22903 case $ac_dest in
22904 default )
22905
22906 ### Make the necessary directories, if they don't exist.
22907 for dir in etc lisp ; do
22908 test -d ${dir} || mkdir ${dir}
22909 done
22910
22911 # Build src/Makefile from ${srcdir}/src/Makefile.c
22912 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22913 # This must be done after src/config.h is built, since we rely on that file.
22914
22915 # Now get this: Some word that is part of the ${srcdir} directory name
22916 # or the ${configuration} value might, just might, happen to be an
22917 # identifier like `sun4' or `i386' or something, and be predefined by
22918 # the C preprocessor to some helpful value like 1, or maybe the empty
22919 # string. Needless to say consequent macro substitutions are less
22920 # than conducive to the makefile finding the correct directory.
22921 undefs="`echo $top_srcdir $configuration $canonical |
22922 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22923 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22924 `"
22925
22926 echo creating src/epaths.h
22927 ${MAKE-make} epaths-force
22928
22929 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22930 # `..' to `. .' unless invoked with -traditional
22931
22932 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22933 CPPFLAGS="$CPPFLAGS -traditional"
22934 fi
22935
22936 echo creating lib-src/Makefile
22937 ( cd lib-src
22938 rm -f junk.c junk1.c junk2.c
22939 sed -e '/start of cpp stuff/q' \
22940 < Makefile.c > junk1.c
22941 sed -e '1,/start of cpp stuff/d'\
22942 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22943 < Makefile.c > junk.c
22944 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22945 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22946 cat junk1.c junk2.c > Makefile.new
22947 rm -f junk.c junk1.c junk2.c
22948 chmod 444 Makefile.new
22949 mv -f Makefile.new Makefile
22950 )
22951
22952 echo creating src/Makefile
22953 ( cd src
22954 rm -f junk.c junk1.c junk2.c
22955 sed -e '/start of cpp stuff/q' \
22956 < Makefile.c > junk1.c
22957 sed -e '1,/start of cpp stuff/d'\
22958 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22959 < Makefile.c > junk.c
22960 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22961 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22962 cat junk1.c junk2.c > Makefile.new
22963 rm -f junk.c junk1.c junk2.c
22964 chmod 444 Makefile.new
22965 mv -f Makefile.new Makefile
22966 )
22967
22968 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22969 echo creating src/.gdbinit
22970 echo source $srcdir/src/.gdbinit > src/.gdbinit
22971 fi
22972
22973 # This is how we know whether to re-run configure in certain cases.
22974 touch src/config.stamp
22975
22976 ;;
22977 esac
22978 done
22979 _ACEOF
22980
22981 cat >>$CONFIG_STATUS <<\_ACEOF
22982
22983 { (exit 0); exit 0; }
22984 _ACEOF
22985 chmod +x $CONFIG_STATUS
22986 ac_clean_files=$ac_clean_files_save
22987
22988
22989 # configure is writing to config.log, and then calls config.status.
22990 # config.status does its own redirection, appending to config.log.
22991 # Unfortunately, on DOS this fails, as config.log is still kept open
22992 # by configure, so config.status won't be able to write to it; its
22993 # output is simply discarded. So we exec the FD to /dev/null,
22994 # effectively closing config.log, so it can be properly (re)opened and
22995 # appended to by config.status. When coming back to configure, we
22996 # need to make the FD available again.
22997 if test "$no_create" != yes; then
22998 ac_cs_success=:
22999 ac_config_status_args=
23000 test "$silent" = yes &&
23001 ac_config_status_args="$ac_config_status_args --quiet"
23002 exec 5>/dev/null
23003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23004 exec 5>>config.log
23005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23006 # would make configure fail if this is the last instruction.
23007 $ac_cs_success || { (exit 1); exit 1; }
23008 fi
23009
23010