Merged from miles@gnu.org--gnu-2005 (patch 681)
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd "$ac_popdir"
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1722 ;;
1723
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1728
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1732
1733 fi
1734
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1751 ;;
1752
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1765 ;;
1766
1767 ## LynxOS ports
1768 *-*-lynxos* )
1769 opsys=lynxos
1770 case "${canonical}" in
1771 i[3456]86-*-lynxos*) machine=intel386 ;;
1772 powerpc-*-lynxos*) machine=powerpc ;;
1773 esac
1774 ;;
1775
1776 ## Acorn RISCiX:
1777 arm-acorn-riscix1.1* )
1778 machine=acorn opsys=riscix1-1
1779 ;;
1780 arm-acorn-riscix1.2* | arm-acorn-riscix )
1781 ## This name is riscix12 instead of riscix1.2
1782 ## to avoid a file name conflict on MSDOS.
1783 machine=acorn opsys=riscix12
1784 ;;
1785
1786 ## BSDI ports
1787 *-*-bsdi* )
1788 opsys=bsdi
1789 case "${canonical}" in
1790 i[345]86-*-bsdi*) machine=intel386 ;;
1791 sparc-*-bsdi*) machine=sparc ;;
1792 powerpc-*-bsdi*) machine=macppc ;;
1793 esac
1794 case "${canonical}" in
1795 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1796 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1797 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1798 *-*-bsdi3* ) opsys=bsdos3 ;;
1799 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1800 esac
1801 ;;
1802
1803 ## Alliant machines
1804 ## Strictly speaking, we need the version of the alliant operating
1805 ## system to choose the right machine file, but currently the
1806 ## configuration name doesn't tell us enough to choose the right
1807 ## one; we need to give alliants their own operating system name to
1808 ## do this right. When someone cares, they can help us.
1809 fx80-alliant-* )
1810 machine=alliant4 opsys=bsd4-2
1811 ;;
1812 i860-alliant-* )
1813 machine=alliant-2800 opsys=bsd4-3
1814 ;;
1815
1816 ## Alpha (DEC) machines.
1817 alpha*-dec-osf* )
1818 machine=alpha opsys=osf1
1819 # This is needed to find X11R6.1 libraries for certain tests.
1820 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1821 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1823 # due to non-traditional preprocessing with the current compiler
1824 # defaults. OSF 4 can also have that compiler version, and there
1825 # seems always to have been a usable /usr/bin/cpp.
1826 NON_GNU_CPP=/usr/bin/cpp
1827 case "${canonical}" in
1828 alpha*-dec-osf[5-9]*)
1829 opsys=osf5-0 ;;
1830 esac
1831 ;;
1832
1833 alpha*-*-linux-gnu* )
1834 machine=alpha opsys=gnu-linux
1835 ;;
1836
1837 arm*-*-linux-gnu* )
1838 machine=arm opsys=gnu-linux
1839 ;;
1840
1841 ## Altos 3068
1842 m68*-altos-sysv* )
1843 machine=altos opsys=usg5-2
1844 ;;
1845
1846 ## Amdahl UTS
1847 580-amdahl-sysv* )
1848 machine=amdahl opsys=usg5-2-2
1849 ;;
1850
1851 ## Apollo, Domain/OS
1852 m68*-apollo-* )
1853 machine=apollo opsys=bsd4-3
1854 ;;
1855
1856 ## AT&T 3b2, 3b5, 3b15, 3b20
1857 we32k-att-sysv* )
1858 machine=att3b opsys=usg5-2-2
1859 ;;
1860
1861 ## AT&T 3b1 - The Mighty Unix PC!
1862 m68*-att-sysv* )
1863 machine=7300 opsys=usg5-2-2
1864 ;;
1865
1866 ## Bull dpx20
1867 rs6000-bull-bosx* )
1868 machine=ibmrs6000 opsys=aix3-2
1869 ;;
1870
1871 ## Bull dpx2
1872 m68*-bull-sysv3* )
1873 machine=dpx2 opsys=usg5-3
1874 ;;
1875
1876 ## Bull sps7
1877 m68*-bull-sysv2* )
1878 machine=sps7 opsys=usg5-2
1879 ;;
1880
1881 ## CCI 5/32, 6/32 -- see "Tahoe".
1882
1883 ## Celerity
1884 ## I don't know what configuration name to use for this; config.sub
1885 ## doesn't seem to know anything about it. Hey, Celerity users, get
1886 ## in touch with us!
1887 celerity-celerity-bsd* )
1888 machine=celerity opsys=bsd4-2
1889 ;;
1890
1891 ## Clipper
1892 ## What operating systems does this chip run that Emacs has been
1893 ## tested on?
1894 clipper-* )
1895 machine=clipper
1896 ## We'll use the catch-all code at the bottom to guess the
1897 ## operating system.
1898 ;;
1899
1900 ## Compaq Nonstop
1901 mips-compaq-nonstopux* )
1902 machine=nonstopux opsys=nonstopux
1903 ;;
1904
1905 ## Convex
1906 *-convex-bsd* | *-convex-convexos* )
1907 machine=convex opsys=bsd4-3
1908 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1909 NON_GNU_CPP="cc -E -P"
1910 ;;
1911
1912 ## Cubix QBx/386
1913 i[3456]86-cubix-sysv* )
1914 machine=intel386 opsys=usg5-3
1915 ;;
1916
1917 ## Cydra 5
1918 cydra*-cydrome-sysv* )
1919 machine=cydra5 opsys=usg5-3
1920 ;;
1921
1922 ## Data General AViiON Machines
1923 ## DG changed naming conventions with the release of 5.4.4.10, they
1924 ## dropped the initial 5.4 but left the intervening R. Because of the
1925 ## R this shouldn't conflict with older versions of the OS (which I
1926 ## think were named like dgux4.*). In addition, DG new AViiONs series
1927 ## uses either Motorola M88k or Intel Pentium CPUs.
1928 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1929 machine=aviion opsys=dgux4
1930 ;;
1931 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1932 ## This name is dgux5-4-3 instead of dgux5-4r3
1933 ## to avoid a file name conflict on MSDOS.
1934 machine=aviion opsys=dgux5-4-3
1935 ;;
1936 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1937 machine=aviion opsys=dgux5-4r2
1938 ;;
1939 m88k-dg-dgux* )
1940 machine=aviion opsys=dgux
1941 ;;
1942
1943 ## Data General AViiON Intel (x86) Machines
1944 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1945 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1946 i[345]86-dg-dguxR4* )
1947 machine=aviion-intel opsys=dgux4
1948 ;;
1949
1950 ## DECstations
1951 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1952 machine=pmax opsys=bsd4-2
1953 ;;
1954 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1955 machine=pmax opsys=bsd4-3
1956 ;;
1957 mips-dec-ultrix* )
1958 machine=pmax opsys=ultrix4-3
1959 ;;
1960 mips-dec-osf* )
1961 machine=pmax opsys=osf1
1962 ;;
1963 mips-dec-mach_bsd4.3* )
1964 machine=pmax opsys=mach-bsd4-3
1965 ;;
1966
1967 ## Motorola Delta machines
1968 m68k-motorola-sysv* | m68000-motorola-sysv* )
1969 machine=delta opsys=usg5-3
1970 if test -z "`type gnucc | grep 'not found'`"
1971 then
1972 if test -s /etc/167config
1973 then CC="gnucc -m68040"
1974 else CC="gnucc -m68881"
1975 fi
1976 else
1977 if test -z "`type gcc | grep 'not found'`"
1978 then CC=gcc
1979 else CC=cc
1980 fi
1981 fi
1982 ;;
1983 m88k-motorola-sysv4* )
1984 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1985 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1986 # I hope there are not other 4.0 versions for this machine
1987 # which really need usg5-4 instead.
1988 machine=delta88k opsys=usg5-4-2
1989 ;;
1990 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1991 machine=delta88k opsys=usg5-3
1992 ;;
1993
1994 ## Dual machines
1995 m68*-dual-sysv* )
1996 machine=dual opsys=usg5-2
1997 ;;
1998 m68*-dual-uniplus* )
1999 machine=dual opsys=unipl5-2
2000 ;;
2001
2002 ## Elxsi 6400
2003 elxsi-elxsi-sysv* )
2004 machine=elxsi opsys=usg5-2
2005 ;;
2006
2007 ## Encore machines
2008 ns16k-encore-bsd* )
2009 machine=ns16000 opsys=umax
2010 ;;
2011
2012 ## The GEC 63 - apparently, this port isn't really finished yet.
2013 # I'm sure we finished off the last of the machines, though. -- fx
2014
2015 ## Gould Power Node and NP1
2016 pn-gould-bsd4.2* )
2017 machine=gould opsys=bsd4-2
2018 ;;
2019 pn-gould-bsd4.3* )
2020 machine=gould opsys=bsd4-3
2021 ;;
2022 np1-gould-bsd* )
2023 machine=gould-np1 opsys=bsd4-3
2024 ;;
2025
2026 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2027 ## as far as Emacs is concerned).
2028 m88k-harris-cxux* )
2029 # Build needs to be different on 7.0 and later releases
2030 case "`uname -r`" in
2031 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2032 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2033 esac
2034 NON_GNU_CPP="/lib/cpp"
2035 ;;
2036 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2037 m68k-harris-cxux* )
2038 machine=nh3000 opsys=cxux
2039 ;;
2040 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2041 powerpc-harris-powerunix )
2042 machine=nh6000 opsys=powerunix
2043 NON_GNU_CPP="cc -Xo -E -P"
2044 ;;
2045 ## SR2001/SR2201 running HI-UX/MPP
2046 hppa1.1-hitachi-hiuxmpp* )
2047 machine=sr2k opsys=hiuxmpp
2048 ;;
2049 hppa1.1-hitachi-hiuxwe2* )
2050 machine=sr2k opsys=hiuxwe2
2051 ;;
2052 ## Honeywell XPS100
2053 xps*-honeywell-sysv* )
2054 machine=xps100 opsys=usg5-2
2055 ;;
2056
2057 ## HP 9000 series 200 or 300
2058 m68*-hp-bsd* )
2059 machine=hp9000s300 opsys=bsd4-3
2060 ;;
2061 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2062 m68*-hp-hpux* )
2063 case "`uname -r`" in
2064 ## Someone's system reports A.B8.05 for this.
2065 ## I wonder what other possibilities there are.
2066 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2067 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2069 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2070 *) machine=hp9000s300 opsys=hpux ;;
2071 esac
2072 ;;
2073
2074 ## HP 9000 series 700 and 800, running HP/UX
2075 hppa*-hp-hpux7* )
2076 machine=hp800 opsys=hpux
2077 ;;
2078 hppa*-hp-hpux8* )
2079 machine=hp800 opsys=hpux8
2080 ;;
2081 hppa*-hp-hpux9shr* )
2082 machine=hp800 opsys=hpux9shr
2083 ;;
2084 hppa*-hp-hpux9* )
2085 machine=hp800 opsys=hpux9
2086 ;;
2087 hppa*-hp-hpux10.2* )
2088 machine=hp800 opsys=hpux10-20
2089 ;;
2090 hppa*-hp-hpux10* )
2091 machine=hp800 opsys=hpux10
2092 ;;
2093 hppa*-hp-hpux1[1-9]* )
2094 machine=hp800 opsys=hpux11
2095 ;;
2096
2097 hppa*-*-linux-gnu* )
2098 machine=hp800 opsys=gnu-linux
2099 ;;
2100
2101 ## HP 9000 series 700 and 800, running HP/UX
2102 hppa*-hp-hpux* )
2103 ## Cross-compilation? Nah!
2104 case "`uname -r`" in
2105 ## Someone's system reports A.B8.05 for this.
2106 ## I wonder what other possibilities there are.
2107 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2108 *.08.* ) machine=hp800 opsys=hpux8 ;;
2109 *.09.* ) machine=hp800 opsys=hpux9 ;;
2110 *) machine=hp800 opsys=hpux10 ;;
2111 esac
2112 ;;
2113 hppa*-*-nextstep* )
2114 machine=hp800 opsys=nextstep
2115 ;;
2116
2117 ## Orion machines
2118 orion-orion-bsd* )
2119 machine=orion opsys=bsd4-2
2120 ;;
2121 clipper-orion-bsd* )
2122 machine=orion105 opsys=bsd4-2
2123 ;;
2124
2125 ## IBM machines
2126 i[3456]86-ibm-aix1.1* )
2127 machine=ibmps2-aix opsys=usg5-2-2
2128 ;;
2129 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2130 machine=ibmps2-aix opsys=usg5-3
2131 ;;
2132 i370-ibm-aix*)
2133 machine=ibm370aix opsys=usg5-3
2134 ;;
2135 s390-*-linux-gnu* )
2136 machine=ibms390 opsys=gnu-linux
2137 ;;
2138 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2139 machine=ibmrs6000 opsys=aix3-1
2140 ;;
2141 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2142 machine=ibmrs6000 opsys=aix3-2-5
2143 ;;
2144 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2145 machine=ibmrs6000 opsys=aix4-1
2146 ;;
2147 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2148 machine=ibmrs6000 opsys=aix4-2
2149 ;;
2150 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2151 machine=ibmrs6000 opsys=aix4-2
2152 ;;
2153 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2154 machine=ibmrs6000 opsys=aix4
2155 ;;
2156 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2157 machine=ibmrs6000 opsys=aix4-1
2158 ;;
2159 rs6000-ibm-aix* | powerpc-ibm-aix* )
2160 machine=ibmrs6000 opsys=aix3-2
2161 ;;
2162 romp-ibm-bsd4.3* )
2163 machine=ibmrt opsys=bsd4-3
2164 ;;
2165 romp-ibm-bsd4.2* )
2166 machine=ibmrt opsys=bsd4-2
2167 ;;
2168 romp-ibm-aos4.3* )
2169 machine=ibmrt opsys=bsd4-3
2170 ;;
2171 romp-ibm-aos4.2* )
2172 machine=ibmrt opsys=bsd4-2
2173 ;;
2174 romp-ibm-aos* )
2175 machine=ibmrt opsys=bsd4-3
2176 ;;
2177 romp-ibm-bsd* )
2178 machine=ibmrt opsys=bsd4-3
2179 ;;
2180 romp-ibm-aix* )
2181 machine=ibmrt-aix opsys=usg5-2-2
2182 ;;
2183
2184 ## Integrated Solutions `Optimum V'
2185 m68*-isi-bsd4.2* )
2186 machine=isi-ov opsys=bsd4-2
2187 ;;
2188 m68*-isi-bsd4.3* )
2189 machine=isi-ov opsys=bsd4-3
2190 ;;
2191
2192 ## Intel 386 machines where we do care about the manufacturer
2193 i[3456]86-intsys-sysv* )
2194 machine=is386 opsys=usg5-2-2
2195 ;;
2196
2197 ## Prime EXL
2198 i[3456]86-prime-sysv* )
2199 machine=i386 opsys=usg5-3
2200 ;;
2201
2202 ## Sequent Symmetry running Dynix
2203 i[3456]86-sequent-bsd* )
2204 machine=symmetry opsys=bsd4-3
2205 ;;
2206
2207 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2208 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2209 machine=sequent-ptx opsys=ptx4
2210 NON_GNU_CPP=/lib/cpp
2211 ;;
2212
2213 ## Sequent Symmetry running DYNIX/ptx
2214 ## Use the old cpp rather than the newer ANSI one.
2215 i[3456]86-sequent-ptx* )
2216 machine=sequent-ptx opsys=ptx
2217 NON_GNU_CPP="/lib/cpp"
2218 ;;
2219
2220 ## ncr machine running svr4.3.
2221 i[3456]86-ncr-sysv4.3 )
2222 machine=ncr386 opsys=usg5-4-3
2223 ;;
2224
2225 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2226 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2227 i[3456]86-ncr-sysv* )
2228 machine=ncr386 opsys=usg5-4-2
2229 ;;
2230
2231 ## Intel Paragon OSF/1
2232 i860-intel-osf1* )
2233 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2234 ;;
2235
2236 ## Intel 860
2237 i860-*-sysv4* )
2238 machine=i860 opsys=usg5-4
2239 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2240 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2241 ;;
2242
2243 ## Macintosh PowerPC
2244 powerpc*-*-linux-gnu* )
2245 machine=macppc opsys=gnu-linux
2246 ;;
2247
2248 ## Masscomp machines
2249 m68*-masscomp-rtu* )
2250 machine=masscomp opsys=rtu
2251 ;;
2252
2253 ## Megatest machines
2254 m68*-megatest-bsd* )
2255 machine=mega68 opsys=bsd4-2
2256 ;;
2257
2258 ## Workstations sold by MIPS
2259 ## This is not necessarily all workstations using the MIPS processor -
2260 ## Irises are produced by SGI, and DECstations by DEC.
2261
2262 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2263 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2264 ## it gives for choosing between the alternatives seems to be "Use
2265 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2266 ## the BSD world." I'll assume that these are instructions for
2267 ## handling two odd situations, and that every other situation
2268 ## should use mips.h and usg5-2-2, they being listed first.
2269 mips-mips-usg* )
2270 machine=mips4
2271 ## Fall through to the general code at the bottom to decide on the OS.
2272 ;;
2273 mips-mips-riscos4* )
2274 machine=mips4 opsys=bsd4-3
2275 NON_GNU_CC="cc -systype bsd43"
2276 NON_GNU_CPP="cc -systype bsd43 -E"
2277 ;;
2278 mips-mips-riscos5* )
2279 machine=mips4 opsys=riscos5
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2282 ;;
2283 mips-mips-bsd* )
2284 machine=mips opsys=bsd4-3
2285 ;;
2286 mips-mips-* )
2287 machine=mips opsys=usg5-2-2
2288 ;;
2289
2290 ## NeXT
2291 m68*-next-* | m68k-*-nextstep* )
2292 machine=m68k opsys=nextstep
2293 ;;
2294
2295 ## The complete machine from National Semiconductor
2296 ns32k-ns-genix* )
2297 machine=ns32000 opsys=usg5-2
2298 ;;
2299
2300 ## NCR machines
2301 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2302 machine=tower32 opsys=usg5-2-2
2303 ;;
2304 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2305 machine=tower32v3 opsys=usg5-3
2306 ;;
2307
2308 ## NEC EWS4800
2309 mips-nec-sysv4*)
2310 machine=ews4800 opsys=ux4800
2311 ;;
2312
2313 ## Nixdorf Targon 31
2314 m68*-nixdorf-sysv* )
2315 machine=targon31 opsys=usg5-2-2
2316 ;;
2317
2318 ## Nu (TI or LMI)
2319 m68*-nu-sysv* )
2320 machine=nu opsys=usg5-2
2321 ;;
2322
2323 ## Plexus
2324 m68*-plexus-sysv* )
2325 machine=plexus opsys=usg5-2
2326 ;;
2327
2328 ## Pyramid machines
2329 ## I don't really have any idea what sort of processor the Pyramid has,
2330 ## so I'm assuming it is its own architecture.
2331 pyramid-pyramid-bsd* )
2332 machine=pyramid opsys=bsd4-2
2333 ;;
2334
2335 ## Sequent Balance
2336 ns32k-sequent-bsd4.2* )
2337 machine=sequent opsys=bsd4-2
2338 ;;
2339 ns32k-sequent-bsd4.3* )
2340 machine=sequent opsys=bsd4-3
2341 ;;
2342
2343 ## Siemens Nixdorf
2344 mips-siemens-sysv* | mips-sni-sysv*)
2345 machine=mips-siemens opsys=usg5-4
2346 NON_GNU_CC=/usr/ccs/bin/cc
2347 NON_GNU_CPP=/usr/ccs/lib/cpp
2348 ;;
2349
2350 ## Silicon Graphics machines
2351 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2352 m68*-sgi-iris3.5* )
2353 machine=irist opsys=iris3-5
2354 ;;
2355 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2356 machine=irist opsys=iris3-6
2357 ;;
2358 ## Iris 4D
2359 mips-sgi-irix3* )
2360 machine=iris4d opsys=irix3-3
2361 ;;
2362 mips-sgi-irix4* )
2363 machine=iris4d opsys=irix4-0
2364 ;;
2365 mips-sgi-irix6.5 )
2366 machine=iris4d opsys=irix6-5
2367 # Without defining _LANGUAGE_C, things get masked out in the headers
2368 # so that, for instance, grepping for `free' in stdlib.h fails and
2369 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2370 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2371 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2372 ;;
2373 mips-sgi-irix6* )
2374 machine=iris4d opsys=irix6-0
2375 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2376 # but presumably it does no harm.
2377 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2378 # -32 probably isn't necessary in later v.6s -- anyone know which?
2379 NON_GCC_TEST_OPTIONS=-32
2380 ;;
2381 mips-sgi-irix5.[01]* )
2382 machine=iris4d opsys=irix5-0
2383 ;;
2384 mips-sgi-irix5* | mips-sgi-irix* )
2385 machine=iris4d opsys=irix5-2
2386 ;;
2387
2388 ## SONY machines
2389 m68*-sony-bsd4.2* )
2390 machine=news opsys=bsd4-2
2391 ;;
2392 m68*-sony-bsd4.3* )
2393 machine=news opsys=bsd4-3
2394 ;;
2395 m68*-sony-newsos3* | m68*-sony-news3*)
2396 machine=news opsys=bsd4-3
2397 ;;
2398 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2399 machine=news-risc opsys=bsd4-3
2400 ;;
2401 mips-sony-newsos6* )
2402 machine=news-r6 opsys=newsos6
2403 ;;
2404 mips-sony-news* )
2405 machine=news-risc opsys=newsos5
2406 ;;
2407
2408 ## Stride
2409 m68*-stride-sysv* )
2410 machine=stride opsys=usg5-2
2411 ;;
2412
2413 ## Suns
2414 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2415 machine=sparc opsys=gnu-linux
2416 ;;
2417
2418 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2419 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2420 | rs6000-*-solaris2*)
2421 case "${canonical}" in
2422 m68*-sunos1* ) machine=sun1 ;;
2423 m68*-sunos2* ) machine=sun2 ;;
2424 m68* ) machine=sun3 ;;
2425 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2426 i[3456]86-*-* ) machine=intel386 ;;
2427 powerpcle* ) machine=powerpcle ;;
2428 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2429 sparc* ) machine=sparc ;;
2430 * ) unported=yes ;;
2431 esac
2432 case "${canonical}" in
2433 ## The Sun386 didn't get past 4.0.
2434 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2435 *-sunos4.0* ) opsys=sunos4-0 ;;
2436 *-sunos4.1.[3-9]*noshare )
2437 ## This name is sunos413 instead of sunos4-1-3
2438 ## to avoid a file name conflict on MSDOS.
2439 opsys=sunos413
2440 NON_GNU_CPP=/usr/lib/cpp
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2443 ;;
2444 *-sunos4.1.[3-9]* | *-sunos4shr*)
2445 opsys=sunos4shr
2446 NON_GNU_CPP=/usr/lib/cpp
2447 ;;
2448 *-sunos4* | *-sunos )
2449 opsys=sunos4-1
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2452 ;;
2453 *-sunos5.3* | *-solaris2.3* )
2454 opsys=sol2-3
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 ;;
2457 *-sunos5.4* | *-solaris2.4* )
2458 opsys=sol2-4
2459 NON_GNU_CPP=/usr/ccs/lib/cpp
2460 RANLIB="ar -ts"
2461 ;;
2462 *-sunos5.5* | *-solaris2.5* )
2463 opsys=sol2-5
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2466 ;;
2467 *-sunos5.6* | *-solaris2.6* )
2468 opsys=sol2-6
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2471 ;;
2472 *-sunos5* | *-solaris* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 ;;
2476 * ) opsys=bsd4-2 ;;
2477 esac
2478 ## Watch out for a compiler that we know will not work.
2479 case "${canonical}" in
2480 *-solaris* | *-sunos5* )
2481 if [ "x$CC" = x/usr/ucb/cc ]; then
2482 ## /usr/ucb/cc doesn't work;
2483 ## we should find some other compiler that does work.
2484 unset CC
2485 fi
2486 ;;
2487 *) ;;
2488 esac
2489 ;;
2490 sparc-*-nextstep* )
2491 machine=sparc opsys=nextstep
2492 ;;
2493
2494 ## Tadpole 68k
2495 m68*-tadpole-sysv* )
2496 machine=tad68k opsys=usg5-3
2497 ;;
2498
2499 ## Tahoe machines
2500 tahoe-tahoe-bsd4.2* )
2501 machine=tahoe opsys=bsd4-2
2502 ;;
2503 tahoe-tahoe-bsd4.3* )
2504 machine=tahoe opsys=bsd4-3
2505 ;;
2506
2507 ## Tandem Integrity S2
2508 mips-tandem-sysv* )
2509 machine=tandem-s2 opsys=usg5-3
2510 ;;
2511
2512 ## Tektronix XD88
2513 m88k-tektronix-sysv3* )
2514 machine=tekxd88 opsys=usg5-3
2515 ;;
2516
2517 ## Tektronix 16000 box (6130?)
2518 ns16k-tektronix-bsd* )
2519 machine=ns16000 opsys=bsd4-2
2520 ;;
2521 ## Tektronix 4300
2522 ## src/m/tek4300.h hints that this is a m68k machine.
2523 m68*-tektronix-bsd* )
2524 machine=tek4300 opsys=bsd4-3
2525 ;;
2526
2527 ## Titan P2 or P3
2528 ## We seem to have lost the machine-description file titan.h!
2529 titan-titan-sysv* )
2530 machine=titan opsys=usg5-3
2531 ;;
2532
2533 ## Ustation E30 (SS5E)
2534 m68*-unisys-uniplus* )
2535 machine=ustation opsystem=unipl5-2
2536 ;;
2537
2538 ## Vaxen.
2539 vax-dec-* )
2540 machine=vax
2541 case "${canonical}" in
2542 *-bsd4.1* ) opsys=bsd4-1 ;;
2543 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2544 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2545 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2546 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2547 *-vms* ) opsys=vms ;;
2548 * ) unported=yes
2549 esac
2550 ;;
2551
2552 ## Whitechapel MG1
2553 ns16k-whitechapel-* )
2554 machine=mg1
2555 ## We don't know what sort of OS runs on these; we'll let the
2556 ## operating system guessing code below try.
2557 ;;
2558
2559 ## Wicat
2560 m68*-wicat-sysv* )
2561 machine=wicat opsys=usg5-2
2562 ;;
2563
2564 ## IA-64
2565 ia64*-*-linux* )
2566 machine=ia64 opsys=gnu-linux
2567 ;;
2568
2569 ## Intel 386 machines where we don't care about the manufacturer
2570 i[3456]86-*-* )
2571 machine=intel386
2572 case "${canonical}" in
2573 *-cygwin ) opsys=cygwin ;;
2574 *-darwin* ) opsys=darwin
2575 CPP="${CC-cc} -E -no-cpp-precomp"
2576 ;;
2577 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2578 *-isc2.2* ) opsys=isc2-2 ;;
2579 *-isc4.0* ) opsys=isc4-0 ;;
2580 *-isc4.* ) opsys=isc4-1
2581 GCC_TEST_OPTIONS=-posix
2582 NON_GCC_TEST_OPTIONS=-Xp
2583 ;;
2584 *-isc* ) opsys=isc3-0 ;;
2585 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2586 *-esix* ) opsys=esix ;;
2587 *-xenix* ) opsys=xenix ;;
2588 *-linux-gnu* ) opsys=gnu-linux ;;
2589 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2590 *-sco3.2v5* ) opsys=sco5
2591 NON_GNU_CPP=/lib/cpp
2592 # Prevent -belf from being passed to $CPP.
2593 # /lib/cpp does not accept it.
2594 OVERRIDE_CPPFLAGS=" "
2595 ;;
2596 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2597 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-386bsd* ) opsys=386bsd ;;
2600 *-nextstep* ) opsys=nextstep ;;
2601 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2602 esac
2603 ;;
2604
2605 ## m68k Linux-based GNU system
2606 m68k-*-linux-gnu* )
2607 machine=m68k opsys=gnu-linux
2608 ;;
2609
2610 ## Mips Linux-based GNU system
2611 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2612 machine=mips opsys=gnu-linux
2613 ;;
2614
2615 ## UXP/DS
2616 sparc-fujitsu-sysv4* )
2617 machine=sparc opsys=uxpds
2618 NON_GNU_CPP=/usr/ccs/lib/cpp
2619 RANLIB="ar -ts"
2620 ;;
2621
2622 ## UXP/V
2623 f301-fujitsu-uxpv4.1)
2624 machine=f301 opsys=uxpv
2625 ;;
2626
2627 ## Darwin / Mac OS X
2628 powerpc-apple-darwin* )
2629 machine=powermac opsys=darwin
2630 # Define CPP as follows to make autoconf work correctly.
2631 CPP="${CC-cc} -E -no-cpp-precomp"
2632 # Use fink packages if available.
2633 if test -d /sw/include && test -d /sw/lib; then
2634 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2635 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2636 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2637 fi
2638 ;;
2639
2640 ## AMD x86-64 Linux-based GNU system
2641 x86_64-*-linux-gnu* )
2642 machine=amdx86-64 opsys=gnu-linux
2643 ;;
2644
2645 * )
2646 unported=yes
2647 ;;
2648 esac
2649
2650 ### If the code above didn't choose an operating system, just choose
2651 ### an operating system based on the configuration name. You really
2652 ### only want to use this when you have no idea what the right
2653 ### operating system is; if you know what operating systems a machine
2654 ### runs, it's cleaner to make it explicit in the case statement
2655 ### above.
2656 if test x"${opsys}" = x; then
2657 case "${canonical}" in
2658 *-gnu* ) opsys=gnu ;;
2659 *-bsd4.[01] ) opsys=bsd4-1 ;;
2660 *-bsd4.2 ) opsys=bsd4-2 ;;
2661 *-bsd4.3 ) opsys=bsd4-3 ;;
2662 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2663 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2664 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2665 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2666 *-sysv4.2uw* ) opsys=unixware ;;
2667 *-sysv5uw* ) opsys=unixware ;;
2668 *-sysv5OpenUNIX* ) opsys=unixware ;;
2669 *-sysv4.1* | *-sysvr4.1* )
2670 NON_GNU_CPP=/usr/lib/cpp
2671 opsys=usg5-4 ;;
2672 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2673 if [ x$NON_GNU_CPP = x ]; then
2674 if [ -f /usr/ccs/lib/cpp ]; then
2675 NON_GNU_CPP=/usr/ccs/lib/cpp
2676 else
2677 NON_GNU_CPP=/lib/cpp
2678 fi
2679 fi
2680 opsys=usg5-4-2 ;;
2681 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2682 * )
2683 unported=yes
2684 ;;
2685 esac
2686 fi
2687
2688
2689
2690 if test $unported = yes; then
2691 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2692 Check \`etc/MACHINES' for recognized configuration names." >&5
2693 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2694 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2695 { (exit 1); exit 1; }; }
2696 fi
2697
2698 machfile="m/${machine}.h"
2699 opsysfile="s/${opsys}.h"
2700
2701
2702 #### Choose a compiler.
2703 test -n "$CC" && cc_specified=yes
2704
2705 # Save the value of CFLAGS that the user specified.
2706 SPECIFIED_CFLAGS="$CFLAGS"
2707
2708 case ${with_gcc} in
2709 "yes" ) CC="gcc" GCC=yes ;;
2710 "no" ) : ${CC=cc} ;;
2711 * )
2712 esac
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754 fi
2755 if test -z "$ac_cv_prog_CC"; then
2756 ac_ct_CC=$CC
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791
2792 CC=$ac_ct_CC
2793 else
2794 CC="$ac_cv_prog_CC"
2795 fi
2796
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cc; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_CC"; then
2836 ac_ct_CC=$CC
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2875 fi
2876
2877 fi
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2899 continue
2900 fi
2901 ac_cv_prog_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2911 shift
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2916 shift
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 fi
2919 fi
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2969 fi
2970
2971 test -n "$CC" && break
2972 done
2973 fi
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3011 fi
3012
3013 test -n "$ac_ct_CC" && break
3014 done
3015
3016 CC=$ac_ct_CC
3017 fi
3018
3019 fi
3020
3021
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3027
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev/null >&5) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054
3055 int
3056 main ()
3057 {
3058
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 ac_clean_files_save=$ac_clean_files
3064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3065 # Try to create an executable without -o first, disregard a.out.
3066 # It will help us diagnose broken compilers, and finding out an intuition
3067 # of exeext.
3068 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3072 (eval $ac_link_default) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Find the output, starting from the most likely. This scheme is
3077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3078 # resort.
3079
3080 # Be careful to initialize this variable, since it used to be cached.
3081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3082 ac_cv_exeext=
3083 # b.out is created by i960 compilers.
3084 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3085 do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3089 ;;
3090 conftest.$ac_ext )
3091 # This is the source file.
3092 ;;
3093 [ab].out )
3094 # We found the default executable, but exeext='' is most
3095 # certainly right.
3096 break;;
3097 *.* )
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # FIXME: I believe we export ac_cv_exeext for Libtool,
3100 # but it would be cool to find out if it's true. Does anybody
3101 # maintain Libtool? --akim.
3102 export ac_cv_exeext
3103 break;;
3104 * )
3105 break;;
3106 esac
3107 done
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C compiler cannot create executables
3115 See \`config.log' for more details." >&2;}
3116 { (exit 77); exit 77; }; }
3117 fi
3118
3119 ac_exeext=$ac_cv_exeext
3120 echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6
3122
3123 # Check the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3128 # If not cross compiling, check that we can run a simple program.
3129 if test "$cross_compiling" != yes; then
3130 if { ac_try='./$ac_file'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 cross_compiling=no
3137 else
3138 if test "$cross_compiling" = maybe; then
3139 cross_compiling=yes
3140 else
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3148 fi
3149 fi
3150 fi
3151 echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3153
3154 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 # Check the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6
3162
3163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166 (eval $ac_link) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3173 # `rm'.
3174 for ac_file in conftest.exe conftest conftest.*; do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 export ac_cv_exeext
3180 break;;
3181 * ) break;;
3182 esac
3183 done
3184 else
3185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3190 fi
3191
3192 rm -f conftest$ac_cv_exeext
3193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3194 echo "${ECHO_T}$ac_cv_exeext" >&6
3195
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3198 ac_exeext=$EXEEXT
3199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3201 if test "${ac_cv_objext+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.o conftest.obj
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3229 break;;
3230 esac
3231 done
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244 fi
3245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3246 echo "${ECHO_T}$ac_cv_objext" >&6
3247 OBJEXT=$ac_cv_objext
3248 ac_objext=$OBJEXT
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264 #ifndef __GNUC__
3265 choke me
3266 #endif
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_compiler_gnu=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_compiler_gnu=no
3299 fi
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3306 GCC=`test $ac_compiler_gnu = yes && echo yes`
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 CFLAGS="-g"
3310 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3312 if test "${ac_cv_prog_cc_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321
3322 int
3323 main ()
3324 {
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_g=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ac_cv_prog_cc_g=no
3357 fi
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3362 if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3366 CFLAGS="-g -O2"
3367 else
3368 CFLAGS="-g"
3369 fi
3370 else
3371 if test "$GCC" = yes; then
3372 CFLAGS="-O2"
3373 else
3374 CFLAGS=
3375 fi
3376 fi
3377 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3378 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3379 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 ac_cv_prog_cc_stdc=no
3383 ac_save_CC=$CC
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <stdarg.h>
3391 #include <stdio.h>
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3398 char **p;
3399 int i;
3400 {
3401 return p[i];
3402 }
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3404 {
3405 char *s;
3406 va_list v;
3407 va_start (v,p);
3408 s = g (p, va_arg (v,int));
3409 va_end (v);
3410 return s;
3411 }
3412
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std1 is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std1. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421
3422 int test (int i, double x);
3423 struct s1 {int (*f) (int a);};
3424 struct s2 {int (*f) (double a);};
3425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426 int argc;
3427 char **argv;
3428 int
3429 main ()
3430 {
3431 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 # Don't try gcc -ansi; that turns off useful extensions and
3437 # breaks some systems' header files.
3438 # AIX -qlanglvl=ansi
3439 # Ultrix and OSF/1 -std1
3440 # HP-UX 10.20 and later -Ae
3441 # HP-UX older versions -Aa -D_HPUX_SOURCE
3442 # SVR4 -Xc -D__EXTENSIONS__
3443 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 do
3445 CC="$ac_save_CC $ac_arg"
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_prog_cc_stdc=$ac_arg
3468 break
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 fi
3474 rm -f conftest.err conftest.$ac_objext
3475 done
3476 rm -f conftest.$ac_ext conftest.$ac_objext
3477 CC=$ac_save_CC
3478
3479 fi
3480
3481 case "x$ac_cv_prog_cc_stdc" in
3482 x|xno)
3483 echo "$as_me:$LINENO: result: none needed" >&5
3484 echo "${ECHO_T}none needed" >&6 ;;
3485 *)
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3488 CC="$CC $ac_cv_prog_cc_stdc" ;;
3489 esac
3490
3491 # Some people use a C++ compiler to compile C. Since we use `exit',
3492 # in C++ we need to declare it. In case someone uses the same compiler
3493 # for both compiling C and C++ we need to have the C++ compiler decide
3494 # the declaration of exit, since it's the most demanding environment.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #ifndef __cplusplus
3497 choke me
3498 #endif
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 for ac_declaration in \
3522 '' \
3523 'extern "C" void std::exit (int) throw (); using std::exit;' \
3524 'extern "C" void std::exit (int); using std::exit;' \
3525 'extern "C" void exit (int) throw ();' \
3526 'extern "C" void exit (int);' \
3527 'void exit (int);'
3528 do
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 $ac_declaration
3536 #include <stdlib.h>
3537 int
3538 main ()
3539 {
3540 exit (42);
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 :
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 continue
3572 fi
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_declaration
3581 int
3582 main ()
3583 {
3584 exit (42);
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 break
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 fi
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617 done
3618 rm -f conftest*
3619 if test -n "$ac_declaration"; then
3620 echo '#ifdef __cplusplus' >>confdefs.h
3621 echo $ac_declaration >>confdefs.h
3622 echo '#endif' >>confdefs.h
3623 fi
3624
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 fi
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3641 fi
3642
3643 #### Some systems specify a CPP to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3647 then
3648 CPP="$NON_GNU_CPP"
3649 fi
3650
3651 #### Some systems specify a CC to use unless we are using GCC.
3652 #### Now that we know whether we are using GCC, we can decide whether
3653 #### to use that one.
3654 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3655 test x$cc_specified != xyes
3656 then
3657 CC="$NON_GNU_CC"
3658 fi
3659
3660 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3661 then
3662 CC="$CC $GCC_TEST_OPTIONS"
3663 fi
3664
3665 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3666 then
3667 CC="$CC $NON_GCC_TEST_OPTIONS"
3668 fi
3669
3670 #### Some other nice autoconf tests.
3671
3672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3673 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3674 LN_S=$as_ln_s
3675 if test "$LN_S" = "ln -s"; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3680 echo "${ECHO_T}no, using $LN_S" >&6
3681 fi
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3690 # On Suns, sometimes $CPP names a directory.
3691 if test -n "$CPP" && test -d "$CPP"; then
3692 CPP=
3693 fi
3694 if test -z "$CPP"; then
3695 if test "${ac_cv_prog_CPP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 # Double quotes because CPP needs to be expanded
3699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3700 do
3701 ac_preproc_ok=false
3702 for ac_c_preproc_warn_flag in '' yes
3703 do
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #ifdef __STDC__
3717 # include <limits.h>
3718 #else
3719 # include <assert.h>
3720 #endif
3721 Syntax error
3722 _ACEOF
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737 else
3738 ac_cpp_err=yes
3739 fi
3740 if test -z "$ac_cpp_err"; then
3741 :
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 # Broken: fails on valid input.
3747 continue
3748 fi
3749 rm -f conftest.err conftest.$ac_ext
3750
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3760 _ACEOF
3761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null; then
3769 if test -s conftest.err; then
3770 ac_cpp_err=$ac_c_preproc_warn_flag
3771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3772 else
3773 ac_cpp_err=
3774 fi
3775 else
3776 ac_cpp_err=yes
3777 fi
3778 if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3780 continue
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 # Passes both tests.
3786 ac_preproc_ok=:
3787 break
3788 fi
3789 rm -f conftest.err conftest.$ac_ext
3790
3791 done
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.$ac_ext
3794 if $ac_preproc_ok; then
3795 break
3796 fi
3797
3798 done
3799 ac_cv_prog_CPP=$CPP
3800
3801 fi
3802 CPP=$ac_cv_prog_CPP
3803 else
3804 ac_cv_prog_CPP=$CPP
3805 fi
3806 echo "$as_me:$LINENO: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3808 ac_preproc_ok=false
3809 for ac_c_preproc_warn_flag in '' yes
3810 do
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #ifdef __STDC__
3824 # include <limits.h>
3825 #else
3826 # include <assert.h>
3827 #endif
3828 Syntax error
3829 _ACEOF
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 else
3842 ac_cpp_err=
3843 fi
3844 else
3845 ac_cpp_err=yes
3846 fi
3847 if test -z "$ac_cpp_err"; then
3848 :
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 # Broken: fails on valid input.
3854 continue
3855 fi
3856 rm -f conftest.err conftest.$ac_ext
3857
3858 # OK, works on sane cases. Now check whether non-existent headers
3859 # can be detected and how.
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3867 _ACEOF
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 else
3880 ac_cpp_err=
3881 fi
3882 else
3883 ac_cpp_err=yes
3884 fi
3885 if test -z "$ac_cpp_err"; then
3886 # Broken: success on invalid input.
3887 continue
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3895 fi
3896 rm -f conftest.err conftest.$ac_ext
3897
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then
3902 :
3903 else
3904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&5
3906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details." >&2;}
3908 { (exit 1); exit 1; }; }
3909 fi
3910
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917 # Find a good install program. We prefer a C program (faster),
3918 # so one script is as good as another. But avoid the broken or
3919 # incompatible versions:
3920 # SysV /etc/install, /usr/sbin/install
3921 # SunOS /usr/etc/install
3922 # IRIX /sbin/install
3923 # AIX /bin/install
3924 # AmigaOS /C/install, which installs bootblocks on floppy discs
3925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3928 # OS/2's system install, which has a completely different semantic
3929 # ./install, which can be erroneously created by make from ./install.sh.
3930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3932 if test -z "$INSTALL"; then
3933 if test "${ac_cv_path_install+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 # Account for people who put trailing slashes in PATH elements.
3942 case $as_dir/ in
3943 ./ | .// | /cC/* | \
3944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3945 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3946 /usr/ucb/* ) ;;
3947 *)
3948 # OSF1 and SCO ODT 3.0 have their own names for install.
3949 # Don't use installbsd from OSF since it installs stuff as root
3950 # by default.
3951 for ac_prog in ginstall scoinst install; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3954 if test $ac_prog = install &&
3955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3956 # AIX install. It has an incompatible calling convention.
3957 :
3958 elif test $ac_prog = install &&
3959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3960 # program-specific install script used by HP pwplus--don't use.
3961 :
3962 else
3963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3964 break 3
3965 fi
3966 fi
3967 done
3968 done
3969 ;;
3970 esac
3971 done
3972
3973
3974 fi
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL=$ac_cv_path_install
3977 else
3978 # As a last resort, use the slow shell script. We don't cache a
3979 # path for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the path is relative.
3982 INSTALL=$ac_install_sh
3983 fi
3984 fi
3985 echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6
3987
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
3996 if test "x$RANLIB" = x; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4000 echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_RANLIB+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005 if test -n "$RANLIB"; then
4006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021
4022 fi
4023 fi
4024 RANLIB=$ac_cv_prog_RANLIB
4025 if test -n "$RANLIB"; then
4026 echo "$as_me:$LINENO: result: $RANLIB" >&5
4027 echo "${ECHO_T}$RANLIB" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4031 fi
4032
4033 fi
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib; ac_word=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_RANLIB="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059
4060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4061 fi
4062 fi
4063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071
4072 RANLIB=$ac_ct_RANLIB
4073 else
4074 RANLIB="$ac_cv_prog_RANLIB"
4075 fi
4076
4077 fi
4078 # Extract the first word of "install-info", so it can be a program name with args.
4079 set dummy install-info; ac_word=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 case $INSTALL_INFO in
4086 [\\/]* | ?:[\\/]*)
4087 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4088 ;;
4089 *)
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103
4104 ;;
4105 esac
4106 fi
4107 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4108
4109 if test -n "$INSTALL_INFO"; then
4110 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4111 echo "${ECHO_T}$INSTALL_INFO" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 # Extract the first word of "install-info", so it can be a program name with args.
4118 set dummy install-info; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 case $INSTALL_INFO in
4125 [\\/]* | ?:[\\/]*)
4126 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4127 ;;
4128 *)
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in /usr/sbin
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142
4143 ;;
4144 esac
4145 fi
4146 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4147
4148 if test -n "$INSTALL_INFO"; then
4149 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4150 echo "${ECHO_T}$INSTALL_INFO" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155
4156 # Extract the first word of "install-info", so it can be a program name with args.
4157 set dummy install-info; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 case $INSTALL_INFO in
4164 [\\/]* | ?:[\\/]*)
4165 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4166 ;;
4167 *)
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in /sbin
4170 do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179 done
4180 done
4181
4182 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4183 ;;
4184 esac
4185 fi
4186 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4187
4188 if test -n "$INSTALL_INFO"; then
4189 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4190 echo "${ECHO_T}$INSTALL_INFO" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196 # Extract the first word of "gzip", so it can be a program name with args.
4197 set dummy gzip; ac_word=$2
4198 echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 case $GZIP_PROG in
4204 [\\/]* | ?:[\\/]*)
4205 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4206 ;;
4207 *)
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221
4222 ;;
4223 esac
4224 fi
4225 GZIP_PROG=$ac_cv_path_GZIP_PROG
4226
4227 if test -n "$GZIP_PROG"; then
4228 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4229 echo "${ECHO_T}$GZIP_PROG" >&6
4230 else
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235
4236
4237 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4238 then
4239 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4240 fi
4241
4242 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4243 then
4244 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4245 fi
4246
4247
4248 late_LDFLAGS=$LDFLAGS
4249 if test "$GCC" = yes; then
4250 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4251 else
4252 LDFLAGS="$LDFLAGS -znocombreloc"
4253 fi
4254
4255 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4256 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4257
4258 cat >conftest.$ac_ext <<_ACEOF
4259 main(){return 0;}
4260 _ACEOF
4261 rm -f conftest.$ac_objext conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 LDFLAGS=$late_LDFLAGS
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292 rm -f conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4294
4295
4296 echo "$as_me:$LINENO: checking for egrep" >&5
4297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4298 if test "${ac_cv_prog_egrep+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4302 then ac_cv_prog_egrep='grep -E'
4303 else ac_cv_prog_egrep='egrep'
4304 fi
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4308 EGREP=$ac_cv_prog_egrep
4309
4310
4311
4312 echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #ifdef _AIX
4321 yes
4322 #endif
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev/null 2>&1; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329 cat >>confdefs.h <<\_ACEOF
4330 #define _ALL_SOURCE 1
4331 _ACEOF
4332
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4336 fi
4337 rm -f conftest*
4338
4339
4340
4341
4342 #### Extract some information from the operating system and machine files.
4343
4344 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4345 - which libraries the lib-src programs will want, and
4346 - whether the GNU malloc routines are usable..." >&5
4347 echo "$as_me: checking the machine- and system-dependent files to find out
4348 - which libraries the lib-src programs will want, and
4349 - whether the GNU malloc routines are usable..." >&6;}
4350
4351 ### First figure out CFLAGS (which we use for running the compiler here)
4352 ### and REAL_CFLAGS (which we use for real compilation).
4353 ### The two are the same except on a few systems, where they are made
4354 ### different to work around various lossages. For example,
4355 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4356 ### as implying static linking.
4357
4358 ### If the CFLAGS env var is specified, we use that value
4359 ### instead of the default.
4360
4361 ### It's not important that this name contain the PID; you can't run
4362 ### two configures in the same directory and have anything work
4363 ### anyway.
4364 tempcname="conftest.c"
4365
4366 echo '
4367 #include "'${srcdir}'/src/'${opsysfile}'"
4368 #include "'${srcdir}'/src/'${machfile}'"
4369 #ifndef LIBS_MACHINE
4370 #define LIBS_MACHINE
4371 #endif
4372 #ifndef LIBS_SYSTEM
4373 #define LIBS_SYSTEM
4374 #endif
4375 #ifndef C_SWITCH_SYSTEM
4376 #define C_SWITCH_SYSTEM
4377 #endif
4378 #ifndef C_SWITCH_MACHINE
4379 #define C_SWITCH_MACHINE
4380 #endif
4381 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4382 configure___ c_switch_system=C_SWITCH_SYSTEM
4383 configure___ c_switch_machine=C_SWITCH_MACHINE
4384
4385 #ifndef LIB_X11_LIB
4386 #define LIB_X11_LIB -lX11
4387 #endif
4388
4389 #ifndef LIBX11_MACHINE
4390 #define LIBX11_MACHINE
4391 #endif
4392
4393 #ifndef LIBX11_SYSTEM
4394 #define LIBX11_SYSTEM
4395 #endif
4396 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4397
4398 #ifdef UNEXEC
4399 configure___ unexec=UNEXEC
4400 #else
4401 configure___ unexec=unexec.o
4402 #endif
4403
4404 #ifdef SYSTEM_MALLOC
4405 configure___ system_malloc=yes
4406 #else
4407 configure___ system_malloc=no
4408 #endif
4409
4410 #ifdef USE_MMAP_FOR_BUFFERS
4411 configure___ use_mmap_for_buffers=yes
4412 #else
4413 configure___ use_mmap_for_buffers=no
4414 #endif
4415
4416 #ifndef C_DEBUG_SWITCH
4417 #define C_DEBUG_SWITCH -g
4418 #endif
4419
4420 #ifndef C_OPTIMIZE_SWITCH
4421 #ifdef __GNUC__
4422 #define C_OPTIMIZE_SWITCH -O2
4423 #else
4424 #define C_OPTIMIZE_SWITCH -O
4425 #endif
4426 #endif
4427
4428 #ifndef LD_SWITCH_MACHINE
4429 #define LD_SWITCH_MACHINE
4430 #endif
4431
4432 #ifndef LD_SWITCH_SYSTEM
4433 #define LD_SWITCH_SYSTEM
4434 #endif
4435
4436 #ifndef LD_SWITCH_X_SITE_AUX
4437 #define LD_SWITCH_X_SITE_AUX
4438 #endif
4439
4440 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4441 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4442
4443 #ifdef THIS_IS_CONFIGURE
4444
4445 /* Get the CFLAGS for tests in configure. */
4446 #ifdef __GNUC__
4447 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4448 #else
4449 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4450 #endif
4451
4452 #else /* not THIS_IS_CONFIGURE */
4453
4454 /* Get the CFLAGS for real compilation. */
4455 #ifdef __GNUC__
4456 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4457 #else
4458 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4459 #endif
4460
4461 #endif /* not THIS_IS_CONFIGURE */
4462 ' > ${tempcname}
4463
4464 # The value of CPP is a quoted variable reference, so we need to do this
4465 # to get its actual value...
4466 CPP=`eval "echo $CPP"`
4467 eval `${CPP} -Isrc ${tempcname} \
4468 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4469 if test "x$SPECIFIED_CFLAGS" = x; then
4470 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4471 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4472 else
4473 REAL_CFLAGS="$CFLAGS"
4474 fi
4475 rm ${tempcname}
4476
4477 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4478
4479 ### Make sure subsequent tests use flags consistent with the build flags.
4480
4481 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4482 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4483 else
4484 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4485 fi
4486
4487
4488
4489
4490 cat >>confdefs.h <<\_ACEOF
4491 #define _GNU_SOURCE 1
4492 _ACEOF
4493
4494
4495
4496 # Check whether --enable-largefile or --disable-largefile was given.
4497 if test "${enable_largefile+set}" = set; then
4498 enableval="$enable_largefile"
4499
4500 fi;
4501 if test "$enable_largefile" != no; then
4502
4503 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4504 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4505 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 ac_cv_sys_largefile_CC=no
4509 if test "$GCC" != yes; then
4510 ac_save_CC=$CC
4511 while :; do
4512 # IRIX 6.2 and later do not support large files by default,
4513 # so use the C compiler's -n32 option if that helps.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 break
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 fi
4564 rm -f conftest.err conftest.$ac_objext
4565 CC="$CC -n32"
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_sys_largefile_CC=' -n32'; break
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 fi
4593 rm -f conftest.err conftest.$ac_objext
4594 break
4595 done
4596 CC=$ac_save_CC
4597 rm -f conftest.$ac_ext
4598 fi
4599 fi
4600 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4602 if test "$ac_cv_sys_largefile_CC" != no; then
4603 CC=$CC$ac_cv_sys_largefile_CC
4604 fi
4605
4606 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 while :; do
4612 ac_cv_sys_file_offset_bits=no
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4627 ? 1 : -1];
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 break
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #define _FILE_OFFSET_BITS 64
4671 #include <sys/types.h>
4672 /* Check that off_t can represent 2**63 - 1 correctly.
4673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4674 since some C++ compilers masquerading as C compilers
4675 incorrectly reject 9223372036854775807. */
4676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4678 && LARGE_OFF_T % 2147483647 == 1)
4679 ? 1 : -1];
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sys_file_offset_bits=64; break
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 fi
4715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4716 break
4717 done
4718 fi
4719 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4720 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4721 if test "$ac_cv_sys_file_offset_bits" != no; then
4722
4723 cat >>confdefs.h <<_ACEOF
4724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4725 _ACEOF
4726
4727 fi
4728 rm -f conftest*
4729 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4730 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4731 if test "${ac_cv_sys_large_files+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 while :; do
4735 ac_cv_sys_large_files=no
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4750 ? 1 : -1];
4751 int
4752 main ()
4753 {
4754
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 break
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 fi
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #define _LARGE_FILES 1
4794 #include <sys/types.h>
4795 /* Check that off_t can represent 2**63 - 1 correctly.
4796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4797 since some C++ compilers masquerading as C compilers
4798 incorrectly reject 9223372036854775807. */
4799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4801 && LARGE_OFF_T % 2147483647 == 1)
4802 ? 1 : -1];
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_large_files=1; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 break
4840 done
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4844 if test "$ac_cv_sys_large_files" != no; then
4845
4846 cat >>confdefs.h <<_ACEOF
4847 #define _LARGE_FILES $ac_cv_sys_large_files
4848 _ACEOF
4849
4850 fi
4851 rm -f conftest*
4852 fi
4853
4854
4855 if test "${with_sound}" != "no"; then
4856 # Sound support for GNU/Linux and the free BSDs.
4857 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4859 if test "${ac_cv_header_stdc+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <stdlib.h>
4869 #include <stdarg.h>
4870 #include <string.h>
4871 #include <float.h>
4872
4873 int
4874 main ()
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_header_stdc=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_cv_header_stdc=no
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910
4911 if test $ac_cv_header_stdc = yes; then
4912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <string.h>
4920
4921 _ACEOF
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "memchr" >/dev/null 2>&1; then
4924 :
4925 else
4926 ac_cv_header_stdc=no
4927 fi
4928 rm -f conftest*
4929
4930 fi
4931
4932 if test $ac_cv_header_stdc = yes; then
4933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <stdlib.h>
4941
4942 _ACEOF
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev/null 2>&1; then
4945 :
4946 else
4947 ac_cv_header_stdc=no
4948 fi
4949 rm -f conftest*
4950
4951 fi
4952
4953 if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then
4956 :
4957 else
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ctype.h>
4965 #if ((' ' & 0x0FF) == 0x020)
4966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4968 #else
4969 # define ISLOWER(c) \
4970 (('a' <= (c) && (c) <= 'i') \
4971 || ('j' <= (c) && (c) <= 'r') \
4972 || ('s' <= (c) && (c) <= 'z'))
4973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4974 #endif
4975
4976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4977 int
4978 main ()
4979 {
4980 int i;
4981 for (i = 0; i < 256; i++)
4982 if (XOR (islower (i), ISLOWER (i))
4983 || toupper (i) != TOUPPER (i))
4984 exit(2);
4985 exit (0);
4986 }
4987 _ACEOF
4988 rm -f conftest$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 :
5000 else
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 ( exit $ac_status )
5006 ac_cv_header_stdc=no
5007 fi
5008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 fi
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5014 if test $ac_cv_header_stdc = yes; then
5015
5016 cat >>confdefs.h <<\_ACEOF
5017 #define STDC_HEADERS 1
5018 _ACEOF
5019
5020 fi
5021
5022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5033 inttypes.h stdint.h unistd.h
5034 do
5035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036 echo "$as_me:$LINENO: checking for $ac_header" >&5
5037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5048
5049 #include <$ac_header>
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 eval "$as_ac_Header=yes"
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 eval "$as_ac_Header=no"
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 _ACEOF
5087
5088 fi
5089
5090 done
5091
5092
5093
5094
5095
5096 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5097 do
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5100 echo "$as_me:$LINENO: checking for $ac_header" >&5
5101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 fi
5105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5107 else
5108 # Is the header compilable?
5109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 #include <$ac_header>
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_header_compiler=no
5147 fi
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5151
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <$ac_header>
5162 _ACEOF
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177 else
5178 ac_cpp_err=yes
5179 fi
5180 if test -z "$ac_cpp_err"; then
5181 ac_header_preproc=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_preproc=no
5187 fi
5188 rm -f conftest.err conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6
5191
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5214 (
5215 cat <<\_ASBOX
5216 ## ------------------------------------------ ##
5217 ## Report this to the AC_PACKAGE_NAME lists. ##
5218 ## ------------------------------------------ ##
5219 _ASBOX
5220 ) |
5221 sed "s/^/$as_me: WARNING: /" >&2
5222 ;;
5223 esac
5224 echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 eval "$as_ac_Header=\$ac_header_preproc"
5230 fi
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5233
5234 fi
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241
5242 done
5243
5244 # Emulation library used on NetBSD.
5245 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5246 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5247 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-lossaudio $LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5265 char _oss_ioctl ();
5266 int
5267 main ()
5268 {
5269 _oss_ioctl ();
5270 ;
5271 return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_ossaudio__oss_ioctl=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ac_cv_lib_ossaudio__oss_ioctl=no
5301 fi
5302 rm -f conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5305 fi
5306 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5309 LIBSOUND=-lossaudio
5310 else
5311 LIBSOUND=
5312 fi
5313
5314
5315 fi
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5343 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5344 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5345 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5346 sys/utsname.h pwd.h
5347 do
5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350 echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 fi
5355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5357 else
5358 # Is the header compilable?
5359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 #include <$ac_header>
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_header_compiler=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_header_compiler=no
5397 fi
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400 echo "${ECHO_T}$ac_header_compiler" >&6
5401
5402 # Is the header present?
5403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
5427 else
5428 ac_cpp_err=yes
5429 fi
5430 if test -z "$ac_cpp_err"; then
5431 ac_header_preproc=yes
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_header_preproc=no
5437 fi
5438 rm -f conftest.err conftest.$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6
5441
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444 yes:no: )
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc=yes
5450 ;;
5451 no:yes:* )
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464 (
5465 cat <<\_ASBOX
5466 ## ------------------------------------------ ##
5467 ## Report this to the AC_PACKAGE_NAME lists. ##
5468 ## ------------------------------------------ ##
5469 _ASBOX
5470 ) |
5471 sed "s/^/$as_me: WARNING: /" >&2
5472 ;;
5473 esac
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 eval "$as_ac_Header=\$ac_header_preproc"
5480 fi
5481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5483
5484 fi
5485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 _ACEOF
5489
5490 fi
5491
5492 done
5493
5494
5495 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5496 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <sys/personality.h>
5504 int
5505 main ()
5506 {
5507 personality (PER_LINUX32)
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 emacs_cv_personality_linux32=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538 emacs_cv_personality_linux32=no
5539 fi
5540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5542 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5543
5544 if test $emacs_cv_personality_linux32 = yes; then
5545
5546 cat >>confdefs.h <<\_ACEOF
5547 #define HAVE_PERSONALITY_LINUX32 1
5548 _ACEOF
5549
5550 fi
5551
5552
5553 for ac_header in term.h
5554 do
5555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <$ac_header>
5568 _ACEOF
5569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev/null; then
5577 if test -s conftest.err; then
5578 ac_cpp_err=$ac_c_preproc_warn_flag
5579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5580 else
5581 ac_cpp_err=
5582 fi
5583 else
5584 ac_cpp_err=yes
5585 fi
5586 if test -z "$ac_cpp_err"; then
5587 eval "$as_ac_Header=yes"
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 eval "$as_ac_Header=no"
5593 fi
5594 rm -f conftest.err conftest.$ac_ext
5595 fi
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5599 cat >>confdefs.h <<_ACEOF
5600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5601 _ACEOF
5602
5603 fi
5604
5605 done
5606
5607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5619 #include <stdarg.h>
5620 #include <string.h>
5621 #include <float.h>
5622
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_header_stdc=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_cv_header_stdc=no
5658 fi
5659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660
5661 if test $ac_cv_header_stdc = yes; then
5662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <string.h>
5670
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "memchr" >/dev/null 2>&1; then
5674 :
5675 else
5676 ac_cv_header_stdc=no
5677 fi
5678 rm -f conftest*
5679
5680 fi
5681
5682 if test $ac_cv_header_stdc = yes; then
5683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <stdlib.h>
5691
5692 _ACEOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "free" >/dev/null 2>&1; then
5695 :
5696 else
5697 ac_cv_header_stdc=no
5698 fi
5699 rm -f conftest*
5700
5701 fi
5702
5703 if test $ac_cv_header_stdc = yes; then
5704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705 if test "$cross_compiling" = yes; then
5706 :
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <ctype.h>
5715 #if ((' ' & 0x0FF) == 0x020)
5716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5718 #else
5719 # define ISLOWER(c) \
5720 (('a' <= (c) && (c) <= 'i') \
5721 || ('j' <= (c) && (c) <= 'r') \
5722 || ('s' <= (c) && (c) <= 'z'))
5723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5724 #endif
5725
5726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5727 int
5728 main ()
5729 {
5730 int i;
5731 for (i = 0; i < 256; i++)
5732 if (XOR (islower (i), ISLOWER (i))
5733 || toupper (i) != TOUPPER (i))
5734 exit(2);
5735 exit (0);
5736 }
5737 _ACEOF
5738 rm -f conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 :
5750 else
5751 echo "$as_me: program exited with status $ac_status" >&5
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ( exit $ac_status )
5756 ac_cv_header_stdc=no
5757 fi
5758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5759 fi
5760 fi
5761 fi
5762 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5763 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5764 if test $ac_cv_header_stdc = yes; then
5765
5766 cat >>confdefs.h <<\_ACEOF
5767 #define STDC_HEADERS 1
5768 _ACEOF
5769
5770 fi
5771
5772 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5773 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5774 if test "${ac_cv_header_time+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 #include <sys/time.h>
5785 #include <time.h>
5786
5787 int
5788 main ()
5789 {
5790 if ((struct tm *) 0)
5791 return 0;
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_header_time=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_cv_header_time=no
5823 fi
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5827 echo "${ECHO_T}$ac_cv_header_time" >&6
5828 if test $ac_cv_header_time = yes; then
5829
5830 cat >>confdefs.h <<\_ACEOF
5831 #define TIME_WITH_SYS_TIME 1
5832 _ACEOF
5833
5834 fi
5835
5836 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5837 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5838 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5848 int
5849 main ()
5850 {
5851 #ifndef sys_siglist
5852 char *p = (char *) sys_siglist;
5853 #endif
5854
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_have_decl_sys_siglist=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_cv_have_decl_sys_siglist=no
5886 fi
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5890 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5891 if test $ac_cv_have_decl_sys_siglist = yes; then
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define HAVE_DECL_SYS_SIGLIST 1
5895 _ACEOF
5896
5897
5898 else
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_DECL_SYS_SIGLIST 0
5901 _ACEOF
5902
5903
5904 fi
5905
5906
5907 if test $ac_cv_have_decl_sys_siglist != yes; then
5908 # For Tru64, at least:
5909 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5910 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5911 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 int
5922 main ()
5923 {
5924 #ifndef __sys_siglist
5925 char *p = (char *) __sys_siglist;
5926 #endif
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_have_decl___sys_siglist=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cv_have_decl___sys_siglist=no
5959 fi
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5963 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5964 if test $ac_cv_have_decl___sys_siglist = yes; then
5965
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_DECL___SYS_SIGLIST 1
5968 _ACEOF
5969
5970
5971 else
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_DECL___SYS_SIGLIST 0
5974 _ACEOF
5975
5976
5977 fi
5978
5979
5980 if test $ac_cv_have_decl___sys_siglist = yes; then
5981
5982 cat >>confdefs.h <<\_ACEOF
5983 #define sys_siglist __sys_siglist
5984 _ACEOF
5985
5986 fi
5987 fi
5988 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5989 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5990 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <sys/wait.h>
6001 #ifndef WEXITSTATUS
6002 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6003 #endif
6004 #ifndef WIFEXITED
6005 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6006 #endif
6007
6008 int
6009 main ()
6010 {
6011 int s;
6012 wait (&s);
6013 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_header_sys_wait_h=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 ac_cv_header_sys_wait_h=no
6045 fi
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6050 if test $ac_cv_header_sys_wait_h = yes; then
6051
6052 cat >>confdefs.h <<\_ACEOF
6053 #define HAVE_SYS_WAIT_H 1
6054 _ACEOF
6055
6056 fi
6057
6058
6059 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6060 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6061 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #ifdef TIME_WITH_SYS_TIME
6071 #include <sys/time.h>
6072 #include <time.h>
6073 #else
6074 #ifdef HAVE_SYS_TIME_H
6075 #include <sys/time.h>
6076 #else
6077 #include <time.h>
6078 #endif
6079 #endif
6080 #ifdef HAVE_UTIME_H
6081 #include <utime.h>
6082 #endif
6083 int
6084 main ()
6085 {
6086 static struct utimbuf x; x.actime = x.modtime;
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 emacs_cv_struct_utimbuf=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 emacs_cv_struct_utimbuf=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6122 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6123 if test $emacs_cv_struct_utimbuf = yes; then
6124
6125 cat >>confdefs.h <<\_ACEOF
6126 #define HAVE_STRUCT_UTIMBUF 1
6127 _ACEOF
6128
6129 fi
6130
6131 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6132 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6133 if test "${ac_cv_type_signal+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <sys/types.h>
6143 #include <signal.h>
6144 #ifdef signal
6145 # undef signal
6146 #endif
6147 #ifdef __cplusplus
6148 extern "C" void (*signal (int, void (*)(int)))(int);
6149 #else
6150 void (*signal ()) ();
6151 #endif
6152
6153 int
6154 main ()
6155 {
6156 int i;
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163 (eval $ac_compile) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_type_signal=void
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ac_cv_type_signal=int
6188 fi
6189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6192 echo "${ECHO_T}$ac_cv_type_signal" >&6
6193
6194 cat >>confdefs.h <<_ACEOF
6195 #define RETSIGTYPE $ac_cv_type_signal
6196 _ACEOF
6197
6198
6199
6200 echo "$as_me:$LINENO: checking for speed_t" >&5
6201 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6202 if test "${emacs_cv_speed_t+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <termios.h>
6212 int
6213 main ()
6214 {
6215 speed_t x = 1;
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 emacs_cv_speed_t=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 emacs_cv_speed_t=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6251 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6252 if test $emacs_cv_speed_t = yes; then
6253
6254 cat >>confdefs.h <<\_ACEOF
6255 #define HAVE_SPEED_T 1
6256 _ACEOF
6257
6258 fi
6259
6260 echo "$as_me:$LINENO: checking for struct timeval" >&5
6261 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6262 if test "${emacs_cv_struct_timeval+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #ifdef TIME_WITH_SYS_TIME
6272 #include <sys/time.h>
6273 #include <time.h>
6274 #else
6275 #ifdef HAVE_SYS_TIME_H
6276 #include <sys/time.h>
6277 #else
6278 #include <time.h>
6279 #endif
6280 #endif
6281 int
6282 main ()
6283 {
6284 static struct timeval x; x.tv_sec = x.tv_usec;
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; } &&
6304 { ac_try='test -s conftest.$ac_objext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 emacs_cv_struct_timeval=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 emacs_cv_struct_timeval=no
6316 fi
6317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6320 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6321 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6322 if test $emacs_cv_struct_timeval = yes; then
6323
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_TIMEVAL 1
6326 _ACEOF
6327
6328 fi
6329
6330 echo "$as_me:$LINENO: checking for struct exception" >&5
6331 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6332 if test "${emacs_cv_struct_exception+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <math.h>
6342 int
6343 main ()
6344 {
6345 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 emacs_cv_struct_exception=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 emacs_cv_struct_exception=no
6377 fi
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6381 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6382 HAVE_EXCEPTION=$emacs_cv_struct_exception
6383 if test $emacs_cv_struct_exception != yes; then
6384
6385 cat >>confdefs.h <<\_ACEOF
6386 #define NO_MATHERR 1
6387 _ACEOF
6388
6389 fi
6390
6391
6392 for ac_header in sys/socket.h
6393 do
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 fi
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 else
6404 # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_compiler=no
6443 fi
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6447
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6458 _ACEOF
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null; then
6467 if test -s conftest.err; then
6468 ac_cpp_err=$ac_c_preproc_warn_flag
6469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6470 else
6471 ac_cpp_err=
6472 fi
6473 else
6474 ac_cpp_err=yes
6475 fi
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_header_preproc=no
6483 fi
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6487
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6490 yes:no: )
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc=yes
6496 ;;
6497 no:yes:* )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6510 (
6511 cat <<\_ASBOX
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6515 _ASBOX
6516 ) |
6517 sed "s/^/$as_me: WARNING: /" >&2
6518 ;;
6519 esac
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 eval "$as_ac_Header=\$ac_header_preproc"
6526 fi
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6529
6530 fi
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 fi
6537
6538 done
6539
6540
6541 for ac_header in net/if.h
6542 do
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6556 #if HAVE_SYS_SOCKET_H
6557 #include <sys/socket.h>
6558 #endif
6559
6560 #include <$ac_header>
6561 _ACEOF
6562 rm -f conftest.$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest.$ac_objext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 eval "$as_ac_Header=yes"
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 eval "$as_ac_Header=no"
6589 fi
6590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6591 fi
6592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6598
6599 fi
6600
6601 done
6602
6603
6604 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6605 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6606 if test "${ac_cv_struct_tm+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <time.h>
6617
6618 int
6619 main ()
6620 {
6621 struct tm *tp; tp->tm_sec;
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_struct_tm=time.h
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ac_cv_struct_tm=sys/time.h
6653 fi
6654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6657 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6658 if test $ac_cv_struct_tm = sys/time.h; then
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define TM_IN_SYS_TIME 1
6662 _ACEOF
6663
6664 fi
6665
6666 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6667 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6668 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <$ac_cv_struct_tm>
6679
6680
6681 int
6682 main ()
6683 {
6684 static struct tm ac_aggr;
6685 if (ac_aggr.tm_zone)
6686 return 0;
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; } &&
6706 { ac_try='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 ac_cv_member_struct_tm_tm_zone=yes
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 #include <$ac_cv_struct_tm>
6725
6726
6727 int
6728 main ()
6729 {
6730 static struct tm ac_aggr;
6731 if (sizeof ac_aggr.tm_zone)
6732 return 0;
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_member_struct_tm_tm_zone=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ac_cv_member_struct_tm_tm_zone=no
6764 fi
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6768 fi
6769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6770 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6771 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6772
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_STRUCT_TM_TM_ZONE 1
6775 _ACEOF
6776
6777
6778 fi
6779
6780 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6781
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_TM_ZONE 1
6784 _ACEOF
6785
6786 else
6787 echo "$as_me:$LINENO: checking for tzname" >&5
6788 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6789 if test "${ac_cv_var_tzname+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <time.h>
6799 #ifndef tzname /* For SGI. */
6800 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6801 #endif
6802
6803 int
6804 main ()
6805 {
6806 atoi(*tzname);
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_var_tzname=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 ac_cv_var_tzname=no
6838 fi
6839 rm -f conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 fi
6842 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6843 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6844 if test $ac_cv_var_tzname = yes; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_TZNAME 1
6848 _ACEOF
6849
6850 fi
6851 fi
6852
6853 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6854 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6855 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <time.h>
6865
6866 int
6867 main ()
6868 {
6869 static struct tm ac_aggr;
6870 if (ac_aggr.tm_gmtoff)
6871 return 0;
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_member_struct_tm_tm_gmtoff=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <time.h>
6909
6910 int
6911 main ()
6912 {
6913 static struct tm ac_aggr;
6914 if (sizeof ac_aggr.tm_gmtoff)
6915 return 0;
6916 ;
6917 return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_member_struct_tm_tm_gmtoff=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_member_struct_tm_tm_gmtoff=no
6947 fi
6948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6949 fi
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6953 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6954 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6955
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_TM_GMTOFF 1
6958 _ACEOF
6959
6960 fi
6961
6962 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6963 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6964 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6976 #endif
6977 #if HAVE_NET_IF_H
6978 #include <net/if.h>
6979 #endif
6980
6981 int
6982 main ()
6983 {
6984 static struct ifreq ac_aggr;
6985 if (ac_aggr.ifr_flags)
6986 return 0;
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags=yes
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 #if HAVE_SYS_SOCKET_H
7025 #include <sys/socket.h>
7026 #endif
7027 #if HAVE_NET_IF_H
7028 #include <net/if.h>
7029 #endif
7030
7031 int
7032 main ()
7033 {
7034 static struct ifreq ac_aggr;
7035 if (sizeof ac_aggr.ifr_flags)
7036 return 0;
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_member_struct_ifreq_ifr_flags=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_member_struct_ifreq_ifr_flags=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7074 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7075 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7079 _ACEOF
7080
7081
7082 fi
7083 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7084 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7085 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7097 #endif
7098 #if HAVE_NET_IF_H
7099 #include <net/if.h>
7100 #endif
7101
7102 int
7103 main ()
7104 {
7105 static struct ifreq ac_aggr;
7106 if (ac_aggr.ifr_hwaddr)
7107 return 0;
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 #if HAVE_SYS_SOCKET_H
7146 #include <sys/socket.h>
7147 #endif
7148 #if HAVE_NET_IF_H
7149 #include <net/if.h>
7150 #endif
7151
7152 int
7153 main ()
7154 {
7155 static struct ifreq ac_aggr;
7156 if (sizeof ac_aggr.ifr_hwaddr)
7157 return 0;
7158 ;
7159 return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7189 fi
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 fi
7194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7195 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7196 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7197
7198 cat >>confdefs.h <<_ACEOF
7199 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7200 _ACEOF
7201
7202
7203 fi
7204 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7205 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7206 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7218 #endif
7219 #if HAVE_NET_IF_H
7220 #include <net/if.h>
7221 #endif
7222
7223 int
7224 main ()
7225 {
7226 static struct ifreq ac_aggr;
7227 if (ac_aggr.ifr_netmask)
7228 return 0;
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7266 #if HAVE_SYS_SOCKET_H
7267 #include <sys/socket.h>
7268 #endif
7269 #if HAVE_NET_IF_H
7270 #include <net/if.h>
7271 #endif
7272
7273 int
7274 main ()
7275 {
7276 static struct ifreq ac_aggr;
7277 if (sizeof ac_aggr.ifr_netmask)
7278 return 0;
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_member_struct_ifreq_ifr_netmask=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_cv_member_struct_ifreq_ifr_netmask=no
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7316 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7317 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7318
7319 cat >>confdefs.h <<_ACEOF
7320 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7321 _ACEOF
7322
7323
7324 fi
7325 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7326 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7327 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7339 #endif
7340 #if HAVE_NET_IF_H
7341 #include <net/if.h>
7342 #endif
7343
7344 int
7345 main ()
7346 {
7347 static struct ifreq ac_aggr;
7348 if (ac_aggr.ifr_broadaddr)
7349 return 0;
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 #if HAVE_SYS_SOCKET_H
7388 #include <sys/socket.h>
7389 #endif
7390 #if HAVE_NET_IF_H
7391 #include <net/if.h>
7392 #endif
7393
7394 int
7395 main ()
7396 {
7397 static struct ifreq ac_aggr;
7398 if (sizeof ac_aggr.ifr_broadaddr)
7399 return 0;
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7431 fi
7432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7439
7440 cat >>confdefs.h <<_ACEOF
7441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7442 _ACEOF
7443
7444
7445 fi
7446 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7460 #endif
7461 #if HAVE_NET_IF_H
7462 #include <net/if.h>
7463 #endif
7464
7465 int
7466 main ()
7467 {
7468 static struct ifreq ac_aggr;
7469 if (ac_aggr.ifr_addr)
7470 return 0;
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #if HAVE_SYS_SOCKET_H
7509 #include <sys/socket.h>
7510 #endif
7511 #if HAVE_NET_IF_H
7512 #include <net/if.h>
7513 #endif
7514
7515 int
7516 main ()
7517 {
7518 static struct ifreq ac_aggr;
7519 if (sizeof ac_aggr.ifr_addr)
7520 return 0;
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_member_struct_ifreq_ifr_addr=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551 ac_cv_member_struct_ifreq_ifr_addr=no
7552 fi
7553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556 fi
7557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7558 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7559 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7560
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7563 _ACEOF
7564
7565
7566 fi
7567
7568
7569
7570 echo "$as_me:$LINENO: checking for function prototypes" >&5
7571 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7572 if test "$ac_cv_prog_cc_stdc" != no; then
7573 echo "$as_me:$LINENO: result: yes" >&5
7574 echo "${ECHO_T}yes" >&6
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define PROTOTYPES 1
7578 _ACEOF
7579
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define __PROTOTYPES 1
7583 _ACEOF
7584
7585 else
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7588 fi
7589
7590 echo "$as_me:$LINENO: checking for working volatile" >&5
7591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7592 if test "${ac_cv_c_volatile+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601
7602 int
7603 main ()
7604 {
7605
7606 volatile int x;
7607 int * volatile y;
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_c_volatile=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_c_volatile=no
7639 fi
7640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7641 fi
7642 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7643 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7644 if test $ac_cv_c_volatile = no; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define volatile
7648 _ACEOF
7649
7650 fi
7651
7652 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7654 if test "${ac_cv_c_const+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663
7664 int
7665 main ()
7666 {
7667 /* FIXME: Include the comments suggested by Paul. */
7668 #ifndef __cplusplus
7669 /* Ultrix mips cc rejects this. */
7670 typedef int charset[2];
7671 const charset x;
7672 /* SunOS 4.1.1 cc rejects this. */
7673 char const *const *ccp;
7674 char **p;
7675 /* NEC SVR4.0.2 mips cc rejects this. */
7676 struct point {int x, y;};
7677 static struct point const zero = {0,0};
7678 /* AIX XL C 1.02.0.0 rejects this.
7679 It does not let you subtract one const X* pointer from another in
7680 an arm of an if-expression whose if-part is not a constant
7681 expression */
7682 const char *g = "string";
7683 ccp = &g + (g ? g-g : 0);
7684 /* HPUX 7.0 cc rejects these. */
7685 ++ccp;
7686 p = (char**) ccp;
7687 ccp = (char const *const *) p;
7688 { /* SCO 3.2v4 cc rejects this. */
7689 char *t;
7690 char const *s = 0 ? (char *) 0 : (char const *) 0;
7691
7692 *t++ = 0;
7693 }
7694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7695 int x[] = {25, 17};
7696 const int *foo = &x[0];
7697 ++foo;
7698 }
7699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7700 typedef const int *iptr;
7701 iptr p = 0;
7702 ++p;
7703 }
7704 { /* AIX XL C 1.02.0.0 rejects this saying
7705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7706 struct s { int j; const int *ap[3]; };
7707 struct s *b; b->j = 5;
7708 }
7709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7710 const int foo = 10;
7711 }
7712 #endif
7713
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_c_const=yes
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ac_cv_c_const=no
7745 fi
7746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7747 fi
7748 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7749 echo "${ECHO_T}$ac_cv_c_const" >&6
7750 if test $ac_cv_c_const = no; then
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define const
7754 _ACEOF
7755
7756 fi
7757
7758 echo "$as_me:$LINENO: checking for void * support" >&5
7759 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7760 if test "${emacs_cv_void_star+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769
7770 int
7771 main ()
7772 {
7773 void * foo;
7774 ;
7775 return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 emacs_cv_void_star=yes
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 emacs_cv_void_star=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7809 echo "${ECHO_T}$emacs_cv_void_star" >&6
7810 if test $emacs_cv_void_star = yes; then
7811 cat >>confdefs.h <<\_ACEOF
7812 #define POINTER_TYPE void
7813 _ACEOF
7814
7815 else
7816 cat >>confdefs.h <<\_ACEOF
7817 #define POINTER_TYPE char
7818 _ACEOF
7819
7820 fi
7821
7822
7823
7824
7825
7826 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7827 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7828 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7829 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 cat >conftest.make <<\_ACEOF
7833 all:
7834 @echo 'ac_maketemp="$(MAKE)"'
7835 _ACEOF
7836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7837 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7838 if test -n "$ac_maketemp"; then
7839 eval ac_cv_prog_make_${ac_make}_set=yes
7840 else
7841 eval ac_cv_prog_make_${ac_make}_set=no
7842 fi
7843 rm -f conftest.make
7844 fi
7845 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7848 SET_MAKE=
7849 else
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 SET_MAKE="MAKE=${MAKE-make}"
7853 fi
7854
7855
7856 echo "$as_me:$LINENO: checking for long file names" >&5
7857 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7858 if test "${ac_cv_sys_long_file_names+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 ac_cv_sys_long_file_names=yes
7862 # Test for long file names in all the places we know might matter:
7863 # . the current directory, where building will happen
7864 # $prefix/lib where we will be installing things
7865 # $exec_prefix/lib likewise
7866 # eval it to expand exec_prefix.
7867 # $TMPDIR if set, where it might want to write temporary files
7868 # if $TMPDIR is not set:
7869 # /tmp where it might want to write temporary files
7870 # /var/tmp likewise
7871 # /usr/tmp likewise
7872 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7873 ac_tmpdirs=$TMPDIR
7874 else
7875 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7876 fi
7877 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7878 test -d $ac_dir || continue
7879 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7880 ac_xdir=$ac_dir/cf$$
7881 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7882 ac_tf1=$ac_xdir/conftest9012345
7883 ac_tf2=$ac_xdir/conftest9012346
7884 (echo 1 >$ac_tf1) 2>/dev/null
7885 (echo 2 >$ac_tf2) 2>/dev/null
7886 ac_val=`cat $ac_tf1 2>/dev/null`
7887 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7888 ac_cv_sys_long_file_names=no
7889 rm -rf $ac_xdir 2>/dev/null
7890 break
7891 fi
7892 rm -rf $ac_xdir 2>/dev/null
7893 done
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7897 if test $ac_cv_sys_long_file_names = yes; then
7898
7899 cat >>confdefs.h <<\_ACEOF
7900 #define HAVE_LONG_FILE_NAMES 1
7901 _ACEOF
7902
7903 fi
7904
7905
7906 #### Choose a window system.
7907
7908 echo "$as_me:$LINENO: checking for X" >&5
7909 echo $ECHO_N "checking for X... $ECHO_C" >&6
7910
7911 ac_path_x_has_been_run=yes
7912
7913 # Check whether --with-x or --without-x was given.
7914 if test "${with_x+set}" = set; then
7915 withval="$with_x"
7916
7917 fi;
7918 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7919 if test "x$with_x" = xno; then
7920 # The user explicitly disabled X.
7921 have_x=disabled
7922 else
7923 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7924 # Both variables are already set.
7925 have_x=yes
7926 else
7927 if test "${ac_cv_have_x+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 # One or both of the vars are not set, and there is no cached value.
7931 ac_x_includes=no ac_x_libraries=no
7932 rm -fr conftest.dir
7933 if mkdir conftest.dir; then
7934 cd conftest.dir
7935 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7936 cat >Imakefile <<'_ACEOF'
7937 acfindx:
7938 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7939 _ACEOF
7940 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7942 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7944 for ac_extension in a so sl; do
7945 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7946 test -f $ac_im_libdir/libX11.$ac_extension; then
7947 ac_im_usrlibdir=$ac_im_libdir; break
7948 fi
7949 done
7950 # Screen out bogus values from the imake configuration. They are
7951 # bogus both because they are the default anyway, and because
7952 # using them would break gcc on systems where it needs fixed includes.
7953 case $ac_im_incroot in
7954 /usr/include) ;;
7955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7956 esac
7957 case $ac_im_usrlibdir in
7958 /usr/lib | /lib) ;;
7959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7960 esac
7961 fi
7962 cd ..
7963 rm -fr conftest.dir
7964 fi
7965
7966 # Standard set of common directories for X headers.
7967 # Check X11 before X11Rn because it is often a symlink to the current release.
7968 ac_x_header_dirs='
7969 /usr/X11/include
7970 /usr/X11R6/include
7971 /usr/X11R5/include
7972 /usr/X11R4/include
7973
7974 /usr/include/X11
7975 /usr/include/X11R6
7976 /usr/include/X11R5
7977 /usr/include/X11R4
7978
7979 /usr/local/X11/include
7980 /usr/local/X11R6/include
7981 /usr/local/X11R5/include
7982 /usr/local/X11R4/include
7983
7984 /usr/local/include/X11
7985 /usr/local/include/X11R6
7986 /usr/local/include/X11R5
7987 /usr/local/include/X11R4
7988
7989 /usr/X386/include
7990 /usr/x386/include
7991 /usr/XFree86/include/X11
7992
7993 /usr/include
7994 /usr/local/include
7995 /usr/unsupported/include
7996 /usr/athena/include
7997 /usr/local/x11r5/include
7998 /usr/lpp/Xamples/include
7999
8000 /usr/openwin/include
8001 /usr/openwin/share/include'
8002
8003 if test "$ac_x_includes" = no; then
8004 # Guess where to find include files, by looking for a specified header file.
8005 # First, try using that file with no special directory specified.
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <X11/Xlib.h>
8013 _ACEOF
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8025 else
8026 ac_cpp_err=
8027 fi
8028 else
8029 ac_cpp_err=yes
8030 fi
8031 if test -z "$ac_cpp_err"; then
8032 # We can compile using X headers with no special include directory.
8033 ac_x_includes=
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 for ac_dir in $ac_x_header_dirs; do
8039 if test -r "$ac_dir/X11/Xlib.h"; then
8040 ac_x_includes=$ac_dir
8041 break
8042 fi
8043 done
8044 fi
8045 rm -f conftest.err conftest.$ac_ext
8046 fi # $ac_x_includes = no
8047
8048 if test "$ac_x_libraries" = no; then
8049 # Check for the libraries.
8050 # See if we find them without any special options.
8051 # Don't add to $LIBS permanently.
8052 ac_save_LIBS=$LIBS
8053 LIBS="-lX11 $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <X11/Xlib.h>
8061 int
8062 main ()
8063 {
8064 XrmInitialize ()
8065 ;
8066 return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 LIBS=$ac_save_LIBS
8091 # We can link X programs with no special library path.
8092 ac_x_libraries=
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 LIBS=$ac_save_LIBS
8098 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8099 do
8100 # Don't even attempt the hair of trying to link an X program!
8101 for ac_extension in a so sl; do
8102 if test -r $ac_dir/libX11.$ac_extension; then
8103 ac_x_libraries=$ac_dir
8104 break 2
8105 fi
8106 done
8107 done
8108 fi
8109 rm -f conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 fi # $ac_x_libraries = no
8112
8113 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8114 # Didn't find X anywhere. Cache the known absence of X.
8115 ac_cv_have_x="have_x=no"
8116 else
8117 # Record where we found X for the cache.
8118 ac_cv_have_x="have_x=yes \
8119 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8120 fi
8121 fi
8122
8123 fi
8124 eval "$ac_cv_have_x"
8125 fi # $with_x != no
8126
8127 if test "$have_x" != yes; then
8128 echo "$as_me:$LINENO: result: $have_x" >&5
8129 echo "${ECHO_T}$have_x" >&6
8130 no_x=yes
8131 else
8132 # If each of the values was on the command line, it overrides each guess.
8133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8135 # Update the cache value to reflect the command line values.
8136 ac_cv_have_x="have_x=yes \
8137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8138 # It might be that x_includes is empty (headers are found in the
8139 # standard search path. Then output the corresponding message
8140 ac_out_x_includes=$x_includes
8141 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8143 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8144 fi
8145
8146 if test "$no_x" = yes; then
8147 window_system=none
8148 else
8149 window_system=x11
8150 fi
8151
8152 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8153 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8154 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8155 x_default_search_path=""
8156 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8157 x_search_path="\
8158 ${x_library}/X11/%L/%T/%N%C%S:\
8159 ${x_library}/X11/%l/%T/%N%C%S:\
8160 ${x_library}/X11/%T/%N%C%S:\
8161 ${x_library}/X11/%L/%T/%N%S:\
8162 ${x_library}/X11/%l/%T/%N%S:\
8163 ${x_library}/X11/%T/%N%S"
8164 if test x"${x_default_search_path}" = x; then
8165 x_default_search_path=${x_search_path}
8166 else
8167 x_default_search_path="${x_search_path}:${x_default_search_path}"
8168 fi
8169 done
8170 fi
8171 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8172 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8173 fi
8174
8175 if test x"${x_includes}" = x; then
8176 bitmapdir=/usr/include/X11/bitmaps
8177 else
8178 # accumulate include directories that have X11 bitmap subdirectories
8179 bmd_acc="dummyval"
8180 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8181 if test -d "${bmd}/X11/bitmaps"; then
8182 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8183 fi
8184 if test -d "${bmd}/bitmaps"; then
8185 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8186 fi
8187 done
8188 if test ${bmd_acc} != "dummyval"; then
8189 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8190 fi
8191 fi
8192
8193 HAVE_CARBON=no
8194 if test "${with_carbon}" != no; then
8195 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8196 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8197 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8202 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8203 else
8204 # Is the header compilable?
8205 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8206 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 #include <Carbon/Carbon.h>
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_header_compiler=yes
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_header_compiler=no
8243 fi
8244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8246 echo "${ECHO_T}$ac_header_compiler" >&6
8247
8248 # Is the header present?
8249 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8250 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <Carbon/Carbon.h>
8258 _ACEOF
8259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } >/dev/null; then
8267 if test -s conftest.err; then
8268 ac_cpp_err=$ac_c_preproc_warn_flag
8269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8270 else
8271 ac_cpp_err=
8272 fi
8273 else
8274 ac_cpp_err=yes
8275 fi
8276 if test -z "$ac_cpp_err"; then
8277 ac_header_preproc=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282 ac_header_preproc=no
8283 fi
8284 rm -f conftest.err conftest.$ac_ext
8285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8286 echo "${ECHO_T}$ac_header_preproc" >&6
8287
8288 # So? What about this header?
8289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8290 yes:no: )
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8295 ac_header_preproc=yes
8296 ;;
8297 no:yes:* )
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8310 (
8311 cat <<\_ASBOX
8312 ## ------------------------------------------ ##
8313 ## Report this to the AC_PACKAGE_NAME lists. ##
8314 ## ------------------------------------------ ##
8315 _ASBOX
8316 ) |
8317 sed "s/^/$as_me: WARNING: /" >&2
8318 ;;
8319 esac
8320 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8321 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8329
8330 fi
8331 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8332 HAVE_CARBON=yes
8333 fi
8334
8335
8336 fi
8337 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8338 if test "${with_carbon+set}" != set \
8339 && test "${carbon_appdir_x+set}" != set; then
8340 HAVE_CARBON=no
8341 fi
8342 fi
8343 if test "${HAVE_CARBON}" = yes; then
8344 window_system=mac
8345 fi
8346
8347 case "${window_system}" in
8348 x11 )
8349 HAVE_X_WINDOWS=yes
8350 HAVE_X11=yes
8351 case "${with_x_toolkit}" in
8352 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8353 motif ) USE_X_TOOLKIT=MOTIF ;;
8354 gtk ) with_gtk=yes
8355 USE_X_TOOLKIT=none ;;
8356 no ) USE_X_TOOLKIT=none ;;
8357 * ) USE_X_TOOLKIT=maybe ;;
8358 esac
8359 ;;
8360 mac | none )
8361 HAVE_X_WINDOWS=no
8362 HAVE_X11=no
8363 USE_X_TOOLKIT=none
8364 ;;
8365 esac
8366
8367 ### If we're using X11, we should use the X menu package.
8368 HAVE_MENUS=no
8369 case ${HAVE_X11} in
8370 yes ) HAVE_MENUS=yes ;;
8371 esac
8372
8373 if test "${opsys}" = "hpux9"; then
8374 case "${x_libraries}" in
8375 *X11R4* )
8376 opsysfile="s/hpux9-x11r4.h"
8377 ;;
8378 esac
8379 fi
8380
8381 if test "${opsys}" = "hpux9shr"; then
8382 case "${x_libraries}" in
8383 *X11R4* )
8384 opsysfile="s/hpux9shxr4.h"
8385 ;;
8386 esac
8387 fi
8388
8389 ### Compute the unexec source name from the object name.
8390 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8391
8392 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8393 # Assume not, until told otherwise.
8394 GNU_MALLOC=yes
8395 doug_lea_malloc=yes
8396 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8397 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8398 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8409 #define malloc_get_state innocuous_malloc_get_state
8410
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char malloc_get_state (); below.
8413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414 <limits.h> exists even on freestanding compilers. */
8415
8416 #ifdef __STDC__
8417 # include <limits.h>
8418 #else
8419 # include <assert.h>
8420 #endif
8421
8422 #undef malloc_get_state
8423
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 #ifdef __cplusplus
8426 extern "C"
8427 {
8428 #endif
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char malloc_get_state ();
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8436 choke me
8437 #else
8438 char (*f) () = malloc_get_state;
8439 #endif
8440 #ifdef __cplusplus
8441 }
8442 #endif
8443
8444 int
8445 main ()
8446 {
8447 return f != malloc_get_state;
8448 ;
8449 return 0;
8450 }
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_func_malloc_get_state=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 ac_cv_func_malloc_get_state=no
8479 fi
8480 rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 fi
8483 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8484 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8485 if test $ac_cv_func_malloc_get_state = yes; then
8486 :
8487 else
8488 doug_lea_malloc=no
8489 fi
8490
8491 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8492 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8493 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8504 #define malloc_set_state innocuous_malloc_set_state
8505
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char malloc_set_state (); below.
8508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8509 <limits.h> exists even on freestanding compilers. */
8510
8511 #ifdef __STDC__
8512 # include <limits.h>
8513 #else
8514 # include <assert.h>
8515 #endif
8516
8517 #undef malloc_set_state
8518
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 #ifdef __cplusplus
8521 extern "C"
8522 {
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8526 char malloc_set_state ();
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8531 choke me
8532 #else
8533 char (*f) () = malloc_set_state;
8534 #endif
8535 #ifdef __cplusplus
8536 }
8537 #endif
8538
8539 int
8540 main ()
8541 {
8542 return f != malloc_set_state;
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_func_malloc_set_state=yes
8569 else
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_cv_func_malloc_set_state=no
8574 fi
8575 rm -f conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8579 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8580 if test $ac_cv_func_malloc_set_state = yes; then
8581 :
8582 else
8583 doug_lea_malloc=no
8584 fi
8585
8586 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8587 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8588 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 extern void (* __after_morecore_hook)();
8598 int
8599 main ()
8600 {
8601 __after_morecore_hook = 0
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 emacs_cv_var___after_morecore_hook=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 emacs_cv_var___after_morecore_hook=no
8633 fi
8634 rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 fi
8637 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8639 if test $emacs_cv_var___after_morecore_hook = no; then
8640 doug_lea_malloc=no
8641 fi
8642 if test "${system_malloc}" = "yes"; then
8643 GNU_MALLOC=no
8644 GNU_MALLOC_reason="
8645 (The GNU allocators don't work with this system configuration.)"
8646 fi
8647 if test "$doug_lea_malloc" = "yes" ; then
8648 if test "$GNU_MALLOC" = yes ; then
8649 GNU_MALLOC_reason="
8650 (Using Doug Lea's new malloc from the GNU C Library.)"
8651 fi
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define DOUG_LEA_MALLOC 1
8655 _ACEOF
8656
8657 fi
8658
8659 if test x"${REL_ALLOC}" = x; then
8660 REL_ALLOC=${GNU_MALLOC}
8661 fi
8662
8663
8664
8665
8666 for ac_header in stdlib.h unistd.h
8667 do
8668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8670 echo "$as_me:$LINENO: checking for $ac_header" >&5
8671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 fi
8675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8677 else
8678 # Is the header compilable?
8679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 $ac_includes_default
8688 #include <$ac_header>
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692 (eval $ac_compile) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_header_compiler=no
8717 fi
8718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6
8721
8722 # Is the header present?
8723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <$ac_header>
8732 _ACEOF
8733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev/null; then
8741 if test -s conftest.err; then
8742 ac_cpp_err=$ac_c_preproc_warn_flag
8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8744 else
8745 ac_cpp_err=
8746 fi
8747 else
8748 ac_cpp_err=yes
8749 fi
8750 if test -z "$ac_cpp_err"; then
8751 ac_header_preproc=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_preproc=no
8757 fi
8758 rm -f conftest.err conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760 echo "${ECHO_T}$ac_header_preproc" >&6
8761
8762 # So? What about this header?
8763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 yes:no: )
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc=yes
8770 ;;
8771 no:yes:* )
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784 (
8785 cat <<\_ASBOX
8786 ## ------------------------------------------ ##
8787 ## Report this to the AC_PACKAGE_NAME lists. ##
8788 ## ------------------------------------------ ##
8789 _ASBOX
8790 ) |
8791 sed "s/^/$as_me: WARNING: /" >&2
8792 ;;
8793 esac
8794 echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 eval "$as_ac_Header=\$ac_header_preproc"
8800 fi
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8803
8804 fi
8805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 _ACEOF
8809
8810 fi
8811
8812 done
8813
8814
8815 for ac_func in getpagesize
8816 do
8817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8818 echo "$as_me:$LINENO: checking for $ac_func" >&5
8819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8820 if eval "test \"\${$as_ac_var+set}\" = set"; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831 #define $ac_func innocuous_$ac_func
8832
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char $ac_func (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8837
8838 #ifdef __STDC__
8839 # include <limits.h>
8840 #else
8841 # include <assert.h>
8842 #endif
8843
8844 #undef $ac_func
8845
8846 /* Override any gcc2 internal prototype to avoid an error. */
8847 #ifdef __cplusplus
8848 extern "C"
8849 {
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char $ac_func ();
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8858 choke me
8859 #else
8860 char (*f) () = $ac_func;
8861 #endif
8862 #ifdef __cplusplus
8863 }
8864 #endif
8865
8866 int
8867 main ()
8868 {
8869 return f != $ac_func;
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 eval "$as_ac_var=yes"
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 eval "$as_ac_var=no"
8901 fi
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 fi
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910 _ACEOF
8911
8912 fi
8913 done
8914
8915 echo "$as_me:$LINENO: checking for working mmap" >&5
8916 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8917 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 if test "$cross_compiling" = yes; then
8921 ac_cv_func_mmap_fixed_mapped=no
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 /* malloc might have been renamed as rpl_malloc. */
8931 #undef malloc
8932
8933 /* Thanks to Mike Haertel and Jim Avera for this test.
8934 Here is a matrix of mmap possibilities:
8935 mmap private not fixed
8936 mmap private fixed at somewhere currently unmapped
8937 mmap private fixed at somewhere already mapped
8938 mmap shared not fixed
8939 mmap shared fixed at somewhere currently unmapped
8940 mmap shared fixed at somewhere already mapped
8941 For private mappings, we should verify that changes cannot be read()
8942 back from the file, nor mmap's back from the file at a different
8943 address. (There have been systems where private was not correctly
8944 implemented like the infamous i386 svr4.0, and systems where the
8945 VM page cache was not coherent with the file system buffer cache
8946 like early versions of FreeBSD and possibly contemporary NetBSD.)
8947 For shared mappings, we should conversely verify that changes get
8948 propagated back to all the places they're supposed to be.
8949
8950 Grep wants private fixed already mapped.
8951 The main things grep needs to know about mmap are:
8952 * does it exist and is it safe to write into the mmap'd area
8953 * how to use it (BSD variants) */
8954
8955 #include <fcntl.h>
8956 #include <sys/mman.h>
8957
8958 #if !STDC_HEADERS && !HAVE_STDLIB_H
8959 char *malloc ();
8960 #endif
8961
8962 /* This mess was copied from the GNU getpagesize.h. */
8963 #if !HAVE_GETPAGESIZE
8964 /* Assume that all systems that can run configure have sys/param.h. */
8965 # if !HAVE_SYS_PARAM_H
8966 # define HAVE_SYS_PARAM_H 1
8967 # endif
8968
8969 # ifdef _SC_PAGESIZE
8970 # define getpagesize() sysconf(_SC_PAGESIZE)
8971 # else /* no _SC_PAGESIZE */
8972 # if HAVE_SYS_PARAM_H
8973 # include <sys/param.h>
8974 # ifdef EXEC_PAGESIZE
8975 # define getpagesize() EXEC_PAGESIZE
8976 # else /* no EXEC_PAGESIZE */
8977 # ifdef NBPG
8978 # define getpagesize() NBPG * CLSIZE
8979 # ifndef CLSIZE
8980 # define CLSIZE 1
8981 # endif /* no CLSIZE */
8982 # else /* no NBPG */
8983 # ifdef NBPC
8984 # define getpagesize() NBPC
8985 # else /* no NBPC */
8986 # ifdef PAGESIZE
8987 # define getpagesize() PAGESIZE
8988 # endif /* PAGESIZE */
8989 # endif /* no NBPC */
8990 # endif /* no NBPG */
8991 # endif /* no EXEC_PAGESIZE */
8992 # else /* no HAVE_SYS_PARAM_H */
8993 # define getpagesize() 8192 /* punt totally */
8994 # endif /* no HAVE_SYS_PARAM_H */
8995 # endif /* no _SC_PAGESIZE */
8996
8997 #endif /* no HAVE_GETPAGESIZE */
8998
8999 int
9000 main ()
9001 {
9002 char *data, *data2, *data3;
9003 int i, pagesize;
9004 int fd;
9005
9006 pagesize = getpagesize ();
9007
9008 /* First, make a file with some known garbage in it. */
9009 data = (char *) malloc (pagesize);
9010 if (!data)
9011 exit (1);
9012 for (i = 0; i < pagesize; ++i)
9013 *(data + i) = rand ();
9014 umask (0);
9015 fd = creat ("conftest.mmap", 0600);
9016 if (fd < 0)
9017 exit (1);
9018 if (write (fd, data, pagesize) != pagesize)
9019 exit (1);
9020 close (fd);
9021
9022 /* Next, try to mmap the file at a fixed address which already has
9023 something else allocated at it. If we can, also make sure that
9024 we see the same garbage. */
9025 fd = open ("conftest.mmap", O_RDWR);
9026 if (fd < 0)
9027 exit (1);
9028 data2 = (char *) malloc (2 * pagesize);
9029 if (!data2)
9030 exit (1);
9031 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9032 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9033 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9034 exit (1);
9035 for (i = 0; i < pagesize; ++i)
9036 if (*(data + i) != *(data2 + i))
9037 exit (1);
9038
9039 /* Finally, make sure that changes to the mapped area do not
9040 percolate back to the file as seen by read(). (This is a bug on
9041 some variants of i386 svr4.0.) */
9042 for (i = 0; i < pagesize; ++i)
9043 *(data2 + i) = *(data2 + i) + 1;
9044 data3 = (char *) malloc (pagesize);
9045 if (!data3)
9046 exit (1);
9047 if (read (fd, data3, pagesize) != pagesize)
9048 exit (1);
9049 for (i = 0; i < pagesize; ++i)
9050 if (*(data + i) != *(data3 + i))
9051 exit (1);
9052 close (fd);
9053 exit (0);
9054 }
9055 _ACEOF
9056 rm -f conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_func_mmap_fixed_mapped=yes
9068 else
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 ( exit $ac_status )
9074 ac_cv_func_mmap_fixed_mapped=no
9075 fi
9076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9077 fi
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9080 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9082
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_MMAP 1
9085 _ACEOF
9086
9087 fi
9088 rm -f conftest.mmap
9089
9090 if test $use_mmap_for_buffers = yes; then
9091 REL_ALLOC=no
9092 fi
9093
9094 LIBS="$libsrc_libs $LIBS"
9095
9096
9097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9098 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9099 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-ldnet $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110
9111 /* Override any gcc2 internal prototype to avoid an error. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9117 char dnet_ntoa ();
9118 int
9119 main ()
9120 {
9121 dnet_ntoa ();
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_dnet_dnet_ntoa=yes
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 ac_cv_lib_dnet_dnet_ntoa=no
9153 fi
9154 rm -f conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9159 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9160 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define HAVE_LIBDNET 1
9163 _ACEOF
9164
9165 LIBS="-ldnet $LIBS"
9166
9167 fi
9168
9169
9170 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9171 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9172 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lXbsd $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183
9184
9185 int
9186 main ()
9187 {
9188 main ();
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_Xbsd_main=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_lib_Xbsd_main=no
9220 fi
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9224 fi
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9226 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9227 if test $ac_cv_lib_Xbsd_main = yes; then
9228 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9229 fi
9230
9231
9232
9233 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9234 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9235 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lpthreads $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246
9247 /* Override any gcc2 internal prototype to avoid an error. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9253 char cma_open ();
9254 int
9255 main ()
9256 {
9257 cma_open ();
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_lib_pthreads_cma_open=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 ac_cv_lib_pthreads_cma_open=no
9289 fi
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9293 fi
9294 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9295 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9296 if test $ac_cv_lib_pthreads_cma_open = yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_LIBPTHREADS 1
9299 _ACEOF
9300
9301 LIBS="-lpthreads $LIBS"
9302
9303 fi
9304
9305
9306 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9307 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9308 if test -d /usr/X386/include; then
9309 HAVE_XFREE386=yes
9310 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9311 else
9312 HAVE_XFREE386=no
9313 fi
9314 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9315 echo "${ECHO_T}$HAVE_XFREE386" >&6
9316
9317
9318 case ${host_os} in
9319 aix*)
9320 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9321 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9322 if test "${gdb_cv_bigtoc+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325
9326 case $GCC in
9327 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9328 *) gdb_cv_bigtoc=-bbigtoc ;;
9329 esac
9330
9331 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338
9339 int
9340 main ()
9341 {
9342 int i;
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; } &&
9362 { ac_try='test -s conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 :
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373 gdb_cv_bigtoc=
9374 fi
9375 rm -f conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377
9378 fi
9379 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9380 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9381 ;;
9382 esac
9383
9384 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9385 # used for the tests that follow. We set them back to REAL_CFLAGS and
9386 # REAL_CPPFLAGS later on.
9387
9388 REAL_CPPFLAGS="$CPPFLAGS"
9389
9390 if test "${HAVE_X11}" = "yes"; then
9391 DEFS="$C_SWITCH_X_SITE $DEFS"
9392 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9393 LIBS="$LIBX $LIBS"
9394 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9395 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9396
9397 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9398 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9399 # but it's more convenient here to set LD_RUN_PATH
9400 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9401 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9402 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9403 export LD_RUN_PATH
9404 fi
9405
9406 if test "${opsys}" = "gnu-linux"; then
9407 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9408 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415
9416 int
9417 main ()
9418 {
9419 XOpenDisplay ("foo");
9420 ;
9421 return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_first_failure=no
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 xlinux_first_failure=yes
9451 fi
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "${xlinux_first_failure}" = "yes"; then
9455 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9456 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9457 OLD_CPPFLAGS="$CPPFLAGS"
9458 OLD_LIBS="$LIBS"
9459 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9460 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9461 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9462 LIBS="$LIBS -b i486-linuxaout"
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469
9470 int
9471 main ()
9472 {
9473 XOpenDisplay ("foo");
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 xlinux_second_failure=no
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 xlinux_second_failure=yes
9505 fi
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test "${xlinux_second_failure}" = "yes"; then
9509 # If we get the same failure with -b, there is no use adding -b.
9510 # So take it out. This plays safe.
9511 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9512 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9513 CPPFLAGS="$OLD_CPPFLAGS"
9514 LIBS="$OLD_LIBS"
9515 echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9517 else
9518 echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9520 fi
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6
9524 fi
9525 fi
9526
9527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9528 # header files included from there.
9529 echo "$as_me:$LINENO: checking for Xkb" >&5
9530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <X11/Xlib.h>
9538 #include <X11/XKBlib.h>
9539 int
9540 main ()
9541 {
9542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 emacs_xkb=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 emacs_xkb=no
9574 fi
9575 rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9578 echo "${ECHO_T}$emacs_xkb" >&6
9579 if test $emacs_xkb = yes; then
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_XKBGETKEYBOARD 1
9583 _ACEOF
9584
9585 fi
9586
9587
9588
9589
9590
9591 for ac_func in XrmSetDatabase XScreenResourceString \
9592 XScreenNumberOfScreen XSetWMProtocols
9593 do
9594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595 echo "$as_me:$LINENO: checking for $ac_func" >&5
9596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597 if eval "test \"\${$as_ac_var+set}\" = set"; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define $ac_func innocuous_$ac_func
9609
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9614
9615 #ifdef __STDC__
9616 # include <limits.h>
9617 #else
9618 # include <assert.h>
9619 #endif
9620
9621 #undef $ac_func
9622
9623 /* Override any gcc2 internal prototype to avoid an error. */
9624 #ifdef __cplusplus
9625 extern "C"
9626 {
9627 #endif
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char $ac_func ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9635 choke me
9636 #else
9637 char (*f) () = $ac_func;
9638 #endif
9639 #ifdef __cplusplus
9640 }
9641 #endif
9642
9643 int
9644 main ()
9645 {
9646 return f != $ac_func;
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 eval "$as_ac_var=yes"
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 eval "$as_ac_var=no"
9678 fi
9679 rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687 _ACEOF
9688
9689 fi
9690 done
9691
9692 fi
9693
9694 if test "${window_system}" = "x11"; then
9695 echo "$as_me:$LINENO: checking X11 version 6" >&5
9696 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9697 if test "${emacs_cv_x11_version_6+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <X11/Xlib.h>
9707 int
9708 main ()
9709 {
9710 #if XlibSpecificationRelease < 6
9711 fail;
9712 #endif
9713
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 emacs_cv_x11_version_6=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 emacs_cv_x11_version_6=no
9745 fi
9746 rm -f conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 fi
9749
9750 if test $emacs_cv_x11_version_6 = yes; then
9751 echo "$as_me:$LINENO: result: 6 or newer" >&5
9752 echo "${ECHO_T}6 or newer" >&6
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_X11R6 1
9756 _ACEOF
9757
9758 else
9759 echo "$as_me:$LINENO: result: before 6" >&5
9760 echo "${ECHO_T}before 6" >&6
9761 fi
9762 fi
9763
9764 if test "${window_system}" = "x11"; then
9765 echo "$as_me:$LINENO: checking X11 version 5" >&5
9766 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9767 if test "${emacs_cv_x11_version_5+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <X11/Xlib.h>
9777 int
9778 main ()
9779 {
9780 #if XlibSpecificationRelease < 5
9781 fail;
9782 #endif
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 emacs_cv_x11_version_5=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 emacs_cv_x11_version_5=no
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 fi
9819
9820 if test $emacs_cv_x11_version_5 = yes; then
9821 echo "$as_me:$LINENO: result: 5 or newer" >&5
9822 echo "${ECHO_T}5 or newer" >&6
9823 HAVE_X11R5=yes
9824
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_X11R5 1
9827 _ACEOF
9828
9829 else
9830 HAVE_X11R5=no
9831 echo "$as_me:$LINENO: result: before 5" >&5
9832 echo "${ECHO_T}before 5" >&6
9833 fi
9834 fi
9835
9836
9837
9838 HAVE_GTK=no
9839 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9840 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9841 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9842 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9843 { (exit 1); exit 1; }; };
9844 fi
9845 GLIB_REQUIRED=2.0.1
9846 GTK_REQUIRED=2.0.1
9847 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9848
9849 if test "X${with_pkg_config_prog}" != X; then
9850 PKG_CONFIG="${with_pkg_config_prog}"
9851 fi
9852
9853 succeeded=no
9854
9855 if test -z "$PKG_CONFIG"; then
9856 # Extract the first word of "pkg-config", so it can be a program name with args.
9857 set dummy pkg-config; ac_word=$2
9858 echo "$as_me:$LINENO: checking for $ac_word" >&5
9859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 case $PKG_CONFIG in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9866 ;;
9867 *)
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9878 fi
9879 done
9880 done
9881
9882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9883 ;;
9884 esac
9885 fi
9886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9887
9888 if test -n "$PKG_CONFIG"; then
9889 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9890 echo "${ECHO_T}$PKG_CONFIG" >&6
9891 else
9892 echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9894 fi
9895
9896 fi
9897
9898 if test "$PKG_CONFIG" = "no" ; then
9899 echo "*** The pkg-config script could not be found. Make sure it is"
9900 echo "*** in your path, or give the full path to pkg-config with"
9901 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9902 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9903 else
9904 PKG_CONFIG_MIN_VERSION=0.9.0
9905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9906 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9907 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9908
9909 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9912 succeeded=yes
9913
9914 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9915 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9916 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9917 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9918 echo "${ECHO_T}$GTK_CFLAGS" >&6
9919
9920 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9921 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9922 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9923 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9924 echo "${ECHO_T}$GTK_LIBS" >&6
9925 else
9926 GTK_CFLAGS=""
9927 GTK_LIBS=""
9928 ## If we have a custom action on failure, don't print errors, but
9929 ## do set a variable so people can do so.
9930 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9931 echo $GTK_PKG_ERRORS
9932 fi
9933
9934
9935
9936 else
9937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9939 fi
9940 fi
9941
9942 if test $succeeded = yes; then
9943 :
9944 else
9945 { { 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
9946 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;}
9947 { (exit 1); exit 1; }; }
9948 fi
9949
9950
9951
9952 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9953 CFLAGS="$CFLAGS $GTK_CFLAGS"
9954 LIBS="$GTK_LIBS $LIBS"
9955 HAVE_GTK=yes
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_GTK 1
9959 _ACEOF
9960
9961 USE_X_TOOLKIT=none
9962
9963 if test "$with_toolkit_scroll_bars" != no; then
9964 with_toolkit_scroll_bars=yes
9965 fi
9966
9967 HAVE_GTK_MULTIDISPLAY=no
9968
9969 HAVE_GTK_FILE_SELECTION=no
9970
9971 for ac_func in gtk_file_selection_new
9972 do
9973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9974 echo "$as_me:$LINENO: checking for $ac_func" >&5
9975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9976 if eval "test \"\${$as_ac_var+set}\" = set"; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9987 #define $ac_func innocuous_$ac_func
9988
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func (); below.
9991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9992 <limits.h> exists even on freestanding compilers. */
9993
9994 #ifdef __STDC__
9995 # include <limits.h>
9996 #else
9997 # include <assert.h>
9998 #endif
9999
10000 #undef $ac_func
10001
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 #ifdef __cplusplus
10004 extern "C"
10005 {
10006 #endif
10007 /* We use char because int might match the return type of a gcc2
10008 builtin and then its argument prototype would still apply. */
10009 char $ac_func ();
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10014 choke me
10015 #else
10016 char (*f) () = $ac_func;
10017 #endif
10018 #ifdef __cplusplus
10019 }
10020 #endif
10021
10022 int
10023 main ()
10024 {
10025 return f != $ac_func;
10026 ;
10027 return 0;
10028 }
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 eval "$as_ac_var=yes"
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 eval "$as_ac_var=no"
10057 fi
10058 rm -f conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 fi
10061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10063 if test `eval echo '${'$as_ac_var'}'` = yes; then
10064 cat >>confdefs.h <<_ACEOF
10065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10066 _ACEOF
10067 HAVE_GTK_FILE_SELECTION=yes
10068 fi
10069 done
10070
10071
10072 HAVE_GTK_FILE_CHOOSER=no
10073
10074 for ac_func in gtk_file_chooser_dialog_new
10075 do
10076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10077 echo "$as_me:$LINENO: checking for $ac_func" >&5
10078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10079 if eval "test \"\${$as_ac_var+set}\" = set"; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10090 #define $ac_func innocuous_$ac_func
10091
10092 /* System header to define __stub macros and hopefully few prototypes,
10093 which can conflict with char $ac_func (); below.
10094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095 <limits.h> exists even on freestanding compilers. */
10096
10097 #ifdef __STDC__
10098 # include <limits.h>
10099 #else
10100 # include <assert.h>
10101 #endif
10102
10103 #undef $ac_func
10104
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 {
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char $ac_func ();
10113 /* The GNU C library defines this for functions which it implements
10114 to always fail with ENOSYS. Some functions are actually named
10115 something starting with __ and the normal name is an alias. */
10116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10117 choke me
10118 #else
10119 char (*f) () = $ac_func;
10120 #endif
10121 #ifdef __cplusplus
10122 }
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return f != $ac_func;
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 eval "$as_ac_var=yes"
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 eval "$as_ac_var=no"
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10169 _ACEOF
10170 HAVE_GTK_FILE_CHOOSER=yes
10171 fi
10172 done
10173
10174
10175 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10176 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10177
10178 cat >>confdefs.h <<\_ACEOF
10179 #define HAVE_GTK_FILE_BOTH 1
10180 _ACEOF
10181
10182 fi
10183
10184 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10185 HAVE_GTK_AND_PTHREAD=no
10186
10187 for ac_header in pthread.h
10188 do
10189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10191 echo "$as_me:$LINENO: checking for $ac_header" >&5
10192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 fi
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10198 else
10199 # Is the header compilable?
10200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10209 #include <$ac_header>
10210 _ACEOF
10211 rm -f conftest.$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_header_compiler=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_header_compiler=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10242
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <$ac_header>
10253 _ACEOF
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } >/dev/null; then
10262 if test -s conftest.err; then
10263 ac_cpp_err=$ac_c_preproc_warn_flag
10264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10265 else
10266 ac_cpp_err=
10267 fi
10268 else
10269 ac_cpp_err=yes
10270 fi
10271 if test -z "$ac_cpp_err"; then
10272 ac_header_preproc=yes
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_header_preproc=no
10278 fi
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10282
10283 # So? What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285 yes:no: )
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290 ac_header_preproc=yes
10291 ;;
10292 no:yes:* )
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10305 (
10306 cat <<\_ASBOX
10307 ## ------------------------------------------ ##
10308 ## Report this to the AC_PACKAGE_NAME lists. ##
10309 ## ------------------------------------------ ##
10310 _ASBOX
10311 ) |
10312 sed "s/^/$as_me: WARNING: /" >&2
10313 ;;
10314 esac
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 eval "$as_ac_Header=\$ac_header_preproc"
10321 fi
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325 fi
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327 cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10330
10331 fi
10332
10333 done
10334
10335 if test "$ac_cv_header_pthread_h"; then
10336 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10337 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10338 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lpthread $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349
10350 /* Override any gcc2 internal prototype to avoid an error. */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char pthread_self ();
10357 int
10358 main ()
10359 {
10360 pthread_self ();
10361 ;
10362 return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_lib_pthread_pthread_self=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_cv_lib_pthread_pthread_self=no
10392 fi
10393 rm -f conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10398 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10399 if test $ac_cv_lib_pthread_pthread_self = yes; then
10400 HAVE_GTK_AND_PTHREAD=yes
10401 fi
10402
10403 fi
10404 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10405 GTK_LIBS="$GTK_LIBS -lpthread"
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_GTK_AND_PTHREAD 1
10409 _ACEOF
10410
10411 fi
10412 fi
10413 fi
10414
10415 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10416 if test x"${HAVE_X11R5}" = xyes; then
10417 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10418 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10419 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428
10429 #include <X11/Intrinsic.h>
10430 #include <X11/Xaw/Simple.h>
10431 int
10432 main ()
10433 {
10434
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>conftest.er1
10442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 emacs_cv_x11_version_5_with_xaw=yes
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465 emacs_cv_x11_version_5_with_xaw=no
10466 fi
10467 rm -f conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 fi
10470
10471 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10472 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10473 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10474 USE_X_TOOLKIT=LUCID
10475 else
10476 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10477 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10478 USE_X_TOOLKIT=none
10479 fi
10480 else
10481 USE_X_TOOLKIT=none
10482 fi
10483 fi
10484
10485 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10486
10487 if test "${USE_X_TOOLKIT}" != "none"; then
10488 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10489 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10490 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #include <X11/Intrinsic.h>
10500 int
10501 main ()
10502 {
10503 #if XtSpecificationRelease < 6
10504 fail;
10505 #endif
10506
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513 (eval $ac_link) 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 emacs_cv_x11_toolkit_version_6=yes
10533 else
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537 emacs_cv_x11_toolkit_version_6=no
10538 fi
10539 rm -f conftest.err conftest.$ac_objext \
10540 conftest$ac_exeext conftest.$ac_ext
10541 fi
10542
10543 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10544 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10545 echo "$as_me:$LINENO: result: 6 or newer" >&5
10546 echo "${ECHO_T}6 or newer" >&6
10547
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_X11XTR6 1
10550 _ACEOF
10551
10552 else
10553 echo "$as_me:$LINENO: result: before 6" >&5
10554 echo "${ECHO_T}before 6" >&6
10555 fi
10556
10557 OLDLIBS="$LIBS"
10558 if test x$HAVE_X11XTR6 = xyes; then
10559 LIBS="-lXt -lSM -lICE $LIBS"
10560 else
10561 LIBS="-lXt $LIBS"
10562 fi
10563
10564 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10565 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10566 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-lXmu $LIBS"
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10584 char XmuConvertStandardSelection ();
10585 int
10586 main ()
10587 {
10588 XmuConvertStandardSelection ();
10589 ;
10590 return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10620 fi
10621 rm -f conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10626 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10627 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10628 cat >>confdefs.h <<_ACEOF
10629 #define HAVE_LIBXMU 1
10630 _ACEOF
10631
10632 LIBS="-lXmu $LIBS"
10633
10634 fi
10635
10636 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10637 fi
10638
10639 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10640 if test "${HAVE_X11}" = "yes"; then
10641 if test "${USE_X_TOOLKIT}" != "none"; then
10642
10643 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10644 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10645 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lXext $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char XShapeQueryExtension ();
10664 int
10665 main ()
10666 {
10667 XShapeQueryExtension ();
10668 ;
10669 return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest$ac_exeext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_lib_Xext_XShapeQueryExtension=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_lib_Xext_XShapeQueryExtension=no
10699 fi
10700 rm -f conftest.err conftest.$ac_objext \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10703 fi
10704 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10705 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10706 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_LIBXEXT 1
10709 _ACEOF
10710
10711 LIBS="-lXext $LIBS"
10712
10713 fi
10714
10715 fi
10716 fi
10717
10718 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10719 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10720 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10721 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <Xm/Xm.h>
10731 int
10732 main ()
10733 {
10734 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10735 int x = 5;
10736 #else
10737 Motif version prior to 2.1.
10738 #endif
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10764 emacs_cv_motif_version_2_1=yes
10765 else
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769 emacs_cv_motif_version_2_1=no
10770 fi
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10774 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10775 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10776 if test $emacs_cv_motif_version_2_1 = yes; then
10777 HAVE_LIBXP=no
10778
10779 cat >>confdefs.h <<\_ACEOF
10780 #define HAVE_MOTIF_2_1 1
10781 _ACEOF
10782
10783 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10784 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10785 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788 ac_check_lib_save_LIBS=$LIBS
10789 LIBS="-lXp $LIBS"
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796
10797 /* Override any gcc2 internal prototype to avoid an error. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 /* We use char because int might match the return type of a gcc2
10802 builtin and then its argument prototype would still apply. */
10803 char XpCreateContext ();
10804 int
10805 main ()
10806 {
10807 XpCreateContext ();
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10833 ac_cv_lib_Xp_XpCreateContext=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_cv_lib_Xp_XpCreateContext=no
10839 fi
10840 rm -f conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10845 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10846 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10847 HAVE_LIBXP=yes
10848 fi
10849
10850 if test ${HAVE_LIBXP} = yes; then
10851
10852 cat >>confdefs.h <<\_ACEOF
10853 #define HAVE_LIBXP 1
10854 _ACEOF
10855
10856 fi
10857 else
10858 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10859 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10860 if test "${emacs_cv_lesstif+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 # We put this in CFLAGS temporarily to precede other -I options
10864 # that might be in CFLAGS temporarily.
10865 # We put this in CPPFLAGS where it precedes the other -I options.
10866 OLD_CPPFLAGS=$CPPFLAGS
10867 OLD_CFLAGS=$CFLAGS
10868 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10869 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10877 int
10878 main ()
10879 {
10880 int x = 5;
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest.$ac_objext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 emacs_cv_lesstif=yes
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 emacs_cv_lesstif=no
10912 fi
10913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10914 fi
10915 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10916 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10917 if test $emacs_cv_lesstif = yes; then
10918 # Make sure this -I option remains in CPPFLAGS after it is set
10919 # back to REAL_CPPFLAGS.
10920 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10921 # have those other -I options anyway. Ultimately, having this
10922 # directory ultimately in CPPFLAGS will be enough.
10923 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10924 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10925 else
10926 CFLAGS=$OLD_CFLAGS
10927 CPPFLAGS=$OLD_CPPFLAGS
10928 fi
10929 fi
10930 fi
10931
10932 ### Is -lXaw3d available?
10933 HAVE_XAW3D=no
10934 if test "${HAVE_X11}" = "yes"; then
10935 if test "${USE_X_TOOLKIT}" != "none"; then
10936 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10937 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10938 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
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 #include <X11/Xaw3d/Scrollbar.h>
10948 _ACEOF
10949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } >/dev/null; then
10957 if test -s conftest.err; then
10958 ac_cpp_err=$ac_c_preproc_warn_flag
10959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10960 else
10961 ac_cpp_err=
10962 fi
10963 else
10964 ac_cpp_err=yes
10965 fi
10966 if test -z "$ac_cpp_err"; then
10967 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10973 fi
10974 rm -f conftest.err conftest.$ac_ext
10975 fi
10976 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10977 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10978 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10979 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10980 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10981 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lXaw3d $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char XawScrollbarSetThumb ();
11000 int
11001 main ()
11002 {
11003 XawScrollbarSetThumb ();
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11035 fi
11036 rm -f conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11041 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11042 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11043 HAVE_XAW3D=yes
11044 fi
11045
11046 fi
11047
11048
11049 if test "${HAVE_XAW3D}" = "yes"; then
11050
11051 cat >>confdefs.h <<\_ACEOF
11052 #define HAVE_XAW3D 1
11053 _ACEOF
11054
11055 fi
11056 fi
11057 fi
11058
11059
11060
11061 USE_TOOLKIT_SCROLL_BARS=no
11062 if test "${with_toolkit_scroll_bars}" != "no"; then
11063 if test "${USE_X_TOOLKIT}" != "none"; then
11064 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define USE_TOOLKIT_SCROLL_BARS 1
11067 _ACEOF
11068
11069 HAVE_XAW3D=no
11070 USE_TOOLKIT_SCROLL_BARS=yes
11071 elif test "${HAVE_XAW3D}" = "yes"; then
11072 cat >>confdefs.h <<\_ACEOF
11073 #define USE_TOOLKIT_SCROLL_BARS 1
11074 _ACEOF
11075
11076 USE_TOOLKIT_SCROLL_BARS=yes
11077 fi
11078 elif test "${HAVE_GTK}" = "yes"; then
11079 cat >>confdefs.h <<\_ACEOF
11080 #define USE_TOOLKIT_SCROLL_BARS 1
11081 _ACEOF
11082
11083 USE_TOOLKIT_SCROLL_BARS=yes
11084 elif test "${HAVE_CARBON}" = "yes"; then
11085 cat >>confdefs.h <<\_ACEOF
11086 #define USE_TOOLKIT_SCROLL_BARS 1
11087 _ACEOF
11088
11089 USE_TOOLKIT_SCROLL_BARS=yes
11090 fi
11091 fi
11092
11093 cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h. */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099
11100 #include <X11/Xlib.h>
11101 #include <X11/Xresource.h>
11102 int
11103 main ()
11104 {
11105 XIMProc callback;
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 HAVE_XIM=yes
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_XIM 1
11135 _ACEOF
11136
11137 else
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 HAVE_XIM=no
11142 fi
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144
11145
11146 if test "${with_xim}" != "no"; then
11147
11148 cat >>confdefs.h <<\_ACEOF
11149 #define USE_XIM 1
11150 _ACEOF
11151
11152 fi
11153
11154
11155 if test "${HAVE_XIM}" != "no"; then
11156 late_CFLAGS=$CFLAGS
11157 if test "$GCC" = yes; then
11158 CFLAGS="$CFLAGS --pedantic-errors"
11159 fi
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166
11167 #include <X11/Xlib.h>
11168 #include <X11/Xresource.h>
11169 int
11170 main ()
11171 {
11172 Display *display;
11173 XrmDatabase db;
11174 char *res_name;
11175 char *res_class;
11176 XIMProc callback;
11177 XPointer *client_data;
11178 #ifndef __GNUC__
11179 /* If we're not using GCC, it's probably not XFree86, and this is
11180 probably right, but we can't use something like --pedantic-errors. */
11181 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11182 char*, XIMProc, XPointer*);
11183 #endif
11184 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11185 client_data);
11186 ;
11187 return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 emacs_cv_arg6_star=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 fi
11217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11218
11219 if test "$emacs_cv_arg6_star" = yes; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11222 _ACEOF
11223
11224 else
11225 cat >>confdefs.h <<\_ACEOF
11226 #define XRegisterIMInstantiateCallback_arg6 XPointer
11227 _ACEOF
11228
11229 fi
11230 CFLAGS=$late_CFLAGS
11231 fi
11232
11233 ### Use -lXpm if available, unless `--with-xpm=no'.
11234 HAVE_XPM=no
11235 if test "${HAVE_X11}" = "yes"; then
11236 if test "${with_xpm}" != "no"; then
11237 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11238 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11239 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11240 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 fi
11243 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11244 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11245 else
11246 # Is the header compilable?
11247 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11248 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 #include <X11/xpm.h>
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_header_compiler=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 ac_header_compiler=no
11285 fi
11286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11288 echo "${ECHO_T}$ac_header_compiler" >&6
11289
11290 # Is the header present?
11291 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11292 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <X11/xpm.h>
11300 _ACEOF
11301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } >/dev/null; then
11309 if test -s conftest.err; then
11310 ac_cpp_err=$ac_c_preproc_warn_flag
11311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11312 else
11313 ac_cpp_err=
11314 fi
11315 else
11316 ac_cpp_err=yes
11317 fi
11318 if test -z "$ac_cpp_err"; then
11319 ac_header_preproc=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_header_preproc=no
11325 fi
11326 rm -f conftest.err conftest.$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11328 echo "${ECHO_T}$ac_header_preproc" >&6
11329
11330 # So? What about this header?
11331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11332 yes:no: )
11333 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11334 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11336 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11337 ac_header_preproc=yes
11338 ;;
11339 no:yes:* )
11340 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11341 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11343 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11345 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11347 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11349 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11351 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11352 (
11353 cat <<\_ASBOX
11354 ## ------------------------------------------ ##
11355 ## Report this to the AC_PACKAGE_NAME lists. ##
11356 ## ------------------------------------------ ##
11357 _ASBOX
11358 ) |
11359 sed "s/^/$as_me: WARNING: /" >&2
11360 ;;
11361 esac
11362 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11363 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11364 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 ac_cv_header_X11_xpm_h=$ac_header_preproc
11368 fi
11369 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11370 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11371
11372 fi
11373 if test $ac_cv_header_X11_xpm_h = yes; then
11374 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11375 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11376 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 ac_check_lib_save_LIBS=$LIBS
11380 LIBS="-lXpm -lX11 $LIBS"
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394 char XpmReadFileToPixmap ();
11395 int
11396 main ()
11397 {
11398 XpmReadFileToPixmap ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11430 fi
11431 rm -f conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11436 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11437 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11438 HAVE_XPM=yes
11439 fi
11440
11441 fi
11442
11443
11444 if test "${HAVE_XPM}" = "yes"; then
11445 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11446 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include "X11/xpm.h"
11454 #ifndef XpmReturnAllocPixels
11455 no_return_alloc_pixels
11456 #endif
11457
11458 _ACEOF
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11461 HAVE_XPM=no
11462 else
11463 HAVE_XPM=yes
11464 fi
11465 rm -f conftest*
11466
11467
11468 if test "${HAVE_XPM}" = "yes"; then
11469 echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6
11471 else
11472 echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6
11474 fi
11475 fi
11476 fi
11477
11478 if test "${HAVE_XPM}" = "yes"; then
11479
11480 cat >>confdefs.h <<\_ACEOF
11481 #define HAVE_XPM 1
11482 _ACEOF
11483
11484 fi
11485 fi
11486
11487 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11488 HAVE_JPEG=no
11489 if test "${HAVE_X11}" = "yes"; then
11490 if test "${with_jpeg}" != "no"; then
11491 if test "${ac_cv_header_jerror_h+set}" = set; then
11492 echo "$as_me:$LINENO: checking for jerror.h" >&5
11493 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11494 if test "${ac_cv_header_jerror_h+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 fi
11497 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11498 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11499 else
11500 # Is the header compilable?
11501 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11502 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 #include <jerror.h>
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_header_compiler=yes
11534 else
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 ac_header_compiler=no
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11542 echo "${ECHO_T}$ac_header_compiler" >&6
11543
11544 # Is the header present?
11545 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11546 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h. */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 #include <jerror.h>
11554 _ACEOF
11555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null; then
11563 if test -s conftest.err; then
11564 ac_cpp_err=$ac_c_preproc_warn_flag
11565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 else
11567 ac_cpp_err=
11568 fi
11569 else
11570 ac_cpp_err=yes
11571 fi
11572 if test -z "$ac_cpp_err"; then
11573 ac_header_preproc=yes
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_header_preproc=no
11579 fi
11580 rm -f conftest.err conftest.$ac_ext
11581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6
11583
11584 # So? What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11586 yes:no: )
11587 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11591 ac_header_preproc=yes
11592 ;;
11593 no:yes:* )
11594 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11606 (
11607 cat <<\_ASBOX
11608 ## ------------------------------------------ ##
11609 ## Report this to the AC_PACKAGE_NAME lists. ##
11610 ## ------------------------------------------ ##
11611 _ASBOX
11612 ) |
11613 sed "s/^/$as_me: WARNING: /" >&2
11614 ;;
11615 esac
11616 echo "$as_me:$LINENO: checking for jerror.h" >&5
11617 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11618 if test "${ac_cv_header_jerror_h+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 ac_cv_header_jerror_h=$ac_header_preproc
11622 fi
11623 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11624 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11625
11626 fi
11627 if test $ac_cv_header_jerror_h = yes; then
11628 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11629 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11630 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-ljpeg $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641
11642 /* Override any gcc2 internal prototype to avoid an error. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 /* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11648 char jpeg_destroy_compress ();
11649 int
11650 main ()
11651 {
11652 jpeg_destroy_compress ();
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11679 else
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11684 fi
11685 rm -f conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11690 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11691 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11692 HAVE_JPEG=yes
11693 fi
11694
11695 fi
11696
11697
11698 fi
11699
11700
11701 if test "${HAVE_JPEG}" = "yes"; then
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_JPEG 1
11704 _ACEOF
11705
11706 cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h. */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 #include <jpeglib.h>
11713 version=JPEG_LIB_VERSION
11714
11715 _ACEOF
11716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11717 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define HAVE_JPEG 1
11720 _ACEOF
11721
11722 else
11723 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11724 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11725 HAVE_JPEG=no
11726 fi
11727 rm -f conftest*
11728
11729 fi
11730 fi
11731
11732 ### Use -lpng if available, unless `--with-png=no'.
11733 HAVE_PNG=no
11734 if test "${HAVE_X11}" = "yes"; then
11735 if test "${with_png}" != "no"; then
11736 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11737 # in /usr/include/libpng.
11738
11739
11740 for ac_header in png.h libpng/png.h
11741 do
11742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744 echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 fi
11749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11751 else
11752 # Is the header compilable?
11753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11762 #include <$ac_header>
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_header_compiler=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_header_compiler=no
11791 fi
11792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11794 echo "${ECHO_T}$ac_header_compiler" >&6
11795
11796 # Is the header present?
11797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <$ac_header>
11806 _ACEOF
11807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } >/dev/null; then
11815 if test -s conftest.err; then
11816 ac_cpp_err=$ac_c_preproc_warn_flag
11817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818 else
11819 ac_cpp_err=
11820 fi
11821 else
11822 ac_cpp_err=yes
11823 fi
11824 if test -z "$ac_cpp_err"; then
11825 ac_header_preproc=yes
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 ac_header_preproc=no
11831 fi
11832 rm -f conftest.err conftest.$ac_ext
11833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6
11835
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11838 yes:no: )
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc=yes
11844 ;;
11845 no:yes:* )
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11858 (
11859 cat <<\_ASBOX
11860 ## ------------------------------------------ ##
11861 ## Report this to the AC_PACKAGE_NAME lists. ##
11862 ## ------------------------------------------ ##
11863 _ASBOX
11864 ) |
11865 sed "s/^/$as_me: WARNING: /" >&2
11866 ;;
11867 esac
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 eval "$as_ac_Header=\$ac_header_preproc"
11874 fi
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11877
11878 fi
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11883
11884 fi
11885
11886 done
11887
11888 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11889 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11890 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11891 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lpng -lz -lm $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902
11903 /* Override any gcc2 internal prototype to avoid an error. */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char png_get_channels ();
11910 int
11911 main ()
11912 {
11913 png_get_channels ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_png_png_get_channels=yes
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944 ac_cv_lib_png_png_get_channels=no
11945 fi
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11951 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11952 if test $ac_cv_lib_png_png_get_channels = yes; then
11953 HAVE_PNG=yes
11954 fi
11955
11956 fi
11957 fi
11958
11959 if test "${HAVE_PNG}" = "yes"; then
11960
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_PNG 1
11963 _ACEOF
11964
11965 fi
11966 fi
11967
11968 ### Use -ltiff if available, unless `--with-tiff=no'.
11969 HAVE_TIFF=no
11970 if test "${HAVE_X11}" = "yes"; then
11971 if test "${with_tiff}" != "no"; then
11972 if test "${ac_cv_header_tiffio_h+set}" = set; then
11973 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11974 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11975 if test "${ac_cv_header_tiffio_h+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 fi
11978 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11979 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11980 else
11981 # Is the header compilable?
11982 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11983 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 #include <tiffio.h>
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_header_compiler=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_header_compiler=no
12020 fi
12021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12023 echo "${ECHO_T}$ac_header_compiler" >&6
12024
12025 # Is the header present?
12026 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12027 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 #include <tiffio.h>
12035 _ACEOF
12036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } >/dev/null; then
12044 if test -s conftest.err; then
12045 ac_cpp_err=$ac_c_preproc_warn_flag
12046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12047 else
12048 ac_cpp_err=
12049 fi
12050 else
12051 ac_cpp_err=yes
12052 fi
12053 if test -z "$ac_cpp_err"; then
12054 ac_header_preproc=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_header_preproc=no
12060 fi
12061 rm -f conftest.err conftest.$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12063 echo "${ECHO_T}$ac_header_preproc" >&6
12064
12065 # So? What about this header?
12066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12067 yes:no: )
12068 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12069 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12071 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12072 ac_header_preproc=yes
12073 ;;
12074 no:yes:* )
12075 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12076 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12078 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12080 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12082 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12086 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12087 (
12088 cat <<\_ASBOX
12089 ## ------------------------------------------ ##
12090 ## Report this to the AC_PACKAGE_NAME lists. ##
12091 ## ------------------------------------------ ##
12092 _ASBOX
12093 ) |
12094 sed "s/^/$as_me: WARNING: /" >&2
12095 ;;
12096 esac
12097 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12098 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12099 if test "${ac_cv_header_tiffio_h+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 ac_cv_header_tiffio_h=$ac_header_preproc
12103 fi
12104 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12105 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12106
12107 fi
12108 if test $ac_cv_header_tiffio_h = yes; then
12109 tifflibs="-lz -lm"
12110 # At least one tiff package requires the jpeg library.
12111 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12112 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12113 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12114 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-ltiff $tifflibs $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125
12126 /* Override any gcc2 internal prototype to avoid an error. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 /* We use char because int might match the return type of a gcc2
12131 builtin and then its argument prototype would still apply. */
12132 char TIFFGetVersion ();
12133 int
12134 main ()
12135 {
12136 TIFFGetVersion ();
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_lib_tiff_TIFFGetVersion=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ac_cv_lib_tiff_TIFFGetVersion=no
12168 fi
12169 rm -f conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12172 fi
12173 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12174 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12175 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12176 HAVE_TIFF=yes
12177 fi
12178
12179 fi
12180
12181
12182 fi
12183
12184 if test "${HAVE_TIFF}" = "yes"; then
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_TIFF 1
12188 _ACEOF
12189
12190 fi
12191 fi
12192
12193 ### Use -lgif if available, unless `--with-gif=no'.
12194 HAVE_GIF=no
12195 if test "${HAVE_X11}" = "yes"; then
12196 if test "${with_gif}" != "no"; then
12197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12198 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12199 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12200 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 fi
12203 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12204 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12205 else
12206 # Is the header compilable?
12207 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12208 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 #include <gif_lib.h>
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_header_compiler=yes
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_header_compiler=no
12245 fi
12246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12248 echo "${ECHO_T}$ac_header_compiler" >&6
12249
12250 # Is the header present?
12251 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12252 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <gif_lib.h>
12260 _ACEOF
12261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } >/dev/null; then
12269 if test -s conftest.err; then
12270 ac_cpp_err=$ac_c_preproc_warn_flag
12271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12272 else
12273 ac_cpp_err=
12274 fi
12275 else
12276 ac_cpp_err=yes
12277 fi
12278 if test -z "$ac_cpp_err"; then
12279 ac_header_preproc=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_header_preproc=no
12285 fi
12286 rm -f conftest.err conftest.$ac_ext
12287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12288 echo "${ECHO_T}$ac_header_preproc" >&6
12289
12290 # So? What about this header?
12291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12292 yes:no: )
12293 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12294 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12296 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12297 ac_header_preproc=yes
12298 ;;
12299 no:yes:* )
12300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12301 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12303 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12305 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12307 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12309 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12311 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12312 (
12313 cat <<\_ASBOX
12314 ## ------------------------------------------ ##
12315 ## Report this to the AC_PACKAGE_NAME lists. ##
12316 ## ------------------------------------------ ##
12317 _ASBOX
12318 ) |
12319 sed "s/^/$as_me: WARNING: /" >&2
12320 ;;
12321 esac
12322 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 ac_cv_header_gif_lib_h=$ac_header_preproc
12328 fi
12329 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12331
12332 fi
12333 if test $ac_cv_header_gif_lib_h = yes; then
12334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12335 # Earlier versions can crash Emacs.
12336 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12337 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12338 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lungif $LIBS"
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349
12350 /* Override any gcc2 internal prototype to avoid an error. */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12356 char EGifPutExtensionLast ();
12357 int
12358 main ()
12359 {
12360 EGifPutExtensionLast ();
12361 ;
12362 return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367 (eval $ac_link) 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_cv_lib_ungif_EGifPutExtensionLast=no
12392 fi
12393 rm -f conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12396 fi
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12398 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12399 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12400 HAVE_GIF=yes
12401 fi
12402
12403 fi
12404
12405
12406 fi
12407
12408 if test "${HAVE_GIF}" = "yes"; then
12409
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_GIF 1
12412 _ACEOF
12413
12414 fi
12415 fi
12416
12417 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12418 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12419 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12420 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 fi
12423 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12424 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12425 else
12426 # Is the header compilable?
12427 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12428 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 $ac_includes_default
12436 #include <malloc/malloc.h>
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_header_compiler=yes
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 ac_header_compiler=no
12465 fi
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12468 echo "${ECHO_T}$ac_header_compiler" >&6
12469
12470 # Is the header present?
12471 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12472 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 #include <malloc/malloc.h>
12480 _ACEOF
12481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } >/dev/null; then
12489 if test -s conftest.err; then
12490 ac_cpp_err=$ac_c_preproc_warn_flag
12491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12492 else
12493 ac_cpp_err=
12494 fi
12495 else
12496 ac_cpp_err=yes
12497 fi
12498 if test -z "$ac_cpp_err"; then
12499 ac_header_preproc=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 ac_header_preproc=no
12505 fi
12506 rm -f conftest.err conftest.$ac_ext
12507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12508 echo "${ECHO_T}$ac_header_preproc" >&6
12509
12510 # So? What about this header?
12511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12512 yes:no: )
12513 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12514 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12516 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12517 ac_header_preproc=yes
12518 ;;
12519 no:yes:* )
12520 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12521 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12523 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12525 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12527 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12529 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12531 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12532 (
12533 cat <<\_ASBOX
12534 ## ------------------------------------------ ##
12535 ## Report this to the AC_PACKAGE_NAME lists. ##
12536 ## ------------------------------------------ ##
12537 _ASBOX
12538 ) |
12539 sed "s/^/$as_me: WARNING: /" >&2
12540 ;;
12541 esac
12542 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12543 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12548 fi
12549 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12550 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12551
12552 fi
12553 if test $ac_cv_header_malloc_malloc_h = yes; then
12554
12555 cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_MALLOC_MALLOC_H 1
12557 _ACEOF
12558
12559 fi
12560
12561
12562
12563 ### Use Mac OS X Carbon API to implement GUI.
12564 if test "${HAVE_CARBON}" = "yes"; then
12565
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_CARBON 1
12568 _ACEOF
12569
12570 ## Specify the install directory
12571 carbon_appdir=
12572 if test "${carbon_appdir_x}" != ""; then
12573 case ${carbon_appdir_x} in
12574 y | ye | yes) carbon_appdir=/Applications ;;
12575 * ) carbon_appdir=${carbon_appdir_x} ;;
12576 esac
12577 fi
12578 # We also have mouse menus.
12579 HAVE_MENUS=yes
12580
12581 tmp_CFLAGS="$CFLAGS"
12582 CFLAGS="$CFLAGS -framework Carbon"
12583 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12584 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12585 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12596 #define CancelMenuTracking innocuous_CancelMenuTracking
12597
12598 /* System header to define __stub macros and hopefully few prototypes,
12599 which can conflict with char CancelMenuTracking (); below.
12600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12601 <limits.h> exists even on freestanding compilers. */
12602
12603 #ifdef __STDC__
12604 # include <limits.h>
12605 #else
12606 # include <assert.h>
12607 #endif
12608
12609 #undef CancelMenuTracking
12610
12611 /* Override any gcc2 internal prototype to avoid an error. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 {
12615 #endif
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618 char CancelMenuTracking ();
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12623 choke me
12624 #else
12625 char (*f) () = CancelMenuTracking;
12626 #endif
12627 #ifdef __cplusplus
12628 }
12629 #endif
12630
12631 int
12632 main ()
12633 {
12634 return f != CancelMenuTracking;
12635 ;
12636 return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext conftest$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641 (eval $ac_link) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_func_CancelMenuTracking=yes
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ac_cv_func_CancelMenuTracking=no
12666 fi
12667 rm -f conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12671 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12672 if test $ac_cv_func_CancelMenuTracking = yes; then
12673 have_cmt=yes
12674 else
12675 have_cmt=no
12676 fi
12677
12678 if test "$have_cmt" = yes; then
12679
12680 cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_CANCELMENUTRACKING 1
12682 _ACEOF
12683
12684 fi
12685 CFLAGS="$tmp_CFLAGS"
12686 fi
12687
12688 ### Use session management (-lSM -lICE) if available
12689 HAVE_X_SM=no
12690 if test "${HAVE_X11}" = "yes"; then
12691 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12692 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12693 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12694 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 fi
12697 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12698 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12699 else
12700 # Is the header compilable?
12701 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12702 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 $ac_includes_default
12710 #include <X11/SM/SMlib.h>
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_header_compiler=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_header_compiler=no
12739 fi
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12742 echo "${ECHO_T}$ac_header_compiler" >&6
12743
12744 # Is the header present?
12745 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12746 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h. */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 #include <X11/SM/SMlib.h>
12754 _ACEOF
12755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } >/dev/null; then
12763 if test -s conftest.err; then
12764 ac_cpp_err=$ac_c_preproc_warn_flag
12765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12766 else
12767 ac_cpp_err=
12768 fi
12769 else
12770 ac_cpp_err=yes
12771 fi
12772 if test -z "$ac_cpp_err"; then
12773 ac_header_preproc=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 ac_header_preproc=no
12779 fi
12780 rm -f conftest.err conftest.$ac_ext
12781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12782 echo "${ECHO_T}$ac_header_preproc" >&6
12783
12784 # So? What about this header?
12785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12786 yes:no: )
12787 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12788 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12790 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12791 ac_header_preproc=yes
12792 ;;
12793 no:yes:* )
12794 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12795 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12797 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12799 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12801 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12803 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12805 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12806 (
12807 cat <<\_ASBOX
12808 ## ------------------------------------------ ##
12809 ## Report this to the AC_PACKAGE_NAME lists. ##
12810 ## ------------------------------------------ ##
12811 _ASBOX
12812 ) |
12813 sed "s/^/$as_me: WARNING: /" >&2
12814 ;;
12815 esac
12816 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12817 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12818 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12822 fi
12823 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12824 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12825
12826 fi
12827 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12828 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12829 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12830 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833 ac_check_lib_save_LIBS=$LIBS
12834 LIBS="-lSM -lICE $LIBS"
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char SmcOpenConnection ();
12849 int
12850 main ()
12851 {
12852 SmcOpenConnection ();
12853 ;
12854 return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 (eval $ac_link) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_lib_SM_SmcOpenConnection=yes
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_cv_lib_SM_SmcOpenConnection=no
12884 fi
12885 rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12890 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12891 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12892 HAVE_X_SM=yes
12893 fi
12894
12895 fi
12896
12897
12898
12899 if test "${HAVE_X_SM}" = "yes"; then
12900
12901 cat >>confdefs.h <<\_ACEOF
12902 #define HAVE_X_SM 1
12903 _ACEOF
12904
12905 case "$LIBS" in
12906 *-lSM*) ;;
12907 *) LIBS="-lSM -lICE $LIBS" ;;
12908 esac
12909 fi
12910 fi
12911
12912 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12913 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12914 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12915 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h. */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 #include <netdb.h>
12925 int
12926 main ()
12927 {
12928 return h_errno;
12929 ;
12930 return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12935 (eval $ac_link) 2>conftest.er1
12936 ac_status=$?
12937 grep -v '^ *+' conftest.er1 >conftest.err
12938 rm -f conftest.er1
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 emacs_cv_netdb_declares_h_errno=yes
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 emacs_cv_netdb_declares_h_errno=no
12960 fi
12961 rm -f conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 fi
12964 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12965 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12966 if test $emacs_cv_netdb_declares_h_errno = yes; then
12967
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_H_ERRNO 1
12970 _ACEOF
12971
12972 fi
12973
12974 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12975 # for constant arguments. Useless!
12976 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12977 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12978 if test "${ac_cv_working_alloca_h+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include <alloca.h>
12988 int
12989 main ()
12990 {
12991 char *p = (char *) alloca (2 * sizeof (int));
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_working_alloca_h=yes
13018 else
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022 ac_cv_working_alloca_h=no
13023 fi
13024 rm -f conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 fi
13027 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13028 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13029 if test $ac_cv_working_alloca_h = yes; then
13030
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_ALLOCA_H 1
13033 _ACEOF
13034
13035 fi
13036
13037 echo "$as_me:$LINENO: checking for alloca" >&5
13038 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13039 if test "${ac_cv_func_alloca_works+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 #ifdef __GNUC__
13049 # define alloca __builtin_alloca
13050 #else
13051 # ifdef _MSC_VER
13052 # include <malloc.h>
13053 # define alloca _alloca
13054 # else
13055 # if HAVE_ALLOCA_H
13056 # include <alloca.h>
13057 # else
13058 # ifdef _AIX
13059 #pragma alloca
13060 # else
13061 # ifndef alloca /* predefined by HP cc +Olibcalls */
13062 char *alloca ();
13063 # endif
13064 # endif
13065 # endif
13066 # endif
13067 #endif
13068
13069 int
13070 main ()
13071 {
13072 char *p = (char *) alloca (1);
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079 (eval $ac_link) 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_func_alloca_works=yes
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 ac_cv_func_alloca_works=no
13104 fi
13105 rm -f conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 fi
13108 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13109 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13110
13111 if test $ac_cv_func_alloca_works = yes; then
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_ALLOCA 1
13115 _ACEOF
13116
13117 else
13118 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13119 # that cause trouble. Some versions do not even contain alloca or
13120 # contain a buggy version. If you still want to use their alloca,
13121 # use ar to extract alloca.o from them instead of compiling alloca.c.
13122
13123 ALLOCA=alloca.$ac_objext
13124
13125 cat >>confdefs.h <<\_ACEOF
13126 #define C_ALLOCA 1
13127 _ACEOF
13128
13129
13130 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13131 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13132 if test "${ac_cv_os_cray+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #if defined(CRAY) && ! defined(CRAY2)
13142 webecray
13143 #else
13144 wenotbecray
13145 #endif
13146
13147 _ACEOF
13148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13149 $EGREP "webecray" >/dev/null 2>&1; then
13150 ac_cv_os_cray=yes
13151 else
13152 ac_cv_os_cray=no
13153 fi
13154 rm -f conftest*
13155
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13158 echo "${ECHO_T}$ac_cv_os_cray" >&6
13159 if test $ac_cv_os_cray = yes; then
13160 for ac_func in _getb67 GETB67 getb67; do
13161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162 echo "$as_me:$LINENO: checking for $ac_func" >&5
13163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_var+set}\" = set"; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13175 #define $ac_func innocuous_$ac_func
13176
13177 /* System header to define __stub macros and hopefully few prototypes,
13178 which can conflict with char $ac_func (); below.
13179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13180 <limits.h> exists even on freestanding compilers. */
13181
13182 #ifdef __STDC__
13183 # include <limits.h>
13184 #else
13185 # include <assert.h>
13186 #endif
13187
13188 #undef $ac_func
13189
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 #ifdef __cplusplus
13192 extern "C"
13193 {
13194 #endif
13195 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */
13197 char $ac_func ();
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13202 choke me
13203 #else
13204 char (*f) () = $ac_func;
13205 #endif
13206 #ifdef __cplusplus
13207 }
13208 #endif
13209
13210 int
13211 main ()
13212 {
13213 return f != $ac_func;
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 eval "$as_ac_var=yes"
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 eval "$as_ac_var=no"
13245 fi
13246 rm -f conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 fi
13249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13251 if test `eval echo '${'$as_ac_var'}'` = yes; then
13252
13253 cat >>confdefs.h <<_ACEOF
13254 #define CRAY_STACKSEG_END $ac_func
13255 _ACEOF
13256
13257 break
13258 fi
13259
13260 done
13261 fi
13262
13263 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13264 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13265 if test "${ac_cv_c_stack_direction+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 if test "$cross_compiling" = yes; then
13269 ac_cv_c_stack_direction=0
13270 else
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 int
13278 find_stack_direction ()
13279 {
13280 static char *addr = 0;
13281 auto char dummy;
13282 if (addr == 0)
13283 {
13284 addr = &dummy;
13285 return find_stack_direction ();
13286 }
13287 else
13288 return (&dummy > addr) ? 1 : -1;
13289 }
13290
13291 int
13292 main ()
13293 {
13294 exit (find_stack_direction () < 0);
13295 }
13296 _ACEOF
13297 rm -f conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13308 ac_cv_c_stack_direction=1
13309 else
13310 echo "$as_me: program exited with status $ac_status" >&5
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ( exit $ac_status )
13315 ac_cv_c_stack_direction=-1
13316 fi
13317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 fi
13320 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13321 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define STACK_DIRECTION $ac_cv_c_stack_direction
13325 _ACEOF
13326
13327
13328 fi
13329
13330
13331 # fmod, logb, and frexp are found in -lm on most systems.
13332 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13333
13334 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13335 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13336 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lm $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347
13348 /* Override any gcc2 internal prototype to avoid an error. */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13354 char sqrt ();
13355 int
13356 main ()
13357 {
13358 sqrt ();
13359 ;
13360 return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_cv_lib_m_sqrt=yes
13385 else
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ac_cv_lib_m_sqrt=no
13390 fi
13391 rm -f conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext conftest.$ac_ext
13393 LIBS=$ac_check_lib_save_LIBS
13394 fi
13395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13396 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13397 if test $ac_cv_lib_m_sqrt = yes; then
13398 cat >>confdefs.h <<_ACEOF
13399 #define HAVE_LIBM 1
13400 _ACEOF
13401
13402 LIBS="-lm $LIBS"
13403
13404 fi
13405
13406
13407 # Check for mail-locking functions in a "mail" library. Probably this should
13408 # have the same check as for liblockfile below.
13409
13410 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13411 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13412 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-lmail $LIBS"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423
13424 /* Override any gcc2 internal prototype to avoid an error. */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 /* We use char because int might match the return type of a gcc2
13429 builtin and then its argument prototype would still apply. */
13430 char maillock ();
13431 int
13432 main ()
13433 {
13434 maillock ();
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_lib_mail_maillock=yes
13461 else
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 ac_cv_lib_mail_maillock=no
13466 fi
13467 rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 LIBS=$ac_check_lib_save_LIBS
13470 fi
13471 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13472 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13473 if test $ac_cv_lib_mail_maillock = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_LIBMAIL 1
13476 _ACEOF
13477
13478 LIBS="-lmail $LIBS"
13479
13480 fi
13481
13482
13483 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13484 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13485 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-llockfile $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496
13497 /* Override any gcc2 internal prototype to avoid an error. */
13498 #ifdef __cplusplus
13499 extern "C"
13500 #endif
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13503 char maillock ();
13504 int
13505 main ()
13506 {
13507 maillock ();
13508 ;
13509 return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_lib_lockfile_maillock=yes
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538 ac_cv_lib_lockfile_maillock=no
13539 fi
13540 rm -f conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LIBS=$ac_check_lib_save_LIBS
13543 fi
13544 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13545 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13546 if test $ac_cv_lib_lockfile_maillock = yes; then
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_LIBLOCKFILE 1
13549 _ACEOF
13550
13551 LIBS="-llockfile $LIBS"
13552
13553 fi
13554
13555 # If we have the shared liblockfile, assume we must use it for mail
13556 # locking (e.g. Debian). If we couldn't link against liblockfile
13557 # (no liblockfile.a installed), ensure that we don't need to.
13558 if test "$ac_cv_lib_lockfile_maillock" = no; then
13559 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13560 set dummy liblockfile.so; ac_word=$2
13561 echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13563 if test "${ac_cv_prog_liblockfile+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 if test -n "$liblockfile"; then
13567 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13568 else
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13571 for as_dir in $as_dummy
13572 do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_liblockfile="yes"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581 done
13582 done
13583
13584 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13585 fi
13586 fi
13587 liblockfile=$ac_cv_prog_liblockfile
13588 if test -n "$liblockfile"; then
13589 echo "$as_me:$LINENO: result: $liblockfile" >&5
13590 echo "${ECHO_T}$liblockfile" >&6
13591 else
13592 echo "$as_me:$LINENO: result: no" >&5
13593 echo "${ECHO_T}no" >&6
13594 fi
13595
13596 if test $ac_cv_prog_liblockfile = yes; then
13597 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13598 This probably means that movemail could lose mail.
13599 There may be a \`development' package to install containing liblockfile." >&5
13600 echo "$as_me: error: Shared liblockfile found but can't link against it.
13601 This probably means that movemail could lose mail.
13602 There may be a \`development' package to install containing liblockfile." >&2;}
13603 { (exit 1); exit 1; }; }
13604 else :
13605 fi
13606 fi
13607
13608 for ac_func in touchlock
13609 do
13610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13611 echo "$as_me:$LINENO: checking for $ac_func" >&5
13612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13613 if eval "test \"\${$as_ac_var+set}\" = set"; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h. */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13624 #define $ac_func innocuous_$ac_func
13625
13626 /* System header to define __stub macros and hopefully few prototypes,
13627 which can conflict with char $ac_func (); below.
13628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13629 <limits.h> exists even on freestanding compilers. */
13630
13631 #ifdef __STDC__
13632 # include <limits.h>
13633 #else
13634 # include <assert.h>
13635 #endif
13636
13637 #undef $ac_func
13638
13639 /* Override any gcc2 internal prototype to avoid an error. */
13640 #ifdef __cplusplus
13641 extern "C"
13642 {
13643 #endif
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13646 char $ac_func ();
13647 /* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13651 choke me
13652 #else
13653 char (*f) () = $ac_func;
13654 #endif
13655 #ifdef __cplusplus
13656 }
13657 #endif
13658
13659 int
13660 main ()
13661 {
13662 return f != $ac_func;
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext conftest$ac_exeext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 eval "$as_ac_var=yes"
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 eval "$as_ac_var=no"
13694 fi
13695 rm -f conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 fi
13698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13700 if test `eval echo '${'$as_ac_var'}'` = yes; then
13701 cat >>confdefs.h <<_ACEOF
13702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13703 _ACEOF
13704
13705 fi
13706 done
13707
13708
13709 for ac_header in maillock.h
13710 do
13711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13713 echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 fi
13718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13720 else
13721 # Is the header compilable?
13722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13731 #include <$ac_header>
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_header_compiler=yes
13755 else
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759 ac_header_compiler=no
13760 fi
13761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13763 echo "${ECHO_T}$ac_header_compiler" >&6
13764
13765 # Is the header present?
13766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h. */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 #include <$ac_header>
13775 _ACEOF
13776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } >/dev/null; then
13784 if test -s conftest.err; then
13785 ac_cpp_err=$ac_c_preproc_warn_flag
13786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13787 else
13788 ac_cpp_err=
13789 fi
13790 else
13791 ac_cpp_err=yes
13792 fi
13793 if test -z "$ac_cpp_err"; then
13794 ac_header_preproc=yes
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_header_preproc=no
13800 fi
13801 rm -f conftest.err conftest.$ac_ext
13802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13803 echo "${ECHO_T}$ac_header_preproc" >&6
13804
13805 # So? What about this header?
13806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13807 yes:no: )
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13812 ac_header_preproc=yes
13813 ;;
13814 no:yes:* )
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13827 (
13828 cat <<\_ASBOX
13829 ## ------------------------------------------ ##
13830 ## Report this to the AC_PACKAGE_NAME lists. ##
13831 ## ------------------------------------------ ##
13832 _ASBOX
13833 ) |
13834 sed "s/^/$as_me: WARNING: /" >&2
13835 ;;
13836 esac
13837 echo "$as_me:$LINENO: checking for $ac_header" >&5
13838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 eval "$as_ac_Header=\$ac_header_preproc"
13843 fi
13844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13846
13847 fi
13848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13849 cat >>confdefs.h <<_ACEOF
13850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13851 _ACEOF
13852
13853 fi
13854
13855 done
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926 for ac_func in gethostname getdomainname dup2 \
13927 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13928 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13929 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13930 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13931 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13932 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13933 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13934 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13935 do
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13951
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13956
13957 #ifdef __STDC__
13958 # include <limits.h>
13959 #else
13960 # include <assert.h>
13961 #endif
13962
13963 #undef $ac_func
13964
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 #ifdef __cplusplus
13967 extern "C"
13968 {
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char $ac_func ();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13977 choke me
13978 #else
13979 char (*f) () = $ac_func;
13980 #endif
13981 #ifdef __cplusplus
13982 }
13983 #endif
13984
13985 int
13986 main ()
13987 {
13988 return f != $ac_func;
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 eval "$as_ac_var=yes"
14015 else
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 eval "$as_ac_var=no"
14020 fi
14021 rm -f conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14023 fi
14024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14026 if test `eval echo '${'$as_ac_var'}'` = yes; then
14027 cat >>confdefs.h <<_ACEOF
14028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14029 _ACEOF
14030
14031 fi
14032 done
14033
14034
14035
14036 for ac_header in sys/un.h
14037 do
14038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040 echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 fi
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14047 else
14048 # Is the header compilable?
14049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h. */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 $ac_includes_default
14058 #include <$ac_header>
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_header_compiler=yes
14082 else
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_compiler=no
14087 fi
14088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090 echo "${ECHO_T}$ac_header_compiler" >&6
14091
14092 # Is the header present?
14093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h. */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 #include <$ac_header>
14102 _ACEOF
14103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } >/dev/null; then
14111 if test -s conftest.err; then
14112 ac_cpp_err=$ac_c_preproc_warn_flag
14113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14114 else
14115 ac_cpp_err=
14116 fi
14117 else
14118 ac_cpp_err=yes
14119 fi
14120 if test -z "$ac_cpp_err"; then
14121 ac_header_preproc=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 ac_header_preproc=no
14127 fi
14128 rm -f conftest.err conftest.$ac_ext
14129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 echo "${ECHO_T}$ac_header_preproc" >&6
14131
14132 # So? What about this header?
14133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14134 yes:no: )
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14139 ac_header_preproc=yes
14140 ;;
14141 no:yes:* )
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14154 (
14155 cat <<\_ASBOX
14156 ## ------------------------------------------ ##
14157 ## Report this to the AC_PACKAGE_NAME lists. ##
14158 ## ------------------------------------------ ##
14159 _ASBOX
14160 ) |
14161 sed "s/^/$as_me: WARNING: /" >&2
14162 ;;
14163 esac
14164 echo "$as_me:$LINENO: checking for $ac_header" >&5
14165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 eval "$as_ac_Header=\$ac_header_preproc"
14170 fi
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14173
14174 fi
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176 cat >>confdefs.h <<_ACEOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 _ACEOF
14179
14180 fi
14181
14182 done
14183
14184
14185
14186
14187
14188 for ac_header in stdlib.h sys/time.h unistd.h
14189 do
14190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 fi
14197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14199 else
14200 # Is the header compilable?
14201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14203 cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h. */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 $ac_includes_default
14210 #include <$ac_header>
14211 _ACEOF
14212 rm -f conftest.$ac_objext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214 (eval $ac_compile) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest.$ac_objext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_header_compiler=yes
14234 else
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238 ac_header_compiler=no
14239 fi
14240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14242 echo "${ECHO_T}$ac_header_compiler" >&6
14243
14244 # Is the header present?
14245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 #include <$ac_header>
14254 _ACEOF
14255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } >/dev/null; then
14263 if test -s conftest.err; then
14264 ac_cpp_err=$ac_c_preproc_warn_flag
14265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14266 else
14267 ac_cpp_err=
14268 fi
14269 else
14270 ac_cpp_err=yes
14271 fi
14272 if test -z "$ac_cpp_err"; then
14273 ac_header_preproc=yes
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 ac_header_preproc=no
14279 fi
14280 rm -f conftest.err conftest.$ac_ext
14281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14282 echo "${ECHO_T}$ac_header_preproc" >&6
14283
14284 # So? What about this header?
14285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14286 yes:no: )
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14291 ac_header_preproc=yes
14292 ;;
14293 no:yes:* )
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14306 (
14307 cat <<\_ASBOX
14308 ## ------------------------------------------ ##
14309 ## Report this to the AC_PACKAGE_NAME lists. ##
14310 ## ------------------------------------------ ##
14311 _ASBOX
14312 ) |
14313 sed "s/^/$as_me: WARNING: /" >&2
14314 ;;
14315 esac
14316 echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321 eval "$as_ac_Header=\$ac_header_preproc"
14322 fi
14323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14325
14326 fi
14327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14328 cat >>confdefs.h <<_ACEOF
14329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14330 _ACEOF
14331
14332 fi
14333
14334 done
14335
14336
14337 for ac_func in alarm
14338 do
14339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14340 echo "$as_me:$LINENO: checking for $ac_func" >&5
14341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14342 if eval "test \"\${$as_ac_var+set}\" = set"; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14353 #define $ac_func innocuous_$ac_func
14354
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char $ac_func (); below.
14357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14358 <limits.h> exists even on freestanding compilers. */
14359
14360 #ifdef __STDC__
14361 # include <limits.h>
14362 #else
14363 # include <assert.h>
14364 #endif
14365
14366 #undef $ac_func
14367
14368 /* Override any gcc2 internal prototype to avoid an error. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 {
14372 #endif
14373 /* We use char because int might match the return type of a gcc2
14374 builtin and then its argument prototype would still apply. */
14375 char $ac_func ();
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14380 choke me
14381 #else
14382 char (*f) () = $ac_func;
14383 #endif
14384 #ifdef __cplusplus
14385 }
14386 #endif
14387
14388 int
14389 main ()
14390 {
14391 return f != $ac_func;
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398 (eval $ac_link) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 eval "$as_ac_var=no"
14423 fi
14424 rm -f conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext conftest.$ac_ext
14426 fi
14427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14429 if test `eval echo '${'$as_ac_var'}'` = yes; then
14430 cat >>confdefs.h <<_ACEOF
14431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14432 _ACEOF
14433
14434 fi
14435 done
14436
14437 echo "$as_me:$LINENO: checking for working mktime" >&5
14438 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14439 if test "${ac_cv_func_working_mktime+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442 if test "$cross_compiling" = yes; then
14443 ac_cv_func_working_mktime=no
14444 else
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Test program from Paul Eggert and Tony Leneis. */
14452 #if TIME_WITH_SYS_TIME
14453 # include <sys/time.h>
14454 # include <time.h>
14455 #else
14456 # if HAVE_SYS_TIME_H
14457 # include <sys/time.h>
14458 # else
14459 # include <time.h>
14460 # endif
14461 #endif
14462
14463 #if HAVE_STDLIB_H
14464 # include <stdlib.h>
14465 #endif
14466
14467 #if HAVE_UNISTD_H
14468 # include <unistd.h>
14469 #endif
14470
14471 #if !HAVE_ALARM
14472 # define alarm(X) /* empty */
14473 #endif
14474
14475 /* Work around redefinition to rpl_putenv by other config tests. */
14476 #undef putenv
14477
14478 static time_t time_t_max;
14479 static time_t time_t_min;
14480
14481 /* Values we'll use to set the TZ environment variable. */
14482 static char *tz_strings[] = {
14483 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14484 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14485 };
14486 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14487
14488 /* Fail if mktime fails to convert a date in the spring-forward gap.
14489 Based on a problem report from Andreas Jaeger. */
14490 static void
14491 spring_forward_gap ()
14492 {
14493 /* glibc (up to about 1998-10-07) failed this test. */
14494 struct tm tm;
14495
14496 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14497 instead of "TZ=America/Vancouver" in order to detect the bug even
14498 on systems that don't support the Olson extension, or don't have the
14499 full zoneinfo tables installed. */
14500 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14501
14502 tm.tm_year = 98;
14503 tm.tm_mon = 3;
14504 tm.tm_mday = 5;
14505 tm.tm_hour = 2;
14506 tm.tm_min = 0;
14507 tm.tm_sec = 0;
14508 tm.tm_isdst = -1;
14509 if (mktime (&tm) == (time_t)-1)
14510 exit (1);
14511 }
14512
14513 static void
14514 mktime_test1 (now)
14515 time_t now;
14516 {
14517 struct tm *lt;
14518 if ((lt = localtime (&now)) && mktime (lt) != now)
14519 exit (1);
14520 }
14521
14522 static void
14523 mktime_test (now)
14524 time_t now;
14525 {
14526 mktime_test1 (now);
14527 mktime_test1 ((time_t) (time_t_max - now));
14528 mktime_test1 ((time_t) (time_t_min + now));
14529 }
14530
14531 static void
14532 irix_6_4_bug ()
14533 {
14534 /* Based on code from Ariel Faigon. */
14535 struct tm tm;
14536 tm.tm_year = 96;
14537 tm.tm_mon = 3;
14538 tm.tm_mday = 0;
14539 tm.tm_hour = 0;
14540 tm.tm_min = 0;
14541 tm.tm_sec = 0;
14542 tm.tm_isdst = -1;
14543 mktime (&tm);
14544 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14545 exit (1);
14546 }
14547
14548 static void
14549 bigtime_test (j)
14550 int j;
14551 {
14552 struct tm tm;
14553 time_t now;
14554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14555 now = mktime (&tm);
14556 if (now != (time_t) -1)
14557 {
14558 struct tm *lt = localtime (&now);
14559 if (! (lt
14560 && lt->tm_year == tm.tm_year
14561 && lt->tm_mon == tm.tm_mon
14562 && lt->tm_mday == tm.tm_mday
14563 && lt->tm_hour == tm.tm_hour
14564 && lt->tm_min == tm.tm_min
14565 && lt->tm_sec == tm.tm_sec
14566 && lt->tm_yday == tm.tm_yday
14567 && lt->tm_wday == tm.tm_wday
14568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14570 exit (1);
14571 }
14572 }
14573
14574 int
14575 main ()
14576 {
14577 time_t t, delta;
14578 int i, j;
14579
14580 /* This test makes some buggy mktime implementations loop.
14581 Give up after 60 seconds; a mktime slower than that
14582 isn't worth using anyway. */
14583 alarm (60);
14584
14585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14586 continue;
14587 time_t_max--;
14588 if ((time_t) -1 < 0)
14589 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14590 continue;
14591 delta = time_t_max / 997; /* a suitable prime number */
14592 for (i = 0; i < N_STRINGS; i++)
14593 {
14594 if (tz_strings[i])
14595 putenv (tz_strings[i]);
14596
14597 for (t = 0; t <= time_t_max - delta; t += delta)
14598 mktime_test (t);
14599 mktime_test ((time_t) 1);
14600 mktime_test ((time_t) (60 * 60));
14601 mktime_test ((time_t) (60 * 60 * 24));
14602
14603 for (j = 1; 0 < j; j *= 2)
14604 bigtime_test (j);
14605 bigtime_test (j - 1);
14606 }
14607 irix_6_4_bug ();
14608 spring_forward_gap ();
14609 exit (0);
14610 }
14611 _ACEOF
14612 rm -f conftest$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_cv_func_working_mktime=yes
14624 else
14625 echo "$as_me: program exited with status $ac_status" >&5
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629 ( exit $ac_status )
14630 ac_cv_func_working_mktime=no
14631 fi
14632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14633 fi
14634 fi
14635 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14636 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14637 if test $ac_cv_func_working_mktime = no; then
14638 case $LIBOBJS in
14639 "mktime.$ac_objext" | \
14640 *" mktime.$ac_objext" | \
14641 "mktime.$ac_objext "* | \
14642 *" mktime.$ac_objext "* ) ;;
14643 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14644 esac
14645
14646 fi
14647
14648 if test "$ac_cv_func_working_mktime" = no; then
14649
14650 cat >>confdefs.h <<\_ACEOF
14651 #define BROKEN_MKTIME 1
14652 _ACEOF
14653
14654 fi
14655
14656 ac_have_func=no # yes means we've found a way to get the load average.
14657
14658 # Make sure getloadavg.c is where it belongs, at configure-time.
14659 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14660 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14661 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14662 { (exit 1); exit 1; }; }
14663
14664 ac_save_LIBS=$LIBS
14665
14666 # Check for getloadavg, but be sure not to touch the cache variable.
14667 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14668 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14669 if test "${ac_cv_func_getloadavg+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14680 #define getloadavg innocuous_getloadavg
14681
14682 /* System header to define __stub macros and hopefully few prototypes,
14683 which can conflict with char getloadavg (); below.
14684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14685 <limits.h> exists even on freestanding compilers. */
14686
14687 #ifdef __STDC__
14688 # include <limits.h>
14689 #else
14690 # include <assert.h>
14691 #endif
14692
14693 #undef getloadavg
14694
14695 /* Override any gcc2 internal prototype to avoid an error. */
14696 #ifdef __cplusplus
14697 extern "C"
14698 {
14699 #endif
14700 /* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702 char getloadavg ();
14703 /* The GNU C library defines this for functions which it implements
14704 to always fail with ENOSYS. Some functions are actually named
14705 something starting with __ and the normal name is an alias. */
14706 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14707 choke me
14708 #else
14709 char (*f) () = getloadavg;
14710 #endif
14711 #ifdef __cplusplus
14712 }
14713 #endif
14714
14715 int
14716 main ()
14717 {
14718 return f != getloadavg;
14719 ;
14720 return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725 (eval $ac_link) 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_func_getloadavg=yes
14745 else
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ac_cv_func_getloadavg=no
14750 fi
14751 rm -f conftest.err conftest.$ac_objext \
14752 conftest$ac_exeext conftest.$ac_ext
14753 fi
14754 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14755 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14756 if test $ac_cv_func_getloadavg = yes; then
14757 exit 0
14758 else
14759 exit 1
14760 fi
14761 ) && ac_have_func=yes
14762
14763 # On HPUX9, an unprivileged user can get load averages through this function.
14764
14765 for ac_func in pstat_getdynamic
14766 do
14767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14768 echo "$as_me:$LINENO: checking for $ac_func" >&5
14769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14770 if eval "test \"\${$as_ac_var+set}\" = set"; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h. */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14781 #define $ac_func innocuous_$ac_func
14782
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below.
14785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786 <limits.h> exists even on freestanding compilers. */
14787
14788 #ifdef __STDC__
14789 # include <limits.h>
14790 #else
14791 # include <assert.h>
14792 #endif
14793
14794 #undef $ac_func
14795
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 {
14800 #endif
14801 /* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803 char $ac_func ();
14804 /* The GNU C library defines this for functions which it implements
14805 to always fail with ENOSYS. Some functions are actually named
14806 something starting with __ and the normal name is an alias. */
14807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 choke me
14809 #else
14810 char (*f) () = $ac_func;
14811 #endif
14812 #ifdef __cplusplus
14813 }
14814 #endif
14815
14816 int
14817 main ()
14818 {
14819 return f != $ac_func;
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 rm -f conftest.$ac_objext conftest$ac_exeext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14826 (eval $ac_link) 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14839 { ac_try='test -s conftest$ac_exeext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 eval "$as_ac_var=yes"
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850 eval "$as_ac_var=no"
14851 fi
14852 rm -f conftest.err conftest.$ac_objext \
14853 conftest$ac_exeext conftest.$ac_ext
14854 fi
14855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14857 if test `eval echo '${'$as_ac_var'}'` = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14860 _ACEOF
14861
14862 fi
14863 done
14864
14865
14866 # Solaris has libkstat which does not require root.
14867
14868 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14869 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14870 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873 ac_check_lib_save_LIBS=$LIBS
14874 LIBS="-lkstat $LIBS"
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881
14882 /* Override any gcc2 internal prototype to avoid an error. */
14883 #ifdef __cplusplus
14884 extern "C"
14885 #endif
14886 /* We use char because int might match the return type of a gcc2
14887 builtin and then its argument prototype would still apply. */
14888 char kstat_open ();
14889 int
14890 main ()
14891 {
14892 kstat_open ();
14893 ;
14894 return 0;
14895 }
14896 _ACEOF
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14899 (eval $ac_link) 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_lib_kstat_kstat_open=yes
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 ac_cv_lib_kstat_kstat_open=no
14924 fi
14925 rm -f conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14928 fi
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14930 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14931 if test $ac_cv_lib_kstat_kstat_open = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_LIBKSTAT 1
14934 _ACEOF
14935
14936 LIBS="-lkstat $LIBS"
14937
14938 fi
14939
14940 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14941
14942 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14943 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14944 # to get the right answer into the cache.
14945 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14946 if test $ac_have_func = no; then
14947 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14948 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14949 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lelf $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char elf_begin ();
14968 int
14969 main ()
14970 {
14971 elf_begin ();
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_lib_elf_elf_begin=yes
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ac_cv_lib_elf_elf_begin=no
15003 fi
15004 rm -f conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15006 LIBS=$ac_check_lib_save_LIBS
15007 fi
15008 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15009 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15010 if test $ac_cv_lib_elf_elf_begin = yes; then
15011 LIBS="-lelf $LIBS"
15012 fi
15013
15014 fi
15015 if test $ac_have_func = no; then
15016 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15017 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15018 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lkvm $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029
15030 /* Override any gcc2 internal prototype to avoid an error. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 /* We use char because int might match the return type of a gcc2
15035 builtin and then its argument prototype would still apply. */
15036 char kvm_open ();
15037 int
15038 main ()
15039 {
15040 kvm_open ();
15041 ;
15042 return 0;
15043 }
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; } &&
15060 { ac_try='test -s conftest$ac_exeext'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_cv_lib_kvm_kvm_open=yes
15067 else
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_cv_lib_kvm_kvm_open=no
15072 fi
15073 rm -f conftest.err conftest.$ac_objext \
15074 conftest$ac_exeext conftest.$ac_ext
15075 LIBS=$ac_check_lib_save_LIBS
15076 fi
15077 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15078 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15079 if test $ac_cv_lib_kvm_kvm_open = yes; then
15080 LIBS="-lkvm $LIBS"
15081 fi
15082
15083 # Check for the 4.4BSD definition of getloadavg.
15084 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15085 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15086 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089 ac_check_lib_save_LIBS=$LIBS
15090 LIBS="-lutil $LIBS"
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097
15098 /* Override any gcc2 internal prototype to avoid an error. */
15099 #ifdef __cplusplus
15100 extern "C"
15101 #endif
15102 /* We use char because int might match the return type of a gcc2
15103 builtin and then its argument prototype would still apply. */
15104 char getloadavg ();
15105 int
15106 main ()
15107 {
15108 getloadavg ();
15109 ;
15110 return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115 (eval $ac_link) 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_lib_util_getloadavg=yes
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_cv_lib_util_getloadavg=no
15140 fi
15141 rm -f conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15144 fi
15145 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15146 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15147 if test $ac_cv_lib_util_getloadavg = yes; then
15148 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15149 fi
15150
15151 fi
15152
15153 if test $ac_have_func = no; then
15154 # There is a commonly available library for RS/6000 AIX.
15155 # Since it is not a standard part of AIX, it might be installed locally.
15156 ac_getloadavg_LIBS=$LIBS
15157 LIBS="-L/usr/local/lib $LIBS"
15158 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15159 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15160 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-lgetloadavg $LIBS"
15165 cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h. */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15171
15172 /* Override any gcc2 internal prototype to avoid an error. */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178 char getloadavg ();
15179 int
15180 main ()
15181 {
15182 getloadavg ();
15183 ;
15184 return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189 (eval $ac_link) 2>conftest.er1
15190 ac_status=$?
15191 grep -v '^ *+' conftest.er1 >conftest.err
15192 rm -f conftest.er1
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_cv_lib_getloadavg_getloadavg=yes
15209 else
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 ac_cv_lib_getloadavg_getloadavg=no
15214 fi
15215 rm -f conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15217 LIBS=$ac_check_lib_save_LIBS
15218 fi
15219 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15220 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15221 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15222 LIBS="-lgetloadavg $LIBS"
15223 else
15224 LIBS=$ac_getloadavg_LIBS
15225 fi
15226
15227 fi
15228
15229 # Make sure it is really in the library, if we think we found it,
15230 # otherwise set up the replacement function.
15231
15232 for ac_func in getloadavg
15233 do
15234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_var+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15249
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15254
15255 #ifdef __STDC__
15256 # include <limits.h>
15257 #else
15258 # include <assert.h>
15259 #endif
15260
15261 #undef $ac_func
15262
15263 /* Override any gcc2 internal prototype to avoid an error. */
15264 #ifdef __cplusplus
15265 extern "C"
15266 {
15267 #endif
15268 /* We use char because int might match the return type of a gcc2
15269 builtin and then its argument prototype would still apply. */
15270 char $ac_func ();
15271 /* The GNU C library defines this for functions which it implements
15272 to always fail with ENOSYS. Some functions are actually named
15273 something starting with __ and the normal name is an alias. */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275 choke me
15276 #else
15277 char (*f) () = $ac_func;
15278 #endif
15279 #ifdef __cplusplus
15280 }
15281 #endif
15282
15283 int
15284 main ()
15285 {
15286 return f != $ac_func;
15287 ;
15288 return 0;
15289 }
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 eval "$as_ac_var=yes"
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 eval "$as_ac_var=no"
15318 fi
15319 rm -f conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15321 fi
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15324 if test `eval echo '${'$as_ac_var'}'` = yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15327 _ACEOF
15328
15329 else
15330 case $LIBOBJS in
15331 "getloadavg.$ac_objext" | \
15332 *" getloadavg.$ac_objext" | \
15333 "getloadavg.$ac_objext "* | \
15334 *" getloadavg.$ac_objext "* ) ;;
15335 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15336 esac
15337
15338
15339 cat >>confdefs.h <<\_ACEOF
15340 #define C_GETLOADAVG 1
15341 _ACEOF
15342
15343 # Figure out what our getloadavg.c needs.
15344 ac_have_func=no
15345 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15346 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15347 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15348 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15352 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15353 else
15354 # Is the header compilable?
15355 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15356 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15357 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h. */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15364 #include <sys/dg_sys_info.h>
15365 _ACEOF
15366 rm -f conftest.$ac_objext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_header_compiler=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_header_compiler=no
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15396 echo "${ECHO_T}$ac_header_compiler" >&6
15397
15398 # Is the header present?
15399 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15400 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/dg_sys_info.h>
15408 _ACEOF
15409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } >/dev/null; then
15417 if test -s conftest.err; then
15418 ac_cpp_err=$ac_c_preproc_warn_flag
15419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15420 else
15421 ac_cpp_err=
15422 fi
15423 else
15424 ac_cpp_err=yes
15425 fi
15426 if test -z "$ac_cpp_err"; then
15427 ac_header_preproc=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_header_preproc=no
15433 fi
15434 rm -f conftest.err conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436 echo "${ECHO_T}$ac_header_preproc" >&6
15437
15438 # So? What about this header?
15439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15440 yes:no: )
15441 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15442 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15444 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15445 ac_header_preproc=yes
15446 ;;
15447 no:yes:* )
15448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15449 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15451 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15453 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15455 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15457 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15459 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15460 (
15461 cat <<\_ASBOX
15462 ## ------------------------------------------ ##
15463 ## Report this to the AC_PACKAGE_NAME lists. ##
15464 ## ------------------------------------------ ##
15465 _ASBOX
15466 ) |
15467 sed "s/^/$as_me: WARNING: /" >&2
15468 ;;
15469 esac
15470 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15471 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15476 fi
15477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15479
15480 fi
15481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15482 ac_have_func=yes
15483
15484 cat >>confdefs.h <<\_ACEOF
15485 #define DGUX 1
15486 _ACEOF
15487
15488
15489 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15490 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494 ac_check_lib_save_LIBS=$LIBS
15495 LIBS="-ldgc $LIBS"
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502
15503 /* Override any gcc2 internal prototype to avoid an error. */
15504 #ifdef __cplusplus
15505 extern "C"
15506 #endif
15507 /* We use char because int might match the return type of a gcc2
15508 builtin and then its argument prototype would still apply. */
15509 char dg_sys_info ();
15510 int
15511 main ()
15512 {
15513 dg_sys_info ();
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15520 (eval $ac_link) 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); } &&
15527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest$ac_exeext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_lib_dgc_dg_sys_info=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_cv_lib_dgc_dg_sys_info=no
15545 fi
15546 rm -f conftest.err conftest.$ac_objext \
15547 conftest$ac_exeext conftest.$ac_ext
15548 LIBS=$ac_check_lib_save_LIBS
15549 fi
15550 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15553 cat >>confdefs.h <<_ACEOF
15554 #define HAVE_LIBDGC 1
15555 _ACEOF
15556
15557 LIBS="-ldgc $LIBS"
15558
15559 fi
15560
15561 fi
15562
15563
15564
15565 if test "${ac_cv_header_locale_h+set}" = set; then
15566 echo "$as_me:$LINENO: checking for locale.h" >&5
15567 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15568 if test "${ac_cv_header_locale_h+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 fi
15571 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15573 else
15574 # Is the header compilable?
15575 echo "$as_me:$LINENO: checking locale.h usability" >&5
15576 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <locale.h>
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_header_compiler=yes
15608 else
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 ac_header_compiler=no
15613 fi
15614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15616 echo "${ECHO_T}$ac_header_compiler" >&6
15617
15618 # Is the header present?
15619 echo "$as_me:$LINENO: checking locale.h presence" >&5
15620 echo $ECHO_N "checking locale.h presence... $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 #include <locale.h>
15628 _ACEOF
15629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } >/dev/null; then
15637 if test -s conftest.err; then
15638 ac_cpp_err=$ac_c_preproc_warn_flag
15639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15640 else
15641 ac_cpp_err=
15642 fi
15643 else
15644 ac_cpp_err=yes
15645 fi
15646 if test -z "$ac_cpp_err"; then
15647 ac_header_preproc=yes
15648 else
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 ac_header_preproc=no
15653 fi
15654 rm -f conftest.err conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15656 echo "${ECHO_T}$ac_header_preproc" >&6
15657
15658 # So? What about this header?
15659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15660 yes:no: )
15661 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15662 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15664 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15665 ac_header_preproc=yes
15666 ;;
15667 no:yes:* )
15668 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15669 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15671 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15673 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15675 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15677 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15679 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15680 (
15681 cat <<\_ASBOX
15682 ## ------------------------------------------ ##
15683 ## Report this to the AC_PACKAGE_NAME lists. ##
15684 ## ------------------------------------------ ##
15685 _ASBOX
15686 ) |
15687 sed "s/^/$as_me: WARNING: /" >&2
15688 ;;
15689 esac
15690 echo "$as_me:$LINENO: checking for locale.h" >&5
15691 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15692 if test "${ac_cv_header_locale_h+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 ac_cv_header_locale_h=$ac_header_preproc
15696 fi
15697 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15698 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15699
15700 fi
15701
15702
15703
15704 for ac_func in setlocale
15705 do
15706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15707 echo "$as_me:$LINENO: checking for $ac_func" >&5
15708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_var+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h. */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15720 #define $ac_func innocuous_$ac_func
15721
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func (); below.
15724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15725 <limits.h> exists even on freestanding compilers. */
15726
15727 #ifdef __STDC__
15728 # include <limits.h>
15729 #else
15730 # include <assert.h>
15731 #endif
15732
15733 #undef $ac_func
15734
15735 /* Override any gcc2 internal prototype to avoid an error. */
15736 #ifdef __cplusplus
15737 extern "C"
15738 {
15739 #endif
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15742 char $ac_func ();
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15747 choke me
15748 #else
15749 char (*f) () = $ac_func;
15750 #endif
15751 #ifdef __cplusplus
15752 }
15753 #endif
15754
15755 int
15756 main ()
15757 {
15758 return f != $ac_func;
15759 ;
15760 return 0;
15761 }
15762 _ACEOF
15763 rm -f conftest.$ac_objext conftest$ac_exeext
15764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15765 (eval $ac_link) 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 eval "$as_ac_var=no"
15790 fi
15791 rm -f conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15799 _ACEOF
15800
15801 fi
15802 done
15803
15804
15805 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15806 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15807 # Irix 4.0.5F has the header but not the library.
15808 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15809 ac_have_func=yes
15810
15811 cat >>confdefs.h <<\_ACEOF
15812 #define SVR4 1
15813 _ACEOF
15814
15815 fi
15816
15817 if test $ac_have_func = no; then
15818 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15819 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15820 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15821 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 fi
15824 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15825 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15826 else
15827 # Is the header compilable?
15828 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15829 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h. */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #include <inq_stats/cpustats.h>
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_header_compiler=yes
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_header_compiler=no
15866 fi
15867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6
15870
15871 # Is the header present?
15872 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15873 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <inq_stats/cpustats.h>
15881 _ACEOF
15882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } >/dev/null; then
15890 if test -s conftest.err; then
15891 ac_cpp_err=$ac_c_preproc_warn_flag
15892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15893 else
15894 ac_cpp_err=
15895 fi
15896 else
15897 ac_cpp_err=yes
15898 fi
15899 if test -z "$ac_cpp_err"; then
15900 ac_header_preproc=yes
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_header_preproc=no
15906 fi
15907 rm -f conftest.err conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15909 echo "${ECHO_T}$ac_header_preproc" >&6
15910
15911 # So? What about this header?
15912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15913 yes:no: )
15914 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15915 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15917 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15918 ac_header_preproc=yes
15919 ;;
15920 no:yes:* )
15921 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15922 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15924 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15926 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15928 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15930 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15932 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15933 (
15934 cat <<\_ASBOX
15935 ## ------------------------------------------ ##
15936 ## Report this to the AC_PACKAGE_NAME lists. ##
15937 ## ------------------------------------------ ##
15938 _ASBOX
15939 ) |
15940 sed "s/^/$as_me: WARNING: /" >&2
15941 ;;
15942 esac
15943 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15944 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15945 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15949 fi
15950 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15951 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15952
15953 fi
15954 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15955 ac_have_func=yes
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define UMAX 1
15959 _ACEOF
15960
15961
15962 cat >>confdefs.h <<\_ACEOF
15963 #define UMAX4_3 1
15964 _ACEOF
15965
15966 fi
15967
15968
15969 fi
15970
15971 if test $ac_have_func = no; then
15972 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15973 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15974 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15975 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 fi
15978 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15979 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15980 else
15981 # Is the header compilable?
15982 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15983 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <sys/cpustats.h>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_header_compiler=yes
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ac_header_compiler=no
16020 fi
16021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16023 echo "${ECHO_T}$ac_header_compiler" >&6
16024
16025 # Is the header present?
16026 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16027 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #include <sys/cpustats.h>
16035 _ACEOF
16036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null; then
16044 if test -s conftest.err; then
16045 ac_cpp_err=$ac_c_preproc_warn_flag
16046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16047 else
16048 ac_cpp_err=
16049 fi
16050 else
16051 ac_cpp_err=yes
16052 fi
16053 if test -z "$ac_cpp_err"; then
16054 ac_header_preproc=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 ac_header_preproc=no
16060 fi
16061 rm -f conftest.err conftest.$ac_ext
16062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16063 echo "${ECHO_T}$ac_header_preproc" >&6
16064
16065 # So? What about this header?
16066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16067 yes:no: )
16068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16069 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16071 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16072 ac_header_preproc=yes
16073 ;;
16074 no:yes:* )
16075 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16076 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16078 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16080 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16082 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16086 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16087 (
16088 cat <<\_ASBOX
16089 ## ------------------------------------------ ##
16090 ## Report this to the AC_PACKAGE_NAME lists. ##
16091 ## ------------------------------------------ ##
16092 _ASBOX
16093 ) |
16094 sed "s/^/$as_me: WARNING: /" >&2
16095 ;;
16096 esac
16097 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16098 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16099 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16103 fi
16104 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16105 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16106
16107 fi
16108 if test $ac_cv_header_sys_cpustats_h = yes; then
16109 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16110 #define UMAX 1
16111 _ACEOF
16112
16113 fi
16114
16115
16116 fi
16117
16118 if test $ac_have_func = no; then
16119
16120 for ac_header in mach/mach.h
16121 do
16122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16124 echo "$as_me:$LINENO: checking for $ac_header" >&5
16125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 fi
16129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16131 else
16132 # Is the header compilable?
16133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16142 #include <$ac_header>
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; } &&
16159 { ac_try='test -s conftest.$ac_objext'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_header_compiler=yes
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 ac_header_compiler=no
16171 fi
16172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16174 echo "${ECHO_T}$ac_header_compiler" >&6
16175
16176 # Is the header present?
16177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 #include <$ac_header>
16186 _ACEOF
16187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } >/dev/null; then
16195 if test -s conftest.err; then
16196 ac_cpp_err=$ac_c_preproc_warn_flag
16197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16198 else
16199 ac_cpp_err=
16200 fi
16201 else
16202 ac_cpp_err=yes
16203 fi
16204 if test -z "$ac_cpp_err"; then
16205 ac_header_preproc=yes
16206 else
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 ac_header_preproc=no
16211 fi
16212 rm -f conftest.err conftest.$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214 echo "${ECHO_T}$ac_header_preproc" >&6
16215
16216 # So? What about this header?
16217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 yes:no: )
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc=yes
16224 ;;
16225 no:yes:* )
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 (
16239 cat <<\_ASBOX
16240 ## ------------------------------------------ ##
16241 ## Report this to the AC_PACKAGE_NAME lists. ##
16242 ## ------------------------------------------ ##
16243 _ASBOX
16244 ) |
16245 sed "s/^/$as_me: WARNING: /" >&2
16246 ;;
16247 esac
16248 echo "$as_me:$LINENO: checking for $ac_header" >&5
16249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 eval "$as_ac_Header=\$ac_header_preproc"
16254 fi
16255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16257
16258 fi
16259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16260 cat >>confdefs.h <<_ACEOF
16261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16262 _ACEOF
16263
16264 fi
16265
16266 done
16267
16268 fi
16269
16270
16271 for ac_header in nlist.h
16272 do
16273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16275 echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 fi
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16282 else
16283 # Is the header compilable?
16284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16297 (eval $ac_compile) 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_header_compiler=yes
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_header_compiler=no
16322 fi
16323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16325 echo "${ECHO_T}$ac_header_compiler" >&6
16326
16327 # Is the header present?
16328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16330 cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 #include <$ac_header>
16337 _ACEOF
16338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } >/dev/null; then
16346 if test -s conftest.err; then
16347 ac_cpp_err=$ac_c_preproc_warn_flag
16348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16349 else
16350 ac_cpp_err=
16351 fi
16352 else
16353 ac_cpp_err=yes
16354 fi
16355 if test -z "$ac_cpp_err"; then
16356 ac_header_preproc=yes
16357 else
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16360
16361 ac_header_preproc=no
16362 fi
16363 rm -f conftest.err conftest.$ac_ext
16364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16365 echo "${ECHO_T}$ac_header_preproc" >&6
16366
16367 # So? What about this header?
16368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16369 yes:no: )
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16374 ac_header_preproc=yes
16375 ;;
16376 no:yes:* )
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16389 (
16390 cat <<\_ASBOX
16391 ## ------------------------------------------ ##
16392 ## Report this to the AC_PACKAGE_NAME lists. ##
16393 ## ------------------------------------------ ##
16394 _ASBOX
16395 ) |
16396 sed "s/^/$as_me: WARNING: /" >&2
16397 ;;
16398 esac
16399 echo "$as_me:$LINENO: checking for $ac_header" >&5
16400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404 eval "$as_ac_Header=\$ac_header_preproc"
16405 fi
16406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16408
16409 fi
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411 cat >>confdefs.h <<_ACEOF
16412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16413 _ACEOF
16414 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16415 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16416 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <nlist.h>
16426
16427 int
16428 main ()
16429 {
16430 static struct nlist ac_aggr;
16431 if (ac_aggr.n_un.n_name)
16432 return 0;
16433 ;
16434 return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439 (eval $ac_compile) 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_member_struct_nlist_n_un_n_name=yes
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463 cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h. */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 #include <nlist.h>
16470
16471 int
16472 main ()
16473 {
16474 static struct nlist ac_aggr;
16475 if (sizeof ac_aggr.n_un.n_name)
16476 return 0;
16477 ;
16478 return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>conftest.er1
16484 ac_status=$?
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_member_struct_nlist_n_un_n_name=yes
16503 else
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 ac_cv_member_struct_nlist_n_un_n_name=no
16508 fi
16509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16510 fi
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16514 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16515 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16516
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16519 _ACEOF
16520
16521
16522 cat >>confdefs.h <<\_ACEOF
16523 #define NLIST_NAME_UNION 1
16524 _ACEOF
16525
16526 fi
16527
16528
16529 fi
16530
16531 done
16532
16533 fi
16534 done
16535
16536
16537 # Some definitions of getloadavg require that the program be installed setgid.
16538 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16539 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16540 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16550 #ifdef LDAV_PRIVILEGED
16551 Yowza Am I SETGID yet
16552 #endif
16553 _ACEOF
16554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16555 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16556 ac_cv_func_getloadavg_setgid=yes
16557 else
16558 ac_cv_func_getloadavg_setgid=no
16559 fi
16560 rm -f conftest*
16561
16562 fi
16563 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16564 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16565 if test $ac_cv_func_getloadavg_setgid = yes; then
16566 NEED_SETGID=true
16567
16568 cat >>confdefs.h <<\_ACEOF
16569 #define GETLOADAVG_PRIVILEGED 1
16570 _ACEOF
16571
16572 else
16573 NEED_SETGID=false
16574 fi
16575
16576 if test $ac_cv_func_getloadavg_setgid = yes; then
16577 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16578 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16579 if test "${ac_cv_group_kmem+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16583 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16584 # If we got an error (system does not support symlinks), try without -L.
16585 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16586 ac_cv_group_kmem=`echo $ac_ls_output \
16587 | sed -ne 's/[ ][ ]*/ /g;
16588 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16589 / /s/.* //;p;'`
16590
16591 fi
16592 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16593 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16594 KMEM_GROUP=$ac_cv_group_kmem
16595 fi
16596 if test "x$ac_save_LIBS" = x; then
16597 GETLOADAVG_LIBS=$LIBS
16598 else
16599 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16600 fi
16601 LIBS=$ac_save_LIBS
16602
16603
16604
16605 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16606 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16607 if test "${ac_cv_sys_largefile_source+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 while :; do
16611 ac_cv_sys_largefile_source=no
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 #include <stdio.h>
16619 int
16620 main ()
16621 {
16622 return !fseeko;
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 break
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 fi
16654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 #define _LARGEFILE_SOURCE 1
16662 #include <stdio.h>
16663 int
16664 main ()
16665 {
16666 return !fseeko;
16667 ;
16668 return 0;
16669 }
16670 _ACEOF
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest.$ac_objext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_sys_largefile_source=1; break
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 fi
16698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16699 break
16700 done
16701 fi
16702 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16703 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16704 if test "$ac_cv_sys_largefile_source" != no; then
16705
16706 cat >>confdefs.h <<_ACEOF
16707 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16708 _ACEOF
16709
16710 fi
16711 rm -f conftest*
16712
16713 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16714 # in glibc 2.1.3, but that breaks too many other things.
16715 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16716 echo "$as_me:$LINENO: checking for fseeko" >&5
16717 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16718 if test "${ac_cv_func_fseeko+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h. */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 #include <stdio.h>
16728 int
16729 main ()
16730 {
16731 return fseeko && fseeko (stdin, 0, 0);
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_func_fseeko=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ac_cv_func_fseeko=no
16763 fi
16764 rm -f conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766 fi
16767 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16768 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16769 if test $ac_cv_func_fseeko = yes; then
16770
16771 cat >>confdefs.h <<\_ACEOF
16772 #define HAVE_FSEEKO 1
16773 _ACEOF
16774
16775 fi
16776
16777
16778 # Configure getopt.
16779 # getopt.m4 serial 10
16780
16781 # The getopt module assume you want GNU getopt, with getopt_long etc,
16782 # rather than vanilla POSIX getopt. This means your your code should
16783 # always include <getopt.h> for the getopt prototypes.
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795 # Prerequisites of lib/getopt*.
16796
16797
16798
16799
16800 GETOPT_H=
16801
16802 for ac_header in getopt.h
16803 do
16804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16806 echo "$as_me:$LINENO: checking for $ac_header" >&5
16807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 fi
16811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16813 else
16814 # Is the header compilable?
16815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 $ac_includes_default
16824 #include <$ac_header>
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest.$ac_objext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_header_compiler=yes
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 ac_header_compiler=no
16853 fi
16854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16856 echo "${ECHO_T}$ac_header_compiler" >&6
16857
16858 # Is the header present?
16859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 #include <$ac_header>
16868 _ACEOF
16869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } >/dev/null; then
16877 if test -s conftest.err; then
16878 ac_cpp_err=$ac_c_preproc_warn_flag
16879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16880 else
16881 ac_cpp_err=
16882 fi
16883 else
16884 ac_cpp_err=yes
16885 fi
16886 if test -z "$ac_cpp_err"; then
16887 ac_header_preproc=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 ac_header_preproc=no
16893 fi
16894 rm -f conftest.err conftest.$ac_ext
16895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16896 echo "${ECHO_T}$ac_header_preproc" >&6
16897
16898 # So? What about this header?
16899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16900 yes:no: )
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16905 ac_header_preproc=yes
16906 ;;
16907 no:yes:* )
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16920 (
16921 cat <<\_ASBOX
16922 ## ------------------------------------------ ##
16923 ## Report this to the AC_PACKAGE_NAME lists. ##
16924 ## ------------------------------------------ ##
16925 _ASBOX
16926 ) |
16927 sed "s/^/$as_me: WARNING: /" >&2
16928 ;;
16929 esac
16930 echo "$as_me:$LINENO: checking for $ac_header" >&5
16931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935 eval "$as_ac_Header=\$ac_header_preproc"
16936 fi
16937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16939
16940 fi
16941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16944 _ACEOF
16945
16946 else
16947 GETOPT_H=getopt.h
16948 fi
16949
16950 done
16951
16952 if test -z "$GETOPT_H"; then
16953
16954 for ac_func in getopt_long_only
16955 do
16956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16957 echo "$as_me:$LINENO: checking for $ac_func" >&5
16958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16959 if eval "test \"\${$as_ac_var+set}\" = set"; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16970 #define $ac_func innocuous_$ac_func
16971
16972 /* System header to define __stub macros and hopefully few prototypes,
16973 which can conflict with char $ac_func (); below.
16974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975 <limits.h> exists even on freestanding compilers. */
16976
16977 #ifdef __STDC__
16978 # include <limits.h>
16979 #else
16980 # include <assert.h>
16981 #endif
16982
16983 #undef $ac_func
16984
16985 /* Override any gcc2 internal prototype to avoid an error. */
16986 #ifdef __cplusplus
16987 extern "C"
16988 {
16989 #endif
16990 /* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
16992 char $ac_func ();
16993 /* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16997 choke me
16998 #else
16999 char (*f) () = $ac_func;
17000 #endif
17001 #ifdef __cplusplus
17002 }
17003 #endif
17004
17005 int
17006 main ()
17007 {
17008 return f != $ac_func;
17009 ;
17010 return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 eval "$as_ac_var=yes"
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 eval "$as_ac_var=no"
17040 fi
17041 rm -f conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17043 fi
17044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17046 if test `eval echo '${'$as_ac_var'}'` = yes; then
17047 cat >>confdefs.h <<_ACEOF
17048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17049 _ACEOF
17050
17051 else
17052 GETOPT_H=getopt.h
17053 fi
17054 done
17055
17056 fi
17057
17058 if test -z "$GETOPT_H"; then
17059 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17060 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17061 if test "${ac_cv_have_decl_optreset+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 #include <getopt.h>
17071
17072 int
17073 main ()
17074 {
17075 #ifndef optreset
17076 char *p = (char *) optreset;
17077 #endif
17078
17079 ;
17080 return 0;
17081 }
17082 _ACEOF
17083 rm -f conftest.$ac_objext
17084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17085 (eval $ac_compile) 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_have_decl_optreset=yes
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_cv_have_decl_optreset=no
17110 fi
17111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17112 fi
17113 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17114 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17115 if test $ac_cv_have_decl_optreset = yes; then
17116 GETOPT_H=getopt.h
17117 fi
17118
17119 fi
17120
17121 if test -z "$GETOPT_H"; then
17122 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17123 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17124 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 if test "$cross_compiling" = yes; then
17128 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17129 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17130 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <getopt.h>
17140
17141 int
17142 main ()
17143 {
17144 #ifndef getopt_clip
17145 char *p = (char *) getopt_clip;
17146 #endif
17147
17148 ;
17149 return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154 (eval $ac_compile) 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_have_decl_getopt_clip=yes
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_cv_have_decl_getopt_clip=no
17179 fi
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 fi
17182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17183 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17184 if test $ac_cv_have_decl_getopt_clip = yes; then
17185 gl_cv_func_gnu_getopt=no
17186 else
17187 gl_cv_func_gnu_getopt=yes
17188 fi
17189
17190 else
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <getopt.h>
17198 int
17199 main ()
17200 {
17201
17202 char *myargv[3];
17203 myargv[0] = "conftest";
17204 myargv[1] = "-+";
17205 myargv[2] = 0;
17206 return getopt (2, myargv, "+a") != '?';
17207
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 gl_cv_func_gnu_getopt=yes
17224 else
17225 echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 ( exit $ac_status )
17230 gl_cv_func_gnu_getopt=no
17231 fi
17232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17233 fi
17234 fi
17235 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17236 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17237 if test "$gl_cv_func_gnu_getopt" = "no"; then
17238 GETOPT_H=getopt.h
17239 fi
17240 fi
17241
17242
17243
17244 if test -n "$GETOPT_H"; then
17245
17246
17247 GETOPT_H=getopt.h
17248
17249 cat >>confdefs.h <<\_ACEOF
17250 #define __GETOPT_PREFIX rpl_
17251 _ACEOF
17252
17253
17254
17255 :
17256 GETOPTOBJS='getopt.o getopt1.o'
17257
17258 fi
17259
17260
17261
17262
17263 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17264 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17265 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 # Use it with a single arg.
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 $ac_includes_default
17276 int
17277 main ()
17278 {
17279 getpgrp (0);
17280 ;
17281 return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_func_getpgrp_void=no
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_cv_func_getpgrp_void=yes
17311 fi
17312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313
17314 fi
17315 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17316 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17317 if test $ac_cv_func_getpgrp_void = yes; then
17318
17319 cat >>confdefs.h <<\_ACEOF
17320 #define GETPGRP_VOID 1
17321 _ACEOF
17322
17323 fi
17324
17325
17326
17327 for ac_func in strftime
17328 do
17329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330 echo "$as_me:$LINENO: checking for $ac_func" >&5
17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17332 if eval "test \"\${$as_ac_var+set}\" = set"; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17343 #define $ac_func innocuous_$ac_func
17344
17345 /* System header to define __stub macros and hopefully few prototypes,
17346 which can conflict with char $ac_func (); below.
17347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17348 <limits.h> exists even on freestanding compilers. */
17349
17350 #ifdef __STDC__
17351 # include <limits.h>
17352 #else
17353 # include <assert.h>
17354 #endif
17355
17356 #undef $ac_func
17357
17358 /* Override any gcc2 internal prototype to avoid an error. */
17359 #ifdef __cplusplus
17360 extern "C"
17361 {
17362 #endif
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365 char $ac_func ();
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17370 choke me
17371 #else
17372 char (*f) () = $ac_func;
17373 #endif
17374 #ifdef __cplusplus
17375 }
17376 #endif
17377
17378 int
17379 main ()
17380 {
17381 return f != $ac_func;
17382 ;
17383 return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 eval "$as_ac_var=yes"
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 eval "$as_ac_var=no"
17413 fi
17414 rm -f conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 fi
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17419 if test `eval echo '${'$as_ac_var'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422 _ACEOF
17423
17424 else
17425 # strftime is in -lintl on SCO UNIX.
17426 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17427 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17428 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 ac_check_lib_save_LIBS=$LIBS
17432 LIBS="-lintl $LIBS"
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439
17440 /* Override any gcc2 internal prototype to avoid an error. */
17441 #ifdef __cplusplus
17442 extern "C"
17443 #endif
17444 /* We use char because int might match the return type of a gcc2
17445 builtin and then its argument prototype would still apply. */
17446 char strftime ();
17447 int
17448 main ()
17449 {
17450 strftime ();
17451 ;
17452 return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_lib_intl_strftime=yes
17477 else
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_cv_lib_intl_strftime=no
17482 fi
17483 rm -f conftest.err conftest.$ac_objext \
17484 conftest$ac_exeext conftest.$ac_ext
17485 LIBS=$ac_check_lib_save_LIBS
17486 fi
17487 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17488 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17489 if test $ac_cv_lib_intl_strftime = yes; then
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_STRFTIME 1
17492 _ACEOF
17493
17494 LIBS="-lintl $LIBS"
17495 fi
17496
17497 fi
17498 done
17499
17500
17501 # UNIX98 PTYs.
17502
17503 for ac_func in grantpt
17504 do
17505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17506 echo "$as_me:$LINENO: checking for $ac_func" >&5
17507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17508 if eval "test \"\${$as_ac_var+set}\" = set"; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511 cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17519 #define $ac_func innocuous_$ac_func
17520
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func (); below.
17523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524 <limits.h> exists even on freestanding compilers. */
17525
17526 #ifdef __STDC__
17527 # include <limits.h>
17528 #else
17529 # include <assert.h>
17530 #endif
17531
17532 #undef $ac_func
17533
17534 /* Override any gcc2 internal prototype to avoid an error. */
17535 #ifdef __cplusplus
17536 extern "C"
17537 {
17538 #endif
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17541 char $ac_func ();
17542 /* The GNU C library defines this for functions which it implements
17543 to always fail with ENOSYS. Some functions are actually named
17544 something starting with __ and the normal name is an alias. */
17545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17546 choke me
17547 #else
17548 char (*f) () = $ac_func;
17549 #endif
17550 #ifdef __cplusplus
17551 }
17552 #endif
17553
17554 int
17555 main ()
17556 {
17557 return f != $ac_func;
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 eval "$as_ac_var=yes"
17584 else
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 eval "$as_ac_var=no"
17589 fi
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17592 fi
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17595 if test `eval echo '${'$as_ac_var'}'` = yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17598 _ACEOF
17599
17600 fi
17601 done
17602
17603
17604 # PTY-related GNU extensions.
17605
17606 for ac_func in getpt
17607 do
17608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17611 if eval "test \"\${$as_ac_var+set}\" = set"; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17623
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17628
17629 #ifdef __STDC__
17630 # include <limits.h>
17631 #else
17632 # include <assert.h>
17633 #endif
17634
17635 #undef $ac_func
17636
17637 /* Override any gcc2 internal prototype to avoid an error. */
17638 #ifdef __cplusplus
17639 extern "C"
17640 {
17641 #endif
17642 /* We use char because int might match the return type of a gcc2
17643 builtin and then its argument prototype would still apply. */
17644 char $ac_func ();
17645 /* The GNU C library defines this for functions which it implements
17646 to always fail with ENOSYS. Some functions are actually named
17647 something starting with __ and the normal name is an alias. */
17648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17649 choke me
17650 #else
17651 char (*f) () = $ac_func;
17652 #endif
17653 #ifdef __cplusplus
17654 }
17655 #endif
17656
17657 int
17658 main ()
17659 {
17660 return f != $ac_func;
17661 ;
17662 return 0;
17663 }
17664 _ACEOF
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17667 (eval $ac_link) 2>conftest.er1
17668 ac_status=$?
17669 grep -v '^ *+' conftest.er1 >conftest.err
17670 rm -f conftest.er1
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 eval "$as_ac_var=yes"
17687 else
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 eval "$as_ac_var=no"
17692 fi
17693 rm -f conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 fi
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17701 _ACEOF
17702
17703 fi
17704 done
17705
17706
17707 # Check this now, so that we will NOT find the above functions in ncurses.
17708 # That is because we have not set up to link ncurses in lib-src.
17709 # It's better to believe a function is not available
17710 # than to expect to find it in ncurses.
17711
17712 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17713 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17714 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 ac_check_lib_save_LIBS=$LIBS
17718 LIBS="-lncurses $LIBS"
17719 cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h. */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725
17726 /* Override any gcc2 internal prototype to avoid an error. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 /* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17732 char tparm ();
17733 int
17734 main ()
17735 {
17736 tparm ();
17737 ;
17738 return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest$ac_exeext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_lib_ncurses_tparm=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 ac_cv_lib_ncurses_tparm=no
17768 fi
17769 rm -f conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 LIBS=$ac_check_lib_save_LIBS
17772 fi
17773 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17774 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17775 if test $ac_cv_lib_ncurses_tparm = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define HAVE_LIBNCURSES 1
17778 _ACEOF
17779
17780 LIBS="-lncurses $LIBS"
17781
17782 fi
17783
17784
17785 # Do we need the Hesiod library to provide the support routines?
17786 if test "$with_hesiod" = yes ; then
17787 # Don't set $LIBS here -- see comments above.
17788 resolv=no
17789 echo "$as_me:$LINENO: checking for res_send" >&5
17790 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17791 if test "${ac_cv_func_res_send+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h. */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17802 #define res_send innocuous_res_send
17803
17804 /* System header to define __stub macros and hopefully few prototypes,
17805 which can conflict with char res_send (); below.
17806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17807 <limits.h> exists even on freestanding compilers. */
17808
17809 #ifdef __STDC__
17810 # include <limits.h>
17811 #else
17812 # include <assert.h>
17813 #endif
17814
17815 #undef res_send
17816
17817 /* Override any gcc2 internal prototype to avoid an error. */
17818 #ifdef __cplusplus
17819 extern "C"
17820 {
17821 #endif
17822 /* We use char because int might match the return type of a gcc2
17823 builtin and then its argument prototype would still apply. */
17824 char res_send ();
17825 /* The GNU C library defines this for functions which it implements
17826 to always fail with ENOSYS. Some functions are actually named
17827 something starting with __ and the normal name is an alias. */
17828 #if defined (__stub_res_send) || defined (__stub___res_send)
17829 choke me
17830 #else
17831 char (*f) () = res_send;
17832 #endif
17833 #ifdef __cplusplus
17834 }
17835 #endif
17836
17837 int
17838 main ()
17839 {
17840 return f != res_send;
17841 ;
17842 return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_func_res_send=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 ac_cv_func_res_send=no
17872 fi
17873 rm -f conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875 fi
17876 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17877 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17878 if test $ac_cv_func_res_send = yes; then
17879 :
17880 else
17881 echo "$as_me:$LINENO: checking for __res_send" >&5
17882 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17883 if test "${ac_cv_func___res_send+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17894 #define __res_send innocuous___res_send
17895
17896 /* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char __res_send (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17900
17901 #ifdef __STDC__
17902 # include <limits.h>
17903 #else
17904 # include <assert.h>
17905 #endif
17906
17907 #undef __res_send
17908
17909 /* Override any gcc2 internal prototype to avoid an error. */
17910 #ifdef __cplusplus
17911 extern "C"
17912 {
17913 #endif
17914 /* We use char because int might match the return type of a gcc2
17915 builtin and then its argument prototype would still apply. */
17916 char __res_send ();
17917 /* The GNU C library defines this for functions which it implements
17918 to always fail with ENOSYS. Some functions are actually named
17919 something starting with __ and the normal name is an alias. */
17920 #if defined (__stub___res_send) || defined (__stub_____res_send)
17921 choke me
17922 #else
17923 char (*f) () = __res_send;
17924 #endif
17925 #ifdef __cplusplus
17926 }
17927 #endif
17928
17929 int
17930 main ()
17931 {
17932 return f != __res_send;
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 (eval $ac_link) 2>conftest.er1
17940 ac_status=$?
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_func___res_send=yes
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ac_cv_func___res_send=no
17964 fi
17965 rm -f conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 fi
17968 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17969 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17970 if test $ac_cv_func___res_send = yes; then
17971 :
17972 else
17973 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17974 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17975 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 ac_check_lib_save_LIBS=$LIBS
17979 LIBS="-lresolv $LIBS"
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986
17987 /* Override any gcc2 internal prototype to avoid an error. */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 /* We use char because int might match the return type of a gcc2
17992 builtin and then its argument prototype would still apply. */
17993 char res_send ();
17994 int
17995 main ()
17996 {
17997 res_send ();
17998 ;
17999 return 0;
18000 }
18001 _ACEOF
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004 (eval $ac_link) 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest$ac_exeext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_lib_resolv_res_send=yes
18024 else
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 ac_cv_lib_resolv_res_send=no
18029 fi
18030 rm -f conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18033 fi
18034 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18035 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18036 if test $ac_cv_lib_resolv_res_send = yes; then
18037 resolv=yes
18038 else
18039 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18040 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18041 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044 ac_check_lib_save_LIBS=$LIBS
18045 LIBS="-lresolv $LIBS"
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052
18053 /* Override any gcc2 internal prototype to avoid an error. */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 /* We use char because int might match the return type of a gcc2
18058 builtin and then its argument prototype would still apply. */
18059 char __res_send ();
18060 int
18061 main ()
18062 {
18063 __res_send ();
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070 (eval $ac_link) 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_lib_resolv___res_send=yes
18090 else
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ac_cv_lib_resolv___res_send=no
18095 fi
18096 rm -f conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18101 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18102 if test $ac_cv_lib_resolv___res_send = yes; then
18103 resolv=yes
18104 fi
18105
18106 fi
18107
18108 fi
18109
18110 fi
18111
18112 if test "$resolv" = yes ; then
18113 RESOLVLIB=-lresolv
18114
18115 cat >>confdefs.h <<\_ACEOF
18116 #define HAVE_LIBRESOLV 1
18117 _ACEOF
18118
18119 else
18120 RESOLVLIB=
18121 fi
18122 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18123 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18124 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define hes_getmailhost innocuous_hes_getmailhost
18136
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char hes_getmailhost (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18141
18142 #ifdef __STDC__
18143 # include <limits.h>
18144 #else
18145 # include <assert.h>
18146 #endif
18147
18148 #undef hes_getmailhost
18149
18150 /* Override any gcc2 internal prototype to avoid an error. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 {
18154 #endif
18155 /* We use char because int might match the return type of a gcc2
18156 builtin and then its argument prototype would still apply. */
18157 char hes_getmailhost ();
18158 /* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18162 choke me
18163 #else
18164 char (*f) () = hes_getmailhost;
18165 #endif
18166 #ifdef __cplusplus
18167 }
18168 #endif
18169
18170 int
18171 main ()
18172 {
18173 return f != hes_getmailhost;
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try='test -s conftest$ac_exeext'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_func_hes_getmailhost=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204 ac_cv_func_hes_getmailhost=no
18205 fi
18206 rm -f conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 fi
18209 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18210 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18211 if test $ac_cv_func_hes_getmailhost = yes; then
18212 :
18213 else
18214 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18215 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18216 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219 ac_check_lib_save_LIBS=$LIBS
18220 LIBS="-lhesiod $RESOLVLIB $LIBS"
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h. */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227
18228 /* Override any gcc2 internal prototype to avoid an error. */
18229 #ifdef __cplusplus
18230 extern "C"
18231 #endif
18232 /* We use char because int might match the return type of a gcc2
18233 builtin and then its argument prototype would still apply. */
18234 char hes_getmailhost ();
18235 int
18236 main ()
18237 {
18238 hes_getmailhost ();
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_lib_hesiod_hes_getmailhost=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269 ac_cv_lib_hesiod_hes_getmailhost=no
18270 fi
18271 rm -f conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273 LIBS=$ac_check_lib_save_LIBS
18274 fi
18275 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18276 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18277 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18278
18279 cat >>confdefs.h <<\_ACEOF
18280 #define HAVE_LIBHESIOD 1
18281 _ACEOF
18282
18283 else
18284 :
18285 fi
18286
18287 fi
18288
18289 fi
18290
18291 # These tell us which Kerberos-related libraries to use.
18292 if test "${with_kerberos+set}" = set; then
18293
18294 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18295 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18296 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lcom_err $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307
18308 /* Override any gcc2 internal prototype to avoid an error. */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314 char com_err ();
18315 int
18316 main ()
18317 {
18318 com_err ();
18319 ;
18320 return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_com_err_com_err=yes
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 ac_cv_lib_com_err_com_err=no
18350 fi
18351 rm -f conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18356 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18357 if test $ac_cv_lib_com_err_com_err = yes; then
18358 cat >>confdefs.h <<_ACEOF
18359 #define HAVE_LIBCOM_ERR 1
18360 _ACEOF
18361
18362 LIBS="-lcom_err $LIBS"
18363
18364 fi
18365
18366
18367 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18368 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18369 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 ac_check_lib_save_LIBS=$LIBS
18373 LIBS="-lk5crypto $LIBS"
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380
18381 /* Override any gcc2 internal prototype to avoid an error. */
18382 #ifdef __cplusplus
18383 extern "C"
18384 #endif
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18387 char mit_des_cbc_encrypt ();
18388 int
18389 main ()
18390 {
18391 mit_des_cbc_encrypt ();
18392 ;
18393 return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18423 fi
18424 rm -f conftest.err conftest.$ac_objext \
18425 conftest$ac_exeext conftest.$ac_ext
18426 LIBS=$ac_check_lib_save_LIBS
18427 fi
18428 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18429 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18430 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18431 cat >>confdefs.h <<_ACEOF
18432 #define HAVE_LIBK5CRYPTO 1
18433 _ACEOF
18434
18435 LIBS="-lk5crypto $LIBS"
18436
18437 fi
18438
18439
18440 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18441 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445 ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-lcrypto $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453
18454 /* Override any gcc2 internal prototype to avoid an error. */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 /* We use char because int might match the return type of a gcc2
18459 builtin and then its argument prototype would still apply. */
18460 char mit_des_cbc_encrypt ();
18461 int
18462 main ()
18463 {
18464 mit_des_cbc_encrypt ();
18465 ;
18466 return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471 (eval $ac_link) 2>conftest.er1
18472 ac_status=$?
18473 grep -v '^ *+' conftest.er1 >conftest.err
18474 rm -f conftest.er1
18475 cat conftest.err >&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18491 else
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18496 fi
18497 rm -f conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18499 LIBS=$ac_check_lib_save_LIBS
18500 fi
18501 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18502 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18503 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_LIBCRYPTO 1
18506 _ACEOF
18507
18508 LIBS="-lcrypto $LIBS"
18509
18510 fi
18511
18512
18513 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18514 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18515 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lkrb5 $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526
18527 /* Override any gcc2 internal prototype to avoid an error. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char krb5_init_context ();
18534 int
18535 main ()
18536 {
18537 krb5_init_context ();
18538 ;
18539 return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_lib_krb5_krb5_init_context=yes
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_cv_lib_krb5_krb5_init_context=no
18569 fi
18570 rm -f conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572 LIBS=$ac_check_lib_save_LIBS
18573 fi
18574 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18575 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18576 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define HAVE_LIBKRB5 1
18579 _ACEOF
18580
18581 LIBS="-lkrb5 $LIBS"
18582
18583 fi
18584
18585 if test "${with_kerberos5+set}" != set; then
18586
18587 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18588 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18589 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592 ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-ldes425 $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h. */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600
18601 /* Override any gcc2 internal prototype to avoid an error. */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 /* We use char because int might match the return type of a gcc2
18606 builtin and then its argument prototype would still apply. */
18607 char des_cbc_encrypt ();
18608 int
18609 main ()
18610 {
18611 des_cbc_encrypt ();
18612 ;
18613 return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618 (eval $ac_link) 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_lib_des425_des_cbc_encrypt=yes
18638 else
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_lib_des425_des_cbc_encrypt=no
18643 fi
18644 rm -f conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
18646 LIBS=$ac_check_lib_save_LIBS
18647 fi
18648 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18649 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18650 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define HAVE_LIBDES425 1
18653 _ACEOF
18654
18655 LIBS="-ldes425 $LIBS"
18656
18657 else
18658
18659 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18660 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18661 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-ldes $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672
18673 /* Override any gcc2 internal prototype to avoid an error. */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18679 char des_cbc_encrypt ();
18680 int
18681 main ()
18682 {
18683 des_cbc_encrypt ();
18684 ;
18685 return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest$ac_exeext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_cv_lib_des_des_cbc_encrypt=yes
18710 else
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714 ac_cv_lib_des_des_cbc_encrypt=no
18715 fi
18716 rm -f conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18719 fi
18720 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18721 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18722 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define HAVE_LIBDES 1
18725 _ACEOF
18726
18727 LIBS="-ldes $LIBS"
18728
18729 fi
18730
18731 fi
18732
18733
18734 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18735 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18736 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-lkrb4 $LIBS"
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h. */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747
18748 /* Override any gcc2 internal prototype to avoid an error. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 /* We use char because int might match the return type of a gcc2
18753 builtin and then its argument prototype would still apply. */
18754 char krb_get_cred ();
18755 int
18756 main ()
18757 {
18758 krb_get_cred ();
18759 ;
18760 return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765 (eval $ac_link) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_cv_lib_krb4_krb_get_cred=yes
18785 else
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 ac_cv_lib_krb4_krb_get_cred=no
18790 fi
18791 rm -f conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18796 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18797 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_LIBKRB4 1
18800 _ACEOF
18801
18802 LIBS="-lkrb4 $LIBS"
18803
18804 else
18805
18806 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18807 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18808 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811 ac_check_lib_save_LIBS=$LIBS
18812 LIBS="-lkrb $LIBS"
18813 cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h. */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819
18820 /* Override any gcc2 internal prototype to avoid an error. */
18821 #ifdef __cplusplus
18822 extern "C"
18823 #endif
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char krb_get_cred ();
18827 int
18828 main ()
18829 {
18830 krb_get_cred ();
18831 ;
18832 return 0;
18833 }
18834 _ACEOF
18835 rm -f conftest.$ac_objext conftest$ac_exeext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18837 (eval $ac_link) 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_krb_krb_get_cred=yes
18857 else
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861 ac_cv_lib_krb_krb_get_cred=no
18862 fi
18863 rm -f conftest.err conftest.$ac_objext \
18864 conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18866 fi
18867 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18868 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18869 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_LIBKRB 1
18872 _ACEOF
18873
18874 LIBS="-lkrb $LIBS"
18875
18876 fi
18877
18878 fi
18879
18880 fi
18881
18882 if test "${with_kerberos5+set}" = set; then
18883
18884 for ac_header in krb5.h
18885 do
18886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888 echo "$as_me:$LINENO: checking for $ac_header" >&5
18889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 fi
18893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18895 else
18896 # Is the header compilable?
18897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 $ac_includes_default
18906 #include <$ac_header>
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18910 (eval $ac_compile) 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_header_compiler=yes
18930 else
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_header_compiler=no
18935 fi
18936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18938 echo "${ECHO_T}$ac_header_compiler" >&6
18939
18940 # Is the header present?
18941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #include <$ac_header>
18950 _ACEOF
18951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } >/dev/null; then
18959 if test -s conftest.err; then
18960 ac_cpp_err=$ac_c_preproc_warn_flag
18961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18962 else
18963 ac_cpp_err=
18964 fi
18965 else
18966 ac_cpp_err=yes
18967 fi
18968 if test -z "$ac_cpp_err"; then
18969 ac_header_preproc=yes
18970 else
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_header_preproc=no
18975 fi
18976 rm -f conftest.err conftest.$ac_ext
18977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18978 echo "${ECHO_T}$ac_header_preproc" >&6
18979
18980 # So? What about this header?
18981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18982 yes:no: )
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18987 ac_header_preproc=yes
18988 ;;
18989 no:yes:* )
18990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19002 (
19003 cat <<\_ASBOX
19004 ## ------------------------------------------ ##
19005 ## Report this to the AC_PACKAGE_NAME lists. ##
19006 ## ------------------------------------------ ##
19007 _ASBOX
19008 ) |
19009 sed "s/^/$as_me: WARNING: /" >&2
19010 ;;
19011 esac
19012 echo "$as_me:$LINENO: checking for $ac_header" >&5
19013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017 eval "$as_ac_Header=\$ac_header_preproc"
19018 fi
19019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19021
19022 fi
19023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19024 cat >>confdefs.h <<_ACEOF
19025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19026 _ACEOF
19027
19028 fi
19029
19030 done
19031
19032 else
19033
19034 for ac_header in des.h
19035 do
19036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 fi
19043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19045 else
19046 # Is the header compilable?
19047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19056 #include <$ac_header>
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19060 (eval $ac_compile) 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_header_compiler=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_header_compiler=no
19085 fi
19086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19088 echo "${ECHO_T}$ac_header_compiler" >&6
19089
19090 # Is the header present?
19091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <$ac_header>
19100 _ACEOF
19101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } >/dev/null; then
19109 if test -s conftest.err; then
19110 ac_cpp_err=$ac_c_preproc_warn_flag
19111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19112 else
19113 ac_cpp_err=
19114 fi
19115 else
19116 ac_cpp_err=yes
19117 fi
19118 if test -z "$ac_cpp_err"; then
19119 ac_header_preproc=yes
19120 else
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_header_preproc=no
19125 fi
19126 rm -f conftest.err conftest.$ac_ext
19127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19128 echo "${ECHO_T}$ac_header_preproc" >&6
19129
19130 # So? What about this header?
19131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19132 yes:no: )
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19137 ac_header_preproc=yes
19138 ;;
19139 no:yes:* )
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19152 (
19153 cat <<\_ASBOX
19154 ## ------------------------------------------ ##
19155 ## Report this to the AC_PACKAGE_NAME lists. ##
19156 ## ------------------------------------------ ##
19157 _ASBOX
19158 ) |
19159 sed "s/^/$as_me: WARNING: /" >&2
19160 ;;
19161 esac
19162 echo "$as_me:$LINENO: checking for $ac_header" >&5
19163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167 eval "$as_ac_Header=\$ac_header_preproc"
19168 fi
19169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19171
19172 fi
19173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19174 cat >>confdefs.h <<_ACEOF
19175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19176 _ACEOF
19177
19178 else
19179
19180 for ac_header in kerberosIV/des.h
19181 do
19182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo "$as_me:$LINENO: checking for $ac_header" >&5
19185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 fi
19189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19191 else
19192 # Is the header compilable?
19193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 $ac_includes_default
19202 #include <$ac_header>
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest.$ac_objext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_header_compiler=yes
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_header_compiler=no
19231 fi
19232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19234 echo "${ECHO_T}$ac_header_compiler" >&6
19235
19236 # Is the header present?
19237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <$ac_header>
19246 _ACEOF
19247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } >/dev/null; then
19255 if test -s conftest.err; then
19256 ac_cpp_err=$ac_c_preproc_warn_flag
19257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19258 else
19259 ac_cpp_err=
19260 fi
19261 else
19262 ac_cpp_err=yes
19263 fi
19264 if test -z "$ac_cpp_err"; then
19265 ac_header_preproc=yes
19266 else
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270 ac_header_preproc=no
19271 fi
19272 rm -f conftest.err conftest.$ac_ext
19273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19274 echo "${ECHO_T}$ac_header_preproc" >&6
19275
19276 # So? What about this header?
19277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19278 yes:no: )
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19283 ac_header_preproc=yes
19284 ;;
19285 no:yes:* )
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19298 (
19299 cat <<\_ASBOX
19300 ## ------------------------------------------ ##
19301 ## Report this to the AC_PACKAGE_NAME lists. ##
19302 ## ------------------------------------------ ##
19303 _ASBOX
19304 ) |
19305 sed "s/^/$as_me: WARNING: /" >&2
19306 ;;
19307 esac
19308 echo "$as_me:$LINENO: checking for $ac_header" >&5
19309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 else
19313 eval "$as_ac_Header=\$ac_header_preproc"
19314 fi
19315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19317
19318 fi
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 else
19325
19326 for ac_header in kerberos/des.h
19327 do
19328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 fi
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19337 else
19338 # Is the header compilable?
19339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 $ac_includes_default
19348 #include <$ac_header>
19349 _ACEOF
19350 rm -f conftest.$ac_objext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352 (eval $ac_compile) 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest.$ac_objext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_header_compiler=yes
19372 else
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_header_compiler=no
19377 fi
19378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 echo "${ECHO_T}$ac_header_compiler" >&6
19381
19382 # Is the header present?
19383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 #include <$ac_header>
19392 _ACEOF
19393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } >/dev/null; then
19401 if test -s conftest.err; then
19402 ac_cpp_err=$ac_c_preproc_warn_flag
19403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19404 else
19405 ac_cpp_err=
19406 fi
19407 else
19408 ac_cpp_err=yes
19409 fi
19410 if test -z "$ac_cpp_err"; then
19411 ac_header_preproc=yes
19412 else
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 ac_header_preproc=no
19417 fi
19418 rm -f conftest.err conftest.$ac_ext
19419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19420 echo "${ECHO_T}$ac_header_preproc" >&6
19421
19422 # So? What about this header?
19423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19424 yes:no: )
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19429 ac_header_preproc=yes
19430 ;;
19431 no:yes:* )
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19444 (
19445 cat <<\_ASBOX
19446 ## ------------------------------------------ ##
19447 ## Report this to the AC_PACKAGE_NAME lists. ##
19448 ## ------------------------------------------ ##
19449 _ASBOX
19450 ) |
19451 sed "s/^/$as_me: WARNING: /" >&2
19452 ;;
19453 esac
19454 echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459 eval "$as_ac_Header=\$ac_header_preproc"
19460 fi
19461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19463
19464 fi
19465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19468 _ACEOF
19469
19470 fi
19471
19472 done
19473
19474 fi
19475
19476 done
19477
19478 fi
19479
19480 done
19481
19482
19483 for ac_header in krb.h
19484 do
19485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo "$as_me:$LINENO: checking for $ac_header" >&5
19488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 fi
19492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19494 else
19495 # Is the header compilable?
19496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h. */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 $ac_includes_default
19505 #include <$ac_header>
19506 _ACEOF
19507 rm -f conftest.$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_header_compiler=yes
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_header_compiler=no
19534 fi
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19537 echo "${ECHO_T}$ac_header_compiler" >&6
19538
19539 # Is the header present?
19540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <$ac_header>
19549 _ACEOF
19550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } >/dev/null; then
19558 if test -s conftest.err; then
19559 ac_cpp_err=$ac_c_preproc_warn_flag
19560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19561 else
19562 ac_cpp_err=
19563 fi
19564 else
19565 ac_cpp_err=yes
19566 fi
19567 if test -z "$ac_cpp_err"; then
19568 ac_header_preproc=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_header_preproc=no
19574 fi
19575 rm -f conftest.err conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577 echo "${ECHO_T}$ac_header_preproc" >&6
19578
19579 # So? What about this header?
19580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19581 yes:no: )
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19586 ac_header_preproc=yes
19587 ;;
19588 no:yes:* )
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19601 (
19602 cat <<\_ASBOX
19603 ## ------------------------------------------ ##
19604 ## Report this to the AC_PACKAGE_NAME lists. ##
19605 ## ------------------------------------------ ##
19606 _ASBOX
19607 ) |
19608 sed "s/^/$as_me: WARNING: /" >&2
19609 ;;
19610 esac
19611 echo "$as_me:$LINENO: checking for $ac_header" >&5
19612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 eval "$as_ac_Header=\$ac_header_preproc"
19617 fi
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620
19621 fi
19622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19625 _ACEOF
19626
19627 else
19628
19629 for ac_header in kerberosIV/krb.h
19630 do
19631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19633 echo "$as_me:$LINENO: checking for $ac_header" >&5
19634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 fi
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19640 else
19641 # Is the header compilable?
19642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19644 cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h. */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19651 #include <$ac_header>
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655 (eval $ac_compile) 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_header_compiler=yes
19675 else
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_header_compiler=no
19680 fi
19681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19683 echo "${ECHO_T}$ac_header_compiler" >&6
19684
19685 # Is the header present?
19686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <$ac_header>
19695 _ACEOF
19696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } >/dev/null; then
19704 if test -s conftest.err; then
19705 ac_cpp_err=$ac_c_preproc_warn_flag
19706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19707 else
19708 ac_cpp_err=
19709 fi
19710 else
19711 ac_cpp_err=yes
19712 fi
19713 if test -z "$ac_cpp_err"; then
19714 ac_header_preproc=yes
19715 else
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ac_header_preproc=no
19720 fi
19721 rm -f conftest.err conftest.$ac_ext
19722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19723 echo "${ECHO_T}$ac_header_preproc" >&6
19724
19725 # So? What about this header?
19726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19727 yes:no: )
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19732 ac_header_preproc=yes
19733 ;;
19734 no:yes:* )
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19747 (
19748 cat <<\_ASBOX
19749 ## ------------------------------------------ ##
19750 ## Report this to the AC_PACKAGE_NAME lists. ##
19751 ## ------------------------------------------ ##
19752 _ASBOX
19753 ) |
19754 sed "s/^/$as_me: WARNING: /" >&2
19755 ;;
19756 esac
19757 echo "$as_me:$LINENO: checking for $ac_header" >&5
19758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762 eval "$as_ac_Header=\$ac_header_preproc"
19763 fi
19764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19766
19767 fi
19768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19769 cat >>confdefs.h <<_ACEOF
19770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19771 _ACEOF
19772
19773 else
19774
19775 for ac_header in kerberos/krb.h
19776 do
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779 echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 fi
19784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19786 else
19787 # Is the header compilable?
19788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 $ac_includes_default
19797 #include <$ac_header>
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_header_compiler=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_header_compiler=no
19826 fi
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6
19830
19831 # Is the header present?
19832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <$ac_header>
19841 _ACEOF
19842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19844 ac_status=$?
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } >/dev/null; then
19850 if test -s conftest.err; then
19851 ac_cpp_err=$ac_c_preproc_warn_flag
19852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19853 else
19854 ac_cpp_err=
19855 fi
19856 else
19857 ac_cpp_err=yes
19858 fi
19859 if test -z "$ac_cpp_err"; then
19860 ac_header_preproc=yes
19861 else
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865 ac_header_preproc=no
19866 fi
19867 rm -f conftest.err conftest.$ac_ext
19868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19869 echo "${ECHO_T}$ac_header_preproc" >&6
19870
19871 # So? What about this header?
19872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873 yes:no: )
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19878 ac_header_preproc=yes
19879 ;;
19880 no:yes:* )
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19893 (
19894 cat <<\_ASBOX
19895 ## ------------------------------------------ ##
19896 ## Report this to the AC_PACKAGE_NAME lists. ##
19897 ## ------------------------------------------ ##
19898 _ASBOX
19899 ) |
19900 sed "s/^/$as_me: WARNING: /" >&2
19901 ;;
19902 esac
19903 echo "$as_me:$LINENO: checking for $ac_header" >&5
19904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908 eval "$as_ac_Header=\$ac_header_preproc"
19909 fi
19910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19912
19913 fi
19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19917 _ACEOF
19918
19919 fi
19920
19921 done
19922
19923 fi
19924
19925 done
19926
19927 fi
19928
19929 done
19930
19931 fi
19932
19933 for ac_header in com_err.h
19934 do
19935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937 echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 fi
19942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19944 else
19945 # Is the header compilable?
19946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954 $ac_includes_default
19955 #include <$ac_header>
19956 _ACEOF
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19978 ac_header_compiler=yes
19979 else
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 ac_header_compiler=no
19984 fi
19985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6
19988
19989 # Is the header present?
19990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <$ac_header>
19999 _ACEOF
20000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } >/dev/null; then
20008 if test -s conftest.err; then
20009 ac_cpp_err=$ac_c_preproc_warn_flag
20010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20011 else
20012 ac_cpp_err=
20013 fi
20014 else
20015 ac_cpp_err=yes
20016 fi
20017 if test -z "$ac_cpp_err"; then
20018 ac_header_preproc=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022
20023 ac_header_preproc=no
20024 fi
20025 rm -f conftest.err conftest.$ac_ext
20026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027 echo "${ECHO_T}$ac_header_preproc" >&6
20028
20029 # So? What about this header?
20030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 yes:no: )
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036 ac_header_preproc=yes
20037 ;;
20038 no:yes:* )
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 (
20052 cat <<\_ASBOX
20053 ## ------------------------------------------ ##
20054 ## Report this to the AC_PACKAGE_NAME lists. ##
20055 ## ------------------------------------------ ##
20056 _ASBOX
20057 ) |
20058 sed "s/^/$as_me: WARNING: /" >&2
20059 ;;
20060 esac
20061 echo "$as_me:$LINENO: checking for $ac_header" >&5
20062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066 eval "$as_ac_Header=\$ac_header_preproc"
20067 fi
20068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20070
20071 fi
20072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20073 cat >>confdefs.h <<_ACEOF
20074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20075 _ACEOF
20076
20077 fi
20078
20079 done
20080
20081 fi
20082
20083 # Solaris requires -lintl if you want strerror (which calls dgettext)
20084 # to return localized messages.
20085
20086 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20087 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20088 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 ac_check_lib_save_LIBS=$LIBS
20092 LIBS="-lintl $LIBS"
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099
20100 /* Override any gcc2 internal prototype to avoid an error. */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 /* We use char because int might match the return type of a gcc2
20105 builtin and then its argument prototype would still apply. */
20106 char dgettext ();
20107 int
20108 main ()
20109 {
20110 dgettext ();
20111 ;
20112 return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117 (eval $ac_link) 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_lib_intl_dgettext=yes
20137 else
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_cv_lib_intl_dgettext=no
20142 fi
20143 rm -f conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145 LIBS=$ac_check_lib_save_LIBS
20146 fi
20147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20148 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20149 if test $ac_cv_lib_intl_dgettext = yes; then
20150 cat >>confdefs.h <<_ACEOF
20151 #define HAVE_LIBINTL 1
20152 _ACEOF
20153
20154 LIBS="-lintl $LIBS"
20155
20156 fi
20157
20158
20159 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20160 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20161 if test "${emacs_cv_localtime_cache+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164 if test x$ac_cv_func_tzset = xyes; then
20165 if test "$cross_compiling" = yes; then
20166 # If we have tzset, assume the worst when cross-compiling.
20167 emacs_cv_localtime_cache=yes
20168 else
20169 cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h. */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <time.h>
20176 extern char **environ;
20177 unset_TZ ()
20178 {
20179 char **from, **to;
20180 for (to = from = environ; (*to = *from); from++)
20181 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20182 to++;
20183 }
20184 char TZ_GMT0[] = "TZ=GMT0";
20185 char TZ_PST8[] = "TZ=PST8";
20186 main()
20187 {
20188 time_t now = time ((time_t *) 0);
20189 int hour_GMT0, hour_unset;
20190 if (putenv (TZ_GMT0) != 0)
20191 exit (1);
20192 hour_GMT0 = localtime (&now)->tm_hour;
20193 unset_TZ ();
20194 hour_unset = localtime (&now)->tm_hour;
20195 if (putenv (TZ_PST8) != 0)
20196 exit (1);
20197 if (localtime (&now)->tm_hour == hour_GMT0)
20198 exit (1);
20199 unset_TZ ();
20200 if (localtime (&now)->tm_hour != hour_unset)
20201 exit (1);
20202 exit (0);
20203 }
20204 _ACEOF
20205 rm -f conftest$ac_exeext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20207 (eval $ac_link) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 emacs_cv_localtime_cache=no
20217 else
20218 echo "$as_me: program exited with status $ac_status" >&5
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222 ( exit $ac_status )
20223 emacs_cv_localtime_cache=yes
20224 fi
20225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20226 fi
20227 else
20228 # If we lack tzset, report that localtime does not cache TZ,
20229 # since we can't invalidate the cache if we don't have tzset.
20230 emacs_cv_localtime_cache=no
20231 fi
20232 fi
20233 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20234 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20235 if test $emacs_cv_localtime_cache = yes; then
20236
20237 cat >>confdefs.h <<\_ACEOF
20238 #define LOCALTIME_CACHE 1
20239 _ACEOF
20240
20241 fi
20242
20243 if test "x$HAVE_TIMEVAL" = xyes; then
20244
20245 for ac_func in gettimeofday
20246 do
20247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20248 echo "$as_me:$LINENO: checking for $ac_func" >&5
20249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20250 if eval "test \"\${$as_ac_var+set}\" = set"; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20261 #define $ac_func innocuous_$ac_func
20262
20263 /* System header to define __stub macros and hopefully few prototypes,
20264 which can conflict with char $ac_func (); below.
20265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20266 <limits.h> exists even on freestanding compilers. */
20267
20268 #ifdef __STDC__
20269 # include <limits.h>
20270 #else
20271 # include <assert.h>
20272 #endif
20273
20274 #undef $ac_func
20275
20276 /* Override any gcc2 internal prototype to avoid an error. */
20277 #ifdef __cplusplus
20278 extern "C"
20279 {
20280 #endif
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20283 char $ac_func ();
20284 /* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20288 choke me
20289 #else
20290 char (*f) () = $ac_func;
20291 #endif
20292 #ifdef __cplusplus
20293 }
20294 #endif
20295
20296 int
20297 main ()
20298 {
20299 return f != $ac_func;
20300 ;
20301 return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest$ac_exeext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 eval "$as_ac_var=yes"
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330 eval "$as_ac_var=no"
20331 fi
20332 rm -f conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334 fi
20335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20337 if test `eval echo '${'$as_ac_var'}'` = yes; then
20338 cat >>confdefs.h <<_ACEOF
20339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20340 _ACEOF
20341
20342 fi
20343 done
20344
20345 if test $ac_cv_func_gettimeofday = yes; then
20346 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20347 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20348 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h. */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357
20358 #ifdef TIME_WITH_SYS_TIME
20359 #include <sys/time.h>
20360 #include <time.h>
20361 #else
20362 #ifdef HAVE_SYS_TIME_H
20363 #include <sys/time.h>
20364 #else
20365 #include <time.h>
20366 #endif
20367 #endif
20368 int
20369 main ()
20370 {
20371 struct timeval time;
20372 gettimeofday (&time, 0);
20373 ;
20374 return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379 (eval $ac_compile) 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 emacs_cv_gettimeofday_two_arguments=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 emacs_cv_gettimeofday_two_arguments=no
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 fi
20407 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20408 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20409 if test $emacs_cv_gettimeofday_two_arguments = no; then
20410
20411 cat >>confdefs.h <<\_ACEOF
20412 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20413 _ACEOF
20414
20415 fi
20416 fi
20417 fi
20418
20419 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20420 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20421 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20422 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 #include <sys/types.h>
20432 #include <$ac_cv_struct_tm>
20433
20434
20435 int
20436 main ()
20437 {
20438 static struct tm ac_aggr;
20439 if (ac_aggr.tm_zone)
20440 return 0;
20441 ;
20442 return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20447 (eval $ac_compile) 2>conftest.er1
20448 ac_status=$?
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
20454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest.$ac_objext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_member_struct_tm_tm_zone=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <sys/types.h>
20478 #include <$ac_cv_struct_tm>
20479
20480
20481 int
20482 main ()
20483 {
20484 static struct tm ac_aggr;
20485 if (sizeof ac_aggr.tm_zone)
20486 return 0;
20487 ;
20488 return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20493 (eval $ac_compile) 2>conftest.er1
20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest.$ac_objext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ac_cv_member_struct_tm_tm_zone=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ac_cv_member_struct_tm_tm_zone=no
20518 fi
20519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20520 fi
20521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20522 fi
20523 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20524 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20525 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20526
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_STRUCT_TM_TM_ZONE 1
20529 _ACEOF
20530
20531
20532 fi
20533
20534 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20535
20536 cat >>confdefs.h <<\_ACEOF
20537 #define HAVE_TM_ZONE 1
20538 _ACEOF
20539
20540 else
20541 echo "$as_me:$LINENO: checking for tzname" >&5
20542 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20543 if test "${ac_cv_var_tzname+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h. */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 #include <time.h>
20553 #ifndef tzname /* For SGI. */
20554 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20555 #endif
20556
20557 int
20558 main ()
20559 {
20560 atoi(*tzname);
20561 ;
20562 return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20567 (eval $ac_link) 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest$ac_exeext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_var_tzname=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 ac_cv_var_tzname=no
20592 fi
20593 rm -f conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595 fi
20596 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20597 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20598 if test $ac_cv_var_tzname = yes; then
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_TZNAME 1
20602 _ACEOF
20603
20604 fi
20605 fi
20606
20607
20608 if test "$ac_cv_func_gettimeofday" = yes; then
20609 echo "$as_me:$LINENO: checking for struct timezone" >&5
20610 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20611 if test "${emacs_cv_struct_timezone+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 #include <sys/time.h>
20621 int
20622 main ()
20623 {
20624 struct timezone tz;
20625 ;
20626 return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20631 (eval $ac_compile) 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest.$ac_objext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 if test "$cross_compiling" = yes; then
20651 emacs_cv_struct_timezone=yes
20652 else
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h. */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659
20660 #ifdef TIME_WITH_SYS_TIME
20661 #include <sys/time.h>
20662 #include <time.h>
20663 #else
20664 #ifdef HAVE_SYS_TIME_H
20665 #include <sys/time.h>
20666 #else
20667 #include <time.h>
20668 #endif
20669 #endif
20670 main () {
20671 struct timeval time;
20672 struct timezone dummy;
20673 exit (gettimeofday (&time, &dummy));
20674 }
20675 _ACEOF
20676 rm -f conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 emacs_cv_struct_timezone=yes
20688 else
20689 echo "$as_me: program exited with status $ac_status" >&5
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 ( exit $ac_status )
20694 emacs_cv_struct_timezone=no
20695 fi
20696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20697 fi
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 emacs_cv_struct_timezone=no
20703 fi
20704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20705 fi
20706 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20707 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20708 fi
20709
20710 ok_so_far=yes
20711 echo "$as_me:$LINENO: checking for socket" >&5
20712 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20713 if test "${ac_cv_func_socket+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20724 #define socket innocuous_socket
20725
20726 /* System header to define __stub macros and hopefully few prototypes,
20727 which can conflict with char socket (); below.
20728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20729 <limits.h> exists even on freestanding compilers. */
20730
20731 #ifdef __STDC__
20732 # include <limits.h>
20733 #else
20734 # include <assert.h>
20735 #endif
20736
20737 #undef socket
20738
20739 /* Override any gcc2 internal prototype to avoid an error. */
20740 #ifdef __cplusplus
20741 extern "C"
20742 {
20743 #endif
20744 /* We use char because int might match the return type of a gcc2
20745 builtin and then its argument prototype would still apply. */
20746 char socket ();
20747 /* The GNU C library defines this for functions which it implements
20748 to always fail with ENOSYS. Some functions are actually named
20749 something starting with __ and the normal name is an alias. */
20750 #if defined (__stub_socket) || defined (__stub___socket)
20751 choke me
20752 #else
20753 char (*f) () = socket;
20754 #endif
20755 #ifdef __cplusplus
20756 }
20757 #endif
20758
20759 int
20760 main ()
20761 {
20762 return f != socket;
20763 ;
20764 return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769 (eval $ac_link) 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest$ac_exeext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_cv_func_socket=yes
20789 else
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_cv_func_socket=no
20794 fi
20795 rm -f conftest.err conftest.$ac_objext \
20796 conftest$ac_exeext conftest.$ac_ext
20797 fi
20798 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20799 echo "${ECHO_T}$ac_cv_func_socket" >&6
20800 if test $ac_cv_func_socket = yes; then
20801 :
20802 else
20803 ok_so_far=no
20804 fi
20805
20806 if test $ok_so_far = yes; then
20807 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20808 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20809 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20810 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 fi
20813 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20814 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20815 else
20816 # Is the header compilable?
20817 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20818 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20826 #include <netinet/in.h>
20827 _ACEOF
20828 rm -f conftest.$ac_objext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20830 (eval $ac_compile) 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_header_compiler=yes
20850 else
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854 ac_header_compiler=no
20855 fi
20856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20858 echo "${ECHO_T}$ac_header_compiler" >&6
20859
20860 # Is the header present?
20861 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20862 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h. */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #include <netinet/in.h>
20870 _ACEOF
20871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20873 ac_status=$?
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } >/dev/null; then
20879 if test -s conftest.err; then
20880 ac_cpp_err=$ac_c_preproc_warn_flag
20881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20882 else
20883 ac_cpp_err=
20884 fi
20885 else
20886 ac_cpp_err=yes
20887 fi
20888 if test -z "$ac_cpp_err"; then
20889 ac_header_preproc=yes
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_header_preproc=no
20895 fi
20896 rm -f conftest.err conftest.$ac_ext
20897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20898 echo "${ECHO_T}$ac_header_preproc" >&6
20899
20900 # So? What about this header?
20901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20902 yes:no: )
20903 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20904 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20906 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20907 ac_header_preproc=yes
20908 ;;
20909 no:yes:* )
20910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20911 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20913 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20915 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20917 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20919 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20921 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20922 (
20923 cat <<\_ASBOX
20924 ## ------------------------------------------ ##
20925 ## Report this to the AC_PACKAGE_NAME lists. ##
20926 ## ------------------------------------------ ##
20927 _ASBOX
20928 ) |
20929 sed "s/^/$as_me: WARNING: /" >&2
20930 ;;
20931 esac
20932 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20933 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20934 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937 ac_cv_header_netinet_in_h=$ac_header_preproc
20938 fi
20939 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20940 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20941
20942 fi
20943 if test $ac_cv_header_netinet_in_h = yes; then
20944 :
20945 else
20946 ok_so_far=no
20947 fi
20948
20949
20950 fi
20951 if test $ok_so_far = yes; then
20952 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20953 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20954 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20955 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 fi
20958 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20959 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20960 else
20961 # Is the header compilable?
20962 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20963 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 #include <arpa/inet.h>
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_header_compiler=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ac_header_compiler=no
21000 fi
21001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21003 echo "${ECHO_T}$ac_header_compiler" >&6
21004
21005 # Is the header present?
21006 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21007 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 #include <arpa/inet.h>
21015 _ACEOF
21016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21018 ac_status=$?
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -f conftest.er1
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } >/dev/null; then
21024 if test -s conftest.err; then
21025 ac_cpp_err=$ac_c_preproc_warn_flag
21026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21027 else
21028 ac_cpp_err=
21029 fi
21030 else
21031 ac_cpp_err=yes
21032 fi
21033 if test -z "$ac_cpp_err"; then
21034 ac_header_preproc=yes
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_header_preproc=no
21040 fi
21041 rm -f conftest.err conftest.$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6
21044
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21047 yes:no: )
21048 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21049 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21051 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21052 ac_header_preproc=yes
21053 ;;
21054 no:yes:* )
21055 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21056 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21058 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21060 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21062 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21064 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21066 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21067 (
21068 cat <<\_ASBOX
21069 ## ------------------------------------------ ##
21070 ## Report this to the AC_PACKAGE_NAME lists. ##
21071 ## ------------------------------------------ ##
21072 _ASBOX
21073 ) |
21074 sed "s/^/$as_me: WARNING: /" >&2
21075 ;;
21076 esac
21077 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21078 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21079 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082 ac_cv_header_arpa_inet_h=$ac_header_preproc
21083 fi
21084 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21085 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21086
21087 fi
21088 if test $ac_cv_header_arpa_inet_h = yes; then
21089 :
21090 else
21091 ok_so_far=no
21092 fi
21093
21094
21095 fi
21096 if test $ok_so_far = yes; then
21097
21098 cat >>confdefs.h <<\_ACEOF
21099 #define HAVE_INET_SOCKETS 1
21100 _ACEOF
21101
21102 fi
21103
21104
21105 for ac_header in sys/ioctl.h
21106 do
21107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21109 echo "$as_me:$LINENO: checking for $ac_header" >&5
21110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 fi
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21116 else
21117 # Is the header compilable?
21118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 $ac_includes_default
21127 #include <$ac_header>
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_header_compiler=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_header_compiler=no
21156 fi
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21159 echo "${ECHO_T}$ac_header_compiler" >&6
21160
21161 # Is the header present?
21162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <$ac_header>
21171 _ACEOF
21172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21174 ac_status=$?
21175 grep -v '^ *+' conftest.er1 >conftest.err
21176 rm -f conftest.er1
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } >/dev/null; then
21180 if test -s conftest.err; then
21181 ac_cpp_err=$ac_c_preproc_warn_flag
21182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21183 else
21184 ac_cpp_err=
21185 fi
21186 else
21187 ac_cpp_err=yes
21188 fi
21189 if test -z "$ac_cpp_err"; then
21190 ac_header_preproc=yes
21191 else
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195 ac_header_preproc=no
21196 fi
21197 rm -f conftest.err conftest.$ac_ext
21198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21199 echo "${ECHO_T}$ac_header_preproc" >&6
21200
21201 # So? What about this header?
21202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21203 yes:no: )
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21208 ac_header_preproc=yes
21209 ;;
21210 no:yes:* )
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21223 (
21224 cat <<\_ASBOX
21225 ## ------------------------------------------ ##
21226 ## Report this to the AC_PACKAGE_NAME lists. ##
21227 ## ------------------------------------------ ##
21228 _ASBOX
21229 ) |
21230 sed "s/^/$as_me: WARNING: /" >&2
21231 ;;
21232 esac
21233 echo "$as_me:$LINENO: checking for $ac_header" >&5
21234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 eval "$as_ac_Header=\$ac_header_preproc"
21239 fi
21240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21242
21243 fi
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21247 _ACEOF
21248
21249 fi
21250
21251 done
21252
21253
21254 if test -f /usr/lpp/X11/bin/smt.exp; then
21255
21256 cat >>confdefs.h <<\_ACEOF
21257 #define HAVE_AIX_SMT_EXP 1
21258 _ACEOF
21259
21260 fi
21261
21262 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21263 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21264 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21265 echo "$as_me:$LINENO: result: yes" >&5
21266 echo "${ECHO_T}yes" >&6
21267
21268 cat >>confdefs.h <<\_ACEOF
21269 #define HAVE_DEV_PTMX 1
21270 _ACEOF
21271
21272 else
21273 echo "$as_me:$LINENO: result: no" >&5
21274 echo "${ECHO_T}no" >&6
21275 fi
21276
21277 echo "$as_me:$LINENO: checking for pid_t" >&5
21278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21279 if test "${ac_cv_type_pid_t+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 $ac_includes_default
21289 int
21290 main ()
21291 {
21292 if ((pid_t *) 0)
21293 return 0;
21294 if (sizeof (pid_t))
21295 return 0;
21296 ;
21297 return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_cv_type_pid_t=yes
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_cv_type_pid_t=no
21327 fi
21328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21331 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21332 if test $ac_cv_type_pid_t = yes; then
21333 :
21334 else
21335
21336 cat >>confdefs.h <<_ACEOF
21337 #define pid_t int
21338 _ACEOF
21339
21340 fi
21341
21342
21343
21344 for ac_header in unistd.h vfork.h
21345 do
21346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21348 echo "$as_me:$LINENO: checking for $ac_header" >&5
21349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 fi
21353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21355 else
21356 # Is the header compilable?
21357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21359 cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h. */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 $ac_includes_default
21366 #include <$ac_header>
21367 _ACEOF
21368 rm -f conftest.$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>conftest.er1
21371 ac_status=$?
21372 grep -v '^ *+' conftest.er1 >conftest.err
21373 rm -f conftest.er1
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; } &&
21383 { ac_try='test -s conftest.$ac_objext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_header_compiler=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394 ac_header_compiler=no
21395 fi
21396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21398 echo "${ECHO_T}$ac_header_compiler" >&6
21399
21400 # Is the header present?
21401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <$ac_header>
21410 _ACEOF
21411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } >/dev/null; then
21419 if test -s conftest.err; then
21420 ac_cpp_err=$ac_c_preproc_warn_flag
21421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21422 else
21423 ac_cpp_err=
21424 fi
21425 else
21426 ac_cpp_err=yes
21427 fi
21428 if test -z "$ac_cpp_err"; then
21429 ac_header_preproc=yes
21430 else
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21433
21434 ac_header_preproc=no
21435 fi
21436 rm -f conftest.err conftest.$ac_ext
21437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21438 echo "${ECHO_T}$ac_header_preproc" >&6
21439
21440 # So? What about this header?
21441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21442 yes:no: )
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21447 ac_header_preproc=yes
21448 ;;
21449 no:yes:* )
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21462 (
21463 cat <<\_ASBOX
21464 ## ------------------------------------------ ##
21465 ## Report this to the AC_PACKAGE_NAME lists. ##
21466 ## ------------------------------------------ ##
21467 _ASBOX
21468 ) |
21469 sed "s/^/$as_me: WARNING: /" >&2
21470 ;;
21471 esac
21472 echo "$as_me:$LINENO: checking for $ac_header" >&5
21473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477 eval "$as_ac_Header=\$ac_header_preproc"
21478 fi
21479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21481
21482 fi
21483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21484 cat >>confdefs.h <<_ACEOF
21485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21486 _ACEOF
21487
21488 fi
21489
21490 done
21491
21492
21493
21494 for ac_func in fork vfork
21495 do
21496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21497 echo "$as_me:$LINENO: checking for $ac_func" >&5
21498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21499 if eval "test \"\${$as_ac_var+set}\" = set"; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h. */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21510 #define $ac_func innocuous_$ac_func
21511
21512 /* System header to define __stub macros and hopefully few prototypes,
21513 which can conflict with char $ac_func (); below.
21514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21515 <limits.h> exists even on freestanding compilers. */
21516
21517 #ifdef __STDC__
21518 # include <limits.h>
21519 #else
21520 # include <assert.h>
21521 #endif
21522
21523 #undef $ac_func
21524
21525 /* Override any gcc2 internal prototype to avoid an error. */
21526 #ifdef __cplusplus
21527 extern "C"
21528 {
21529 #endif
21530 /* We use char because int might match the return type of a gcc2
21531 builtin and then its argument prototype would still apply. */
21532 char $ac_func ();
21533 /* The GNU C library defines this for functions which it implements
21534 to always fail with ENOSYS. Some functions are actually named
21535 something starting with __ and the normal name is an alias. */
21536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21537 choke me
21538 #else
21539 char (*f) () = $ac_func;
21540 #endif
21541 #ifdef __cplusplus
21542 }
21543 #endif
21544
21545 int
21546 main ()
21547 {
21548 return f != $ac_func;
21549 ;
21550 return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } &&
21562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; } &&
21568 { ac_try='test -s conftest$ac_exeext'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 eval "$as_ac_var=yes"
21575 else
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 eval "$as_ac_var=no"
21580 fi
21581 rm -f conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 fi
21584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21586 if test `eval echo '${'$as_ac_var'}'` = yes; then
21587 cat >>confdefs.h <<_ACEOF
21588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21589 _ACEOF
21590
21591 fi
21592 done
21593
21594 if test "x$ac_cv_func_fork" = xyes; then
21595 echo "$as_me:$LINENO: checking for working fork" >&5
21596 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21597 if test "${ac_cv_func_fork_works+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600 if test "$cross_compiling" = yes; then
21601 ac_cv_func_fork_works=cross
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21610 int
21611 main ()
21612 {
21613
21614 /* By Ruediger Kuhlmann. */
21615 if (fork() < 0)
21616 exit (1);
21617 exit (0);
21618
21619 ;
21620 return 0;
21621 }
21622 _ACEOF
21623 rm -f conftest$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 ac_cv_func_fork_works=yes
21635 else
21636 echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640 ( exit $ac_status )
21641 ac_cv_func_fork_works=no
21642 fi
21643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21644 fi
21645 fi
21646 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21647 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21648
21649 else
21650 ac_cv_func_fork_works=$ac_cv_func_fork
21651 fi
21652 if test "x$ac_cv_func_fork_works" = xcross; then
21653 case $host in
21654 *-*-amigaos* | *-*-msdosdjgpp*)
21655 # Override, as these systems have only a dummy fork() stub
21656 ac_cv_func_fork_works=no
21657 ;;
21658 *)
21659 ac_cv_func_fork_works=yes
21660 ;;
21661 esac
21662 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21663 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21664 fi
21665 ac_cv_func_vfork_works=$ac_cv_func_vfork
21666 if test "x$ac_cv_func_vfork" = xyes; then
21667 echo "$as_me:$LINENO: checking for working vfork" >&5
21668 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21669 if test "${ac_cv_func_vfork_works+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672 if test "$cross_compiling" = yes; then
21673 ac_cv_func_vfork_works=cross
21674 else
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 /* Thanks to Paul Eggert for this test. */
21682 #include <stdio.h>
21683 #include <stdlib.h>
21684 #include <sys/types.h>
21685 #include <sys/stat.h>
21686 #include <sys/wait.h>
21687 #if HAVE_UNISTD_H
21688 # include <unistd.h>
21689 #endif
21690 #if HAVE_VFORK_H
21691 # include <vfork.h>
21692 #endif
21693 /* On some sparc systems, changes by the child to local and incoming
21694 argument registers are propagated back to the parent. The compiler
21695 is told about this with #include <vfork.h>, but some compilers
21696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21697 static variable whose address is put into a register that is
21698 clobbered by the vfork. */
21699 static void
21700 #ifdef __cplusplus
21701 sparc_address_test (int arg)
21702 # else
21703 sparc_address_test (arg) int arg;
21704 #endif
21705 {
21706 static pid_t child;
21707 if (!child) {
21708 child = vfork ();
21709 if (child < 0) {
21710 perror ("vfork");
21711 _exit(2);
21712 }
21713 if (!child) {
21714 arg = getpid();
21715 write(-1, "", 0);
21716 _exit (arg);
21717 }
21718 }
21719 }
21720
21721 int
21722 main ()
21723 {
21724 pid_t parent = getpid ();
21725 pid_t child;
21726
21727 sparc_address_test (0);
21728
21729 child = vfork ();
21730
21731 if (child == 0) {
21732 /* Here is another test for sparc vfork register problems. This
21733 test uses lots of local variables, at least as many local
21734 variables as main has allocated so far including compiler
21735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21737 reuse the register of parent for one of the local variables,
21738 since it will think that parent can't possibly be used any more
21739 in this routine. Assigning to the local variable will thus
21740 munge parent in the parent process. */
21741 pid_t
21742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21744 /* Convince the compiler that p..p7 are live; otherwise, it might
21745 use the same hardware register for all 8 local variables. */
21746 if (p != p1 || p != p2 || p != p3 || p != p4
21747 || p != p5 || p != p6 || p != p7)
21748 _exit(1);
21749
21750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21751 from child file descriptors. If the child closes a descriptor
21752 before it execs or exits, this munges the parent's descriptor
21753 as well. Test for this by closing stdout in the child. */
21754 _exit(close(fileno(stdout)) != 0);
21755 } else {
21756 int status;
21757 struct stat st;
21758
21759 while (wait(&status) != child)
21760 ;
21761 exit(
21762 /* Was there some problem with vforking? */
21763 child < 0
21764
21765 /* Did the child fail? (This shouldn't happen.) */
21766 || status
21767
21768 /* Did the vfork/compiler bug occur? */
21769 || parent != getpid()
21770
21771 /* Did the file descriptor bug occur? */
21772 || fstat(fileno(stdout), &st) != 0
21773 );
21774 }
21775 }
21776 _ACEOF
21777 rm -f conftest$ac_exeext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21779 (eval $ac_link) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ac_cv_func_vfork_works=yes
21789 else
21790 echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ( exit $ac_status )
21795 ac_cv_func_vfork_works=no
21796 fi
21797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21798 fi
21799 fi
21800 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21801 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21802
21803 fi;
21804 if test "x$ac_cv_func_fork_works" = xcross; then
21805 ac_cv_func_vfork_works=$ac_cv_func_vfork
21806 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21807 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21808 fi
21809
21810 if test "x$ac_cv_func_vfork_works" = xyes; then
21811
21812 cat >>confdefs.h <<\_ACEOF
21813 #define HAVE_WORKING_VFORK 1
21814 _ACEOF
21815
21816 else
21817
21818 cat >>confdefs.h <<\_ACEOF
21819 #define vfork fork
21820 _ACEOF
21821
21822 fi
21823 if test "x$ac_cv_func_fork_works" = xyes; then
21824
21825 cat >>confdefs.h <<\_ACEOF
21826 #define HAVE_WORKING_FORK 1
21827 _ACEOF
21828
21829 fi
21830
21831
21832 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21833 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21834 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 #include <langinfo.h>
21844 int
21845 main ()
21846 {
21847 char* cs = nl_langinfo(CODESET);
21848 ;
21849 return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext conftest$ac_exeext
21853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 emacs_cv_langinfo_codeset=yes
21874 else
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 emacs_cv_langinfo_codeset=no
21879 fi
21880 rm -f conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882
21883 fi
21884 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21885 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21886 if test $emacs_cv_langinfo_codeset = yes; then
21887
21888 cat >>confdefs.h <<\_ACEOF
21889 #define HAVE_LANGINFO_CODESET 1
21890 _ACEOF
21891
21892 fi
21893
21894 echo "$as_me:$LINENO: checking for size_t" >&5
21895 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21896 if test "${ac_cv_type_size_t+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21906 int
21907 main ()
21908 {
21909 if ((size_t *) 0)
21910 return 0;
21911 if (sizeof (size_t))
21912 return 0;
21913 ;
21914 return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919 (eval $ac_compile) 2>conftest.er1
21920 ac_status=$?
21921 grep -v '^ *+' conftest.er1 >conftest.err
21922 rm -f conftest.er1
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest.$ac_objext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 ac_cv_type_size_t=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ac_cv_type_size_t=no
21944 fi
21945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21946 fi
21947 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21948 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21949 if test $ac_cv_type_size_t = yes; then
21950
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_SIZE_T 1
21953 _ACEOF
21954
21955
21956 fi
21957
21958
21959 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21960 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21961 if test "${ac_cv_type_mbstate_t+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964 cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h. */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 $ac_includes_default
21971 # include <wchar.h>
21972 int
21973 main ()
21974 {
21975 mbstate_t x; return sizeof x;
21976 ;
21977 return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982 (eval $ac_compile) 2>conftest.er1
21983 ac_status=$?
21984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_cv_type_mbstate_t=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 ac_cv_type_mbstate_t=no
22007 fi
22008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22009 fi
22010 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22011 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22012 if test $ac_cv_type_mbstate_t = yes; then
22013
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_MBSTATE_T 1
22016 _ACEOF
22017
22018 else
22019
22020 cat >>confdefs.h <<\_ACEOF
22021 #define mbstate_t int
22022 _ACEOF
22023
22024 fi
22025
22026 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22027 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22028 if test "${emacs_cv_c_restrict+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031 cat >conftest.$ac_ext <<_ACEOF
22032 /* confdefs.h. */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 void fred (int *restrict x);
22038 int
22039 main ()
22040 {
22041
22042 ;
22043 return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest.$ac_objext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 emacs_cv_c_restrict=yes
22068 else
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 void fred (int *__restrict x);
22079 int
22080 main ()
22081 {
22082
22083 ;
22084 return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext
22088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22089 (eval $ac_compile) 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 emacs_cv_c_restrict=__restrict
22109 else
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 emacs_cv_c_restrict=no
22114 fi
22115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22116 fi
22117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22118 fi
22119 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22120 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22121 case "$emacs_cv_c_restrict" in
22122 yes) emacs_restrict=restrict;;
22123 no) emacs_restrict="";;
22124 *) emacs_restrict="$emacs_cv_c_restrict";;
22125 esac
22126 if test "$emacs_restrict" != __restrict; then
22127
22128 cat >>confdefs.h <<_ACEOF
22129 #define __restrict $emacs_restrict
22130 _ACEOF
22131
22132 fi
22133
22134 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22135 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22136 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 void fred (int x[__restrict]);
22146 int
22147 main ()
22148 {
22149
22150 ;
22151 return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22156 (eval $ac_compile) 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
22163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; } &&
22169 { ac_try='test -s conftest.$ac_objext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 emacs_cv_c_restrict_arr=yes
22176 else
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 emacs_cv_c_restrict_arr=no
22181 fi
22182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22183 fi
22184 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22185 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22186 if test "$emacs_cv_c_restrict_arr" = yes; then
22187
22188 cat >>confdefs.h <<\_ACEOF
22189 #define __restrict_arr __restrict
22190 _ACEOF
22191
22192 fi
22193
22194
22195
22196 # Set up the CFLAGS for real compilation, so we can substitute it.
22197 CFLAGS="$REAL_CFLAGS"
22198 CPPFLAGS="$REAL_CPPFLAGS"
22199
22200 #### Find out which version of Emacs this is.
22201 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22202 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22203 if test x"${version}" = x; then
22204 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22205 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22206 { (exit 1); exit 1; }; }
22207 fi
22208
22209 ### Specify what sort of things we'll be editing into Makefile and config.h.
22210 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246 cat >>confdefs.h <<_ACEOF
22247 #define EMACS_CONFIGURATION "${canonical}"
22248 _ACEOF
22249
22250
22251 cat >>confdefs.h <<_ACEOF
22252 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22253 _ACEOF
22254
22255
22256 cat >>confdefs.h <<_ACEOF
22257 #define config_machfile "${machfile}"
22258 _ACEOF
22259
22260
22261 cat >>confdefs.h <<_ACEOF
22262 #define config_opsysfile "${opsysfile}"
22263 _ACEOF
22264
22265
22266 cat >>confdefs.h <<_ACEOF
22267 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22268 _ACEOF
22269
22270
22271 cat >>confdefs.h <<_ACEOF
22272 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22273 _ACEOF
22274
22275
22276 cat >>confdefs.h <<_ACEOF
22277 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22278 _ACEOF
22279
22280
22281 cat >>confdefs.h <<_ACEOF
22282 #define UNEXEC_SRC ${UNEXEC_SRC}
22283 _ACEOF
22284
22285
22286 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22287
22288 cat >>confdefs.h <<\_ACEOF
22289 #define HAVE_X_WINDOWS 1
22290 _ACEOF
22291
22292 fi
22293 if test "${USE_X_TOOLKIT}" != "none" ; then
22294
22295 cat >>confdefs.h <<\_ACEOF
22296 #define USE_X_TOOLKIT 1
22297 _ACEOF
22298
22299 fi
22300 if test "${HAVE_X11}" = "yes" ; then
22301
22302 cat >>confdefs.h <<\_ACEOF
22303 #define HAVE_X11 1
22304 _ACEOF
22305
22306 fi
22307 if test "${HAVE_XFREE386}" = "yes" ; then
22308
22309 cat >>confdefs.h <<\_ACEOF
22310 #define HAVE_XFREE386 1
22311 _ACEOF
22312
22313 fi
22314 if test "${HAVE_MENUS}" = "yes" ; then
22315
22316 cat >>confdefs.h <<\_ACEOF
22317 #define HAVE_MENUS 1
22318 _ACEOF
22319
22320 fi
22321 if test "${GNU_MALLOC}" = "yes" ; then
22322
22323 cat >>confdefs.h <<\_ACEOF
22324 #define GNU_MALLOC 1
22325 _ACEOF
22326
22327 fi
22328 if test "${REL_ALLOC}" = "yes" ; then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define REL_ALLOC 1
22332 _ACEOF
22333
22334 fi
22335
22336
22337
22338
22339
22340 #### Report on what we decided to do.
22341 #### Report GTK as a toolkit, even if it doesn't use Xt.
22342 #### It makes printing result more understandable as using GTK sets
22343 #### toolkit_scroll_bars to yes by default.
22344 if test "${HAVE_GTK}" = "yes"; then
22345 USE_X_TOOLKIT=GTK
22346 fi
22347
22348 echo "
22349 Configured for \`${canonical}'.
22350
22351 Where should the build process find the source code? ${srcdir}
22352 What operating system and machine description files should Emacs use?
22353 \`${opsysfile}' and \`${machfile}'
22354 What compiler should emacs be built with? ${CC} ${CFLAGS}
22355 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22356 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22357 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22358 What window system should Emacs use? ${window_system}
22359 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22360
22361 if test -n "${x_includes}"; then
22362 echo " Where do we find X Windows header files? ${x_includes}"
22363 else
22364 echo " Where do we find X Windows header files? Standard dirs"
22365 fi
22366 if test -n "${x_libraries}"; then
22367 echo " Where do we find X Windows libraries? ${x_libraries}"
22368 else
22369 echo " Where do we find X Windows libraries? Standard dirs"
22370 fi
22371
22372 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22373 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22374 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22375 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22376 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22377 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22378 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22379 echo
22380
22381 if test $USE_XASSERTS = yes; then
22382 echo " Compiling with asserts turned on."
22383 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22384 echo
22385 fi
22386
22387
22388
22389 # Remove any trailing slashes in these variables.
22390 test "${prefix}" != NONE &&
22391 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22392 test "${exec_prefix}" != NONE &&
22393 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22394
22395 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22396 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22397 ## from Makefile.c can correctly provide the arg `-traditional' to the
22398 ## C preprocessor.
22399
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 yes..yes
22407 _ACEOF
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409 $EGREP "yes..yes" >/dev/null 2>&1; then
22410 CPP_NEED_TRADITIONAL=no
22411 else
22412 CPP_NEED_TRADITIONAL=yes
22413 fi
22414 rm -f conftest*
22415
22416
22417 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"
22418 ac_config_commands="$ac_config_commands default"
22419 cat >confcache <<\_ACEOF
22420 # This file is a shell script that caches the results of configure
22421 # tests run on this system so they can be shared between configure
22422 # scripts and configure runs, see configure's option --config-cache.
22423 # It is not useful on other systems. If it contains results you don't
22424 # want to keep, you may remove or edit it.
22425 #
22426 # config.status only pays attention to the cache file if you give it
22427 # the --recheck option to rerun configure.
22428 #
22429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22431 # following values.
22432
22433 _ACEOF
22434
22435 # The following way of writing the cache mishandles newlines in values,
22436 # but we know of no workaround that is simple, portable, and efficient.
22437 # So, don't put newlines in cache variables' values.
22438 # Ultrix sh set writes to stderr and can't be redirected directly,
22439 # and sets the high bit in the cache file unless we assign to the vars.
22440 {
22441 (set) 2>&1 |
22442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22443 *ac_space=\ *)
22444 # `set' does not quote correctly, so add quotes (double-quote
22445 # substitution turns \\\\ into \\, and sed turns \\ into \).
22446 sed -n \
22447 "s/'/'\\\\''/g;
22448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22449 ;;
22450 *)
22451 # `set' quotes correctly as required by POSIX, so do not add quotes.
22452 sed -n \
22453 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22454 ;;
22455 esac;
22456 } |
22457 sed '
22458 t clear
22459 : clear
22460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22461 t end
22462 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22463 : end' >>confcache
22464 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22465 if test -w $cache_file; then
22466 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22467 cat confcache >$cache_file
22468 else
22469 echo "not updating unwritable cache $cache_file"
22470 fi
22471 fi
22472 rm -f confcache
22473
22474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22475 # Let make expand exec_prefix.
22476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22477
22478 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22479 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22480 # trailing colons and then remove the whole line if VPATH becomes empty
22481 # (actually we leave an empty line to preserve line numbers).
22482 if test "x$srcdir" = x.; then
22483 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22484 s/:*\$(srcdir):*/:/;
22485 s/:*\${srcdir}:*/:/;
22486 s/:*@srcdir@:*/:/;
22487 s/^\([^=]*=[ ]*\):*/\1/;
22488 s/:*$//;
22489 s/^[^=]*=[ ]*$//;
22490 }'
22491 fi
22492
22493 DEFS=-DHAVE_CONFIG_H
22494
22495 ac_libobjs=
22496 ac_ltlibobjs=
22497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22498 # 1. Remove the extension, and $U if already installed.
22499 ac_i=`echo "$ac_i" |
22500 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22501 # 2. Add them.
22502 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22503 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22504 done
22505 LIBOBJS=$ac_libobjs
22506
22507 LTLIBOBJS=$ac_ltlibobjs
22508
22509
22510
22511 : ${CONFIG_STATUS=./config.status}
22512 ac_clean_files_save=$ac_clean_files
22513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22514 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22515 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22516 cat >$CONFIG_STATUS <<_ACEOF
22517 #! $SHELL
22518 # Generated by $as_me.
22519 # Run this file to recreate the current configuration.
22520 # Compiler output produced by configure, useful for debugging
22521 # configure, is in config.log if it exists.
22522
22523 debug=false
22524 ac_cs_recheck=false
22525 ac_cs_silent=false
22526 SHELL=\${CONFIG_SHELL-$SHELL}
22527 _ACEOF
22528
22529 cat >>$CONFIG_STATUS <<\_ACEOF
22530 ## --------------------- ##
22531 ## M4sh Initialization. ##
22532 ## --------------------- ##
22533
22534 # Be Bourne compatible
22535 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22536 emulate sh
22537 NULLCMD=:
22538 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22539 # is contrary to our usage. Disable this feature.
22540 alias -g '${1+"$@"}'='"$@"'
22541 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22542 set -o posix
22543 fi
22544 DUALCASE=1; export DUALCASE # for MKS sh
22545
22546 # Support unset when possible.
22547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22548 as_unset=unset
22549 else
22550 as_unset=false
22551 fi
22552
22553
22554 # Work around bugs in pre-3.0 UWIN ksh.
22555 $as_unset ENV MAIL MAILPATH
22556 PS1='$ '
22557 PS2='> '
22558 PS4='+ '
22559
22560 # NLS nuisances.
22561 for as_var in \
22562 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22563 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22564 LC_TELEPHONE LC_TIME
22565 do
22566 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22567 eval $as_var=C; export $as_var
22568 else
22569 $as_unset $as_var
22570 fi
22571 done
22572
22573 # Required to use basename.
22574 if expr a : '\(a\)' >/dev/null 2>&1; then
22575 as_expr=expr
22576 else
22577 as_expr=false
22578 fi
22579
22580 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22581 as_basename=basename
22582 else
22583 as_basename=false
22584 fi
22585
22586
22587 # Name of the executable.
22588 as_me=`$as_basename "$0" ||
22589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22590 X"$0" : 'X\(//\)$' \| \
22591 X"$0" : 'X\(/\)$' \| \
22592 . : '\(.\)' 2>/dev/null ||
22593 echo X/"$0" |
22594 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22595 /^X\/\(\/\/\)$/{ s//\1/; q; }
22596 /^X\/\(\/\).*/{ s//\1/; q; }
22597 s/.*/./; q'`
22598
22599
22600 # PATH needs CR, and LINENO needs CR and PATH.
22601 # Avoid depending upon Character Ranges.
22602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22605 as_cr_digits='0123456789'
22606 as_cr_alnum=$as_cr_Letters$as_cr_digits
22607
22608 # The user is always right.
22609 if test "${PATH_SEPARATOR+set}" != set; then
22610 echo "#! /bin/sh" >conf$$.sh
22611 echo "exit 0" >>conf$$.sh
22612 chmod +x conf$$.sh
22613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22614 PATH_SEPARATOR=';'
22615 else
22616 PATH_SEPARATOR=:
22617 fi
22618 rm -f conf$$.sh
22619 fi
22620
22621
22622 as_lineno_1=$LINENO
22623 as_lineno_2=$LINENO
22624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22625 test "x$as_lineno_1" != "x$as_lineno_2" &&
22626 test "x$as_lineno_3" = "x$as_lineno_2" || {
22627 # Find who we are. Look in the path if we contain no path at all
22628 # relative or not.
22629 case $0 in
22630 *[\\/]* ) as_myself=$0 ;;
22631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22632 for as_dir in $PATH
22633 do
22634 IFS=$as_save_IFS
22635 test -z "$as_dir" && as_dir=.
22636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22637 done
22638
22639 ;;
22640 esac
22641 # We did not find ourselves, most probably we were run as `sh COMMAND'
22642 # in which case we are not to be found in the path.
22643 if test "x$as_myself" = x; then
22644 as_myself=$0
22645 fi
22646 if test ! -f "$as_myself"; then
22647 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22648 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22649 { (exit 1); exit 1; }; }
22650 fi
22651 case $CONFIG_SHELL in
22652 '')
22653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22654 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22655 do
22656 IFS=$as_save_IFS
22657 test -z "$as_dir" && as_dir=.
22658 for as_base in sh bash ksh sh5; do
22659 case $as_dir in
22660 /*)
22661 if ("$as_dir/$as_base" -c '
22662 as_lineno_1=$LINENO
22663 as_lineno_2=$LINENO
22664 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22665 test "x$as_lineno_1" != "x$as_lineno_2" &&
22666 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22667 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22668 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22669 CONFIG_SHELL=$as_dir/$as_base
22670 export CONFIG_SHELL
22671 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22672 fi;;
22673 esac
22674 done
22675 done
22676 ;;
22677 esac
22678
22679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22680 # uniformly replaced by the line number. The first 'sed' inserts a
22681 # line-number line before each line; the second 'sed' does the real
22682 # work. The second script uses 'N' to pair each line-number line
22683 # with the numbered line, and appends trailing '-' during
22684 # substitution so that $LINENO is not a special case at line end.
22685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22686 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22687 sed '=' <$as_myself |
22688 sed '
22689 N
22690 s,$,-,
22691 : loop
22692 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22693 t loop
22694 s,-$,,
22695 s,^['$as_cr_digits']*\n,,
22696 ' >$as_me.lineno &&
22697 chmod +x $as_me.lineno ||
22698 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22699 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22700 { (exit 1); exit 1; }; }
22701
22702 # Don't try to exec as it changes $[0], causing all sort of problems
22703 # (the dirname of $[0] is not the place where we might find the
22704 # original and so on. Autoconf is especially sensible to this).
22705 . ./$as_me.lineno
22706 # Exit status is that of the last command.
22707 exit
22708 }
22709
22710
22711 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22712 *c*,-n*) ECHO_N= ECHO_C='
22713 ' ECHO_T=' ' ;;
22714 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22715 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22716 esac
22717
22718 if expr a : '\(a\)' >/dev/null 2>&1; then
22719 as_expr=expr
22720 else
22721 as_expr=false
22722 fi
22723
22724 rm -f conf$$ conf$$.exe conf$$.file
22725 echo >conf$$.file
22726 if ln -s conf$$.file conf$$ 2>/dev/null; then
22727 # We could just check for DJGPP; but this test a) works b) is more generic
22728 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22729 if test -f conf$$.exe; then
22730 # Don't use ln at all; we don't have any links
22731 as_ln_s='cp -p'
22732 else
22733 as_ln_s='ln -s'
22734 fi
22735 elif ln conf$$.file conf$$ 2>/dev/null; then
22736 as_ln_s=ln
22737 else
22738 as_ln_s='cp -p'
22739 fi
22740 rm -f conf$$ conf$$.exe conf$$.file
22741
22742 if mkdir -p . 2>/dev/null; then
22743 as_mkdir_p=:
22744 else
22745 test -d ./-p && rmdir ./-p
22746 as_mkdir_p=false
22747 fi
22748
22749 as_executable_p="test -f"
22750
22751 # Sed expression to map a string onto a valid CPP name.
22752 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22753
22754 # Sed expression to map a string onto a valid variable name.
22755 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22756
22757
22758 # IFS
22759 # We need space, tab and new line, in precisely that order.
22760 as_nl='
22761 '
22762 IFS=" $as_nl"
22763
22764 # CDPATH.
22765 $as_unset CDPATH
22766
22767 exec 6>&1
22768
22769 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22770 # report actual input values of CONFIG_FILES etc. instead of their
22771 # values after options handling. Logging --version etc. is OK.
22772 exec 5>>config.log
22773 {
22774 echo
22775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22776 ## Running $as_me. ##
22777 _ASBOX
22778 } >&5
22779 cat >&5 <<_CSEOF
22780
22781 This file was extended by $as_me, which was
22782 generated by GNU Autoconf 2.59. Invocation command line was
22783
22784 CONFIG_FILES = $CONFIG_FILES
22785 CONFIG_HEADERS = $CONFIG_HEADERS
22786 CONFIG_LINKS = $CONFIG_LINKS
22787 CONFIG_COMMANDS = $CONFIG_COMMANDS
22788 $ $0 $@
22789
22790 _CSEOF
22791 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22792 echo >&5
22793 _ACEOF
22794
22795 # Files that config.status was made for.
22796 if test -n "$ac_config_files"; then
22797 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22798 fi
22799
22800 if test -n "$ac_config_headers"; then
22801 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22802 fi
22803
22804 if test -n "$ac_config_links"; then
22805 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22806 fi
22807
22808 if test -n "$ac_config_commands"; then
22809 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22810 fi
22811
22812 cat >>$CONFIG_STATUS <<\_ACEOF
22813
22814 ac_cs_usage="\
22815 \`$as_me' instantiates files from templates according to the
22816 current configuration.
22817
22818 Usage: $0 [OPTIONS] [FILE]...
22819
22820 -h, --help print this help, then exit
22821 -V, --version print version number, then exit
22822 -q, --quiet do not print progress messages
22823 -d, --debug don't remove temporary files
22824 --recheck update $as_me by reconfiguring in the same conditions
22825 --file=FILE[:TEMPLATE]
22826 instantiate the configuration file FILE
22827 --header=FILE[:TEMPLATE]
22828 instantiate the configuration header FILE
22829
22830 Configuration files:
22831 $config_files
22832
22833 Configuration headers:
22834 $config_headers
22835
22836 Configuration commands:
22837 $config_commands
22838
22839 Report bugs to <bug-autoconf@gnu.org>."
22840 _ACEOF
22841
22842 cat >>$CONFIG_STATUS <<_ACEOF
22843 ac_cs_version="\\
22844 config.status
22845 configured by $0, generated by GNU Autoconf 2.59,
22846 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22847
22848 Copyright (C) 2003 Free Software Foundation, Inc.
22849 This config.status script is free software; the Free Software Foundation
22850 gives unlimited permission to copy, distribute and modify it."
22851 srcdir=$srcdir
22852 INSTALL="$INSTALL"
22853 _ACEOF
22854
22855 cat >>$CONFIG_STATUS <<\_ACEOF
22856 # If no file are specified by the user, then we need to provide default
22857 # value. By we need to know if files were specified by the user.
22858 ac_need_defaults=:
22859 while test $# != 0
22860 do
22861 case $1 in
22862 --*=*)
22863 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22864 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22865 ac_shift=:
22866 ;;
22867 -*)
22868 ac_option=$1
22869 ac_optarg=$2
22870 ac_shift=shift
22871 ;;
22872 *) # This is not an option, so the user has probably given explicit
22873 # arguments.
22874 ac_option=$1
22875 ac_need_defaults=false;;
22876 esac
22877
22878 case $ac_option in
22879 # Handling of the options.
22880 _ACEOF
22881 cat >>$CONFIG_STATUS <<\_ACEOF
22882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22883 ac_cs_recheck=: ;;
22884 --version | --vers* | -V )
22885 echo "$ac_cs_version"; exit 0 ;;
22886 --he | --h)
22887 # Conflict between --help and --header
22888 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22889 Try \`$0 --help' for more information." >&5
22890 echo "$as_me: error: ambiguous option: $1
22891 Try \`$0 --help' for more information." >&2;}
22892 { (exit 1); exit 1; }; };;
22893 --help | --hel | -h )
22894 echo "$ac_cs_usage"; exit 0 ;;
22895 --debug | --d* | -d )
22896 debug=: ;;
22897 --file | --fil | --fi | --f )
22898 $ac_shift
22899 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22900 ac_need_defaults=false;;
22901 --header | --heade | --head | --hea )
22902 $ac_shift
22903 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22904 ac_need_defaults=false;;
22905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22907 ac_cs_silent=: ;;
22908
22909 # This is an error.
22910 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22911 Try \`$0 --help' for more information." >&5
22912 echo "$as_me: error: unrecognized option: $1
22913 Try \`$0 --help' for more information." >&2;}
22914 { (exit 1); exit 1; }; } ;;
22915
22916 *) ac_config_targets="$ac_config_targets $1" ;;
22917
22918 esac
22919 shift
22920 done
22921
22922 ac_configure_extra_args=
22923
22924 if $ac_cs_silent; then
22925 exec 6>/dev/null
22926 ac_configure_extra_args="$ac_configure_extra_args --silent"
22927 fi
22928
22929 _ACEOF
22930 cat >>$CONFIG_STATUS <<_ACEOF
22931 if \$ac_cs_recheck; then
22932 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22933 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22934 fi
22935
22936 _ACEOF
22937
22938 cat >>$CONFIG_STATUS <<_ACEOF
22939 #
22940 # INIT-COMMANDS section.
22941 #
22942
22943 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22944
22945 _ACEOF
22946
22947
22948
22949 cat >>$CONFIG_STATUS <<\_ACEOF
22950 for ac_config_target in $ac_config_targets
22951 do
22952 case "$ac_config_target" in
22953 # Handling of arguments.
22954 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22955 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22956 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22957 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22958 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22959 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22960 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22961 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22962 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22963 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22964 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22965 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22968 { (exit 1); exit 1; }; };;
22969 esac
22970 done
22971
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used. Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22980 fi
22981
22982 # Have a temporary directory for convenience. Make it in the build tree
22983 # simply because there is no reason to put it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Create a temporary directory, and hook for its removal unless debugging.
22986 $debug ||
22987 {
22988 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22989 trap '{ (exit 1); exit 1; }' 1 2 13 15
22990 }
22991
22992 # Create a (secure) tmp directory for tmp files.
22993
22994 {
22995 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22996 test -n "$tmp" && test -d "$tmp"
22997 } ||
22998 {
22999 tmp=./confstat$$-$RANDOM
23000 (umask 077 && mkdir $tmp)
23001 } ||
23002 {
23003 echo "$me: cannot create a temporary directory in ." >&2
23004 { (exit 1); exit 1; }
23005 }
23006
23007 _ACEOF
23008
23009 cat >>$CONFIG_STATUS <<_ACEOF
23010
23011 #
23012 # CONFIG_FILES section.
23013 #
23014
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "\$CONFIG_FILES"; then
23018 # Protect against being on the right side of a sed subst in config.status.
23019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23021 s,@SHELL@,$SHELL,;t t
23022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23028 s,@exec_prefix@,$exec_prefix,;t t
23029 s,@prefix@,$prefix,;t t
23030 s,@program_transform_name@,$program_transform_name,;t t
23031 s,@bindir@,$bindir,;t t
23032 s,@sbindir@,$sbindir,;t t
23033 s,@libexecdir@,$libexecdir,;t t
23034 s,@datadir@,$datadir,;t t
23035 s,@sysconfdir@,$sysconfdir,;t t
23036 s,@sharedstatedir@,$sharedstatedir,;t t
23037 s,@localstatedir@,$localstatedir,;t t
23038 s,@libdir@,$libdir,;t t
23039 s,@includedir@,$includedir,;t t
23040 s,@oldincludedir@,$oldincludedir,;t t
23041 s,@infodir@,$infodir,;t t
23042 s,@mandir@,$mandir,;t t
23043 s,@build_alias@,$build_alias,;t t
23044 s,@host_alias@,$host_alias,;t t
23045 s,@target_alias@,$target_alias,;t t
23046 s,@DEFS@,$DEFS,;t t
23047 s,@ECHO_C@,$ECHO_C,;t t
23048 s,@ECHO_N@,$ECHO_N,;t t
23049 s,@ECHO_T@,$ECHO_T,;t t
23050 s,@LIBS@,$LIBS,;t t
23051 s,@MAINT@,$MAINT,;t t
23052 s,@build@,$build,;t t
23053 s,@build_cpu@,$build_cpu,;t t
23054 s,@build_vendor@,$build_vendor,;t t
23055 s,@build_os@,$build_os,;t t
23056 s,@host@,$host,;t t
23057 s,@host_cpu@,$host_cpu,;t t
23058 s,@host_vendor@,$host_vendor,;t t
23059 s,@host_os@,$host_os,;t t
23060 s,@CC@,$CC,;t t
23061 s,@CFLAGS@,$CFLAGS,;t t
23062 s,@LDFLAGS@,$LDFLAGS,;t t
23063 s,@CPPFLAGS@,$CPPFLAGS,;t t
23064 s,@ac_ct_CC@,$ac_ct_CC,;t t
23065 s,@EXEEXT@,$EXEEXT,;t t
23066 s,@OBJEXT@,$OBJEXT,;t t
23067 s,@LN_S@,$LN_S,;t t
23068 s,@CPP@,$CPP,;t t
23069 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23070 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23071 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23072 s,@RANLIB@,$RANLIB,;t t
23073 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23074 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23075 s,@GZIP_PROG@,$GZIP_PROG,;t t
23076 s,@EGREP@,$EGREP,;t t
23077 s,@LIBSOUND@,$LIBSOUND,;t t
23078 s,@SET_MAKE@,$SET_MAKE,;t t
23079 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23080 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23081 s,@GTK_LIBS@,$GTK_LIBS,;t t
23082 s,@ALLOCA@,$ALLOCA,;t t
23083 s,@liblockfile@,$liblockfile,;t t
23084 s,@LIBOBJS@,$LIBOBJS,;t t
23085 s,@NEED_SETGID@,$NEED_SETGID,;t t
23086 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23087 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23088 s,@GETOPT_H@,$GETOPT_H,;t t
23089 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23090 s,@version@,$version,;t t
23091 s,@configuration@,$configuration,;t t
23092 s,@canonical@,$canonical,;t t
23093 s,@srcdir@,$srcdir,;t t
23094 s,@lispdir@,$lispdir,;t t
23095 s,@locallisppath@,$locallisppath,;t t
23096 s,@lisppath@,$lisppath,;t t
23097 s,@x_default_search_path@,$x_default_search_path,;t t
23098 s,@etcdir@,$etcdir,;t t
23099 s,@archlibdir@,$archlibdir,;t t
23100 s,@docdir@,$docdir,;t t
23101 s,@bitmapdir@,$bitmapdir,;t t
23102 s,@gamedir@,$gamedir,;t t
23103 s,@gameuser@,$gameuser,;t t
23104 s,@c_switch_system@,$c_switch_system,;t t
23105 s,@c_switch_machine@,$c_switch_machine,;t t
23106 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23107 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23108 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23109 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23110 s,@machfile@,$machfile,;t t
23111 s,@opsysfile@,$opsysfile,;t t
23112 s,@carbon_appdir@,$carbon_appdir,;t t
23113 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23114 CEOF
23115
23116 _ACEOF
23117
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23119 # Split the substitutions into bite-sized pieces for seds with
23120 # small command number limits, like on Digital OSF/1 and HP-UX.
23121 ac_max_sed_lines=48
23122 ac_sed_frag=1 # Number of current file.
23123 ac_beg=1 # First line for current file.
23124 ac_end=$ac_max_sed_lines # Line after last line for current file.
23125 ac_more_lines=:
23126 ac_sed_cmds=
23127 while $ac_more_lines; do
23128 if test $ac_beg -gt 1; then
23129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23130 else
23131 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23132 fi
23133 if test ! -s $tmp/subs.frag; then
23134 ac_more_lines=false
23135 else
23136 # The purpose of the label and of the branching condition is to
23137 # speed up the sed processing (if there are no `@' at all, there
23138 # is no need to browse any of the substitutions).
23139 # These are the two extra sed commands mentioned above.
23140 (echo ':t
23141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23142 if test -z "$ac_sed_cmds"; then
23143 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23144 else
23145 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23146 fi
23147 ac_sed_frag=`expr $ac_sed_frag + 1`
23148 ac_beg=$ac_end
23149 ac_end=`expr $ac_end + $ac_max_sed_lines`
23150 fi
23151 done
23152 if test -z "$ac_sed_cmds"; then
23153 ac_sed_cmds=cat
23154 fi
23155 fi # test -n "$CONFIG_FILES"
23156
23157 _ACEOF
23158 cat >>$CONFIG_STATUS <<\_ACEOF
23159 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23161 case $ac_file in
23162 - | *:- | *:-:* ) # input from stdin
23163 cat >$tmp/stdin
23164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168 * ) ac_file_in=$ac_file.in ;;
23169 esac
23170
23171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23174 X"$ac_file" : 'X\(//\)[^/]' \| \
23175 X"$ac_file" : 'X\(//\)$' \| \
23176 X"$ac_file" : 'X\(/\)' \| \
23177 . : '\(.\)' 2>/dev/null ||
23178 echo X"$ac_file" |
23179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23181 /^X\(\/\/\)$/{ s//\1/; q; }
23182 /^X\(\/\).*/{ s//\1/; q; }
23183 s/.*/./; q'`
23184 { if $as_mkdir_p; then
23185 mkdir -p "$ac_dir"
23186 else
23187 as_dir="$ac_dir"
23188 as_dirs=
23189 while test ! -d "$as_dir"; do
23190 as_dirs="$as_dir $as_dirs"
23191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23193 X"$as_dir" : 'X\(//\)[^/]' \| \
23194 X"$as_dir" : 'X\(//\)$' \| \
23195 X"$as_dir" : 'X\(/\)' \| \
23196 . : '\(.\)' 2>/dev/null ||
23197 echo X"$as_dir" |
23198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23200 /^X\(\/\/\)$/{ s//\1/; q; }
23201 /^X\(\/\).*/{ s//\1/; q; }
23202 s/.*/./; q'`
23203 done
23204 test ! -n "$as_dirs" || mkdir $as_dirs
23205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23207 { (exit 1); exit 1; }; }; }
23208
23209 ac_builddir=.
23210
23211 if test "$ac_dir" != .; then
23212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23213 # A "../" for each directory in $ac_dir_suffix.
23214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23215 else
23216 ac_dir_suffix= ac_top_builddir=
23217 fi
23218
23219 case $srcdir in
23220 .) # No --srcdir option. We are building in place.
23221 ac_srcdir=.
23222 if test -z "$ac_top_builddir"; then
23223 ac_top_srcdir=.
23224 else
23225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23226 fi ;;
23227 [\\/]* | ?:[\\/]* ) # Absolute path.
23228 ac_srcdir=$srcdir$ac_dir_suffix;
23229 ac_top_srcdir=$srcdir ;;
23230 *) # Relative path.
23231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23233 esac
23234
23235 # Do not use `cd foo && pwd` to compute absolute paths, because
23236 # the directories may not exist.
23237 case `pwd` in
23238 .) ac_abs_builddir="$ac_dir";;
23239 *)
23240 case "$ac_dir" in
23241 .) ac_abs_builddir=`pwd`;;
23242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23244 esac;;
23245 esac
23246 case $ac_abs_builddir in
23247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23248 *)
23249 case ${ac_top_builddir}. in
23250 .) ac_abs_top_builddir=$ac_abs_builddir;;
23251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23253 esac;;
23254 esac
23255 case $ac_abs_builddir in
23256 .) ac_abs_srcdir=$ac_srcdir;;
23257 *)
23258 case $ac_srcdir in
23259 .) ac_abs_srcdir=$ac_abs_builddir;;
23260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23262 esac;;
23263 esac
23264 case $ac_abs_builddir in
23265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23266 *)
23267 case $ac_top_srcdir in
23268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23271 esac;;
23272 esac
23273
23274
23275 case $INSTALL in
23276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23277 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23278 esac
23279
23280 # Let's still pretend it is `configure' which instantiates (i.e., don't
23281 # use $as_me), people would be surprised to read:
23282 # /* config.h. Generated by config.status. */
23283 if test x"$ac_file" = x-; then
23284 configure_input=
23285 else
23286 configure_input="$ac_file. "
23287 fi
23288 configure_input=$configure_input"Generated from `echo $ac_file_in |
23289 sed 's,.*/,,'` by configure."
23290
23291 # First look for the input files in the build tree, otherwise in the
23292 # src tree.
23293 ac_file_inputs=`IFS=:
23294 for f in $ac_file_in; do
23295 case $f in
23296 -) echo $tmp/stdin ;;
23297 [\\/$]*)
23298 # Absolute (can't be DOS-style, as IFS=:)
23299 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23300 echo "$as_me: error: cannot find input file: $f" >&2;}
23301 { (exit 1); exit 1; }; }
23302 echo "$f";;
23303 *) # Relative
23304 if test -f "$f"; then
23305 # Build tree
23306 echo "$f"
23307 elif test -f "$srcdir/$f"; then
23308 # Source tree
23309 echo "$srcdir/$f"
23310 else
23311 # /dev/null tree
23312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23313 echo "$as_me: error: cannot find input file: $f" >&2;}
23314 { (exit 1); exit 1; }; }
23315 fi;;
23316 esac
23317 done` || { (exit 1); exit 1; }
23318
23319 if test x"$ac_file" != x-; then
23320 { echo "$as_me:$LINENO: creating $ac_file" >&5
23321 echo "$as_me: creating $ac_file" >&6;}
23322 rm -f "$ac_file"
23323 fi
23324 _ACEOF
23325 cat >>$CONFIG_STATUS <<_ACEOF
23326 sed "$ac_vpsub
23327 $extrasub
23328 _ACEOF
23329 cat >>$CONFIG_STATUS <<\_ACEOF
23330 :t
23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23332 s,@configure_input@,$configure_input,;t t
23333 s,@srcdir@,$ac_srcdir,;t t
23334 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23335 s,@top_srcdir@,$ac_top_srcdir,;t t
23336 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23337 s,@builddir@,$ac_builddir,;t t
23338 s,@abs_builddir@,$ac_abs_builddir,;t t
23339 s,@top_builddir@,$ac_top_builddir,;t t
23340 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23341 s,@INSTALL@,$ac_INSTALL,;t t
23342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23343 rm -f $tmp/stdin
23344 if test x"$ac_file" != x-; then
23345 mv $tmp/out $ac_file
23346 else
23347 cat $tmp/out
23348 rm -f $tmp/out
23349 fi
23350
23351 done
23352 _ACEOF
23353 cat >>$CONFIG_STATUS <<\_ACEOF
23354
23355 #
23356 # CONFIG_HEADER section.
23357 #
23358
23359 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23360 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23361 #
23362 # ac_d sets the value in "#define NAME VALUE" lines.
23363 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23364 ac_dB='[ ].*$,\1#\2'
23365 ac_dC=' '
23366 ac_dD=',;t'
23367 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23368 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23369 ac_uB='$,\1#\2define\3'
23370 ac_uC=' '
23371 ac_uD=',;t'
23372
23373 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23375 case $ac_file in
23376 - | *:- | *:-:* ) # input from stdin
23377 cat >$tmp/stdin
23378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23382 * ) ac_file_in=$ac_file.in ;;
23383 esac
23384
23385 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23386 echo "$as_me: creating $ac_file" >&6;}
23387
23388 # First look for the input files in the build tree, otherwise in the
23389 # src tree.
23390 ac_file_inputs=`IFS=:
23391 for f in $ac_file_in; do
23392 case $f in
23393 -) echo $tmp/stdin ;;
23394 [\\/$]*)
23395 # Absolute (can't be DOS-style, as IFS=:)
23396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23397 echo "$as_me: error: cannot find input file: $f" >&2;}
23398 { (exit 1); exit 1; }; }
23399 # Do quote $f, to prevent DOS paths from being IFS'd.
23400 echo "$f";;
23401 *) # Relative
23402 if test -f "$f"; then
23403 # Build tree
23404 echo "$f"
23405 elif test -f "$srcdir/$f"; then
23406 # Source tree
23407 echo "$srcdir/$f"
23408 else
23409 # /dev/null tree
23410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23411 echo "$as_me: error: cannot find input file: $f" >&2;}
23412 { (exit 1); exit 1; }; }
23413 fi;;
23414 esac
23415 done` || { (exit 1); exit 1; }
23416 # Remove the trailing spaces.
23417 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23418
23419 _ACEOF
23420
23421 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23422 # `conftest.undefs', that substitutes the proper values into
23423 # config.h.in to produce config.h. The first handles `#define'
23424 # templates, and the second `#undef' templates.
23425 # And first: Protect against being on the right side of a sed subst in
23426 # config.status. Protect against being in an unquoted here document
23427 # in config.status.
23428 rm -f conftest.defines conftest.undefs
23429 # Using a here document instead of a string reduces the quoting nightmare.
23430 # Putting comments in sed scripts is not portable.
23431 #
23432 # `end' is used to avoid that the second main sed command (meant for
23433 # 0-ary CPP macros) applies to n-ary macro definitions.
23434 # See the Autoconf documentation for `clear'.
23435 cat >confdef2sed.sed <<\_ACEOF
23436 s/[\\&,]/\\&/g
23437 s,[\\$`],\\&,g
23438 t clear
23439 : clear
23440 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23441 t end
23442 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23443 : end
23444 _ACEOF
23445 # If some macros were called several times there might be several times
23446 # the same #defines, which is useless. Nevertheless, we may not want to
23447 # sort them, since we want the *last* AC-DEFINE to be honored.
23448 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23449 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23450 rm -f confdef2sed.sed
23451
23452 # This sed command replaces #undef with comments. This is necessary, for
23453 # example, in the case of _POSIX_SOURCE, which is predefined and required
23454 # on some systems where configure will not decide to define it.
23455 cat >>conftest.undefs <<\_ACEOF
23456 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23457 _ACEOF
23458
23459 # Break up conftest.defines because some shells have a limit on the size
23460 # of here documents, and old seds have small limits too (100 cmds).
23461 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23462 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23463 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23464 echo ' :' >>$CONFIG_STATUS
23465 rm -f conftest.tail
23466 while grep . conftest.defines >/dev/null
23467 do
23468 # Write a limited-size here document to $tmp/defines.sed.
23469 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23470 # Speed up: don't consider the non `#define' lines.
23471 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23472 # Work around the forget-to-reset-the-flag bug.
23473 echo 't clr' >>$CONFIG_STATUS
23474 echo ': clr' >>$CONFIG_STATUS
23475 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23476 echo 'CEOF
23477 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23478 rm -f $tmp/in
23479 mv $tmp/out $tmp/in
23480 ' >>$CONFIG_STATUS
23481 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23482 rm -f conftest.defines
23483 mv conftest.tail conftest.defines
23484 done
23485 rm -f conftest.defines
23486 echo ' fi # grep' >>$CONFIG_STATUS
23487 echo >>$CONFIG_STATUS
23488
23489 # Break up conftest.undefs because some shells have a limit on the size
23490 # of here documents, and old seds have small limits too (100 cmds).
23491 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23492 rm -f conftest.tail
23493 while grep . conftest.undefs >/dev/null
23494 do
23495 # Write a limited-size here document to $tmp/undefs.sed.
23496 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23497 # Speed up: don't consider the non `#undef'
23498 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23499 # Work around the forget-to-reset-the-flag bug.
23500 echo 't clr' >>$CONFIG_STATUS
23501 echo ': clr' >>$CONFIG_STATUS
23502 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23503 echo 'CEOF
23504 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23505 rm -f $tmp/in
23506 mv $tmp/out $tmp/in
23507 ' >>$CONFIG_STATUS
23508 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23509 rm -f conftest.undefs
23510 mv conftest.tail conftest.undefs
23511 done
23512 rm -f conftest.undefs
23513
23514 cat >>$CONFIG_STATUS <<\_ACEOF
23515 # Let's still pretend it is `configure' which instantiates (i.e., don't
23516 # use $as_me), people would be surprised to read:
23517 # /* config.h. Generated by config.status. */
23518 if test x"$ac_file" = x-; then
23519 echo "/* Generated by configure. */" >$tmp/config.h
23520 else
23521 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23522 fi
23523 cat $tmp/in >>$tmp/config.h
23524 rm -f $tmp/in
23525 if test x"$ac_file" != x-; then
23526 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23527 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23528 echo "$as_me: $ac_file is unchanged" >&6;}
23529 else
23530 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23532 X"$ac_file" : 'X\(//\)[^/]' \| \
23533 X"$ac_file" : 'X\(//\)$' \| \
23534 X"$ac_file" : 'X\(/\)' \| \
23535 . : '\(.\)' 2>/dev/null ||
23536 echo X"$ac_file" |
23537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23539 /^X\(\/\/\)$/{ s//\1/; q; }
23540 /^X\(\/\).*/{ s//\1/; q; }
23541 s/.*/./; q'`
23542 { if $as_mkdir_p; then
23543 mkdir -p "$ac_dir"
23544 else
23545 as_dir="$ac_dir"
23546 as_dirs=
23547 while test ! -d "$as_dir"; do
23548 as_dirs="$as_dir $as_dirs"
23549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23551 X"$as_dir" : 'X\(//\)[^/]' \| \
23552 X"$as_dir" : 'X\(//\)$' \| \
23553 X"$as_dir" : 'X\(/\)' \| \
23554 . : '\(.\)' 2>/dev/null ||
23555 echo X"$as_dir" |
23556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23558 /^X\(\/\/\)$/{ s//\1/; q; }
23559 /^X\(\/\).*/{ s//\1/; q; }
23560 s/.*/./; q'`
23561 done
23562 test ! -n "$as_dirs" || mkdir $as_dirs
23563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23565 { (exit 1); exit 1; }; }; }
23566
23567 rm -f $ac_file
23568 mv $tmp/config.h $ac_file
23569 fi
23570 else
23571 cat $tmp/config.h
23572 rm -f $tmp/config.h
23573 fi
23574 done
23575 _ACEOF
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23577
23578 #
23579 # CONFIG_COMMANDS section.
23580 #
23581 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23582 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23583 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23584 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23585 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23586 X"$ac_dest" : 'X\(//\)[^/]' \| \
23587 X"$ac_dest" : 'X\(//\)$' \| \
23588 X"$ac_dest" : 'X\(/\)' \| \
23589 . : '\(.\)' 2>/dev/null ||
23590 echo X"$ac_dest" |
23591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23593 /^X\(\/\/\)$/{ s//\1/; q; }
23594 /^X\(\/\).*/{ s//\1/; q; }
23595 s/.*/./; q'`
23596 { if $as_mkdir_p; then
23597 mkdir -p "$ac_dir"
23598 else
23599 as_dir="$ac_dir"
23600 as_dirs=
23601 while test ! -d "$as_dir"; do
23602 as_dirs="$as_dir $as_dirs"
23603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23605 X"$as_dir" : 'X\(//\)[^/]' \| \
23606 X"$as_dir" : 'X\(//\)$' \| \
23607 X"$as_dir" : 'X\(/\)' \| \
23608 . : '\(.\)' 2>/dev/null ||
23609 echo X"$as_dir" |
23610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23612 /^X\(\/\/\)$/{ s//\1/; q; }
23613 /^X\(\/\).*/{ s//\1/; q; }
23614 s/.*/./; q'`
23615 done
23616 test ! -n "$as_dirs" || mkdir $as_dirs
23617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23619 { (exit 1); exit 1; }; }; }
23620
23621 ac_builddir=.
23622
23623 if test "$ac_dir" != .; then
23624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23625 # A "../" for each directory in $ac_dir_suffix.
23626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23627 else
23628 ac_dir_suffix= ac_top_builddir=
23629 fi
23630
23631 case $srcdir in
23632 .) # No --srcdir option. We are building in place.
23633 ac_srcdir=.
23634 if test -z "$ac_top_builddir"; then
23635 ac_top_srcdir=.
23636 else
23637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23638 fi ;;
23639 [\\/]* | ?:[\\/]* ) # Absolute path.
23640 ac_srcdir=$srcdir$ac_dir_suffix;
23641 ac_top_srcdir=$srcdir ;;
23642 *) # Relative path.
23643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23645 esac
23646
23647 # Do not use `cd foo && pwd` to compute absolute paths, because
23648 # the directories may not exist.
23649 case `pwd` in
23650 .) ac_abs_builddir="$ac_dir";;
23651 *)
23652 case "$ac_dir" in
23653 .) ac_abs_builddir=`pwd`;;
23654 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23655 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23656 esac;;
23657 esac
23658 case $ac_abs_builddir in
23659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23660 *)
23661 case ${ac_top_builddir}. in
23662 .) ac_abs_top_builddir=$ac_abs_builddir;;
23663 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23664 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23665 esac;;
23666 esac
23667 case $ac_abs_builddir in
23668 .) ac_abs_srcdir=$ac_srcdir;;
23669 *)
23670 case $ac_srcdir in
23671 .) ac_abs_srcdir=$ac_abs_builddir;;
23672 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23673 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23674 esac;;
23675 esac
23676 case $ac_abs_builddir in
23677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23678 *)
23679 case $ac_top_srcdir in
23680 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23681 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23682 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23683 esac;;
23684 esac
23685
23686
23687 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23688 echo "$as_me: executing $ac_dest commands" >&6;}
23689 case $ac_dest in
23690 default )
23691
23692 ### Make the necessary directories, if they don't exist.
23693 for dir in etc lisp ; do
23694 test -d ${dir} || mkdir ${dir}
23695 done
23696
23697 # Build src/Makefile from ${srcdir}/src/Makefile.c
23698 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23699 # This must be done after src/config.h is built, since we rely on that file.
23700
23701 # Now get this: Some word that is part of the ${srcdir} directory name
23702 # or the ${configuration} value might, just might, happen to be an
23703 # identifier like `sun4' or `i386' or something, and be predefined by
23704 # the C preprocessor to some helpful value like 1, or maybe the empty
23705 # string. Needless to say consequent macro substitutions are less
23706 # than conducive to the makefile finding the correct directory.
23707 undefs="`echo $top_srcdir $configuration $canonical |
23708 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23709 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23710 `"
23711
23712 echo creating src/epaths.h
23713 ${MAKE-make} epaths-force
23714
23715 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23716 # `..' to `. .' unless invoked with -traditional
23717
23718 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23719 CPPFLAGS="$CPPFLAGS -traditional"
23720 fi
23721
23722 echo creating lib-src/Makefile
23723 ( cd lib-src
23724 rm -f junk.c junk1.c junk2.c
23725 sed -e '/start of cpp stuff/q' \
23726 < Makefile.c > junk1.c
23727 sed -e '1,/start of cpp stuff/d'\
23728 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23729 < Makefile.c > junk.c
23730 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23731 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23732 cat junk1.c junk2.c > Makefile.new
23733 rm -f junk.c junk1.c junk2.c
23734 chmod 444 Makefile.new
23735 mv -f Makefile.new Makefile
23736 )
23737
23738 echo creating src/Makefile
23739 ( cd src
23740 rm -f junk.c junk1.c junk2.c
23741 sed -e '/start of cpp stuff/q' \
23742 < Makefile.c > junk1.c
23743 sed -e '1,/start of cpp stuff/d'\
23744 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23745 < Makefile.c > junk.c
23746 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23747 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23748 cat junk1.c junk2.c > Makefile.new
23749 rm -f junk.c junk1.c junk2.c
23750 chmod 444 Makefile.new
23751 mv -f Makefile.new Makefile
23752 )
23753
23754 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23755 echo creating src/.gdbinit
23756 echo source $srcdir/src/.gdbinit > src/.gdbinit
23757 fi
23758
23759 # This is how we know whether to re-run configure in certain cases.
23760 touch src/config.stamp
23761
23762 ;;
23763 esac
23764 done
23765 _ACEOF
23766
23767 cat >>$CONFIG_STATUS <<\_ACEOF
23768
23769 { (exit 0); exit 0; }
23770 _ACEOF
23771 chmod +x $CONFIG_STATUS
23772 ac_clean_files=$ac_clean_files_save
23773
23774
23775 # configure is writing to config.log, and then calls config.status.
23776 # config.status does its own redirection, appending to config.log.
23777 # Unfortunately, on DOS this fails, as config.log is still kept open
23778 # by configure, so config.status won't be able to write to it; its
23779 # output is simply discarded. So we exec the FD to /dev/null,
23780 # effectively closing config.log, so it can be properly (re)opened and
23781 # appended to by config.status. When coming back to configure, we
23782 # need to make the FD available again.
23783 if test "$no_create" != yes; then
23784 ac_cs_success=:
23785 ac_config_status_args=
23786 test "$silent" = yes &&
23787 ac_config_status_args="$ac_config_status_args --quiet"
23788 exec 5>/dev/null
23789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23790 exec 5>>config.log
23791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23792 # would make configure fail if this is the last instruction.
23793 $ac_cs_success || { (exit 1); exit 1; }
23794 fi
23795
23796