Merged from emacs@sv.gnu.org
[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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG 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 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1723 ;;
1724
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1729
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1733
1734 fi
1735
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1752 ;;
1753
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1766 ;;
1767
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1775 ;;
1776
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1780 ;;
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1785 ;;
1786
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1802 ;;
1803
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1812 ;;
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1815 ;;
1816
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1832 ;;
1833
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1836 ;;
1837
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1840 ;;
1841
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1845 ;;
1846
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1850 ;;
1851
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1855 ;;
1856
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1860 ;;
1861
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1865 ;;
1866
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1870 ;;
1871
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1875 ;;
1876
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1880 ;;
1881
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1883
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1890 ;;
1891
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1899 ;;
1900
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1904 ;;
1905
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1911 ;;
1912
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1916 ;;
1917
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1921 ;;
1922
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1931 ;;
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1936 ;;
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1939 ;;
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1942 ;;
1943
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1949 ;;
1950
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1954 ;;
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1957 ;;
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1960 ;;
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1963 ;;
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1966 ;;
1967
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1976 fi
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1981 fi
1982 fi
1983 ;;
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1990 ;;
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1993 ;;
1994
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1998 ;;
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2001 ;;
2002
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2006 ;;
2007
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2011 ;;
2012
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2015
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2019 ;;
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2022 ;;
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2025 ;;
2026
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2036 ;;
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2040 ;;
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2045 ;;
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2049 ;;
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2052 ;;
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2056 ;;
2057
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2061 ;;
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2078 ;;
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2081 ;;
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2084 ;;
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2087 ;;
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2090 ;;
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2093 ;;
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 ;;
2097
2098 hppa*-*-linux-gnu* )
2099 machine=hp800 opsys=gnu-linux
2100 ;;
2101
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux* )
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2109 *.08.* ) machine=hp800 opsys=hpux8 ;;
2110 *.09.* ) machine=hp800 opsys=hpux9 ;;
2111 *) machine=hp800 opsys=hpux10 ;;
2112 esac
2113 ;;
2114 hppa*-*-nextstep* )
2115 machine=hp800 opsys=nextstep
2116 ;;
2117
2118 ## Orion machines
2119 orion-orion-bsd* )
2120 machine=orion opsys=bsd4-2
2121 ;;
2122 clipper-orion-bsd* )
2123 machine=orion105 opsys=bsd4-2
2124 ;;
2125
2126 ## IBM machines
2127 i[3456]86-ibm-aix1.1* )
2128 machine=ibmps2-aix opsys=usg5-2-2
2129 ;;
2130 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2131 machine=ibmps2-aix opsys=usg5-3
2132 ;;
2133 i370-ibm-aix*)
2134 machine=ibm370aix opsys=usg5-3
2135 ;;
2136 s390-*-linux-gnu* )
2137 machine=ibms390 opsys=gnu-linux
2138 ;;
2139 s390x-*-linux-gnu* )
2140 machine=ibms390x opsys=gnu-linux
2141 ;;
2142 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2143 machine=ibmrs6000 opsys=aix3-1
2144 ;;
2145 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2146 machine=ibmrs6000 opsys=aix3-2-5
2147 ;;
2148 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2149 machine=ibmrs6000 opsys=aix4-1
2150 ;;
2151 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2152 machine=ibmrs6000 opsys=aix4-2
2153 ;;
2154 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2155 machine=ibmrs6000 opsys=aix4-2
2156 ;;
2157 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2158 machine=ibmrs6000 opsys=aix4
2159 ;;
2160 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2161 machine=ibmrs6000 opsys=aix4-1
2162 ;;
2163 rs6000-ibm-aix* | powerpc-ibm-aix* )
2164 machine=ibmrs6000 opsys=aix3-2
2165 ;;
2166 romp-ibm-bsd4.3* )
2167 machine=ibmrt opsys=bsd4-3
2168 ;;
2169 romp-ibm-bsd4.2* )
2170 machine=ibmrt opsys=bsd4-2
2171 ;;
2172 romp-ibm-aos4.3* )
2173 machine=ibmrt opsys=bsd4-3
2174 ;;
2175 romp-ibm-aos4.2* )
2176 machine=ibmrt opsys=bsd4-2
2177 ;;
2178 romp-ibm-aos* )
2179 machine=ibmrt opsys=bsd4-3
2180 ;;
2181 romp-ibm-bsd* )
2182 machine=ibmrt opsys=bsd4-3
2183 ;;
2184 romp-ibm-aix* )
2185 machine=ibmrt-aix opsys=usg5-2-2
2186 ;;
2187
2188 ## Integrated Solutions `Optimum V'
2189 m68*-isi-bsd4.2* )
2190 machine=isi-ov opsys=bsd4-2
2191 ;;
2192 m68*-isi-bsd4.3* )
2193 machine=isi-ov opsys=bsd4-3
2194 ;;
2195
2196 ## Intel 386 machines where we do care about the manufacturer
2197 i[3456]86-intsys-sysv* )
2198 machine=is386 opsys=usg5-2-2
2199 ;;
2200
2201 ## Prime EXL
2202 i[3456]86-prime-sysv* )
2203 machine=i386 opsys=usg5-3
2204 ;;
2205
2206 ## Sequent Symmetry running Dynix
2207 i[3456]86-sequent-bsd* )
2208 machine=symmetry opsys=bsd4-3
2209 ;;
2210
2211 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2212 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2213 machine=sequent-ptx opsys=ptx4
2214 NON_GNU_CPP=/lib/cpp
2215 ;;
2216
2217 ## Sequent Symmetry running DYNIX/ptx
2218 ## Use the old cpp rather than the newer ANSI one.
2219 i[3456]86-sequent-ptx* )
2220 machine=sequent-ptx opsys=ptx
2221 NON_GNU_CPP="/lib/cpp"
2222 ;;
2223
2224 ## ncr machine running svr4.3.
2225 i[3456]86-ncr-sysv4.3 )
2226 machine=ncr386 opsys=usg5-4-3
2227 ;;
2228
2229 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2230 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2231 i[3456]86-ncr-sysv* )
2232 machine=ncr386 opsys=usg5-4-2
2233 ;;
2234
2235 ## Intel Paragon OSF/1
2236 i860-intel-osf1* )
2237 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2238 ;;
2239
2240 ## Intel 860
2241 i860-*-sysv4* )
2242 machine=i860 opsys=usg5-4
2243 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2244 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2245 ;;
2246
2247 ## Macintosh PowerPC
2248 powerpc*-*-linux-gnu* )
2249 machine=macppc opsys=gnu-linux
2250 ;;
2251
2252 ## Masscomp machines
2253 m68*-masscomp-rtu* )
2254 machine=masscomp opsys=rtu
2255 ;;
2256
2257 ## Megatest machines
2258 m68*-megatest-bsd* )
2259 machine=mega68 opsys=bsd4-2
2260 ;;
2261
2262 ## Workstations sold by MIPS
2263 ## This is not necessarily all workstations using the MIPS processor -
2264 ## Irises are produced by SGI, and DECstations by DEC.
2265
2266 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2267 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2268 ## it gives for choosing between the alternatives seems to be "Use
2269 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2270 ## the BSD world." I'll assume that these are instructions for
2271 ## handling two odd situations, and that every other situation
2272 ## should use mips.h and usg5-2-2, they being listed first.
2273 mips-mips-usg* )
2274 machine=mips4
2275 ## Fall through to the general code at the bottom to decide on the OS.
2276 ;;
2277 mips-mips-riscos4* )
2278 machine=mips4 opsys=bsd4-3
2279 NON_GNU_CC="cc -systype bsd43"
2280 NON_GNU_CPP="cc -systype bsd43 -E"
2281 ;;
2282 mips-mips-riscos5* )
2283 machine=mips4 opsys=riscos5
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2286 ;;
2287 mips-mips-bsd* )
2288 machine=mips opsys=bsd4-3
2289 ;;
2290 mips-mips-* )
2291 machine=mips opsys=usg5-2-2
2292 ;;
2293
2294 ## NeXT
2295 m68*-next-* | m68k-*-nextstep* )
2296 machine=m68k opsys=nextstep
2297 ;;
2298
2299 ## The complete machine from National Semiconductor
2300 ns32k-ns-genix* )
2301 machine=ns32000 opsys=usg5-2
2302 ;;
2303
2304 ## NCR machines
2305 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2306 machine=tower32 opsys=usg5-2-2
2307 ;;
2308 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2309 machine=tower32v3 opsys=usg5-3
2310 ;;
2311
2312 ## NEC EWS4800
2313 mips-nec-sysv4*)
2314 machine=ews4800 opsys=ux4800
2315 ;;
2316
2317 ## Nixdorf Targon 31
2318 m68*-nixdorf-sysv* )
2319 machine=targon31 opsys=usg5-2-2
2320 ;;
2321
2322 ## Nu (TI or LMI)
2323 m68*-nu-sysv* )
2324 machine=nu opsys=usg5-2
2325 ;;
2326
2327 ## Plexus
2328 m68*-plexus-sysv* )
2329 machine=plexus opsys=usg5-2
2330 ;;
2331
2332 ## Pyramid machines
2333 ## I don't really have any idea what sort of processor the Pyramid has,
2334 ## so I'm assuming it is its own architecture.
2335 pyramid-pyramid-bsd* )
2336 machine=pyramid opsys=bsd4-2
2337 ;;
2338
2339 ## Sequent Balance
2340 ns32k-sequent-bsd4.2* )
2341 machine=sequent opsys=bsd4-2
2342 ;;
2343 ns32k-sequent-bsd4.3* )
2344 machine=sequent opsys=bsd4-3
2345 ;;
2346
2347 ## Siemens Nixdorf
2348 mips-siemens-sysv* | mips-sni-sysv*)
2349 machine=mips-siemens opsys=usg5-4
2350 NON_GNU_CC=/usr/ccs/bin/cc
2351 NON_GNU_CPP=/usr/ccs/lib/cpp
2352 ;;
2353
2354 ## Silicon Graphics machines
2355 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2356 m68*-sgi-iris3.5* )
2357 machine=irist opsys=iris3-5
2358 ;;
2359 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2360 machine=irist opsys=iris3-6
2361 ;;
2362 ## Iris 4D
2363 mips-sgi-irix3* )
2364 machine=iris4d opsys=irix3-3
2365 ;;
2366 mips-sgi-irix4* )
2367 machine=iris4d opsys=irix4-0
2368 ;;
2369 mips-sgi-irix6.5 )
2370 machine=iris4d opsys=irix6-5
2371 # Without defining _LANGUAGE_C, things get masked out in the headers
2372 # so that, for instance, grepping for `free' in stdlib.h fails and
2373 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2374 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2375 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2376 ;;
2377 mips-sgi-irix6* )
2378 machine=iris4d opsys=irix6-0
2379 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2380 # but presumably it does no harm.
2381 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2382 # -32 probably isn't necessary in later v.6s -- anyone know which?
2383 NON_GCC_TEST_OPTIONS=-32
2384 ;;
2385 mips-sgi-irix5.[01]* )
2386 machine=iris4d opsys=irix5-0
2387 ;;
2388 mips-sgi-irix5* | mips-sgi-irix* )
2389 machine=iris4d opsys=irix5-2
2390 ;;
2391
2392 ## SONY machines
2393 m68*-sony-bsd4.2* )
2394 machine=news opsys=bsd4-2
2395 ;;
2396 m68*-sony-bsd4.3* )
2397 machine=news opsys=bsd4-3
2398 ;;
2399 m68*-sony-newsos3* | m68*-sony-news3*)
2400 machine=news opsys=bsd4-3
2401 ;;
2402 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2403 machine=news-risc opsys=bsd4-3
2404 ;;
2405 mips-sony-newsos6* )
2406 machine=news-r6 opsys=newsos6
2407 ;;
2408 mips-sony-news* )
2409 machine=news-risc opsys=newsos5
2410 ;;
2411
2412 ## Stride
2413 m68*-stride-sysv* )
2414 machine=stride opsys=usg5-2
2415 ;;
2416
2417 ## Suns
2418 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2419 machine=sparc opsys=gnu-linux
2420 ;;
2421
2422 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2423 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2424 | rs6000-*-solaris2*)
2425 case "${canonical}" in
2426 m68*-sunos1* ) machine=sun1 ;;
2427 m68*-sunos2* ) machine=sun2 ;;
2428 m68* ) machine=sun3 ;;
2429 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2430 i[3456]86-*-* ) machine=intel386 ;;
2431 powerpcle* ) machine=powerpcle ;;
2432 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2433 sparc* ) machine=sparc ;;
2434 * ) unported=yes ;;
2435 esac
2436 case "${canonical}" in
2437 ## The Sun386 didn't get past 4.0.
2438 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2439 *-sunos4.0* ) opsys=sunos4-0 ;;
2440 *-sunos4.1.[3-9]*noshare )
2441 ## This name is sunos413 instead of sunos4-1-3
2442 ## to avoid a file name conflict on MSDOS.
2443 opsys=sunos413
2444 NON_GNU_CPP=/usr/lib/cpp
2445 NON_GCC_TEST_OPTIONS=-Bstatic
2446 GCC_TEST_OPTIONS=-static
2447 ;;
2448 *-sunos4.1.[3-9]* | *-sunos4shr*)
2449 opsys=sunos4shr
2450 NON_GNU_CPP=/usr/lib/cpp
2451 ;;
2452 *-sunos4* | *-sunos )
2453 opsys=sunos4-1
2454 NON_GCC_TEST_OPTIONS=-Bstatic
2455 GCC_TEST_OPTIONS=-static
2456 ;;
2457 *-sunos5.3* | *-solaris2.3* )
2458 opsys=sol2-3
2459 NON_GNU_CPP=/usr/ccs/lib/cpp
2460 ;;
2461 *-sunos5.4* | *-solaris2.4* )
2462 opsys=sol2-4
2463 NON_GNU_CPP=/usr/ccs/lib/cpp
2464 RANLIB="ar -ts"
2465 ;;
2466 *-sunos5.5* | *-solaris2.5* )
2467 opsys=sol2-5
2468 NON_GNU_CPP=/usr/ccs/lib/cpp
2469 RANLIB="ar -ts"
2470 ;;
2471 *-sunos5.6* | *-solaris2.6* )
2472 opsys=sol2-6
2473 NON_GNU_CPP=/usr/ccs/lib/cpp
2474 RANLIB="ar -ts"
2475 ;;
2476 *-sunos5* | *-solaris* )
2477 opsys=sol2-6
2478 NON_GNU_CPP=/usr/ccs/lib/cpp
2479 ;;
2480 * ) opsys=bsd4-2 ;;
2481 esac
2482 ## Watch out for a compiler that we know will not work.
2483 case "${canonical}" in
2484 *-solaris* | *-sunos5* )
2485 if [ "x$CC" = x/usr/ucb/cc ]; then
2486 ## /usr/ucb/cc doesn't work;
2487 ## we should find some other compiler that does work.
2488 unset CC
2489 fi
2490 ;;
2491 *) ;;
2492 esac
2493 ;;
2494 sparc-*-nextstep* )
2495 machine=sparc opsys=nextstep
2496 ;;
2497
2498 ## Tadpole 68k
2499 m68*-tadpole-sysv* )
2500 machine=tad68k opsys=usg5-3
2501 ;;
2502
2503 ## Tahoe machines
2504 tahoe-tahoe-bsd4.2* )
2505 machine=tahoe opsys=bsd4-2
2506 ;;
2507 tahoe-tahoe-bsd4.3* )
2508 machine=tahoe opsys=bsd4-3
2509 ;;
2510
2511 ## Tandem Integrity S2
2512 mips-tandem-sysv* )
2513 machine=tandem-s2 opsys=usg5-3
2514 ;;
2515
2516 ## Tektronix XD88
2517 m88k-tektronix-sysv3* )
2518 machine=tekxd88 opsys=usg5-3
2519 ;;
2520
2521 ## Tektronix 16000 box (6130?)
2522 ns16k-tektronix-bsd* )
2523 machine=ns16000 opsys=bsd4-2
2524 ;;
2525 ## Tektronix 4300
2526 ## src/m/tek4300.h hints that this is a m68k machine.
2527 m68*-tektronix-bsd* )
2528 machine=tek4300 opsys=bsd4-3
2529 ;;
2530
2531 ## Titan P2 or P3
2532 ## We seem to have lost the machine-description file titan.h!
2533 titan-titan-sysv* )
2534 machine=titan opsys=usg5-3
2535 ;;
2536
2537 ## Ustation E30 (SS5E)
2538 m68*-unisys-uniplus* )
2539 machine=ustation opsystem=unipl5-2
2540 ;;
2541
2542 ## Vaxen.
2543 vax-dec-* )
2544 machine=vax
2545 case "${canonical}" in
2546 *-bsd4.1* ) opsys=bsd4-1 ;;
2547 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2548 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2549 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2550 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2551 *-vms* ) opsys=vms ;;
2552 * ) unported=yes
2553 esac
2554 ;;
2555
2556 ## Whitechapel MG1
2557 ns16k-whitechapel-* )
2558 machine=mg1
2559 ## We don't know what sort of OS runs on these; we'll let the
2560 ## operating system guessing code below try.
2561 ;;
2562
2563 ## Wicat
2564 m68*-wicat-sysv* )
2565 machine=wicat opsys=usg5-2
2566 ;;
2567
2568 ## IA-64
2569 ia64*-*-linux* )
2570 machine=ia64 opsys=gnu-linux
2571 ;;
2572
2573 ## Intel 386 machines where we don't care about the manufacturer
2574 i[3456]86-*-* )
2575 machine=intel386
2576 case "${canonical}" in
2577 *-cygwin ) opsys=cygwin ;;
2578 *-darwin* ) opsys=darwin
2579 CPP="${CC-cc} -E -no-cpp-precomp"
2580 ;;
2581 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2582 *-isc2.2* ) opsys=isc2-2 ;;
2583 *-isc4.0* ) opsys=isc4-0 ;;
2584 *-isc4.* ) opsys=isc4-1
2585 GCC_TEST_OPTIONS=-posix
2586 NON_GCC_TEST_OPTIONS=-Xp
2587 ;;
2588 *-isc* ) opsys=isc3-0 ;;
2589 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2590 *-esix* ) opsys=esix ;;
2591 *-xenix* ) opsys=xenix ;;
2592 *-linux-gnu* ) opsys=gnu-linux ;;
2593 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2594 *-sco3.2v5* ) opsys=sco5
2595 NON_GNU_CPP=/lib/cpp
2596 # Prevent -belf from being passed to $CPP.
2597 # /lib/cpp does not accept it.
2598 OVERRIDE_CPPFLAGS=" "
2599 ;;
2600 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2601 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-386bsd* ) opsys=386bsd ;;
2604 *-nextstep* ) opsys=nextstep ;;
2605 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 esac
2607 ;;
2608
2609 ## m68k Linux-based GNU system
2610 m68k-*-linux-gnu* )
2611 machine=m68k opsys=gnu-linux
2612 ;;
2613
2614 ## Mips Linux-based GNU system
2615 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2616 machine=mips opsys=gnu-linux
2617 ;;
2618
2619 ## UXP/DS
2620 sparc-fujitsu-sysv4* )
2621 machine=sparc opsys=uxpds
2622 NON_GNU_CPP=/usr/ccs/lib/cpp
2623 RANLIB="ar -ts"
2624 ;;
2625
2626 ## UXP/V
2627 f301-fujitsu-uxpv4.1)
2628 machine=f301 opsys=uxpv
2629 ;;
2630
2631 ## Darwin / Mac OS X
2632 powerpc-apple-darwin* )
2633 machine=powermac opsys=darwin
2634 # Define CPP as follows to make autoconf work correctly.
2635 CPP="${CC-cc} -E -no-cpp-precomp"
2636 # Use fink packages if available.
2637 if test -d /sw/include && test -d /sw/lib; then
2638 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2639 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2640 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2641 fi
2642 ;;
2643
2644 ## AMD x86-64 Linux-based GNU system
2645 x86_64-*-linux-gnu* )
2646 machine=amdx86-64 opsys=gnu-linux
2647 ;;
2648
2649 * )
2650 unported=yes
2651 ;;
2652 esac
2653
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2659 ### above.
2660 if test x"${opsys}" = x; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys=gnu ;;
2663 *-bsd4.[01] ) opsys=bsd4-1 ;;
2664 *-bsd4.2 ) opsys=bsd4-2 ;;
2665 *-bsd4.3 ) opsys=bsd4-3 ;;
2666 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2667 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2668 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2669 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2670 *-sysv4.2uw* ) opsys=unixware ;;
2671 *-sysv5uw* ) opsys=unixware ;;
2672 *-sysv5OpenUNIX* ) opsys=unixware ;;
2673 *-sysv4.1* | *-sysvr4.1* )
2674 NON_GNU_CPP=/usr/lib/cpp
2675 opsys=usg5-4 ;;
2676 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2677 if [ x$NON_GNU_CPP = x ]; then
2678 if [ -f /usr/ccs/lib/cpp ]; then
2679 NON_GNU_CPP=/usr/ccs/lib/cpp
2680 else
2681 NON_GNU_CPP=/lib/cpp
2682 fi
2683 fi
2684 opsys=usg5-4-2 ;;
2685 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2686 * )
2687 unported=yes
2688 ;;
2689 esac
2690 fi
2691
2692
2693
2694 if test $unported = yes; then
2695 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2696 Check \`etc/MACHINES' for recognized configuration names." >&5
2697 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2699 { (exit 1); exit 1; }; }
2700 fi
2701
2702 machfile="m/${machine}.h"
2703 opsysfile="s/${opsys}.h"
2704
2705
2706 #### Choose a compiler.
2707 test -n "$CC" && cc_specified=yes
2708
2709 # Save the value of CFLAGS that the user specified.
2710 SPECIFIED_CFLAGS="$CFLAGS"
2711
2712 case ${with_gcc} in
2713 "yes" ) CC="gcc" GCC=yes ;;
2714 "no" ) : ${CC=cc} ;;
2715 * )
2716 esac
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6
2753 else
2754 echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2756 fi
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760 ac_ct_CC=$CC
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC="gcc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796 CC=$ac_ct_CC
2797 else
2798 CC="$ac_cv_prog_CC"
2799 fi
2800
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}cc; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2833 else
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 fi
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840 ac_ct_CC=$CC
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc; ac_word=$2
2843 echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC="cc"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864
2865 fi
2866 fi
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6
2871 else
2872 echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2874 fi
2875
2876 CC=$ac_ct_CC
2877 else
2878 CC="$ac_cv_prog_CC"
2879 fi
2880
2881 fi
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 fi
2923 fi
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929 echo "${ECHO_T}$CC" >&6
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 fi
2934
2935 fi
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl
2939 do
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2970 else
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 fi
2974
2975 test -n "$CC" && break
2976 done
2977 fi
2978 if test -z "$CC"; then
2979 ac_ct_CC=$CC
2980 for ac_prog in cl
2981 do
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005
3006 fi
3007 fi
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016
3017 test -n "$ac_ct_CC" && break
3018 done
3019
3020 CC=$ac_ct_CC
3021 fi
3022
3023 fi
3024
3025
3026 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3031
3032 # Provide some information about the compiler.
3033 echo "$as_me:$LINENO:" \
3034 "checking for C compiler version" >&5
3035 ac_compiler=`set X $ac_compile; echo $2`
3036 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3037 (eval $ac_compiler --version </dev/null >&5) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3042 (eval $ac_compiler -v </dev/null >&5) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3047 (eval $ac_compiler -V </dev/null >&5) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 ac_clean_files_save=$ac_clean_files
3068 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3071 # of exeext.
3072 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3074 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3076 (eval $ac_link_default) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 # Find the output, starting from the most likely. This scheme is
3081 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3082 # resort.
3083
3084 # Be careful to initialize this variable, since it used to be cached.
3085 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3086 ac_cv_exeext=
3087 # b.out is created by i960 compilers.
3088 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3089 do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3093 ;;
3094 conftest.$ac_ext )
3095 # This is the source file.
3096 ;;
3097 [ab].out )
3098 # We found the default executable, but exeext='' is most
3099 # certainly right.
3100 break;;
3101 *.* )
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # FIXME: I believe we export ac_cv_exeext for Libtool,
3104 # but it would be cool to find out if it's true. Does anybody
3105 # maintain Libtool? --akim.
3106 export ac_cv_exeext
3107 break;;
3108 * )
3109 break;;
3110 esac
3111 done
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3117 See \`config.log' for more details." >&5
3118 echo "$as_me: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&2;}
3120 { (exit 77); exit 77; }; }
3121 fi
3122
3123 ac_exeext=$ac_cv_exeext
3124 echo "$as_me:$LINENO: result: $ac_file" >&5
3125 echo "${ECHO_T}$ac_file" >&6
3126
3127 # Check the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try='./$ac_file'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 cross_compiling=no
3141 else
3142 if test "$cross_compiling" = maybe; then
3143 cross_compiling=yes
3144 else
3145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: cannot run C compiled programs.
3149 If you meant to cross compile, use \`--host'.
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3152 fi
3153 fi
3154 fi
3155 echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3157
3158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 # Check the compiler produces executables we can run. If not, either
3161 # the compiler is broken, or we cross compile.
3162 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3164 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3165 echo "${ECHO_T}$cross_compiling" >&6
3166
3167 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 # `rm'.
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 export ac_cv_exeext
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195
3196 rm -f conftest$ac_cv_exeext
3197 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3198 echo "${ECHO_T}$ac_cv_exeext" >&6
3199
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3202 ac_exeext=$EXEEXT
3203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3205 if test "${ac_cv_objext+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.o conftest.obj
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; then
3229 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233 break;;
3234 esac
3235 done
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248 fi
3249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3250 echo "${ECHO_T}$ac_cv_objext" >&6
3251 OBJEXT=$ac_cv_objext
3252 ac_objext=$OBJEXT
3253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268 #ifndef __GNUC__
3269 choke me
3270 #endif
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; } &&
3291 { ac_try='test -s conftest.$ac_objext'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3297 ac_compiler_gnu=yes
3298 else
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302 ac_compiler_gnu=no
3303 fi
3304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3309 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3310 GCC=`test $ac_compiler_gnu = yes && echo yes`
3311 ac_test_CFLAGS=${CFLAGS+set}
3312 ac_save_CFLAGS=$CFLAGS
3313 CFLAGS="-g"
3314 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3315 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3316 if test "${ac_cv_prog_cc_g+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_prog_cc_g=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_cv_prog_cc_g=no
3361 fi
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3370 CFLAGS="-g -O2"
3371 else
3372 CFLAGS="-g"
3373 fi
3374 else
3375 if test "$GCC" = yes; then
3376 CFLAGS="-O2"
3377 else
3378 CFLAGS=
3379 fi
3380 fi
3381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 ac_cv_prog_cc_stdc=no
3387 ac_save_CC=$CC
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <stdarg.h>
3395 #include <stdio.h>
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3402 char **p;
3403 int i;
3404 {
3405 return p[i];
3406 }
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3408 {
3409 char *s;
3410 va_list v;
3411 va_start (v,p);
3412 s = g (p, va_arg (v,int));
3413 va_end (v);
3414 return s;
3415 }
3416
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std1 is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std1. */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 int argc;
3431 char **argv;
3432 int
3433 main ()
3434 {
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 # Don't try gcc -ansi; that turns off useful extensions and
3441 # breaks some systems' header files.
3442 # AIX -qlanglvl=ansi
3443 # Ultrix and OSF/1 -std1
3444 # HP-UX 10.20 and later -Ae
3445 # HP-UX older versions -Aa -D_HPUX_SOURCE
3446 # SVR4 -Xc -D__EXTENSIONS__
3447 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448 do
3449 CC="$ac_save_CC $ac_arg"
3450 rm -f conftest.$ac_objext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_prog_cc_stdc=$ac_arg
3472 break
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 fi
3478 rm -f conftest.err conftest.$ac_objext
3479 done
3480 rm -f conftest.$ac_ext conftest.$ac_objext
3481 CC=$ac_save_CC
3482
3483 fi
3484
3485 case "x$ac_cv_prog_cc_stdc" in
3486 x|xno)
3487 echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6 ;;
3489 *)
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3492 CC="$CC $ac_cv_prog_cc_stdc" ;;
3493 esac
3494
3495 # Some people use a C++ compiler to compile C. Since we use `exit',
3496 # in C++ we need to declare it. In case someone uses the same compiler
3497 # for both compiling C and C++ we need to have the C++ compiler decide
3498 # the declaration of exit, since it's the most demanding environment.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #ifndef __cplusplus
3501 choke me
3502 #endif
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 for ac_declaration in \
3526 '' \
3527 'extern "C" void std::exit (int) throw (); using std::exit;' \
3528 'extern "C" void std::exit (int); using std::exit;' \
3529 'extern "C" void exit (int) throw ();' \
3530 'extern "C" void exit (int);' \
3531 'void exit (int);'
3532 do
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 $ac_declaration
3540 #include <stdlib.h>
3541 int
3542 main ()
3543 {
3544 exit (42);
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 :
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 continue
3576 fi
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 $ac_declaration
3585 int
3586 main ()
3587 {
3588 exit (42);
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 break
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 fi
3620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3621 done
3622 rm -f conftest*
3623 if test -n "$ac_declaration"; then
3624 echo '#ifdef __cplusplus' >>confdefs.h
3625 echo $ac_declaration >>confdefs.h
3626 echo '#endif' >>confdefs.h
3627 fi
3628
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 fi
3634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3644 CPP=
3645 fi
3646
3647 #### Some systems specify a CPP to use unless we are using GCC.
3648 #### Now that we know whether we are using GCC, we can decide whether
3649 #### to use that one.
3650 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3651 then
3652 CPP="$NON_GNU_CPP"
3653 fi
3654
3655 #### Some systems specify a CC to use unless we are using GCC.
3656 #### Now that we know whether we are using GCC, we can decide whether
3657 #### to use that one.
3658 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3659 test x$cc_specified != xyes
3660 then
3661 CC="$NON_GNU_CC"
3662 fi
3663
3664 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3665 then
3666 CC="$CC $GCC_TEST_OPTIONS"
3667 fi
3668
3669 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3670 then
3671 CC="$CC $NON_GCC_TEST_OPTIONS"
3672 fi
3673
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682 # On Suns, sometimes $CPP names a directory.
3683 if test -n "$CPP" && test -d "$CPP"; then
3684 CPP=
3685 fi
3686 if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 # Double quotes because CPP needs to be expanded
3691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3692 do
3693 ac_preproc_ok=false
3694 for ac_c_preproc_warn_flag in '' yes
3695 do
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #ifdef __STDC__
3709 # include <limits.h>
3710 #else
3711 # include <assert.h>
3712 #endif
3713 Syntax error
3714 _ACEOF
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3726 else
3727 ac_cpp_err=
3728 fi
3729 else
3730 ac_cpp_err=yes
3731 fi
3732 if test -z "$ac_cpp_err"; then
3733 :
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 # Broken: fails on valid input.
3739 continue
3740 fi
3741 rm -f conftest.err conftest.$ac_ext
3742
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3752 _ACEOF
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev/null; then
3761 if test -s conftest.err; then
3762 ac_cpp_err=$ac_c_preproc_warn_flag
3763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3764 else
3765 ac_cpp_err=
3766 fi
3767 else
3768 ac_cpp_err=yes
3769 fi
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3772 continue
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 # Passes both tests.
3778 ac_preproc_ok=:
3779 break
3780 fi
3781 rm -f conftest.err conftest.$ac_ext
3782
3783 done
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.$ac_ext
3786 if $ac_preproc_ok; then
3787 break
3788 fi
3789
3790 done
3791 ac_cv_prog_CPP=$CPP
3792
3793 fi
3794 CPP=$ac_cv_prog_CPP
3795 else
3796 ac_cv_prog_CPP=$CPP
3797 fi
3798 echo "$as_me:$LINENO: result: $CPP" >&5
3799 echo "${ECHO_T}$CPP" >&6
3800 ac_preproc_ok=false
3801 for ac_c_preproc_warn_flag in '' yes
3802 do
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820 Syntax error
3821 _ACEOF
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833 else
3834 ac_cpp_err=
3835 fi
3836 else
3837 ac_cpp_err=yes
3838 fi
3839 if test -z "$ac_cpp_err"; then
3840 :
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Broken: fails on valid input.
3846 continue
3847 fi
3848 rm -f conftest.err conftest.$ac_ext
3849
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3859 _ACEOF
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null; then
3868 if test -s conftest.err; then
3869 ac_cpp_err=$ac_c_preproc_warn_flag
3870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3871 else
3872 ac_cpp_err=
3873 fi
3874 else
3875 ac_cpp_err=yes
3876 fi
3877 if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then
3894 :
3895 else
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897 See \`config.log' for more details." >&5
3898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3901 fi
3902
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910 echo "$as_me:$LINENO: checking for egrep" >&5
3911 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3912 if test "${ac_cv_prog_egrep+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3916 then ac_cv_prog_egrep='grep -E'
3917 else ac_cv_prog_egrep='egrep'
3918 fi
3919 fi
3920 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3921 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3922 EGREP=$ac_cv_prog_egrep
3923
3924
3925
3926 echo "$as_me:$LINENO: checking for AIX" >&5
3927 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #ifdef _AIX
3935 yes
3936 #endif
3937
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "yes" >/dev/null 2>&1; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942 echo "${ECHO_T}yes" >&6
3943 cat >>confdefs.h <<\_ACEOF
3944 #define _ALL_SOURCE 1
3945 _ACEOF
3946
3947 else
3948 echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3950 fi
3951 rm -f conftest*
3952
3953
3954
3955 cat >>confdefs.h <<\_ACEOF
3956 #define _GNU_SOURCE 1
3957 _ACEOF
3958
3959
3960
3961 ### Use -Wno-pointer-sign if the compiler supports it
3962 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3963 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3964 SAVE_CFLAGS="$CFLAGS"
3965 CFLAGS="$CFLAGS -Wno-pointer-sign"
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972
3973 int
3974 main ()
3975 {
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 has_option=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 has_option=no
4008 fi
4009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010 if test $has_option = yes; then
4011 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4012 fi
4013 echo "$as_me:$LINENO: result: $has_option" >&5
4014 echo "${ECHO_T}$has_option" >&6
4015 CFLAGS="$SAVE_CFLAGS"
4016 unset has_option
4017 unset SAVE_CFLAGS
4018
4019 #### Some other nice autoconf tests.
4020
4021 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4022 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4023 LN_S=$as_ln_s
4024 if test "$LN_S" = "ln -s"; then
4025 echo "$as_me:$LINENO: result: yes" >&5
4026 echo "${ECHO_T}yes" >&6
4027 else
4028 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4029 echo "${ECHO_T}no, using $LN_S" >&6
4030 fi
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4039 # On Suns, sometimes $CPP names a directory.
4040 if test -n "$CPP" && test -d "$CPP"; then
4041 CPP=
4042 fi
4043 if test -z "$CPP"; then
4044 if test "${ac_cv_prog_CPP+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 # Double quotes because CPP needs to be expanded
4048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 do
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4052 do
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #ifdef __STDC__
4066 # include <limits.h>
4067 #else
4068 # include <assert.h>
4069 #endif
4070 Syntax error
4071 _ACEOF
4072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } >/dev/null; then
4080 if test -s conftest.err; then
4081 ac_cpp_err=$ac_c_preproc_warn_flag
4082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4083 else
4084 ac_cpp_err=
4085 fi
4086 else
4087 ac_cpp_err=yes
4088 fi
4089 if test -z "$ac_cpp_err"; then
4090 :
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 # Broken: fails on valid input.
4096 continue
4097 fi
4098 rm -f conftest.err conftest.$ac_ext
4099
4100 # OK, works on sane cases. Now check whether non-existent headers
4101 # can be detected and how.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 else
4122 ac_cpp_err=
4123 fi
4124 else
4125 ac_cpp_err=yes
4126 fi
4127 if test -z "$ac_cpp_err"; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4137 fi
4138 rm -f conftest.err conftest.$ac_ext
4139
4140 done
4141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4142 rm -f conftest.err conftest.$ac_ext
4143 if $ac_preproc_ok; then
4144 break
4145 fi
4146
4147 done
4148 ac_cv_prog_CPP=$CPP
4149
4150 fi
4151 CPP=$ac_cv_prog_CPP
4152 else
4153 ac_cv_prog_CPP=$CPP
4154 fi
4155 echo "$as_me:$LINENO: result: $CPP" >&5
4156 echo "${ECHO_T}$CPP" >&6
4157 ac_preproc_ok=false
4158 for ac_c_preproc_warn_flag in '' yes
4159 do
4160 # Use a header file that comes with gcc, so configuring glibc
4161 # with a fresh cross-compiler works.
4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 # <limits.h> exists even on freestanding compilers.
4164 # On the NeXT, cc -E runs the code through the compiler's parser,
4165 # not just through cpp. "Syntax error" is here to catch this case.
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177 Syntax error
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_c_preproc_warn_flag
4189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4190 else
4191 ac_cpp_err=
4192 fi
4193 else
4194 ac_cpp_err=yes
4195 fi
4196 if test -z "$ac_cpp_err"; then
4197 :
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 # Broken: fails on valid input.
4203 continue
4204 fi
4205 rm -f conftest.err conftest.$ac_ext
4206
4207 # OK, works on sane cases. Now check whether non-existent headers
4208 # can be detected and how.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null; then
4225 if test -s conftest.err; then
4226 ac_cpp_err=$ac_c_preproc_warn_flag
4227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4228 else
4229 ac_cpp_err=
4230 fi
4231 else
4232 ac_cpp_err=yes
4233 fi
4234 if test -z "$ac_cpp_err"; then
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4244 fi
4245 rm -f conftest.err conftest.$ac_ext
4246
4247 done
4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249 rm -f conftest.err conftest.$ac_ext
4250 if $ac_preproc_ok; then
4251 :
4252 else
4253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4254 See \`config.log' for more details." >&5
4255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details." >&2;}
4257 { (exit 1); exit 1; }; }
4258 fi
4259
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266 # Find a good install program. We prefer a C program (faster),
4267 # so one script is as good as another. But avoid the broken or
4268 # incompatible versions:
4269 # SysV /etc/install, /usr/sbin/install
4270 # SunOS /usr/etc/install
4271 # IRIX /sbin/install
4272 # AIX /bin/install
4273 # AmigaOS /C/install, which installs bootblocks on floppy discs
4274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4277 # OS/2's system install, which has a completely different semantic
4278 # ./install, which can be erroneously created by make from ./install.sh.
4279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4281 if test -z "$INSTALL"; then
4282 if test "${ac_cv_path_install+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 # Account for people who put trailing slashes in PATH elements.
4291 case $as_dir/ in
4292 ./ | .// | /cC/* | \
4293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4295 /usr/ucb/* ) ;;
4296 *)
4297 # OSF1 and SCO ODT 3.0 have their own names for install.
4298 # Don't use installbsd from OSF since it installs stuff as root
4299 # by default.
4300 for ac_prog in ginstall scoinst install; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4303 if test $ac_prog = install &&
4304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4305 # AIX install. It has an incompatible calling convention.
4306 :
4307 elif test $ac_prog = install &&
4308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4309 # program-specific install script used by HP pwplus--don't use.
4310 :
4311 else
4312 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4313 break 3
4314 fi
4315 fi
4316 done
4317 done
4318 ;;
4319 esac
4320 done
4321
4322
4323 fi
4324 if test "${ac_cv_path_install+set}" = set; then
4325 INSTALL=$ac_cv_path_install
4326 else
4327 # As a last resort, use the slow shell script. We don't cache a
4328 # path for INSTALL within a source directory, because that will
4329 # break other packages using the cache if that directory is
4330 # removed, or if the path is relative.
4331 INSTALL=$ac_install_sh
4332 fi
4333 fi
4334 echo "$as_me:$LINENO: result: $INSTALL" >&5
4335 echo "${ECHO_T}$INSTALL" >&6
4336
4337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4338 # It thinks the first close brace ends the variable substitution.
4339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4340
4341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4342
4343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4344
4345 if test "x$RANLIB" = x; then
4346 if test -n "$ac_tool_prefix"; then
4347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_prog_RANLIB+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354 if test -n "$RANLIB"; then
4355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368 done
4369 done
4370
4371 fi
4372 fi
4373 RANLIB=$ac_cv_prog_RANLIB
4374 if test -n "$RANLIB"; then
4375 echo "$as_me:$LINENO: result: $RANLIB" >&5
4376 echo "${ECHO_T}$RANLIB" >&6
4377 else
4378 echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4380 fi
4381
4382 fi
4383 if test -z "$ac_cv_prog_RANLIB"; then
4384 ac_ct_RANLIB=$RANLIB
4385 # Extract the first word of "ranlib", so it can be a program name with args.
4386 set dummy ranlib; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$ac_ct_RANLIB"; then
4393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_ac_ct_RANLIB="ranlib"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408
4409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4410 fi
4411 fi
4412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4413 if test -n "$ac_ct_RANLIB"; then
4414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4415 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4416 else
4417 echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4419 fi
4420
4421 RANLIB=$ac_ct_RANLIB
4422 else
4423 RANLIB="$ac_cv_prog_RANLIB"
4424 fi
4425
4426 fi
4427 # Extract the first word of "install-info", so it can be a program name with args.
4428 set dummy install-info; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 case $INSTALL_INFO in
4435 [\\/]* | ?:[\\/]*)
4436 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4437 ;;
4438 *)
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452
4453 ;;
4454 esac
4455 fi
4456 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4457
4458 if test -n "$INSTALL_INFO"; then
4459 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4460 echo "${ECHO_T}$INSTALL_INFO" >&6
4461 else
4462 echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464 fi
4465
4466 # Extract the first word of "install-info", so it can be a program name with args.
4467 set dummy install-info; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 case $INSTALL_INFO in
4474 [\\/]* | ?:[\\/]*)
4475 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4476 ;;
4477 *)
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in /usr/sbin
4480 do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489 done
4490 done
4491
4492 ;;
4493 esac
4494 fi
4495 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4496
4497 if test -n "$INSTALL_INFO"; then
4498 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4499 echo "${ECHO_T}$INSTALL_INFO" >&6
4500 else
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505 # Extract the first word of "install-info", so it can be a program name with args.
4506 set dummy install-info; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 case $INSTALL_INFO in
4513 [\\/]* | ?:[\\/]*)
4514 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4515 ;;
4516 *)
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in /sbin
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530
4531 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4532 ;;
4533 esac
4534 fi
4535 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4536
4537 if test -n "$INSTALL_INFO"; then
4538 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4539 echo "${ECHO_T}$INSTALL_INFO" >&6
4540 else
4541 echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543 fi
4544
4545 # Extract the first word of "gzip", so it can be a program name with args.
4546 set dummy gzip; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 case $GZIP_PROG in
4553 [\\/]* | ?:[\\/]*)
4554 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4555 ;;
4556 *)
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568 done
4569 done
4570
4571 ;;
4572 esac
4573 fi
4574 GZIP_PROG=$ac_cv_path_GZIP_PROG
4575
4576 if test -n "$GZIP_PROG"; then
4577 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4578 echo "${ECHO_T}$GZIP_PROG" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585
4586 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4587 then
4588 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4589 fi
4590
4591 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4592 then
4593 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4594 fi
4595
4596
4597 late_LDFLAGS=$LDFLAGS
4598 if test "$GCC" = yes; then
4599 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4600 else
4601 LDFLAGS="$LDFLAGS -znocombreloc"
4602 fi
4603
4604 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4605 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4607 main(){return 0;}
4608 _ACEOF
4609 rm -f conftest.$ac_objext conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest$ac_exeext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 LDFLAGS=$late_LDFLAGS
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 fi
4640 rm -f conftest.err conftest.$ac_objext \
4641 conftest$ac_exeext conftest.$ac_ext
4642
4643 #### Extract some information from the operating system and machine files.
4644
4645 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4646 - which libraries the lib-src programs will want, and
4647 - whether the GNU malloc routines are usable..." >&5
4648 echo "$as_me: checking the machine- and system-dependent files to find out
4649 - which libraries the lib-src programs will want, and
4650 - whether the GNU malloc routines are usable..." >&6;}
4651
4652 ### First figure out CFLAGS (which we use for running the compiler here)
4653 ### and REAL_CFLAGS (which we use for real compilation).
4654 ### The two are the same except on a few systems, where they are made
4655 ### different to work around various lossages. For example,
4656 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4657 ### as implying static linking.
4658
4659 ### If the CFLAGS env var is specified, we use that value
4660 ### instead of the default.
4661
4662 ### It's not important that this name contain the PID; you can't run
4663 ### two configures in the same directory and have anything work
4664 ### anyway.
4665 tempcname="conftest.c"
4666
4667 echo '
4668 #include "'${srcdir}'/src/'${opsysfile}'"
4669 #include "'${srcdir}'/src/'${machfile}'"
4670 #ifndef LIBS_MACHINE
4671 #define LIBS_MACHINE
4672 #endif
4673 #ifndef LIBS_SYSTEM
4674 #define LIBS_SYSTEM
4675 #endif
4676 #ifndef C_SWITCH_SYSTEM
4677 #define C_SWITCH_SYSTEM
4678 #endif
4679 #ifndef C_SWITCH_MACHINE
4680 #define C_SWITCH_MACHINE
4681 #endif
4682 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4683 configure___ c_switch_system=C_SWITCH_SYSTEM
4684 configure___ c_switch_machine=C_SWITCH_MACHINE
4685
4686 #ifndef LIB_X11_LIB
4687 #define LIB_X11_LIB -lX11
4688 #endif
4689
4690 #ifndef LIBX11_MACHINE
4691 #define LIBX11_MACHINE
4692 #endif
4693
4694 #ifndef LIBX11_SYSTEM
4695 #define LIBX11_SYSTEM
4696 #endif
4697 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4698
4699 #ifdef UNEXEC
4700 configure___ unexec=UNEXEC
4701 #else
4702 configure___ unexec=unexec.o
4703 #endif
4704
4705 #ifdef SYSTEM_MALLOC
4706 configure___ system_malloc=yes
4707 #else
4708 configure___ system_malloc=no
4709 #endif
4710
4711 #ifdef USE_MMAP_FOR_BUFFERS
4712 configure___ use_mmap_for_buffers=yes
4713 #else
4714 configure___ use_mmap_for_buffers=no
4715 #endif
4716
4717 #ifndef C_DEBUG_SWITCH
4718 #define C_DEBUG_SWITCH -g
4719 #endif
4720
4721 #ifndef C_OPTIMIZE_SWITCH
4722 #ifdef __GNUC__
4723 #define C_OPTIMIZE_SWITCH -O2
4724 #else
4725 #define C_OPTIMIZE_SWITCH -O
4726 #endif
4727 #endif
4728
4729 #ifndef C_WARNINGS_SWITCH
4730 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4731 #endif
4732
4733 #ifndef LD_SWITCH_MACHINE
4734 #define LD_SWITCH_MACHINE
4735 #endif
4736
4737 #ifndef LD_SWITCH_SYSTEM
4738 #define LD_SWITCH_SYSTEM
4739 #endif
4740
4741 #ifndef LD_SWITCH_X_SITE_AUX
4742 #define LD_SWITCH_X_SITE_AUX
4743 #endif
4744
4745 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4746 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4747
4748 #ifdef THIS_IS_CONFIGURE
4749
4750 /* Get the CFLAGS for tests in configure. */
4751 #ifdef __GNUC__
4752 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4753 #else
4754 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4755 #endif
4756
4757 #else /* not THIS_IS_CONFIGURE */
4758
4759 /* Get the CFLAGS for real compilation. */
4760 #ifdef __GNUC__
4761 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4762 #else
4763 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4764 #endif
4765
4766 #endif /* not THIS_IS_CONFIGURE */
4767 ' > ${tempcname}
4768
4769 # The value of CPP is a quoted variable reference, so we need to do this
4770 # to get its actual value...
4771 CPP=`eval "echo $CPP"`
4772 eval `${CPP} -Isrc ${tempcname} \
4773 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4774 if test "x$SPECIFIED_CFLAGS" = x; then
4775 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4776 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4777 else
4778 REAL_CFLAGS="$CFLAGS"
4779 fi
4780 rm ${tempcname}
4781
4782 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4783
4784 ### Make sure subsequent tests use flags consistent with the build flags.
4785
4786 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4787 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4788 else
4789 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4790 fi
4791
4792
4793
4794 # Check whether --enable-largefile or --disable-largefile was given.
4795 if test "${enable_largefile+set}" = set; then
4796 enableval="$enable_largefile"
4797
4798 fi;
4799 if test "$enable_largefile" != no; then
4800
4801 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4802 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4803 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 ac_cv_sys_largefile_CC=no
4807 if test "$GCC" != yes; then
4808 ac_save_CC=$CC
4809 while :; do
4810 # IRIX 6.2 and later do not support large files by default,
4811 # so use the C compiler's -n32 option if that helps.
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <sys/types.h>
4819 /* Check that off_t can represent 2**63 - 1 correctly.
4820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821 since some C++ compilers masquerading as C compilers
4822 incorrectly reject 9223372036854775807. */
4823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825 && LARGE_OFF_T % 2147483647 == 1)
4826 ? 1 : -1];
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 break
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 fi
4862 rm -f conftest.err conftest.$ac_objext
4863 CC="$CC -n32"
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_sys_largefile_CC=' -n32'; break
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 fi
4891 rm -f conftest.err conftest.$ac_objext
4892 break
4893 done
4894 CC=$ac_save_CC
4895 rm -f conftest.$ac_ext
4896 fi
4897 fi
4898 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4899 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4900 if test "$ac_cv_sys_largefile_CC" != no; then
4901 CC=$CC$ac_cv_sys_largefile_CC
4902 fi
4903
4904 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4905 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4906 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 while :; do
4910 ac_cv_sys_file_offset_bits=no
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4925 ? 1 : -1];
4926 int
4927 main ()
4928 {
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 break
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 fi
4961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #define _FILE_OFFSET_BITS 64
4969 #include <sys/types.h>
4970 /* Check that off_t can represent 2**63 - 1 correctly.
4971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4972 since some C++ compilers masquerading as C compilers
4973 incorrectly reject 9223372036854775807. */
4974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4976 && LARGE_OFF_T % 2147483647 == 1)
4977 ? 1 : -1];
4978 int
4979 main ()
4980 {
4981
4982 ;
4983 return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_sys_file_offset_bits=64; break
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 fi
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 break
5015 done
5016 fi
5017 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5018 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5019 if test "$ac_cv_sys_file_offset_bits" != no; then
5020
5021 cat >>confdefs.h <<_ACEOF
5022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5023 _ACEOF
5024
5025 fi
5026 rm -f conftest*
5027 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5028 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5029 if test "${ac_cv_sys_large_files+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 while :; do
5033 ac_cv_sys_large_files=no
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <sys/types.h>
5041 /* Check that off_t can represent 2**63 - 1 correctly.
5042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5043 since some C++ compilers masquerading as C compilers
5044 incorrectly reject 9223372036854775807. */
5045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5047 && LARGE_OFF_T % 2147483647 == 1)
5048 ? 1 : -1];
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 break
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 fi
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #define _LARGE_FILES 1
5092 #include <sys/types.h>
5093 /* Check that off_t can represent 2**63 - 1 correctly.
5094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5095 since some C++ compilers masquerading as C compilers
5096 incorrectly reject 9223372036854775807. */
5097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5099 && LARGE_OFF_T % 2147483647 == 1)
5100 ? 1 : -1];
5101 int
5102 main ()
5103 {
5104
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_sys_large_files=1; break
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 fi
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 break
5138 done
5139 fi
5140 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5141 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5142 if test "$ac_cv_sys_large_files" != no; then
5143
5144 cat >>confdefs.h <<_ACEOF
5145 #define _LARGE_FILES $ac_cv_sys_large_files
5146 _ACEOF
5147
5148 fi
5149 rm -f conftest*
5150 fi
5151
5152
5153 if test "${with_sound}" != "no"; then
5154 # Sound support for GNU/Linux and the free BSDs.
5155 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5157 if test "${ac_cv_header_stdc+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #include <stdlib.h>
5167 #include <stdarg.h>
5168 #include <string.h>
5169 #include <float.h>
5170
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try='test -s conftest.$ac_objext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_header_stdc=yes
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208
5209 if test $ac_cv_header_stdc = yes; then
5210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <string.h>
5218
5219 _ACEOF
5220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5221 $EGREP "memchr" >/dev/null 2>&1; then
5222 :
5223 else
5224 ac_cv_header_stdc=no
5225 fi
5226 rm -f conftest*
5227
5228 fi
5229
5230 if test $ac_cv_header_stdc = yes; then
5231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <stdlib.h>
5239
5240 _ACEOF
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "free" >/dev/null 2>&1; then
5243 :
5244 else
5245 ac_cv_header_stdc=no
5246 fi
5247 rm -f conftest*
5248
5249 fi
5250
5251 if test $ac_cv_header_stdc = yes; then
5252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5253 if test "$cross_compiling" = yes; then
5254 :
5255 else
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <ctype.h>
5263 #if ((' ' & 0x0FF) == 0x020)
5264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5266 #else
5267 # define ISLOWER(c) \
5268 (('a' <= (c) && (c) <= 'i') \
5269 || ('j' <= (c) && (c) <= 'r') \
5270 || ('s' <= (c) && (c) <= 'z'))
5271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5272 #endif
5273
5274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5275 int
5276 main ()
5277 {
5278 int i;
5279 for (i = 0; i < 256; i++)
5280 if (XOR (islower (i), ISLOWER (i))
5281 || toupper (i) != TOUPPER (i))
5282 exit(2);
5283 exit (0);
5284 }
5285 _ACEOF
5286 rm -f conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 :
5298 else
5299 echo "$as_me: program exited with status $ac_status" >&5
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 ( exit $ac_status )
5304 ac_cv_header_stdc=no
5305 fi
5306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5307 fi
5308 fi
5309 fi
5310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5312 if test $ac_cv_header_stdc = yes; then
5313
5314 cat >>confdefs.h <<\_ACEOF
5315 #define STDC_HEADERS 1
5316 _ACEOF
5317
5318 fi
5319
5320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5331 inttypes.h stdint.h unistd.h
5332 do
5333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5334 echo "$as_me:$LINENO: checking for $ac_header" >&5
5335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5346
5347 #include <$ac_header>
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 eval "$as_ac_Header=yes"
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 eval "$as_ac_Header=no"
5376 fi
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5384 _ACEOF
5385
5386 fi
5387
5388 done
5389
5390
5391
5392
5393
5394 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5395 do
5396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo "$as_me:$LINENO: checking for $ac_header" >&5
5399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 fi
5403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5405 else
5406 # Is the header compilable?
5407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 $ac_includes_default
5416 #include <$ac_header>
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_header_compiler=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_header_compiler=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5449
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <$ac_header>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 else
5473 ac_cpp_err=
5474 fi
5475 else
5476 ac_cpp_err=yes
5477 fi
5478 if test -z "$ac_cpp_err"; then
5479 ac_header_preproc=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_header_preproc=no
5485 fi
5486 rm -f conftest.err conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5489
5490 # So? What about this header?
5491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5492 yes:no: )
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497 ac_header_preproc=yes
5498 ;;
5499 no:yes:* )
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5512 (
5513 cat <<\_ASBOX
5514 ## ------------------------------------------ ##
5515 ## Report this to the AC_PACKAGE_NAME lists. ##
5516 ## ------------------------------------------ ##
5517 _ASBOX
5518 ) |
5519 sed "s/^/$as_me: WARNING: /" >&2
5520 ;;
5521 esac
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 eval "$as_ac_Header=\$ac_header_preproc"
5528 fi
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531
5532 fi
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5537
5538 fi
5539
5540 done
5541
5542 # Emulation library used on NetBSD.
5543 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5544 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5545 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-lossaudio $LIBS"
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556
5557 /* Override any gcc2 internal prototype to avoid an error. */
5558 #ifdef __cplusplus
5559 extern "C"
5560 #endif
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char _oss_ioctl ();
5564 int
5565 main ()
5566 {
5567 _oss_ioctl ();
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_ossaudio__oss_ioctl=yes
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 ac_cv_lib_ossaudio__oss_ioctl=no
5599 fi
5600 rm -f conftest.err conftest.$ac_objext \
5601 conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5603 fi
5604 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5605 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5606 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5607 LIBSOUND=-lossaudio
5608 else
5609 LIBSOUND=
5610 fi
5611
5612
5613 fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5641 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5642 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5643 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5644 sys/utsname.h pwd.h
5645 do
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 fi
5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655 else
5656 # Is the header compilable?
5657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666 #include <$ac_header>
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_header_compiler=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 ac_header_compiler=no
5695 fi
5696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698 echo "${ECHO_T}$ac_header_compiler" >&6
5699
5700 # Is the header present?
5701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <$ac_header>
5710 _ACEOF
5711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null; then
5719 if test -s conftest.err; then
5720 ac_cpp_err=$ac_c_preproc_warn_flag
5721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722 else
5723 ac_cpp_err=
5724 fi
5725 else
5726 ac_cpp_err=yes
5727 fi
5728 if test -z "$ac_cpp_err"; then
5729 ac_header_preproc=yes
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_header_preproc=no
5735 fi
5736 rm -f conftest.err conftest.$ac_ext
5737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5738 echo "${ECHO_T}$ac_header_preproc" >&6
5739
5740 # So? What about this header?
5741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5742 yes:no: )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5747 ac_header_preproc=yes
5748 ;;
5749 no:yes:* )
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5762 (
5763 cat <<\_ASBOX
5764 ## ------------------------------------------ ##
5765 ## Report this to the AC_PACKAGE_NAME lists. ##
5766 ## ------------------------------------------ ##
5767 _ASBOX
5768 ) |
5769 sed "s/^/$as_me: WARNING: /" >&2
5770 ;;
5771 esac
5772 echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 eval "$as_ac_Header=\$ac_header_preproc"
5778 fi
5779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5781
5782 fi
5783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784 cat >>confdefs.h <<_ACEOF
5785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 _ACEOF
5787
5788 fi
5789
5790 done
5791
5792
5793 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5794 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <sys/personality.h>
5802 int
5803 main ()
5804 {
5805 personality (PER_LINUX32)
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 emacs_cv_personality_linux32=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 emacs_cv_personality_linux32=no
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5840 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5841
5842 if test $emacs_cv_personality_linux32 = yes; then
5843
5844 cat >>confdefs.h <<\_ACEOF
5845 #define HAVE_PERSONALITY_LINUX32 1
5846 _ACEOF
5847
5848 fi
5849
5850
5851 for ac_header in term.h
5852 do
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <$ac_header>
5866 _ACEOF
5867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } >/dev/null; then
5875 if test -s conftest.err; then
5876 ac_cpp_err=$ac_c_preproc_warn_flag
5877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5878 else
5879 ac_cpp_err=
5880 fi
5881 else
5882 ac_cpp_err=yes
5883 fi
5884 if test -z "$ac_cpp_err"; then
5885 eval "$as_ac_Header=yes"
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 eval "$as_ac_Header=no"
5891 fi
5892 rm -f conftest.err conftest.$ac_ext
5893 fi
5894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5897 cat >>confdefs.h <<_ACEOF
5898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5899 _ACEOF
5900
5901 fi
5902
5903 done
5904
5905 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5906 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5907 if test "${ac_cv_header_stdc+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <stdlib.h>
5917 #include <stdarg.h>
5918 #include <string.h>
5919 #include <float.h>
5920
5921 int
5922 main ()
5923 {
5924
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_header_stdc=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_header_stdc=no
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958
5959 if test $ac_cv_header_stdc = yes; then
5960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <string.h>
5968
5969 _ACEOF
5970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971 $EGREP "memchr" >/dev/null 2>&1; then
5972 :
5973 else
5974 ac_cv_header_stdc=no
5975 fi
5976 rm -f conftest*
5977
5978 fi
5979
5980 if test $ac_cv_header_stdc = yes; then
5981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <stdlib.h>
5989
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "free" >/dev/null 2>&1; then
5993 :
5994 else
5995 ac_cv_header_stdc=no
5996 fi
5997 rm -f conftest*
5998
5999 fi
6000
6001 if test $ac_cv_header_stdc = yes; then
6002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6003 if test "$cross_compiling" = yes; then
6004 :
6005 else
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <ctype.h>
6013 #if ((' ' & 0x0FF) == 0x020)
6014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6016 #else
6017 # define ISLOWER(c) \
6018 (('a' <= (c) && (c) <= 'i') \
6019 || ('j' <= (c) && (c) <= 'r') \
6020 || ('s' <= (c) && (c) <= 'z'))
6021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6022 #endif
6023
6024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6025 int
6026 main ()
6027 {
6028 int i;
6029 for (i = 0; i < 256; i++)
6030 if (XOR (islower (i), ISLOWER (i))
6031 || toupper (i) != TOUPPER (i))
6032 exit(2);
6033 exit (0);
6034 }
6035 _ACEOF
6036 rm -f conftest$ac_exeext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6038 (eval $ac_link) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 :
6048 else
6049 echo "$as_me: program exited with status $ac_status" >&5
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 ( exit $ac_status )
6054 ac_cv_header_stdc=no
6055 fi
6056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 fi
6059 fi
6060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6062 if test $ac_cv_header_stdc = yes; then
6063
6064 cat >>confdefs.h <<\_ACEOF
6065 #define STDC_HEADERS 1
6066 _ACEOF
6067
6068 fi
6069
6070 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6071 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6072 if test "${ac_cv_header_time+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <sys/types.h>
6082 #include <sys/time.h>
6083 #include <time.h>
6084
6085 int
6086 main ()
6087 {
6088 if ((struct tm *) 0)
6089 return 0;
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest.$ac_objext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_cv_header_time=yes
6116 else
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_cv_header_time=no
6121 fi
6122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6125 echo "${ECHO_T}$ac_cv_header_time" >&6
6126 if test $ac_cv_header_time = yes; then
6127
6128 cat >>confdefs.h <<\_ACEOF
6129 #define TIME_WITH_SYS_TIME 1
6130 _ACEOF
6131
6132 fi
6133
6134 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6135 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6136 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 $ac_includes_default
6146 int
6147 main ()
6148 {
6149 #ifndef sys_siglist
6150 char *p = (char *) sys_siglist;
6151 #endif
6152
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 (eval $ac_try) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_have_decl_sys_siglist=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ac_cv_have_decl_sys_siglist=no
6184 fi
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6188 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6189 if test $ac_cv_have_decl_sys_siglist = yes; then
6190
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_DECL_SYS_SIGLIST 1
6193 _ACEOF
6194
6195
6196 else
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_DECL_SYS_SIGLIST 0
6199 _ACEOF
6200
6201
6202 fi
6203
6204
6205 if test $ac_cv_have_decl_sys_siglist != yes; then
6206 # For Tru64, at least:
6207 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6208 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6209 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 int
6220 main ()
6221 {
6222 #ifndef __sys_siglist
6223 char *p = (char *) __sys_siglist;
6224 #endif
6225
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_have_decl___sys_siglist=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_cv_have_decl___sys_siglist=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6261 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6262 if test $ac_cv_have_decl___sys_siglist = yes; then
6263
6264 cat >>confdefs.h <<_ACEOF
6265 #define HAVE_DECL___SYS_SIGLIST 1
6266 _ACEOF
6267
6268
6269 else
6270 cat >>confdefs.h <<_ACEOF
6271 #define HAVE_DECL___SYS_SIGLIST 0
6272 _ACEOF
6273
6274
6275 fi
6276
6277
6278 if test $ac_cv_have_decl___sys_siglist = yes; then
6279
6280 cat >>confdefs.h <<\_ACEOF
6281 #define sys_siglist __sys_siglist
6282 _ACEOF
6283
6284 fi
6285 fi
6286 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6287 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6288 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/types.h>
6298 #include <sys/wait.h>
6299 #ifndef WEXITSTATUS
6300 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6301 #endif
6302 #ifndef WIFEXITED
6303 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6304 #endif
6305
6306 int
6307 main ()
6308 {
6309 int s;
6310 wait (&s);
6311 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6312 ;
6313 return 0;
6314 }
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_header_sys_wait_h=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ac_cv_header_sys_wait_h=no
6343 fi
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 fi
6346 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6348 if test $ac_cv_header_sys_wait_h = yes; then
6349
6350 cat >>confdefs.h <<\_ACEOF
6351 #define HAVE_SYS_WAIT_H 1
6352 _ACEOF
6353
6354 fi
6355
6356
6357 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6358 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6359 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #ifdef TIME_WITH_SYS_TIME
6369 #include <sys/time.h>
6370 #include <time.h>
6371 #else
6372 #ifdef HAVE_SYS_TIME_H
6373 #include <sys/time.h>
6374 #else
6375 #include <time.h>
6376 #endif
6377 #endif
6378 #ifdef HAVE_UTIME_H
6379 #include <utime.h>
6380 #endif
6381 int
6382 main ()
6383 {
6384 static struct utimbuf x; x.actime = x.modtime;
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 emacs_cv_struct_utimbuf=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 emacs_cv_struct_utimbuf=no
6416 fi
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6420 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6421 if test $emacs_cv_struct_utimbuf = yes; then
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_STRUCT_UTIMBUF 1
6425 _ACEOF
6426
6427 fi
6428
6429 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6431 if test "${ac_cv_type_signal+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <sys/types.h>
6441 #include <signal.h>
6442 #ifdef signal
6443 # undef signal
6444 #endif
6445 #ifdef __cplusplus
6446 extern "C" void (*signal (int, void (*)(int)))(int);
6447 #else
6448 void (*signal ()) ();
6449 #endif
6450
6451 int
6452 main ()
6453 {
6454 int i;
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_type_signal=void
6481 else
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 ac_cv_type_signal=int
6486 fi
6487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6490 echo "${ECHO_T}$ac_cv_type_signal" >&6
6491
6492 cat >>confdefs.h <<_ACEOF
6493 #define RETSIGTYPE $ac_cv_type_signal
6494 _ACEOF
6495
6496
6497
6498 echo "$as_me:$LINENO: checking for speed_t" >&5
6499 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6500 if test "${emacs_cv_speed_t+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <termios.h>
6510 int
6511 main ()
6512 {
6513 speed_t x = 1;
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 emacs_cv_speed_t=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 emacs_cv_speed_t=no
6545 fi
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547 fi
6548 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6549 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6550 if test $emacs_cv_speed_t = yes; then
6551
6552 cat >>confdefs.h <<\_ACEOF
6553 #define HAVE_SPEED_T 1
6554 _ACEOF
6555
6556 fi
6557
6558 echo "$as_me:$LINENO: checking for struct timeval" >&5
6559 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6560 if test "${emacs_cv_struct_timeval+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 #ifdef TIME_WITH_SYS_TIME
6570 #include <sys/time.h>
6571 #include <time.h>
6572 #else
6573 #ifdef HAVE_SYS_TIME_H
6574 #include <sys/time.h>
6575 #else
6576 #include <time.h>
6577 #endif
6578 #endif
6579 int
6580 main ()
6581 {
6582 static struct timeval x; x.tv_sec = x.tv_usec;
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 emacs_cv_struct_timeval=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 emacs_cv_struct_timeval=no
6614 fi
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6618 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6619 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_TIMEVAL 1
6624 _ACEOF
6625
6626 fi
6627
6628 echo "$as_me:$LINENO: checking for struct exception" >&5
6629 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6630 if test "${emacs_cv_struct_exception+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <math.h>
6640 int
6641 main ()
6642 {
6643 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 emacs_cv_struct_exception=yes
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 emacs_cv_struct_exception=no
6675 fi
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6679 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6680 HAVE_EXCEPTION=$emacs_cv_struct_exception
6681 if test $emacs_cv_struct_exception != yes; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define NO_MATHERR 1
6685 _ACEOF
6686
6687 fi
6688
6689
6690 for ac_header in sys/socket.h
6691 do
6692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694 echo "$as_me:$LINENO: checking for $ac_header" >&5
6695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 fi
6699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6701 else
6702 # Is the header compilable?
6703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6712 #include <$ac_header>
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_header_compiler=yes
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 ac_header_compiler=no
6741 fi
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6744 echo "${ECHO_T}$ac_header_compiler" >&6
6745
6746 # Is the header present?
6747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <$ac_header>
6756 _ACEOF
6757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null; then
6765 if test -s conftest.err; then
6766 ac_cpp_err=$ac_c_preproc_warn_flag
6767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6768 else
6769 ac_cpp_err=
6770 fi
6771 else
6772 ac_cpp_err=yes
6773 fi
6774 if test -z "$ac_cpp_err"; then
6775 ac_header_preproc=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ac_header_preproc=no
6781 fi
6782 rm -f conftest.err conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6784 echo "${ECHO_T}$ac_header_preproc" >&6
6785
6786 # So? What about this header?
6787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6788 yes:no: )
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6793 ac_header_preproc=yes
6794 ;;
6795 no:yes:* )
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6808 (
6809 cat <<\_ASBOX
6810 ## ------------------------------------------ ##
6811 ## Report this to the AC_PACKAGE_NAME lists. ##
6812 ## ------------------------------------------ ##
6813 _ASBOX
6814 ) |
6815 sed "s/^/$as_me: WARNING: /" >&2
6816 ;;
6817 esac
6818 echo "$as_me:$LINENO: checking for $ac_header" >&5
6819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 eval "$as_ac_Header=\$ac_header_preproc"
6824 fi
6825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6827
6828 fi
6829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6832 _ACEOF
6833
6834 fi
6835
6836 done
6837
6838
6839 for ac_header in net/if.h
6840 do
6841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6842 echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 $ac_includes_default
6854 #if HAVE_SYS_SOCKET_H
6855 #include <sys/socket.h>
6856 #endif
6857
6858 #include <$ac_header>
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 eval "$as_ac_Header=yes"
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 eval "$as_ac_Header=no"
6887 fi
6888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889 fi
6890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6893 cat >>confdefs.h <<_ACEOF
6894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 _ACEOF
6896
6897 fi
6898
6899 done
6900
6901
6902 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6903 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6904 if test "${ac_cv_struct_tm+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 #include <sys/types.h>
6914 #include <time.h>
6915
6916 int
6917 main ()
6918 {
6919 struct tm *tp; tp->tm_sec;
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; } &&
6939 { ac_try='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_struct_tm=time.h
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 ac_cv_struct_tm=sys/time.h
6951 fi
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6953 fi
6954 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6955 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6956 if test $ac_cv_struct_tm = sys/time.h; then
6957
6958 cat >>confdefs.h <<\_ACEOF
6959 #define TM_IN_SYS_TIME 1
6960 _ACEOF
6961
6962 fi
6963
6964 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6965 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6966 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <$ac_cv_struct_tm>
6977
6978
6979 int
6980 main ()
6981 {
6982 static struct tm ac_aggr;
6983 if (ac_aggr.tm_zone)
6984 return 0;
6985 ;
6986 return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_cv_member_struct_tm_tm_zone=yes
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #include <sys/types.h>
7022 #include <$ac_cv_struct_tm>
7023
7024
7025 int
7026 main ()
7027 {
7028 static struct tm ac_aggr;
7029 if (sizeof ac_aggr.tm_zone)
7030 return 0;
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; } &&
7050 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7056 ac_cv_member_struct_tm_tm_zone=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 ac_cv_member_struct_tm_tm_zone=no
7062 fi
7063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7068 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7069 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7070
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_STRUCT_TM_TM_ZONE 1
7073 _ACEOF
7074
7075
7076 fi
7077
7078 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_TM_ZONE 1
7082 _ACEOF
7083
7084 else
7085 echo "$as_me:$LINENO: checking for tzname" >&5
7086 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7087 if test "${ac_cv_var_tzname+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <time.h>
7097 #ifndef tzname /* For SGI. */
7098 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7099 #endif
7100
7101 int
7102 main ()
7103 {
7104 atoi(*tzname);
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_cv_var_tzname=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_cv_var_tzname=no
7136 fi
7137 rm -f conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 fi
7140 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7141 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7142 if test $ac_cv_var_tzname = yes; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_TZNAME 1
7146 _ACEOF
7147
7148 fi
7149 fi
7150
7151 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7152 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7153 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <time.h>
7163
7164 int
7165 main ()
7166 {
7167 static struct tm ac_aggr;
7168 if (ac_aggr.tm_gmtoff)
7169 return 0;
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7176 (eval $ac_compile) 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_member_struct_tm_tm_gmtoff=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <time.h>
7207
7208 int
7209 main ()
7210 {
7211 static struct tm ac_aggr;
7212 if (sizeof ac_aggr.tm_gmtoff)
7213 return 0;
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; } &&
7233 { ac_try='test -s conftest.$ac_objext'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 ac_cv_member_struct_tm_tm_gmtoff=yes
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_cv_member_struct_tm_tm_gmtoff=no
7245 fi
7246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7251 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7253
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_TM_GMTOFF 1
7256 _ACEOF
7257
7258 fi
7259
7260 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7261 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7272 #if HAVE_SYS_SOCKET_H
7273 #include <sys/socket.h>
7274 #endif
7275 #if HAVE_NET_IF_H
7276 #include <net/if.h>
7277 #endif
7278
7279 int
7280 main ()
7281 {
7282 static struct ifreq ac_aggr;
7283 if (ac_aggr.ifr_flags)
7284 return 0;
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7304 { ac_try='test -s conftest.$ac_objext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_member_struct_ifreq_ifr_flags=yes
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7322 #if HAVE_SYS_SOCKET_H
7323 #include <sys/socket.h>
7324 #endif
7325 #if HAVE_NET_IF_H
7326 #include <net/if.h>
7327 #endif
7328
7329 int
7330 main ()
7331 {
7332 static struct ifreq ac_aggr;
7333 if (sizeof ac_aggr.ifr_flags)
7334 return 0;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_member_struct_ifreq_ifr_flags=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_cv_member_struct_ifreq_ifr_flags=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 fi
7371 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7372 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7373 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7374
7375 cat >>confdefs.h <<_ACEOF
7376 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7377 _ACEOF
7378
7379
7380 fi
7381 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7382 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7383 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #if HAVE_SYS_SOCKET_H
7394 #include <sys/socket.h>
7395 #endif
7396 #if HAVE_NET_IF_H
7397 #include <net/if.h>
7398 #endif
7399
7400 int
7401 main ()
7402 {
7403 static struct ifreq ac_aggr;
7404 if (ac_aggr.ifr_hwaddr)
7405 return 0;
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 #if HAVE_SYS_SOCKET_H
7444 #include <sys/socket.h>
7445 #endif
7446 #if HAVE_NET_IF_H
7447 #include <net/if.h>
7448 #endif
7449
7450 int
7451 main ()
7452 {
7453 static struct ifreq ac_aggr;
7454 if (sizeof ac_aggr.ifr_hwaddr)
7455 return 0;
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7487 fi
7488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7489 fi
7490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7491 fi
7492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7494 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7498 _ACEOF
7499
7500
7501 fi
7502 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7503 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7504 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #if HAVE_SYS_SOCKET_H
7515 #include <sys/socket.h>
7516 #endif
7517 #if HAVE_NET_IF_H
7518 #include <net/if.h>
7519 #endif
7520
7521 int
7522 main ()
7523 {
7524 static struct ifreq ac_aggr;
7525 if (ac_aggr.ifr_netmask)
7526 return 0;
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_member_struct_ifreq_ifr_netmask=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 #if HAVE_SYS_SOCKET_H
7565 #include <sys/socket.h>
7566 #endif
7567 #if HAVE_NET_IF_H
7568 #include <net/if.h>
7569 #endif
7570
7571 int
7572 main ()
7573 {
7574 static struct ifreq ac_aggr;
7575 if (sizeof ac_aggr.ifr_netmask)
7576 return 0;
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583 (eval $ac_compile) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_member_struct_ifreq_ifr_netmask=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 ac_cv_member_struct_ifreq_ifr_netmask=no
7608 fi
7609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7610 fi
7611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7612 fi
7613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7614 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7615 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7616
7617 cat >>confdefs.h <<_ACEOF
7618 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7619 _ACEOF
7620
7621
7622 fi
7623 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7624 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7625 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 #if HAVE_SYS_SOCKET_H
7636 #include <sys/socket.h>
7637 #endif
7638 #if HAVE_NET_IF_H
7639 #include <net/if.h>
7640 #endif
7641
7642 int
7643 main ()
7644 {
7645 static struct ifreq ac_aggr;
7646 if (ac_aggr.ifr_broadaddr)
7647 return 0;
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 #if HAVE_SYS_SOCKET_H
7686 #include <sys/socket.h>
7687 #endif
7688 #if HAVE_NET_IF_H
7689 #include <net/if.h>
7690 #endif
7691
7692 int
7693 main ()
7694 {
7695 static struct ifreq ac_aggr;
7696 if (sizeof ac_aggr.ifr_broadaddr)
7697 return 0;
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7729 fi
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7735 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7736 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7737
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7740 _ACEOF
7741
7742
7743 fi
7744 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7745 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7746 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #if HAVE_SYS_SOCKET_H
7757 #include <sys/socket.h>
7758 #endif
7759 #if HAVE_NET_IF_H
7760 #include <net/if.h>
7761 #endif
7762
7763 int
7764 main ()
7765 {
7766 static struct ifreq ac_aggr;
7767 if (ac_aggr.ifr_addr)
7768 return 0;
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7775 (eval $ac_compile) 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_member_struct_ifreq_ifr_addr=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 #if HAVE_SYS_SOCKET_H
7807 #include <sys/socket.h>
7808 #endif
7809 #if HAVE_NET_IF_H
7810 #include <net/if.h>
7811 #endif
7812
7813 int
7814 main ()
7815 {
7816 static struct ifreq ac_aggr;
7817 if (sizeof ac_aggr.ifr_addr)
7818 return 0;
7819 ;
7820 return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_member_struct_ifreq_ifr_addr=yes
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_member_struct_ifreq_ifr_addr=no
7850 fi
7851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 fi
7855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7856 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7857 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7858
7859 cat >>confdefs.h <<_ACEOF
7860 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7861 _ACEOF
7862
7863
7864 fi
7865
7866
7867
7868 echo "$as_me:$LINENO: checking for function prototypes" >&5
7869 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7870 if test "$ac_cv_prog_cc_stdc" != no; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7873
7874 cat >>confdefs.h <<\_ACEOF
7875 #define PROTOTYPES 1
7876 _ACEOF
7877
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define __PROTOTYPES 1
7881 _ACEOF
7882
7883 else
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 fi
7887
7888 echo "$as_me:$LINENO: checking for working volatile" >&5
7889 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7890 if test "${ac_cv_c_volatile+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899
7900 int
7901 main ()
7902 {
7903
7904 volatile int x;
7905 int * volatile y;
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_volatile=yes
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 ac_cv_c_volatile=no
7937 fi
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7941 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7942 if test $ac_cv_c_volatile = no; then
7943
7944 cat >>confdefs.h <<\_ACEOF
7945 #define volatile
7946 _ACEOF
7947
7948 fi
7949
7950 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7952 if test "${ac_cv_c_const+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961
7962 int
7963 main ()
7964 {
7965 /* FIXME: Include the comments suggested by Paul. */
7966 #ifndef __cplusplus
7967 /* Ultrix mips cc rejects this. */
7968 typedef int charset[2];
7969 const charset x;
7970 /* SunOS 4.1.1 cc rejects this. */
7971 char const *const *ccp;
7972 char **p;
7973 /* NEC SVR4.0.2 mips cc rejects this. */
7974 struct point {int x, y;};
7975 static struct point const zero = {0,0};
7976 /* AIX XL C 1.02.0.0 rejects this.
7977 It does not let you subtract one const X* pointer from another in
7978 an arm of an if-expression whose if-part is not a constant
7979 expression */
7980 const char *g = "string";
7981 ccp = &g + (g ? g-g : 0);
7982 /* HPUX 7.0 cc rejects these. */
7983 ++ccp;
7984 p = (char**) ccp;
7985 ccp = (char const *const *) p;
7986 { /* SCO 3.2v4 cc rejects this. */
7987 char *t;
7988 char const *s = 0 ? (char *) 0 : (char const *) 0;
7989
7990 *t++ = 0;
7991 }
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7993 int x[] = {25, 17};
7994 const int *foo = &x[0];
7995 ++foo;
7996 }
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
7999 iptr p = 0;
8000 ++p;
8001 }
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8006 }
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008 const int foo = 10;
8009 }
8010 #endif
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_c_const=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_cv_c_const=no
8043 fi
8044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8047 echo "${ECHO_T}$ac_cv_c_const" >&6
8048 if test $ac_cv_c_const = no; then
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define const
8052 _ACEOF
8053
8054 fi
8055
8056 echo "$as_me:$LINENO: checking for void * support" >&5
8057 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8058 if test "${emacs_cv_void_star+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067
8068 int
8069 main ()
8070 {
8071 void * foo;
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 emacs_cv_void_star=yes
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 emacs_cv_void_star=no
8103 fi
8104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8105 fi
8106 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8107 echo "${ECHO_T}$emacs_cv_void_star" >&6
8108 if test $emacs_cv_void_star = yes; then
8109 cat >>confdefs.h <<\_ACEOF
8110 #define POINTER_TYPE void
8111 _ACEOF
8112
8113 else
8114 cat >>confdefs.h <<\_ACEOF
8115 #define POINTER_TYPE char
8116 _ACEOF
8117
8118 fi
8119
8120
8121
8122
8123
8124 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8125 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8126 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8127 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 cat >conftest.make <<\_ACEOF
8131 all:
8132 @echo 'ac_maketemp="$(MAKE)"'
8133 _ACEOF
8134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8135 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8136 if test -n "$ac_maketemp"; then
8137 eval ac_cv_prog_make_${ac_make}_set=yes
8138 else
8139 eval ac_cv_prog_make_${ac_make}_set=no
8140 fi
8141 rm -f conftest.make
8142 fi
8143 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8146 SET_MAKE=
8147 else
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150 SET_MAKE="MAKE=${MAKE-make}"
8151 fi
8152
8153
8154 echo "$as_me:$LINENO: checking for long file names" >&5
8155 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8156 if test "${ac_cv_sys_long_file_names+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159 ac_cv_sys_long_file_names=yes
8160 # Test for long file names in all the places we know might matter:
8161 # . the current directory, where building will happen
8162 # $prefix/lib where we will be installing things
8163 # $exec_prefix/lib likewise
8164 # eval it to expand exec_prefix.
8165 # $TMPDIR if set, where it might want to write temporary files
8166 # if $TMPDIR is not set:
8167 # /tmp where it might want to write temporary files
8168 # /var/tmp likewise
8169 # /usr/tmp likewise
8170 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8171 ac_tmpdirs=$TMPDIR
8172 else
8173 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8174 fi
8175 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8176 test -d $ac_dir || continue
8177 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8178 ac_xdir=$ac_dir/cf$$
8179 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8180 ac_tf1=$ac_xdir/conftest9012345
8181 ac_tf2=$ac_xdir/conftest9012346
8182 (echo 1 >$ac_tf1) 2>/dev/null
8183 (echo 2 >$ac_tf2) 2>/dev/null
8184 ac_val=`cat $ac_tf1 2>/dev/null`
8185 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8186 ac_cv_sys_long_file_names=no
8187 rm -rf $ac_xdir 2>/dev/null
8188 break
8189 fi
8190 rm -rf $ac_xdir 2>/dev/null
8191 done
8192 fi
8193 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8194 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8195 if test $ac_cv_sys_long_file_names = yes; then
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LONG_FILE_NAMES 1
8199 _ACEOF
8200
8201 fi
8202
8203
8204 #### Choose a window system.
8205
8206 echo "$as_me:$LINENO: checking for X" >&5
8207 echo $ECHO_N "checking for X... $ECHO_C" >&6
8208
8209 ac_path_x_has_been_run=yes
8210
8211 # Check whether --with-x or --without-x was given.
8212 if test "${with_x+set}" = set; then
8213 withval="$with_x"
8214
8215 fi;
8216 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8217 if test "x$with_x" = xno; then
8218 # The user explicitly disabled X.
8219 have_x=disabled
8220 else
8221 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8222 # Both variables are already set.
8223 have_x=yes
8224 else
8225 if test "${ac_cv_have_x+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 # One or both of the vars are not set, and there is no cached value.
8229 ac_x_includes=no ac_x_libraries=no
8230 rm -fr conftest.dir
8231 if mkdir conftest.dir; then
8232 cd conftest.dir
8233 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8234 cat >Imakefile <<'_ACEOF'
8235 acfindx:
8236 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8237 _ACEOF
8238 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8240 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8242 for ac_extension in a so sl; do
8243 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8244 test -f $ac_im_libdir/libX11.$ac_extension; then
8245 ac_im_usrlibdir=$ac_im_libdir; break
8246 fi
8247 done
8248 # Screen out bogus values from the imake configuration. They are
8249 # bogus both because they are the default anyway, and because
8250 # using them would break gcc on systems where it needs fixed includes.
8251 case $ac_im_incroot in
8252 /usr/include) ;;
8253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8254 esac
8255 case $ac_im_usrlibdir in
8256 /usr/lib | /lib) ;;
8257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8258 esac
8259 fi
8260 cd ..
8261 rm -fr conftest.dir
8262 fi
8263
8264 # Standard set of common directories for X headers.
8265 # Check X11 before X11Rn because it is often a symlink to the current release.
8266 ac_x_header_dirs='
8267 /usr/X11/include
8268 /usr/X11R6/include
8269 /usr/X11R5/include
8270 /usr/X11R4/include
8271
8272 /usr/include/X11
8273 /usr/include/X11R6
8274 /usr/include/X11R5
8275 /usr/include/X11R4
8276
8277 /usr/local/X11/include
8278 /usr/local/X11R6/include
8279 /usr/local/X11R5/include
8280 /usr/local/X11R4/include
8281
8282 /usr/local/include/X11
8283 /usr/local/include/X11R6
8284 /usr/local/include/X11R5
8285 /usr/local/include/X11R4
8286
8287 /usr/X386/include
8288 /usr/x386/include
8289 /usr/XFree86/include/X11
8290
8291 /usr/include
8292 /usr/local/include
8293 /usr/unsupported/include
8294 /usr/athena/include
8295 /usr/local/x11r5/include
8296 /usr/lpp/Xamples/include
8297
8298 /usr/openwin/include
8299 /usr/openwin/share/include'
8300
8301 if test "$ac_x_includes" = no; then
8302 # Guess where to find include files, by looking for a specified header file.
8303 # First, try using that file with no special directory specified.
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <X11/Xlib.h>
8311 _ACEOF
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323 else
8324 ac_cpp_err=
8325 fi
8326 else
8327 ac_cpp_err=yes
8328 fi
8329 if test -z "$ac_cpp_err"; then
8330 # We can compile using X headers with no special include directory.
8331 ac_x_includes=
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 for ac_dir in $ac_x_header_dirs; do
8337 if test -r "$ac_dir/X11/Xlib.h"; then
8338 ac_x_includes=$ac_dir
8339 break
8340 fi
8341 done
8342 fi
8343 rm -f conftest.err conftest.$ac_ext
8344 fi # $ac_x_includes = no
8345
8346 if test "$ac_x_libraries" = no; then
8347 # Check for the libraries.
8348 # See if we find them without any special options.
8349 # Don't add to $LIBS permanently.
8350 ac_save_LIBS=$LIBS
8351 LIBS="-lX11 $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <X11/Xlib.h>
8359 int
8360 main ()
8361 {
8362 XrmInitialize ()
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 LIBS=$ac_save_LIBS
8389 # We can link X programs with no special library path.
8390 ac_x_libraries=
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 LIBS=$ac_save_LIBS
8396 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8397 do
8398 # Don't even attempt the hair of trying to link an X program!
8399 for ac_extension in a so sl; do
8400 if test -r $ac_dir/libX11.$ac_extension; then
8401 ac_x_libraries=$ac_dir
8402 break 2
8403 fi
8404 done
8405 done
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 fi # $ac_x_libraries = no
8410
8411 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8412 # Didn't find X anywhere. Cache the known absence of X.
8413 ac_cv_have_x="have_x=no"
8414 else
8415 # Record where we found X for the cache.
8416 ac_cv_have_x="have_x=yes \
8417 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8418 fi
8419 fi
8420
8421 fi
8422 eval "$ac_cv_have_x"
8423 fi # $with_x != no
8424
8425 if test "$have_x" != yes; then
8426 echo "$as_me:$LINENO: result: $have_x" >&5
8427 echo "${ECHO_T}$have_x" >&6
8428 no_x=yes
8429 else
8430 # If each of the values was on the command line, it overrides each guess.
8431 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8432 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8433 # Update the cache value to reflect the command line values.
8434 ac_cv_have_x="have_x=yes \
8435 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8436 # It might be that x_includes is empty (headers are found in the
8437 # standard search path. Then output the corresponding message
8438 ac_out_x_includes=$x_includes
8439 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8440 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8441 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8442 fi
8443
8444 if test "$no_x" = yes; then
8445 window_system=none
8446 else
8447 window_system=x11
8448 fi
8449
8450 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8451 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8452 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8453 x_default_search_path=""
8454 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8455 x_search_path="\
8456 ${x_library}/X11/%L/%T/%N%C%S:\
8457 ${x_library}/X11/%l/%T/%N%C%S:\
8458 ${x_library}/X11/%T/%N%C%S:\
8459 ${x_library}/X11/%L/%T/%N%S:\
8460 ${x_library}/X11/%l/%T/%N%S:\
8461 ${x_library}/X11/%T/%N%S"
8462 if test x"${x_default_search_path}" = x; then
8463 x_default_search_path=${x_search_path}
8464 else
8465 x_default_search_path="${x_search_path}:${x_default_search_path}"
8466 fi
8467 done
8468 fi
8469 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8470 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8471 fi
8472
8473 if test x"${x_includes}" = x; then
8474 bitmapdir=/usr/include/X11/bitmaps
8475 else
8476 # accumulate include directories that have X11 bitmap subdirectories
8477 bmd_acc="dummyval"
8478 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8479 if test -d "${bmd}/X11/bitmaps"; then
8480 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8481 fi
8482 if test -d "${bmd}/bitmaps"; then
8483 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8484 fi
8485 done
8486 if test ${bmd_acc} != "dummyval"; then
8487 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8488 fi
8489 fi
8490
8491 HAVE_CARBON=no
8492 if test "${with_carbon}" != no; then
8493 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8494 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8500 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8501 else
8502 # Is the header compilable?
8503 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8504 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #include <Carbon/Carbon.h>
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_header_compiler=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_header_compiler=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8544 echo "${ECHO_T}$ac_header_compiler" >&6
8545
8546 # Is the header present?
8547 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8548 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 #include <Carbon/Carbon.h>
8556 _ACEOF
8557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } >/dev/null; then
8565 if test -s conftest.err; then
8566 ac_cpp_err=$ac_c_preproc_warn_flag
8567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8568 else
8569 ac_cpp_err=
8570 fi
8571 else
8572 ac_cpp_err=yes
8573 fi
8574 if test -z "$ac_cpp_err"; then
8575 ac_header_preproc=yes
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 ac_header_preproc=no
8581 fi
8582 rm -f conftest.err conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584 echo "${ECHO_T}$ac_header_preproc" >&6
8585
8586 # So? What about this header?
8587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8588 yes:no: )
8589 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8590 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8592 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8593 ac_header_preproc=yes
8594 ;;
8595 no:yes:* )
8596 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8597 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8599 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8601 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8603 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8605 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8607 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8608 (
8609 cat <<\_ASBOX
8610 ## ------------------------------------------ ##
8611 ## Report this to the AC_PACKAGE_NAME lists. ##
8612 ## ------------------------------------------ ##
8613 _ASBOX
8614 ) |
8615 sed "s/^/$as_me: WARNING: /" >&2
8616 ;;
8617 esac
8618 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8619 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8620 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8626 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8627
8628 fi
8629 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8630 HAVE_CARBON=yes
8631 fi
8632
8633
8634 fi
8635 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8636 if test "${with_carbon+set}" != set \
8637 && test "${carbon_appdir_x+set}" != set; then
8638 HAVE_CARBON=no
8639 fi
8640 fi
8641 if test "${HAVE_CARBON}" = yes; then
8642 window_system=mac
8643 fi
8644
8645 case "${window_system}" in
8646 x11 )
8647 HAVE_X_WINDOWS=yes
8648 HAVE_X11=yes
8649 case "${with_x_toolkit}" in
8650 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8651 motif ) USE_X_TOOLKIT=MOTIF ;;
8652 gtk ) with_gtk=yes
8653 USE_X_TOOLKIT=none ;;
8654 no ) USE_X_TOOLKIT=none ;;
8655 * ) USE_X_TOOLKIT=maybe ;;
8656 esac
8657 ;;
8658 mac | none )
8659 HAVE_X_WINDOWS=no
8660 HAVE_X11=no
8661 USE_X_TOOLKIT=none
8662 ;;
8663 esac
8664
8665 ### If we're using X11, we should use the X menu package.
8666 HAVE_MENUS=no
8667 case ${HAVE_X11} in
8668 yes ) HAVE_MENUS=yes ;;
8669 esac
8670
8671 if test "${opsys}" = "hpux9"; then
8672 case "${x_libraries}" in
8673 *X11R4* )
8674 opsysfile="s/hpux9-x11r4.h"
8675 ;;
8676 esac
8677 fi
8678
8679 if test "${opsys}" = "hpux9shr"; then
8680 case "${x_libraries}" in
8681 *X11R4* )
8682 opsysfile="s/hpux9shxr4.h"
8683 ;;
8684 esac
8685 fi
8686
8687 ### Compute the unexec source name from the object name.
8688 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8689
8690 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8691 # Assume not, until told otherwise.
8692 GNU_MALLOC=yes
8693 doug_lea_malloc=yes
8694 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8695 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8696 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8707 #define malloc_get_state innocuous_malloc_get_state
8708
8709 /* System header to define __stub macros and hopefully few prototypes,
8710 which can conflict with char malloc_get_state (); below.
8711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8712 <limits.h> exists even on freestanding compilers. */
8713
8714 #ifdef __STDC__
8715 # include <limits.h>
8716 #else
8717 # include <assert.h>
8718 #endif
8719
8720 #undef malloc_get_state
8721
8722 /* Override any gcc2 internal prototype to avoid an error. */
8723 #ifdef __cplusplus
8724 extern "C"
8725 {
8726 #endif
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729 char malloc_get_state ();
8730 /* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */
8733 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8734 choke me
8735 #else
8736 char (*f) () = malloc_get_state;
8737 #endif
8738 #ifdef __cplusplus
8739 }
8740 #endif
8741
8742 int
8743 main ()
8744 {
8745 return f != malloc_get_state;
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_func_malloc_get_state=yes
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_func_malloc_get_state=no
8777 fi
8778 rm -f conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 fi
8781 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8782 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8783 if test $ac_cv_func_malloc_get_state = yes; then
8784 :
8785 else
8786 doug_lea_malloc=no
8787 fi
8788
8789 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8790 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8791 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8802 #define malloc_set_state innocuous_malloc_set_state
8803
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char malloc_set_state (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8808
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8814
8815 #undef malloc_set_state
8816
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 #ifdef __cplusplus
8819 extern "C"
8820 {
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char malloc_set_state ();
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8829 choke me
8830 #else
8831 char (*f) () = malloc_set_state;
8832 #endif
8833 #ifdef __cplusplus
8834 }
8835 #endif
8836
8837 int
8838 main ()
8839 {
8840 return f != malloc_set_state;
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 ac_cv_func_malloc_set_state=yes
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 ac_cv_func_malloc_set_state=no
8872 fi
8873 rm -f conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 fi
8876 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8877 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8878 if test $ac_cv_func_malloc_set_state = yes; then
8879 :
8880 else
8881 doug_lea_malloc=no
8882 fi
8883
8884 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8885 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8886 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 extern void (* __after_morecore_hook)();
8896 int
8897 main ()
8898 {
8899 __after_morecore_hook = 0
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 emacs_cv_var___after_morecore_hook=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930 emacs_cv_var___after_morecore_hook=no
8931 fi
8932 rm -f conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 fi
8935 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8936 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8937 if test $emacs_cv_var___after_morecore_hook = no; then
8938 doug_lea_malloc=no
8939 fi
8940 if test "${system_malloc}" = "yes"; then
8941 GNU_MALLOC=no
8942 GNU_MALLOC_reason="
8943 (The GNU allocators don't work with this system configuration.)"
8944 fi
8945 if test "$doug_lea_malloc" = "yes" ; then
8946 if test "$GNU_MALLOC" = yes ; then
8947 GNU_MALLOC_reason="
8948 (Using Doug Lea's new malloc from the GNU C Library.)"
8949 fi
8950
8951 cat >>confdefs.h <<\_ACEOF
8952 #define DOUG_LEA_MALLOC 1
8953 _ACEOF
8954
8955 fi
8956
8957 if test x"${REL_ALLOC}" = x; then
8958 REL_ALLOC=${GNU_MALLOC}
8959 fi
8960
8961
8962
8963
8964 for ac_header in stdlib.h unistd.h
8965 do
8966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo "$as_me:$LINENO: checking for $ac_header" >&5
8969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 fi
8973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8975 else
8976 # Is the header compilable?
8977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h. */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 #include <$ac_header>
8987 _ACEOF
8988 rm -f conftest.$ac_objext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990 (eval $ac_compile) 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_header_compiler=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_header_compiler=no
9015 fi
9016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018 echo "${ECHO_T}$ac_header_compiler" >&6
9019
9020 # Is the header present?
9021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <$ac_header>
9030 _ACEOF
9031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } >/dev/null; then
9039 if test -s conftest.err; then
9040 ac_cpp_err=$ac_c_preproc_warn_flag
9041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9042 else
9043 ac_cpp_err=
9044 fi
9045 else
9046 ac_cpp_err=yes
9047 fi
9048 if test -z "$ac_cpp_err"; then
9049 ac_header_preproc=yes
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_header_preproc=no
9055 fi
9056 rm -f conftest.err conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9058 echo "${ECHO_T}$ac_header_preproc" >&6
9059
9060 # So? What about this header?
9061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9062 yes:no: )
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9067 ac_header_preproc=yes
9068 ;;
9069 no:yes:* )
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9082 (
9083 cat <<\_ASBOX
9084 ## ------------------------------------------ ##
9085 ## Report this to the AC_PACKAGE_NAME lists. ##
9086 ## ------------------------------------------ ##
9087 _ASBOX
9088 ) |
9089 sed "s/^/$as_me: WARNING: /" >&2
9090 ;;
9091 esac
9092 echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 eval "$as_ac_Header=\$ac_header_preproc"
9098 fi
9099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9101
9102 fi
9103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9106 _ACEOF
9107
9108 fi
9109
9110 done
9111
9112
9113 for ac_func in getpagesize
9114 do
9115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9116 echo "$as_me:$LINENO: checking for $ac_func" >&5
9117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_var+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9129 #define $ac_func innocuous_$ac_func
9130
9131 /* System header to define __stub macros and hopefully few prototypes,
9132 which can conflict with char $ac_func (); below.
9133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9134 <limits.h> exists even on freestanding compilers. */
9135
9136 #ifdef __STDC__
9137 # include <limits.h>
9138 #else
9139 # include <assert.h>
9140 #endif
9141
9142 #undef $ac_func
9143
9144 /* Override any gcc2 internal prototype to avoid an error. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 {
9148 #endif
9149 /* We use char because int might match the return type of a gcc2
9150 builtin and then its argument prototype would still apply. */
9151 char $ac_func ();
9152 /* The GNU C library defines this for functions which it implements
9153 to always fail with ENOSYS. Some functions are actually named
9154 something starting with __ and the normal name is an alias. */
9155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9156 choke me
9157 #else
9158 char (*f) () = $ac_func;
9159 #endif
9160 #ifdef __cplusplus
9161 }
9162 #endif
9163
9164 int
9165 main ()
9166 {
9167 return f != $ac_func;
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 eval "$as_ac_var=yes"
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 eval "$as_ac_var=no"
9199 fi
9200 rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9205 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9208 _ACEOF
9209
9210 fi
9211 done
9212
9213 echo "$as_me:$LINENO: checking for working mmap" >&5
9214 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9215 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 if test "$cross_compiling" = yes; then
9219 ac_cv_func_mmap_fixed_mapped=no
9220 else
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 /* malloc might have been renamed as rpl_malloc. */
9229 #undef malloc
9230
9231 /* Thanks to Mike Haertel and Jim Avera for this test.
9232 Here is a matrix of mmap possibilities:
9233 mmap private not fixed
9234 mmap private fixed at somewhere currently unmapped
9235 mmap private fixed at somewhere already mapped
9236 mmap shared not fixed
9237 mmap shared fixed at somewhere currently unmapped
9238 mmap shared fixed at somewhere already mapped
9239 For private mappings, we should verify that changes cannot be read()
9240 back from the file, nor mmap's back from the file at a different
9241 address. (There have been systems where private was not correctly
9242 implemented like the infamous i386 svr4.0, and systems where the
9243 VM page cache was not coherent with the file system buffer cache
9244 like early versions of FreeBSD and possibly contemporary NetBSD.)
9245 For shared mappings, we should conversely verify that changes get
9246 propagated back to all the places they're supposed to be.
9247
9248 Grep wants private fixed already mapped.
9249 The main things grep needs to know about mmap are:
9250 * does it exist and is it safe to write into the mmap'd area
9251 * how to use it (BSD variants) */
9252
9253 #include <fcntl.h>
9254 #include <sys/mman.h>
9255
9256 #if !STDC_HEADERS && !HAVE_STDLIB_H
9257 char *malloc ();
9258 #endif
9259
9260 /* This mess was copied from the GNU getpagesize.h. */
9261 #if !HAVE_GETPAGESIZE
9262 /* Assume that all systems that can run configure have sys/param.h. */
9263 # if !HAVE_SYS_PARAM_H
9264 # define HAVE_SYS_PARAM_H 1
9265 # endif
9266
9267 # ifdef _SC_PAGESIZE
9268 # define getpagesize() sysconf(_SC_PAGESIZE)
9269 # else /* no _SC_PAGESIZE */
9270 # if HAVE_SYS_PARAM_H
9271 # include <sys/param.h>
9272 # ifdef EXEC_PAGESIZE
9273 # define getpagesize() EXEC_PAGESIZE
9274 # else /* no EXEC_PAGESIZE */
9275 # ifdef NBPG
9276 # define getpagesize() NBPG * CLSIZE
9277 # ifndef CLSIZE
9278 # define CLSIZE 1
9279 # endif /* no CLSIZE */
9280 # else /* no NBPG */
9281 # ifdef NBPC
9282 # define getpagesize() NBPC
9283 # else /* no NBPC */
9284 # ifdef PAGESIZE
9285 # define getpagesize() PAGESIZE
9286 # endif /* PAGESIZE */
9287 # endif /* no NBPC */
9288 # endif /* no NBPG */
9289 # endif /* no EXEC_PAGESIZE */
9290 # else /* no HAVE_SYS_PARAM_H */
9291 # define getpagesize() 8192 /* punt totally */
9292 # endif /* no HAVE_SYS_PARAM_H */
9293 # endif /* no _SC_PAGESIZE */
9294
9295 #endif /* no HAVE_GETPAGESIZE */
9296
9297 int
9298 main ()
9299 {
9300 char *data, *data2, *data3;
9301 int i, pagesize;
9302 int fd;
9303
9304 pagesize = getpagesize ();
9305
9306 /* First, make a file with some known garbage in it. */
9307 data = (char *) malloc (pagesize);
9308 if (!data)
9309 exit (1);
9310 for (i = 0; i < pagesize; ++i)
9311 *(data + i) = rand ();
9312 umask (0);
9313 fd = creat ("conftest.mmap", 0600);
9314 if (fd < 0)
9315 exit (1);
9316 if (write (fd, data, pagesize) != pagesize)
9317 exit (1);
9318 close (fd);
9319
9320 /* Next, try to mmap the file at a fixed address which already has
9321 something else allocated at it. If we can, also make sure that
9322 we see the same garbage. */
9323 fd = open ("conftest.mmap", O_RDWR);
9324 if (fd < 0)
9325 exit (1);
9326 data2 = (char *) malloc (2 * pagesize);
9327 if (!data2)
9328 exit (1);
9329 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9330 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9331 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9332 exit (1);
9333 for (i = 0; i < pagesize; ++i)
9334 if (*(data + i) != *(data2 + i))
9335 exit (1);
9336
9337 /* Finally, make sure that changes to the mapped area do not
9338 percolate back to the file as seen by read(). (This is a bug on
9339 some variants of i386 svr4.0.) */
9340 for (i = 0; i < pagesize; ++i)
9341 *(data2 + i) = *(data2 + i) + 1;
9342 data3 = (char *) malloc (pagesize);
9343 if (!data3)
9344 exit (1);
9345 if (read (fd, data3, pagesize) != pagesize)
9346 exit (1);
9347 for (i = 0; i < pagesize; ++i)
9348 if (*(data + i) != *(data3 + i))
9349 exit (1);
9350 close (fd);
9351 exit (0);
9352 }
9353 _ACEOF
9354 rm -f conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_func_mmap_fixed_mapped=yes
9366 else
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ( exit $ac_status )
9372 ac_cv_func_mmap_fixed_mapped=no
9373 fi
9374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9375 fi
9376 fi
9377 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9378 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9379 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_MMAP 1
9383 _ACEOF
9384
9385 fi
9386 rm -f conftest.mmap
9387
9388 if test $use_mmap_for_buffers = yes; then
9389 REL_ALLOC=no
9390 fi
9391
9392 LIBS="$libsrc_libs $LIBS"
9393
9394
9395 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9396 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9397 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 ac_check_lib_save_LIBS=$LIBS
9401 LIBS="-ldnet $LIBS"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408
9409 /* Override any gcc2 internal prototype to avoid an error. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9415 char dnet_ntoa ();
9416 int
9417 main ()
9418 {
9419 dnet_ntoa ();
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 ac_cv_lib_dnet_dnet_ntoa=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 ac_cv_lib_dnet_dnet_ntoa=no
9451 fi
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_lib_save_LIBS
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9457 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9458 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define HAVE_LIBDNET 1
9461 _ACEOF
9462
9463 LIBS="-ldnet $LIBS"
9464
9465 fi
9466
9467
9468 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9469 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9470 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 ac_check_lib_save_LIBS=$LIBS
9474 LIBS="-lXbsd $LIBS"
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481
9482
9483 int
9484 main ()
9485 {
9486 main ();
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_lib_Xbsd_main=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_lib_Xbsd_main=no
9518 fi
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9522 fi
9523 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9524 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9525 if test $ac_cv_lib_Xbsd_main = yes; then
9526 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9527 fi
9528
9529
9530
9531 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9532 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9533 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-lpthreads $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544
9545 /* Override any gcc2 internal prototype to avoid an error. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9551 char cma_open ();
9552 int
9553 main ()
9554 {
9555 cma_open ();
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_lib_pthreads_cma_open=yes
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 ac_cv_lib_pthreads_cma_open=no
9587 fi
9588 rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_lib_save_LIBS
9591 fi
9592 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9593 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9594 if test $ac_cv_lib_pthreads_cma_open = yes; then
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_LIBPTHREADS 1
9597 _ACEOF
9598
9599 LIBS="-lpthreads $LIBS"
9600
9601 fi
9602
9603
9604 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9605 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9606 if test -d /usr/X386/include; then
9607 HAVE_XFREE386=yes
9608 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9609 else
9610 HAVE_XFREE386=no
9611 fi
9612 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9613 echo "${ECHO_T}$HAVE_XFREE386" >&6
9614
9615
9616 case ${host_os} in
9617 aix*)
9618 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9619 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9620 if test "${gdb_cv_bigtoc+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623
9624 case $GCC in
9625 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9626 *) gdb_cv_bigtoc=-bbigtoc ;;
9627 esac
9628
9629 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636
9637 int
9638 main ()
9639 {
9640 int i;
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9666 :
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 gdb_cv_bigtoc=
9672 fi
9673 rm -f conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675
9676 fi
9677 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9678 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9679 ;;
9680 esac
9681
9682 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9683 # used for the tests that follow. We set them back to REAL_CFLAGS and
9684 # REAL_CPPFLAGS later on.
9685
9686 REAL_CPPFLAGS="$CPPFLAGS"
9687
9688 if test "${HAVE_X11}" = "yes"; then
9689 DEFS="$C_SWITCH_X_SITE $DEFS"
9690 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9691 LIBS="$LIBX $LIBS"
9692 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9693 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9694
9695 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9696 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9697 # but it's more convenient here to set LD_RUN_PATH
9698 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9699 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9700 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9701 export LD_RUN_PATH
9702 fi
9703
9704 if test "${opsys}" = "gnu-linux"; then
9705 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9706 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713
9714 int
9715 main ()
9716 {
9717 XOpenDisplay ("foo");
9718 ;
9719 return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 xlinux_first_failure=no
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 xlinux_first_failure=yes
9749 fi
9750 rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 if test "${xlinux_first_failure}" = "yes"; then
9753 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9754 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9755 OLD_CPPFLAGS="$CPPFLAGS"
9756 OLD_LIBS="$LIBS"
9757 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9758 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9759 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9760 LIBS="$LIBS -b i486-linuxaout"
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767
9768 int
9769 main ()
9770 {
9771 XOpenDisplay ("foo");
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 xlinux_second_failure=no
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 xlinux_second_failure=yes
9803 fi
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 if test "${xlinux_second_failure}" = "yes"; then
9807 # If we get the same failure with -b, there is no use adding -b.
9808 # So take it out. This plays safe.
9809 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9810 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9811 CPPFLAGS="$OLD_CPPFLAGS"
9812 LIBS="$OLD_LIBS"
9813 echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6
9815 else
9816 echo "$as_me:$LINENO: result: yes" >&5
9817 echo "${ECHO_T}yes" >&6
9818 fi
9819 else
9820 echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9822 fi
9823 fi
9824
9825 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9826 # header files included from there.
9827 echo "$as_me:$LINENO: checking for Xkb" >&5
9828 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <X11/Xlib.h>
9836 #include <X11/XKBlib.h>
9837 int
9838 main ()
9839 {
9840 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 emacs_xkb=yes
9867 else
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 emacs_xkb=no
9872 fi
9873 rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9876 echo "${ECHO_T}$emacs_xkb" >&6
9877 if test $emacs_xkb = yes; then
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_XKBGETKEYBOARD 1
9881 _ACEOF
9882
9883 fi
9884
9885
9886
9887
9888
9889 for ac_func in XrmSetDatabase XScreenResourceString \
9890 XScreenNumberOfScreen XSetWMProtocols
9891 do
9892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9893 echo "$as_me:$LINENO: checking for $ac_func" >&5
9894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9895 if eval "test \"\${$as_ac_var+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define $ac_func innocuous_$ac_func
9907
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char $ac_func (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9912
9913 #ifdef __STDC__
9914 # include <limits.h>
9915 #else
9916 # include <assert.h>
9917 #endif
9918
9919 #undef $ac_func
9920
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 {
9925 #endif
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9928 char $ac_func ();
9929 /* The GNU C library defines this for functions which it implements
9930 to always fail with ENOSYS. Some functions are actually named
9931 something starting with __ and the normal name is an alias. */
9932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9933 choke me
9934 #else
9935 char (*f) () = $ac_func;
9936 #endif
9937 #ifdef __cplusplus
9938 }
9939 #endif
9940
9941 int
9942 main ()
9943 {
9944 return f != $ac_func;
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 eval "$as_ac_var=yes"
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 eval "$as_ac_var=no"
9976 fi
9977 rm -f conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9982 if test `eval echo '${'$as_ac_var'}'` = yes; then
9983 cat >>confdefs.h <<_ACEOF
9984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9985 _ACEOF
9986
9987 fi
9988 done
9989
9990 fi
9991
9992 if test "${window_system}" = "x11"; then
9993 echo "$as_me:$LINENO: checking X11 version 6" >&5
9994 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9995 if test "${emacs_cv_x11_version_6+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 #include <X11/Xlib.h>
10005 int
10006 main ()
10007 {
10008 #if XlibSpecificationRelease < 6
10009 fail;
10010 #endif
10011
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 emacs_cv_x11_version_6=yes
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 emacs_cv_x11_version_6=no
10043 fi
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 fi
10047
10048 if test $emacs_cv_x11_version_6 = yes; then
10049 echo "$as_me:$LINENO: result: 6 or newer" >&5
10050 echo "${ECHO_T}6 or newer" >&6
10051
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_X11R6 1
10054 _ACEOF
10055
10056 else
10057 echo "$as_me:$LINENO: result: before 6" >&5
10058 echo "${ECHO_T}before 6" >&6
10059 fi
10060 fi
10061
10062 if test "${window_system}" = "x11"; then
10063 echo "$as_me:$LINENO: checking X11 version 5" >&5
10064 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10065 if test "${emacs_cv_x11_version_5+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <X11/Xlib.h>
10075 int
10076 main ()
10077 {
10078 #if XlibSpecificationRelease < 5
10079 fail;
10080 #endif
10081
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 emacs_cv_x11_version_5=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 emacs_cv_x11_version_5=no
10113 fi
10114 rm -f conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 fi
10117
10118 if test $emacs_cv_x11_version_5 = yes; then
10119 echo "$as_me:$LINENO: result: 5 or newer" >&5
10120 echo "${ECHO_T}5 or newer" >&6
10121 HAVE_X11R5=yes
10122
10123 cat >>confdefs.h <<\_ACEOF
10124 #define HAVE_X11R5 1
10125 _ACEOF
10126
10127 else
10128 HAVE_X11R5=no
10129 echo "$as_me:$LINENO: result: before 5" >&5
10130 echo "${ECHO_T}before 5" >&6
10131 fi
10132 fi
10133
10134
10135
10136 HAVE_GTK=no
10137 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10138 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10139 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10140 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10141 { (exit 1); exit 1; }; };
10142 fi
10143 GLIB_REQUIRED=2.4
10144 GTK_REQUIRED=2.4
10145 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10146
10147 if test "X${with_pkg_config_prog}" != X; then
10148 PKG_CONFIG="${with_pkg_config_prog}"
10149 fi
10150
10151 succeeded=no
10152
10153 if test -z "$PKG_CONFIG"; then
10154 # Extract the first word of "pkg-config", so it can be a program name with args.
10155 set dummy pkg-config; ac_word=$2
10156 echo "$as_me:$LINENO: checking for $ac_word" >&5
10157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 case $PKG_CONFIG in
10162 [\\/]* | ?:[\\/]*)
10163 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10164 ;;
10165 *)
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177 done
10178 done
10179
10180 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10181 ;;
10182 esac
10183 fi
10184 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10185
10186 if test -n "$PKG_CONFIG"; then
10187 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10188 echo "${ECHO_T}$PKG_CONFIG" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191 echo "${ECHO_T}no" >&6
10192 fi
10193
10194 fi
10195
10196 if test "$PKG_CONFIG" = "no" ; then
10197 echo "*** The pkg-config script could not be found. Make sure it is"
10198 echo "*** in your path, or give the full path to pkg-config with"
10199 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10200 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10201 else
10202 PKG_CONFIG_MIN_VERSION=0.9.0
10203 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10204 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10205 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10206
10207 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209 echo "${ECHO_T}yes" >&6
10210 succeeded=yes
10211
10212 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10213 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10214 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10215 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10216 echo "${ECHO_T}$GTK_CFLAGS" >&6
10217
10218 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10219 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10220 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10221 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10222 echo "${ECHO_T}$GTK_LIBS" >&6
10223 else
10224 GTK_CFLAGS=""
10225 GTK_LIBS=""
10226 ## If we have a custom action on failure, don't print errors, but
10227 ## do set a variable so people can do so.
10228 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10229 echo $GTK_PKG_ERRORS
10230 fi
10231
10232
10233
10234 else
10235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10237 fi
10238 fi
10239
10240 if test $succeeded = yes; then
10241 :
10242 else
10243 { { 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
10244 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;}
10245 { (exit 1); exit 1; }; }
10246 fi
10247
10248
10249
10250 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10251 CFLAGS="$CFLAGS $GTK_CFLAGS"
10252 LIBS="$GTK_LIBS $LIBS"
10253 HAVE_GTK=yes
10254
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_GTK 1
10257 _ACEOF
10258
10259 USE_X_TOOLKIT=none
10260
10261 if test "$with_toolkit_scroll_bars" != no; then
10262 with_toolkit_scroll_bars=yes
10263 fi
10264
10265 HAVE_GTK_MULTIDISPLAY=no
10266
10267 HAVE_GTK_FILE_SELECTION=no
10268
10269 for ac_func in gtk_file_selection_new
10270 do
10271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10285 #define $ac_func innocuous_$ac_func
10286
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char $ac_func (); below.
10289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290 <limits.h> exists even on freestanding compilers. */
10291
10292 #ifdef __STDC__
10293 # include <limits.h>
10294 #else
10295 # include <assert.h>
10296 #endif
10297
10298 #undef $ac_func
10299
10300 /* Override any gcc2 internal prototype to avoid an error. */
10301 #ifdef __cplusplus
10302 extern "C"
10303 {
10304 #endif
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307 char $ac_func ();
10308 /* The GNU C library defines this for functions which it implements
10309 to always fail with ENOSYS. Some functions are actually named
10310 something starting with __ and the normal name is an alias. */
10311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10312 choke me
10313 #else
10314 char (*f) () = $ac_func;
10315 #endif
10316 #ifdef __cplusplus
10317 }
10318 #endif
10319
10320 int
10321 main ()
10322 {
10323 return f != $ac_func;
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest$ac_exeext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 eval "$as_ac_var=yes"
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 eval "$as_ac_var=no"
10355 fi
10356 rm -f conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 fi
10359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10361 if test `eval echo '${'$as_ac_var'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10364 _ACEOF
10365 HAVE_GTK_FILE_SELECTION=yes
10366 fi
10367 done
10368
10369
10370 HAVE_GTK_FILE_CHOOSER=no
10371
10372 for ac_func in gtk_file_chooser_dialog_new
10373 do
10374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_var+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388 #define $ac_func innocuous_$ac_func
10389
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10394
10395 #ifdef __STDC__
10396 # include <limits.h>
10397 #else
10398 # include <assert.h>
10399 #endif
10400
10401 #undef $ac_func
10402
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 {
10407 #endif
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410 char $ac_func ();
10411 /* The GNU C library defines this for functions which it implements
10412 to always fail with ENOSYS. Some functions are actually named
10413 something starting with __ and the normal name is an alias. */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10415 choke me
10416 #else
10417 char (*f) () = $ac_func;
10418 #endif
10419 #ifdef __cplusplus
10420 }
10421 #endif
10422
10423 int
10424 main ()
10425 {
10426 return f != $ac_func;
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 eval "$as_ac_var=yes"
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 eval "$as_ac_var=no"
10458 fi
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10464 if test `eval echo '${'$as_ac_var'}'` = yes; then
10465 cat >>confdefs.h <<_ACEOF
10466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10467 _ACEOF
10468 HAVE_GTK_FILE_CHOOSER=yes
10469 fi
10470 done
10471
10472
10473 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10474 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10475
10476 cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_GTK_FILE_BOTH 1
10478 _ACEOF
10479
10480 fi
10481
10482 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10483 HAVE_GTK_AND_PTHREAD=no
10484
10485 for ac_header in pthread.h
10486 do
10487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10489 echo "$as_me:$LINENO: checking for $ac_header" >&5
10490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 fi
10494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10496 else
10497 # Is the header compilable?
10498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 #include <$ac_header>
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_header_compiler=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ac_header_compiler=no
10536 fi
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539 echo "${ECHO_T}$ac_header_compiler" >&6
10540
10541 # Is the header present?
10542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #include <$ac_header>
10551 _ACEOF
10552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev/null; then
10560 if test -s conftest.err; then
10561 ac_cpp_err=$ac_c_preproc_warn_flag
10562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10563 else
10564 ac_cpp_err=
10565 fi
10566 else
10567 ac_cpp_err=yes
10568 fi
10569 if test -z "$ac_cpp_err"; then
10570 ac_header_preproc=yes
10571 else
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_preproc=no
10576 fi
10577 rm -f conftest.err conftest.$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579 echo "${ECHO_T}$ac_header_preproc" >&6
10580
10581 # So? What about this header?
10582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 yes:no: )
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc=yes
10589 ;;
10590 no:yes:* )
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 (
10604 cat <<\_ASBOX
10605 ## ------------------------------------------ ##
10606 ## Report this to the AC_PACKAGE_NAME lists. ##
10607 ## ------------------------------------------ ##
10608 _ASBOX
10609 ) |
10610 sed "s/^/$as_me: WARNING: /" >&2
10611 ;;
10612 esac
10613 echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 eval "$as_ac_Header=\$ac_header_preproc"
10619 fi
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10622
10623 fi
10624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627 _ACEOF
10628
10629 fi
10630
10631 done
10632
10633 if test "$ac_cv_header_pthread_h"; then
10634 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10635 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10636 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-lpthread $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char pthread_self ();
10655 int
10656 main ()
10657 {
10658 pthread_self ();
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_pthread_pthread_self=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ac_cv_lib_pthread_pthread_self=no
10690 fi
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10697 if test $ac_cv_lib_pthread_pthread_self = yes; then
10698 HAVE_GTK_AND_PTHREAD=yes
10699 fi
10700
10701 fi
10702 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10703 GTK_LIBS="$GTK_LIBS -lpthread"
10704
10705 cat >>confdefs.h <<\_ACEOF
10706 #define HAVE_GTK_AND_PTHREAD 1
10707 _ACEOF
10708
10709 fi
10710 fi
10711 fi
10712
10713 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10714 if test x"${HAVE_X11R5}" = xyes; then
10715 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10716 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10717 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726
10727 #include <X11/Intrinsic.h>
10728 #include <X11/Xaw/Simple.h>
10729 int
10730 main ()
10731 {
10732
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10758 emacs_cv_x11_version_5_with_xaw=yes
10759 else
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 emacs_cv_x11_version_5_with_xaw=no
10764 fi
10765 rm -f conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext conftest.$ac_ext
10767 fi
10768
10769 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10770 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10771 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10772 USE_X_TOOLKIT=LUCID
10773 else
10774 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10775 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10776 USE_X_TOOLKIT=none
10777 fi
10778 else
10779 USE_X_TOOLKIT=none
10780 fi
10781 fi
10782
10783 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10784
10785 if test "${USE_X_TOOLKIT}" != "none"; then
10786 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10787 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10788 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <X11/Intrinsic.h>
10798 int
10799 main ()
10800 {
10801 #if XtSpecificationRelease < 6
10802 fail;
10803 #endif
10804
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 emacs_cv_x11_toolkit_version_6=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 emacs_cv_x11_toolkit_version_6=no
10836 fi
10837 rm -f conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 fi
10840
10841 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10842 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10843 echo "$as_me:$LINENO: result: 6 or newer" >&5
10844 echo "${ECHO_T}6 or newer" >&6
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_X11XTR6 1
10848 _ACEOF
10849
10850 else
10851 echo "$as_me:$LINENO: result: before 6" >&5
10852 echo "${ECHO_T}before 6" >&6
10853 fi
10854
10855 OLDLIBS="$LIBS"
10856 if test x$HAVE_X11XTR6 = xyes; then
10857 LIBS="-lXt -lSM -lICE $LIBS"
10858 else
10859 LIBS="-lXt $LIBS"
10860 fi
10861
10862 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10863 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10864 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867 ac_check_lib_save_LIBS=$LIBS
10868 LIBS="-lXmu $LIBS"
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875
10876 /* Override any gcc2 internal prototype to avoid an error. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882 char XmuConvertStandardSelection ();
10883 int
10884 main ()
10885 {
10886 XmuConvertStandardSelection ();
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10918 fi
10919 rm -f conftest.err conftest.$ac_objext \
10920 conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10922 fi
10923 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10924 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10925 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define HAVE_LIBXMU 1
10928 _ACEOF
10929
10930 LIBS="-lXmu $LIBS"
10931
10932 fi
10933
10934 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10935 fi
10936
10937 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10938 if test "${HAVE_X11}" = "yes"; then
10939 if test "${USE_X_TOOLKIT}" != "none"; then
10940
10941 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10942 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10943 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-lXext $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h. */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954
10955 /* Override any gcc2 internal prototype to avoid an error. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char XShapeQueryExtension ();
10962 int
10963 main ()
10964 {
10965 XShapeQueryExtension ();
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_lib_Xext_XShapeQueryExtension=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996 ac_cv_lib_Xext_XShapeQueryExtension=no
10997 fi
10998 rm -f conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11003 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11004 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_LIBXEXT 1
11007 _ACEOF
11008
11009 LIBS="-lXext $LIBS"
11010
11011 fi
11012
11013 fi
11014 fi
11015
11016 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11017 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11018 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11019 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <Xm/Xm.h>
11029 int
11030 main ()
11031 {
11032 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11033 int x = 5;
11034 #else
11035 Motif version prior to 2.1.
11036 #endif
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 emacs_cv_motif_version_2_1=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 emacs_cv_motif_version_2_1=no
11068 fi
11069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11070 fi
11071 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11072 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11073 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11074 if test $emacs_cv_motif_version_2_1 = yes; then
11075 HAVE_LIBXP=no
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_MOTIF_2_1 1
11079 _ACEOF
11080
11081 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11082 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11083 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 ac_check_lib_save_LIBS=$LIBS
11087 LIBS="-lXp $LIBS"
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 /* We use char because int might match the return type of a gcc2
11100 builtin and then its argument prototype would still apply. */
11101 char XpCreateContext ();
11102 int
11103 main ()
11104 {
11105 XpCreateContext ();
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 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_exeext'
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 ac_cv_lib_Xp_XpCreateContext=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_cv_lib_Xp_XpCreateContext=no
11137 fi
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11141 fi
11142 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11143 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11144 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11145 HAVE_LIBXP=yes
11146 fi
11147
11148 if test ${HAVE_LIBXP} = yes; then
11149
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_LIBXP 1
11152 _ACEOF
11153
11154 fi
11155 else
11156 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11157 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11158 if test "${emacs_cv_lesstif+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 # We put this in CFLAGS temporarily to precede other -I options
11162 # that might be in CFLAGS temporarily.
11163 # We put this in CPPFLAGS where it precedes the other -I options.
11164 OLD_CPPFLAGS=$CPPFLAGS
11165 OLD_CFLAGS=$CFLAGS
11166 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11167 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11175 int
11176 main ()
11177 {
11178 int x = 5;
11179 ;
11180 return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest.$ac_objext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 emacs_cv_lesstif=yes
11205 else
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 emacs_cv_lesstif=no
11210 fi
11211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11212 fi
11213 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11214 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11215 if test $emacs_cv_lesstif = yes; then
11216 # Make sure this -I option remains in CPPFLAGS after it is set
11217 # back to REAL_CPPFLAGS.
11218 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11219 # have those other -I options anyway. Ultimately, having this
11220 # directory ultimately in CPPFLAGS will be enough.
11221 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11222 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11223 else
11224 CFLAGS=$OLD_CFLAGS
11225 CPPFLAGS=$OLD_CPPFLAGS
11226 fi
11227 fi
11228 fi
11229
11230 ### Is -lXaw3d available?
11231 HAVE_XAW3D=no
11232 if test "${HAVE_X11}" = "yes"; then
11233 if test "${USE_X_TOOLKIT}" != "none"; then
11234 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11235 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11236 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <X11/Xaw3d/Scrollbar.h>
11246 _ACEOF
11247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev/null; then
11255 if test -s conftest.err; then
11256 ac_cpp_err=$ac_c_preproc_warn_flag
11257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11258 else
11259 ac_cpp_err=
11260 fi
11261 else
11262 ac_cpp_err=yes
11263 fi
11264 if test -z "$ac_cpp_err"; then
11265 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11271 fi
11272 rm -f conftest.err conftest.$ac_ext
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11275 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11276 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11277 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11278 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11279 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lXaw3d $LIBS"
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char XawScrollbarSetThumb ();
11298 int
11299 main ()
11300 {
11301 XawScrollbarSetThumb ();
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11328 else
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11333 fi
11334 rm -f conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_lib_save_LIBS
11337 fi
11338 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11339 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11340 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11341 HAVE_XAW3D=yes
11342 fi
11343
11344 fi
11345
11346
11347 if test "${HAVE_XAW3D}" = "yes"; then
11348
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_XAW3D 1
11351 _ACEOF
11352
11353 fi
11354 fi
11355 fi
11356
11357
11358
11359 USE_TOOLKIT_SCROLL_BARS=no
11360 if test "${with_toolkit_scroll_bars}" != "no"; then
11361 if test "${USE_X_TOOLKIT}" != "none"; then
11362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define USE_TOOLKIT_SCROLL_BARS 1
11365 _ACEOF
11366
11367 HAVE_XAW3D=no
11368 USE_TOOLKIT_SCROLL_BARS=yes
11369 elif test "${HAVE_XAW3D}" = "yes"; then
11370 cat >>confdefs.h <<\_ACEOF
11371 #define USE_TOOLKIT_SCROLL_BARS 1
11372 _ACEOF
11373
11374 USE_TOOLKIT_SCROLL_BARS=yes
11375 fi
11376 elif test "${HAVE_GTK}" = "yes"; then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define USE_TOOLKIT_SCROLL_BARS 1
11379 _ACEOF
11380
11381 USE_TOOLKIT_SCROLL_BARS=yes
11382 elif test "${HAVE_CARBON}" = "yes"; then
11383 cat >>confdefs.h <<\_ACEOF
11384 #define USE_TOOLKIT_SCROLL_BARS 1
11385 _ACEOF
11386
11387 USE_TOOLKIT_SCROLL_BARS=yes
11388 fi
11389 fi
11390
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397
11398 #include <X11/Xlib.h>
11399 #include <X11/Xresource.h>
11400 int
11401 main ()
11402 {
11403 XIMProc callback;
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 HAVE_XIM=yes
11430
11431 cat >>confdefs.h <<\_ACEOF
11432 #define HAVE_XIM 1
11433 _ACEOF
11434
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 HAVE_XIM=no
11440 fi
11441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11442
11443
11444 if test "${with_xim}" != "no"; then
11445
11446 cat >>confdefs.h <<\_ACEOF
11447 #define USE_XIM 1
11448 _ACEOF
11449
11450 fi
11451
11452
11453 if test "${HAVE_XIM}" != "no"; then
11454 late_CFLAGS=$CFLAGS
11455 if test "$GCC" = yes; then
11456 CFLAGS="$CFLAGS --pedantic-errors"
11457 fi
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464
11465 #include <X11/Xlib.h>
11466 #include <X11/Xresource.h>
11467 int
11468 main ()
11469 {
11470 Display *display;
11471 XrmDatabase db;
11472 char *res_name;
11473 char *res_class;
11474 XIMProc callback;
11475 XPointer *client_data;
11476 #ifndef __GNUC__
11477 /* If we're not using GCC, it's probably not XFree86, and this is
11478 probably right, but we can't use something like --pedantic-errors. */
11479 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11480 char*, XIMProc, XPointer*);
11481 #endif
11482 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11483 client_data);
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 emacs_cv_arg6_star=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 fi
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516
11517 if test "$emacs_cv_arg6_star" = yes; then
11518 cat >>confdefs.h <<\_ACEOF
11519 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11520 _ACEOF
11521
11522 else
11523 cat >>confdefs.h <<\_ACEOF
11524 #define XRegisterIMInstantiateCallback_arg6 XPointer
11525 _ACEOF
11526
11527 fi
11528 CFLAGS=$late_CFLAGS
11529 fi
11530
11531 ### Use -lXpm if available, unless `--with-xpm=no'.
11532 HAVE_XPM=no
11533 if test "${HAVE_X11}" = "yes"; then
11534 if test "${with_xpm}" != "no"; then
11535 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11536 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11537 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11538 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 fi
11541 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11542 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11543 else
11544 # Is the header compilable?
11545 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11546 echo $ECHO_N "checking X11/xpm.h usability... $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 $ac_includes_default
11554 #include <X11/xpm.h>
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try='test -s conftest.$ac_objext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_header_compiler=yes
11578 else
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ac_header_compiler=no
11583 fi
11584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11586 echo "${ECHO_T}$ac_header_compiler" >&6
11587
11588 # Is the header present?
11589 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11590 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 #include <X11/xpm.h>
11598 _ACEOF
11599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } >/dev/null; then
11607 if test -s conftest.err; then
11608 ac_cpp_err=$ac_c_preproc_warn_flag
11609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11610 else
11611 ac_cpp_err=
11612 fi
11613 else
11614 ac_cpp_err=yes
11615 fi
11616 if test -z "$ac_cpp_err"; then
11617 ac_header_preproc=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_header_preproc=no
11623 fi
11624 rm -f conftest.err conftest.$ac_ext
11625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11626 echo "${ECHO_T}$ac_header_preproc" >&6
11627
11628 # So? What about this header?
11629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11630 yes:no: )
11631 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11632 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11634 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11635 ac_header_preproc=yes
11636 ;;
11637 no:yes:* )
11638 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11639 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11641 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11643 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11645 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11647 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11649 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11650 (
11651 cat <<\_ASBOX
11652 ## ------------------------------------------ ##
11653 ## Report this to the AC_PACKAGE_NAME lists. ##
11654 ## ------------------------------------------ ##
11655 _ASBOX
11656 ) |
11657 sed "s/^/$as_me: WARNING: /" >&2
11658 ;;
11659 esac
11660 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11661 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11662 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 ac_cv_header_X11_xpm_h=$ac_header_preproc
11666 fi
11667 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11668 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11669
11670 fi
11671 if test $ac_cv_header_X11_xpm_h = yes; then
11672 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11673 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11674 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677 ac_check_lib_save_LIBS=$LIBS
11678 LIBS="-lXpm -lX11 $LIBS"
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685
11686 /* Override any gcc2 internal prototype to avoid an error. */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 /* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692 char XpmReadFileToPixmap ();
11693 int
11694 main ()
11695 {
11696 XpmReadFileToPixmap ();
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11728 fi
11729 rm -f conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11732 fi
11733 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11734 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11735 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11736 HAVE_XPM=yes
11737 fi
11738
11739 fi
11740
11741
11742 if test "${HAVE_XPM}" = "yes"; then
11743 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11744 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 #include "X11/xpm.h"
11752 #ifndef XpmReturnAllocPixels
11753 no_return_alloc_pixels
11754 #endif
11755
11756 _ACEOF
11757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11758 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11759 HAVE_XPM=no
11760 else
11761 HAVE_XPM=yes
11762 fi
11763 rm -f conftest*
11764
11765
11766 if test "${HAVE_XPM}" = "yes"; then
11767 echo "$as_me:$LINENO: result: yes" >&5
11768 echo "${ECHO_T}yes" >&6
11769 else
11770 echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6
11772 fi
11773 fi
11774 fi
11775
11776 if test "${HAVE_XPM}" = "yes"; then
11777
11778 cat >>confdefs.h <<\_ACEOF
11779 #define HAVE_XPM 1
11780 _ACEOF
11781
11782 fi
11783 fi
11784
11785 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11786 HAVE_JPEG=no
11787 if test "${HAVE_X11}" = "yes"; then
11788 if test "${with_jpeg}" != "no"; then
11789 if test "${ac_cv_header_jerror_h+set}" = set; then
11790 echo "$as_me:$LINENO: checking for jerror.h" >&5
11791 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11792 if test "${ac_cv_header_jerror_h+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 fi
11795 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11796 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11797 else
11798 # Is the header compilable?
11799 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11800 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 #include <jerror.h>
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812 (eval $ac_compile) 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_header_compiler=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_header_compiler=no
11837 fi
11838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6
11841
11842 # Is the header present?
11843 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11844 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <jerror.h>
11852 _ACEOF
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null; then
11861 if test -s conftest.err; then
11862 ac_cpp_err=$ac_c_preproc_warn_flag
11863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864 else
11865 ac_cpp_err=
11866 fi
11867 else
11868 ac_cpp_err=yes
11869 fi
11870 if test -z "$ac_cpp_err"; then
11871 ac_header_preproc=yes
11872 else
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_header_preproc=no
11877 fi
11878 rm -f conftest.err conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880 echo "${ECHO_T}$ac_header_preproc" >&6
11881
11882 # So? What about this header?
11883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 yes:no: )
11885 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11886 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11888 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc=yes
11890 ;;
11891 no:yes:* )
11892 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11893 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11895 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11897 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11899 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11901 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11903 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11904 (
11905 cat <<\_ASBOX
11906 ## ------------------------------------------ ##
11907 ## Report this to the AC_PACKAGE_NAME lists. ##
11908 ## ------------------------------------------ ##
11909 _ASBOX
11910 ) |
11911 sed "s/^/$as_me: WARNING: /" >&2
11912 ;;
11913 esac
11914 echo "$as_me:$LINENO: checking for jerror.h" >&5
11915 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11916 if test "${ac_cv_header_jerror_h+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 ac_cv_header_jerror_h=$ac_header_preproc
11920 fi
11921 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11922 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11923
11924 fi
11925 if test $ac_cv_header_jerror_h = yes; then
11926 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11927 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11928 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ljpeg $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939
11940 /* Override any gcc2 internal prototype to avoid an error. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946 char jpeg_destroy_compress ();
11947 int
11948 main ()
11949 {
11950 jpeg_destroy_compress ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11982 fi
11983 rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11988 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11989 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11990 HAVE_JPEG=yes
11991 fi
11992
11993 fi
11994
11995
11996 fi
11997
11998
11999 if test "${HAVE_JPEG}" = "yes"; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_JPEG 1
12002 _ACEOF
12003
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 #include <jpeglib.h>
12011 version=JPEG_LIB_VERSION
12012
12013 _ACEOF
12014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12015 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_JPEG 1
12018 _ACEOF
12019
12020 else
12021 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12022 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12023 HAVE_JPEG=no
12024 fi
12025 rm -f conftest*
12026
12027 fi
12028 fi
12029
12030 ### Use -lpng if available, unless `--with-png=no'.
12031 HAVE_PNG=no
12032 if test "${HAVE_X11}" = "yes"; then
12033 if test "${with_png}" != "no"; then
12034 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12035 # in /usr/include/libpng.
12036
12037
12038 for ac_header in png.h libpng/png.h
12039 do
12040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12042 echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 fi
12047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12049 else
12050 # Is the header compilable?
12051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12060 #include <$ac_header>
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_header_compiler=yes
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_header_compiler=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6
12093
12094 # Is the header present?
12095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 #include <$ac_header>
12104 _ACEOF
12105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } >/dev/null; then
12113 if test -s conftest.err; then
12114 ac_cpp_err=$ac_c_preproc_warn_flag
12115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12116 else
12117 ac_cpp_err=
12118 fi
12119 else
12120 ac_cpp_err=yes
12121 fi
12122 if test -z "$ac_cpp_err"; then
12123 ac_header_preproc=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 ac_header_preproc=no
12129 fi
12130 rm -f conftest.err conftest.$ac_ext
12131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6
12133
12134 # So? What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12136 yes:no: )
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12141 ac_header_preproc=yes
12142 ;;
12143 no:yes:* )
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12156 (
12157 cat <<\_ASBOX
12158 ## ------------------------------------------ ##
12159 ## Report this to the AC_PACKAGE_NAME lists. ##
12160 ## ------------------------------------------ ##
12161 _ASBOX
12162 ) |
12163 sed "s/^/$as_me: WARNING: /" >&2
12164 ;;
12165 esac
12166 echo "$as_me:$LINENO: checking for $ac_header" >&5
12167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 eval "$as_ac_Header=\$ac_header_preproc"
12172 fi
12173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12175
12176 fi
12177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12180 _ACEOF
12181
12182 fi
12183
12184 done
12185
12186 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12187 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12188 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12189 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lpng -lz -lm $LIBS"
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char png_get_channels ();
12208 int
12209 main ()
12210 {
12211 png_get_channels ();
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try='test -s conftest$ac_exeext'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12234 ac_status=$?
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12237 ac_cv_lib_png_png_get_channels=yes
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ac_cv_lib_png_png_get_channels=no
12243 fi
12244 rm -f conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12247 fi
12248 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12249 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12250 if test $ac_cv_lib_png_png_get_channels = yes; then
12251 HAVE_PNG=yes
12252 fi
12253
12254 fi
12255 fi
12256
12257 if test "${HAVE_PNG}" = "yes"; then
12258
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_PNG 1
12261 _ACEOF
12262
12263 fi
12264 fi
12265
12266 ### Use -ltiff if available, unless `--with-tiff=no'.
12267 HAVE_TIFF=no
12268 if test "${HAVE_X11}" = "yes"; then
12269 if test "${with_tiff}" != "no"; then
12270 if test "${ac_cv_header_tiffio_h+set}" = set; then
12271 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12272 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12273 if test "${ac_cv_header_tiffio_h+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 fi
12276 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12277 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12278 else
12279 # Is the header compilable?
12280 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12281 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 #include <tiffio.h>
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest.$ac_objext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_header_compiler=yes
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_header_compiler=no
12318 fi
12319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12321 echo "${ECHO_T}$ac_header_compiler" >&6
12322
12323 # Is the header present?
12324 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12325 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <tiffio.h>
12333 _ACEOF
12334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev/null; then
12342 if test -s conftest.err; then
12343 ac_cpp_err=$ac_c_preproc_warn_flag
12344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12345 else
12346 ac_cpp_err=
12347 fi
12348 else
12349 ac_cpp_err=yes
12350 fi
12351 if test -z "$ac_cpp_err"; then
12352 ac_header_preproc=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_header_preproc=no
12358 fi
12359 rm -f conftest.err conftest.$ac_ext
12360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12361 echo "${ECHO_T}$ac_header_preproc" >&6
12362
12363 # So? What about this header?
12364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12365 yes:no: )
12366 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12367 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12369 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12370 ac_header_preproc=yes
12371 ;;
12372 no:yes:* )
12373 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12374 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12376 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12378 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12380 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12382 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12384 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12385 (
12386 cat <<\_ASBOX
12387 ## ------------------------------------------ ##
12388 ## Report this to the AC_PACKAGE_NAME lists. ##
12389 ## ------------------------------------------ ##
12390 _ASBOX
12391 ) |
12392 sed "s/^/$as_me: WARNING: /" >&2
12393 ;;
12394 esac
12395 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12396 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12397 if test "${ac_cv_header_tiffio_h+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 ac_cv_header_tiffio_h=$ac_header_preproc
12401 fi
12402 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12403 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12404
12405 fi
12406 if test $ac_cv_header_tiffio_h = yes; then
12407 tifflibs="-lz -lm"
12408 # At least one tiff package requires the jpeg library.
12409 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12410 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12411 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12412 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415 ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-ltiff $tifflibs $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12430 char TIFFGetVersion ();
12431 int
12432 main ()
12433 {
12434 TIFFGetVersion ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_tiff_TIFFGetVersion=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_cv_lib_tiff_TIFFGetVersion=no
12466 fi
12467 rm -f conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12470 fi
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12472 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12473 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12474 HAVE_TIFF=yes
12475 fi
12476
12477 fi
12478
12479
12480 fi
12481
12482 if test "${HAVE_TIFF}" = "yes"; then
12483
12484 cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_TIFF 1
12486 _ACEOF
12487
12488 fi
12489 fi
12490
12491 ### Use -lgif if available, unless `--with-gif=no'.
12492 HAVE_GIF=no
12493 if test "${HAVE_X11}" = "yes"; then
12494 if test "${with_gif}" != "no"; then
12495 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12496 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12497 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12498 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 fi
12501 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12502 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12503 else
12504 # Is the header compilable?
12505 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12506 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <gif_lib.h>
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest.$ac_objext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_header_compiler=yes
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542 ac_header_compiler=no
12543 fi
12544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12546 echo "${ECHO_T}$ac_header_compiler" >&6
12547
12548 # Is the header present?
12549 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12550 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 #include <gif_lib.h>
12558 _ACEOF
12559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } >/dev/null; then
12567 if test -s conftest.err; then
12568 ac_cpp_err=$ac_c_preproc_warn_flag
12569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12570 else
12571 ac_cpp_err=
12572 fi
12573 else
12574 ac_cpp_err=yes
12575 fi
12576 if test -z "$ac_cpp_err"; then
12577 ac_header_preproc=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_header_preproc=no
12583 fi
12584 rm -f conftest.err conftest.$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12586 echo "${ECHO_T}$ac_header_preproc" >&6
12587
12588 # So? What about this header?
12589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12590 yes:no: )
12591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12592 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12594 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12595 ac_header_preproc=yes
12596 ;;
12597 no:yes:* )
12598 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12599 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12601 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12603 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12605 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12607 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12609 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12610 (
12611 cat <<\_ASBOX
12612 ## ------------------------------------------ ##
12613 ## Report this to the AC_PACKAGE_NAME lists. ##
12614 ## ------------------------------------------ ##
12615 _ASBOX
12616 ) |
12617 sed "s/^/$as_me: WARNING: /" >&2
12618 ;;
12619 esac
12620 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12621 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12622 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625 ac_cv_header_gif_lib_h=$ac_header_preproc
12626 fi
12627 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12628 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12629
12630 fi
12631 if test $ac_cv_header_gif_lib_h = yes; then
12632 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12633 # Earlier versions can crash Emacs.
12634 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12635 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12636 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 ac_check_lib_save_LIBS=$LIBS
12640 LIBS="-lungif $LIBS"
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647
12648 /* Override any gcc2 internal prototype to avoid an error. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12654 char EGifPutExtensionLast ();
12655 int
12656 main ()
12657 {
12658 EGifPutExtensionLast ();
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 ac_cv_lib_ungif_EGifPutExtensionLast=no
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12696 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12697 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12698 HAVE_GIF=yes
12699 fi
12700
12701 fi
12702
12703
12704 fi
12705
12706 if test "${HAVE_GIF}" = "yes"; then
12707
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_GIF 1
12710 _ACEOF
12711
12712 fi
12713 fi
12714
12715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12716 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12717 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12718 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 fi
12721 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12722 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12723 else
12724 # Is the header compilable?
12725 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12726 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12734 #include <malloc/malloc.h>
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_header_compiler=yes
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 ac_header_compiler=no
12763 fi
12764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12766 echo "${ECHO_T}$ac_header_compiler" >&6
12767
12768 # Is the header present?
12769 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12770 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 #include <malloc/malloc.h>
12778 _ACEOF
12779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } >/dev/null; then
12787 if test -s conftest.err; then
12788 ac_cpp_err=$ac_c_preproc_warn_flag
12789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12790 else
12791 ac_cpp_err=
12792 fi
12793 else
12794 ac_cpp_err=yes
12795 fi
12796 if test -z "$ac_cpp_err"; then
12797 ac_header_preproc=yes
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_header_preproc=no
12803 fi
12804 rm -f conftest.err conftest.$ac_ext
12805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12806 echo "${ECHO_T}$ac_header_preproc" >&6
12807
12808 # So? What about this header?
12809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12810 yes:no: )
12811 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12812 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12814 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12815 ac_header_preproc=yes
12816 ;;
12817 no:yes:* )
12818 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12819 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12821 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12823 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12825 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12827 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12829 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12830 (
12831 cat <<\_ASBOX
12832 ## ------------------------------------------ ##
12833 ## Report this to the AC_PACKAGE_NAME lists. ##
12834 ## ------------------------------------------ ##
12835 _ASBOX
12836 ) |
12837 sed "s/^/$as_me: WARNING: /" >&2
12838 ;;
12839 esac
12840 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12841 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12842 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12846 fi
12847 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12848 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12849
12850 fi
12851 if test $ac_cv_header_malloc_malloc_h = yes; then
12852
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_MALLOC_MALLOC_H 1
12855 _ACEOF
12856
12857 fi
12858
12859
12860
12861 ### Use Mac OS X Carbon API to implement GUI.
12862 if test "${HAVE_CARBON}" = "yes"; then
12863
12864 cat >>confdefs.h <<\_ACEOF
12865 #define HAVE_CARBON 1
12866 _ACEOF
12867
12868 ## Specify the install directory
12869 carbon_appdir=
12870 if test "${carbon_appdir_x}" != ""; then
12871 case ${carbon_appdir_x} in
12872 y | ye | yes) carbon_appdir=/Applications ;;
12873 * ) carbon_appdir=${carbon_appdir_x} ;;
12874 esac
12875 fi
12876 # We also have mouse menus.
12877 HAVE_MENUS=yes
12878
12879 tmp_CFLAGS="$CFLAGS"
12880 CFLAGS="$CFLAGS -framework Carbon"
12881 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12882 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12883 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12894 #define CancelMenuTracking innocuous_CancelMenuTracking
12895
12896 /* System header to define __stub macros and hopefully few prototypes,
12897 which can conflict with char CancelMenuTracking (); below.
12898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12899 <limits.h> exists even on freestanding compilers. */
12900
12901 #ifdef __STDC__
12902 # include <limits.h>
12903 #else
12904 # include <assert.h>
12905 #endif
12906
12907 #undef CancelMenuTracking
12908
12909 /* Override any gcc2 internal prototype to avoid an error. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 {
12913 #endif
12914 /* We use char because int might match the return type of a gcc2
12915 builtin and then its argument prototype would still apply. */
12916 char CancelMenuTracking ();
12917 /* The GNU C library defines this for functions which it implements
12918 to always fail with ENOSYS. Some functions are actually named
12919 something starting with __ and the normal name is an alias. */
12920 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12921 choke me
12922 #else
12923 char (*f) () = CancelMenuTracking;
12924 #endif
12925 #ifdef __cplusplus
12926 }
12927 #endif
12928
12929 int
12930 main ()
12931 {
12932 return f != CancelMenuTracking;
12933 ;
12934 return 0;
12935 }
12936 _ACEOF
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939 (eval $ac_link) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_func_CancelMenuTracking=yes
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 ac_cv_func_CancelMenuTracking=no
12964 fi
12965 rm -f conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 fi
12968 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12969 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12970 if test $ac_cv_func_CancelMenuTracking = yes; then
12971 have_cmt=yes
12972 else
12973 have_cmt=no
12974 fi
12975
12976 if test "$have_cmt" = yes; then
12977
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_CANCELMENUTRACKING 1
12980 _ACEOF
12981
12982 fi
12983 CFLAGS="$tmp_CFLAGS"
12984 fi
12985
12986 ### Use session management (-lSM -lICE) if available
12987 HAVE_X_SM=no
12988 if test "${HAVE_X11}" = "yes"; then
12989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12990 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12991 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12992 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 fi
12995 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12996 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12997 else
12998 # Is the header compilable?
12999 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13000 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <X11/SM/SMlib.h>
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_header_compiler=yes
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 ac_header_compiler=no
13037 fi
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6
13041
13042 # Is the header present?
13043 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13044 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <X11/SM/SMlib.h>
13052 _ACEOF
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev/null; then
13061 if test -s conftest.err; then
13062 ac_cpp_err=$ac_c_preproc_warn_flag
13063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13064 else
13065 ac_cpp_err=
13066 fi
13067 else
13068 ac_cpp_err=yes
13069 fi
13070 if test -z "$ac_cpp_err"; then
13071 ac_header_preproc=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_header_preproc=no
13077 fi
13078 rm -f conftest.err conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13080 echo "${ECHO_T}$ac_header_preproc" >&6
13081
13082 # So? What about this header?
13083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13084 yes:no: )
13085 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13086 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13088 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13089 ac_header_preproc=yes
13090 ;;
13091 no:yes:* )
13092 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13093 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13095 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13097 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13099 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13101 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13103 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13104 (
13105 cat <<\_ASBOX
13106 ## ------------------------------------------ ##
13107 ## Report this to the AC_PACKAGE_NAME lists. ##
13108 ## ------------------------------------------ ##
13109 _ASBOX
13110 ) |
13111 sed "s/^/$as_me: WARNING: /" >&2
13112 ;;
13113 esac
13114 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13115 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13116 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13120 fi
13121 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13122 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13123
13124 fi
13125 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13126 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13127 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13128 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131 ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-lSM -lICE $LIBS"
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139
13140 /* Override any gcc2 internal prototype to avoid an error. */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146 char SmcOpenConnection ();
13147 int
13148 main ()
13149 {
13150 SmcOpenConnection ();
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157 (eval $ac_link) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest$ac_exeext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_lib_SM_SmcOpenConnection=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_cv_lib_SM_SmcOpenConnection=no
13182 fi
13183 rm -f conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13186 fi
13187 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13188 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13189 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13190 HAVE_X_SM=yes
13191 fi
13192
13193 fi
13194
13195
13196
13197 if test "${HAVE_X_SM}" = "yes"; then
13198
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_X_SM 1
13201 _ACEOF
13202
13203 case "$LIBS" in
13204 *-lSM*) ;;
13205 *) LIBS="-lSM -lICE $LIBS" ;;
13206 esac
13207 fi
13208 fi
13209
13210 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13211 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13212 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13213 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <netdb.h>
13223 int
13224 main ()
13225 {
13226 return h_errno;
13227 ;
13228 return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13233 (eval $ac_link) 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest$ac_exeext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 emacs_cv_netdb_declares_h_errno=yes
13253 else
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 emacs_cv_netdb_declares_h_errno=no
13258 fi
13259 rm -f conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 fi
13262 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13263 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13264 if test $emacs_cv_netdb_declares_h_errno = yes; then
13265
13266 cat >>confdefs.h <<\_ACEOF
13267 #define HAVE_H_ERRNO 1
13268 _ACEOF
13269
13270 fi
13271
13272 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13273 # for constant arguments. Useless!
13274 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13275 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13276 if test "${ac_cv_working_alloca_h+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <alloca.h>
13286 int
13287 main ()
13288 {
13289 char *p = (char *) alloca (2 * sizeof (int));
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296 (eval $ac_link) 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_working_alloca_h=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ac_cv_working_alloca_h=no
13321 fi
13322 rm -f conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 fi
13325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13327 if test $ac_cv_working_alloca_h = yes; then
13328
13329 cat >>confdefs.h <<\_ACEOF
13330 #define HAVE_ALLOCA_H 1
13331 _ACEOF
13332
13333 fi
13334
13335 echo "$as_me:$LINENO: checking for alloca" >&5
13336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13337 if test "${ac_cv_func_alloca_works+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340 cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h. */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #ifdef __GNUC__
13347 # define alloca __builtin_alloca
13348 #else
13349 # ifdef _MSC_VER
13350 # include <malloc.h>
13351 # define alloca _alloca
13352 # else
13353 # if HAVE_ALLOCA_H
13354 # include <alloca.h>
13355 # else
13356 # ifdef _AIX
13357 #pragma alloca
13358 # else
13359 # ifndef alloca /* predefined by HP cc +Olibcalls */
13360 char *alloca ();
13361 # endif
13362 # endif
13363 # endif
13364 # endif
13365 #endif
13366
13367 int
13368 main ()
13369 {
13370 char *p = (char *) alloca (1);
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_func_alloca_works=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_cv_func_alloca_works=no
13402 fi
13403 rm -f conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 fi
13406 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13407 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13408
13409 if test $ac_cv_func_alloca_works = yes; then
13410
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_ALLOCA 1
13413 _ACEOF
13414
13415 else
13416 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13417 # that cause trouble. Some versions do not even contain alloca or
13418 # contain a buggy version. If you still want to use their alloca,
13419 # use ar to extract alloca.o from them instead of compiling alloca.c.
13420
13421 ALLOCA=alloca.$ac_objext
13422
13423 cat >>confdefs.h <<\_ACEOF
13424 #define C_ALLOCA 1
13425 _ACEOF
13426
13427
13428 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13429 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13430 if test "${ac_cv_os_cray+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #if defined(CRAY) && ! defined(CRAY2)
13440 webecray
13441 #else
13442 wenotbecray
13443 #endif
13444
13445 _ACEOF
13446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13447 $EGREP "webecray" >/dev/null 2>&1; then
13448 ac_cv_os_cray=yes
13449 else
13450 ac_cv_os_cray=no
13451 fi
13452 rm -f conftest*
13453
13454 fi
13455 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13456 echo "${ECHO_T}$ac_cv_os_cray" >&6
13457 if test $ac_cv_os_cray = yes; then
13458 for ac_func in _getb67 GETB67 getb67; do
13459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13460 echo "$as_me:$LINENO: checking for $ac_func" >&5
13461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_var+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13473 #define $ac_func innocuous_$ac_func
13474
13475 /* System header to define __stub macros and hopefully few prototypes,
13476 which can conflict with char $ac_func (); below.
13477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13478 <limits.h> exists even on freestanding compilers. */
13479
13480 #ifdef __STDC__
13481 # include <limits.h>
13482 #else
13483 # include <assert.h>
13484 #endif
13485
13486 #undef $ac_func
13487
13488 /* Override any gcc2 internal prototype to avoid an error. */
13489 #ifdef __cplusplus
13490 extern "C"
13491 {
13492 #endif
13493 /* We use char because int might match the return type of a gcc2
13494 builtin and then its argument prototype would still apply. */
13495 char $ac_func ();
13496 /* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13500 choke me
13501 #else
13502 char (*f) () = $ac_func;
13503 #endif
13504 #ifdef __cplusplus
13505 }
13506 #endif
13507
13508 int
13509 main ()
13510 {
13511 return f != $ac_func;
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 (eval $ac_link) 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest$ac_exeext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 eval "$as_ac_var=yes"
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 eval "$as_ac_var=no"
13543 fi
13544 rm -f conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546 fi
13547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13549 if test `eval echo '${'$as_ac_var'}'` = yes; then
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define CRAY_STACKSEG_END $ac_func
13553 _ACEOF
13554
13555 break
13556 fi
13557
13558 done
13559 fi
13560
13561 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13562 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13563 if test "${ac_cv_c_stack_direction+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 if test "$cross_compiling" = yes; then
13567 ac_cv_c_stack_direction=0
13568 else
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 int
13576 find_stack_direction ()
13577 {
13578 static char *addr = 0;
13579 auto char dummy;
13580 if (addr == 0)
13581 {
13582 addr = &dummy;
13583 return find_stack_direction ();
13584 }
13585 else
13586 return (&dummy > addr) ? 1 : -1;
13587 }
13588
13589 int
13590 main ()
13591 {
13592 exit (find_stack_direction () < 0);
13593 }
13594 _ACEOF
13595 rm -f conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 ac_cv_c_stack_direction=1
13607 else
13608 echo "$as_me: program exited with status $ac_status" >&5
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 ( exit $ac_status )
13613 ac_cv_c_stack_direction=-1
13614 fi
13615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13616 fi
13617 fi
13618 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13619 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13620
13621 cat >>confdefs.h <<_ACEOF
13622 #define STACK_DIRECTION $ac_cv_c_stack_direction
13623 _ACEOF
13624
13625
13626 fi
13627
13628
13629 # fmod, logb, and frexp are found in -lm on most systems.
13630 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13631
13632 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13633 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13634 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lm $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645
13646 /* Override any gcc2 internal prototype to avoid an error. */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13652 char sqrt ();
13653 int
13654 main ()
13655 {
13656 sqrt ();
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13682 ac_cv_lib_m_sqrt=yes
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687 ac_cv_lib_m_sqrt=no
13688 fi
13689 rm -f conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13692 fi
13693 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13694 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13695 if test $ac_cv_lib_m_sqrt = yes; then
13696 cat >>confdefs.h <<_ACEOF
13697 #define HAVE_LIBM 1
13698 _ACEOF
13699
13700 LIBS="-lm $LIBS"
13701
13702 fi
13703
13704
13705 # Check for mail-locking functions in a "mail" library. Probably this should
13706 # have the same check as for liblockfile below.
13707
13708 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13709 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13710 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 ac_check_lib_save_LIBS=$LIBS
13714 LIBS="-lmail $LIBS"
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721
13722 /* Override any gcc2 internal prototype to avoid an error. */
13723 #ifdef __cplusplus
13724 extern "C"
13725 #endif
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13728 char maillock ();
13729 int
13730 main ()
13731 {
13732 maillock ();
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_lib_mail_maillock=yes
13759 else
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_cv_lib_mail_maillock=no
13764 fi
13765 rm -f conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
13767 LIBS=$ac_check_lib_save_LIBS
13768 fi
13769 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13770 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13771 if test $ac_cv_lib_mail_maillock = yes; then
13772 cat >>confdefs.h <<_ACEOF
13773 #define HAVE_LIBMAIL 1
13774 _ACEOF
13775
13776 LIBS="-lmail $LIBS"
13777
13778 fi
13779
13780
13781 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13782 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13783 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786 ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-llockfile $LIBS"
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794
13795 /* Override any gcc2 internal prototype to avoid an error. */
13796 #ifdef __cplusplus
13797 extern "C"
13798 #endif
13799 /* We use char because int might match the return type of a gcc2
13800 builtin and then its argument prototype would still apply. */
13801 char maillock ();
13802 int
13803 main ()
13804 {
13805 maillock ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812 (eval $ac_link) 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_lib_lockfile_maillock=yes
13832 else
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 ac_cv_lib_lockfile_maillock=no
13837 fi
13838 rm -f conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 LIBS=$ac_check_lib_save_LIBS
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13843 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13844 if test $ac_cv_lib_lockfile_maillock = yes; then
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_LIBLOCKFILE 1
13847 _ACEOF
13848
13849 LIBS="-llockfile $LIBS"
13850
13851 fi
13852
13853 # If we have the shared liblockfile, assume we must use it for mail
13854 # locking (e.g. Debian). If we couldn't link against liblockfile
13855 # (no liblockfile.a installed), ensure that we don't need to.
13856 if test "$ac_cv_lib_lockfile_maillock" = no; then
13857 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13858 set dummy liblockfile.so; ac_word=$2
13859 echo "$as_me:$LINENO: checking for $ac_word" >&5
13860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13861 if test "${ac_cv_prog_liblockfile+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864 if test -n "$liblockfile"; then
13865 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13869 for as_dir in $as_dummy
13870 do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_liblockfile="yes"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13878 fi
13879 done
13880 done
13881
13882 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13883 fi
13884 fi
13885 liblockfile=$ac_cv_prog_liblockfile
13886 if test -n "$liblockfile"; then
13887 echo "$as_me:$LINENO: result: $liblockfile" >&5
13888 echo "${ECHO_T}$liblockfile" >&6
13889 else
13890 echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6
13892 fi
13893
13894 if test $ac_cv_prog_liblockfile = yes; then
13895 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13896 This probably means that movemail could lose mail.
13897 There may be a \`development' package to install containing liblockfile." >&5
13898 echo "$as_me: error: Shared liblockfile found but can't link against it.
13899 This probably means that movemail could lose mail.
13900 There may be a \`development' package to install containing liblockfile." >&2;}
13901 { (exit 1); exit 1; }; }
13902 else :
13903 fi
13904 fi
13905
13906 for ac_func in touchlock
13907 do
13908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13909 echo "$as_me:$LINENO: checking for $ac_func" >&5
13910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_var+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13922 #define $ac_func innocuous_$ac_func
13923
13924 /* System header to define __stub macros and hopefully few prototypes,
13925 which can conflict with char $ac_func (); below.
13926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927 <limits.h> exists even on freestanding compilers. */
13928
13929 #ifdef __STDC__
13930 # include <limits.h>
13931 #else
13932 # include <assert.h>
13933 #endif
13934
13935 #undef $ac_func
13936
13937 /* Override any gcc2 internal prototype to avoid an error. */
13938 #ifdef __cplusplus
13939 extern "C"
13940 {
13941 #endif
13942 /* We use char because int might match the return type of a gcc2
13943 builtin and then its argument prototype would still apply. */
13944 char $ac_func ();
13945 /* The GNU C library defines this for functions which it implements
13946 to always fail with ENOSYS. Some functions are actually named
13947 something starting with __ and the normal name is an alias. */
13948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13949 choke me
13950 #else
13951 char (*f) () = $ac_func;
13952 #endif
13953 #ifdef __cplusplus
13954 }
13955 #endif
13956
13957 int
13958 main ()
13959 {
13960 return f != $ac_func;
13961 ;
13962 return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 eval "$as_ac_var=yes"
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991 eval "$as_ac_var=no"
13992 fi
13993 rm -f conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13995 fi
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13998 if test `eval echo '${'$as_ac_var'}'` = yes; then
13999 cat >>confdefs.h <<_ACEOF
14000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14001 _ACEOF
14002
14003 fi
14004 done
14005
14006
14007 for ac_header in maillock.h
14008 do
14009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo "$as_me:$LINENO: checking for $ac_header" >&5
14012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 fi
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018 else
14019 # Is the header compilable?
14020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 #include <$ac_header>
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_header_compiler=yes
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 ac_header_compiler=no
14058 fi
14059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14061 echo "${ECHO_T}$ac_header_compiler" >&6
14062
14063 # Is the header present?
14064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h. */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 #include <$ac_header>
14073 _ACEOF
14074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } >/dev/null; then
14082 if test -s conftest.err; then
14083 ac_cpp_err=$ac_c_preproc_warn_flag
14084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14085 else
14086 ac_cpp_err=
14087 fi
14088 else
14089 ac_cpp_err=yes
14090 fi
14091 if test -z "$ac_cpp_err"; then
14092 ac_header_preproc=yes
14093 else
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_header_preproc=no
14098 fi
14099 rm -f conftest.err conftest.$ac_ext
14100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14101 echo "${ECHO_T}$ac_header_preproc" >&6
14102
14103 # So? What about this header?
14104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14105 yes:no: )
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14110 ac_header_preproc=yes
14111 ;;
14112 no:yes:* )
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14125 (
14126 cat <<\_ASBOX
14127 ## ------------------------------------------ ##
14128 ## Report this to the AC_PACKAGE_NAME lists. ##
14129 ## ------------------------------------------ ##
14130 _ASBOX
14131 ) |
14132 sed "s/^/$as_me: WARNING: /" >&2
14133 ;;
14134 esac
14135 echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 eval "$as_ac_Header=\$ac_header_preproc"
14141 fi
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144
14145 fi
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14149 _ACEOF
14150
14151 fi
14152
14153 done
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224 for ac_func in gethostname getdomainname dup2 \
14225 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14226 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14227 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14228 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14229 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14230 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14231 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14232 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14233 do
14234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 echo "$as_me:$LINENO: checking for $ac_func" >&5
14236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14237 if eval "test \"\${$as_ac_var+set}\" = set"; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14248 #define $ac_func innocuous_$ac_func
14249
14250 /* System header to define __stub macros and hopefully few prototypes,
14251 which can conflict with char $ac_func (); below.
14252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14253 <limits.h> exists even on freestanding compilers. */
14254
14255 #ifdef __STDC__
14256 # include <limits.h>
14257 #else
14258 # include <assert.h>
14259 #endif
14260
14261 #undef $ac_func
14262
14263 /* Override any gcc2 internal prototype to avoid an error. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 {
14267 #endif
14268 /* We use char because int might match the return type of a gcc2
14269 builtin and then its argument prototype would still apply. */
14270 char $ac_func ();
14271 /* The GNU C library defines this for functions which it implements
14272 to always fail with ENOSYS. Some functions are actually named
14273 something starting with __ and the normal name is an alias. */
14274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14275 choke me
14276 #else
14277 char (*f) () = $ac_func;
14278 #endif
14279 #ifdef __cplusplus
14280 }
14281 #endif
14282
14283 int
14284 main ()
14285 {
14286 return f != $ac_func;
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext conftest$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 eval "$as_ac_var=no"
14318 fi
14319 rm -f conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
14321 fi
14322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14324 if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327 _ACEOF
14328
14329 fi
14330 done
14331
14332
14333
14334 for ac_header in sys/un.h
14335 do
14336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo "$as_me:$LINENO: checking for $ac_header" >&5
14339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 fi
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345 else
14346 # Is the header compilable?
14347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 $ac_includes_default
14356 #include <$ac_header>
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_header_compiler=yes
14380 else
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_header_compiler=no
14385 fi
14386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14388 echo "${ECHO_T}$ac_header_compiler" >&6
14389
14390 # Is the header present?
14391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <$ac_header>
14400 _ACEOF
14401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } >/dev/null; then
14409 if test -s conftest.err; then
14410 ac_cpp_err=$ac_c_preproc_warn_flag
14411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14412 else
14413 ac_cpp_err=
14414 fi
14415 else
14416 ac_cpp_err=yes
14417 fi
14418 if test -z "$ac_cpp_err"; then
14419 ac_header_preproc=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424 ac_header_preproc=no
14425 fi
14426 rm -f conftest.err conftest.$ac_ext
14427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14428 echo "${ECHO_T}$ac_header_preproc" >&6
14429
14430 # So? What about this header?
14431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14432 yes:no: )
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14437 ac_header_preproc=yes
14438 ;;
14439 no:yes:* )
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14452 (
14453 cat <<\_ASBOX
14454 ## ------------------------------------------ ##
14455 ## Report this to the AC_PACKAGE_NAME lists. ##
14456 ## ------------------------------------------ ##
14457 _ASBOX
14458 ) |
14459 sed "s/^/$as_me: WARNING: /" >&2
14460 ;;
14461 esac
14462 echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 eval "$as_ac_Header=\$ac_header_preproc"
14468 fi
14469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14471
14472 fi
14473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14474 cat >>confdefs.h <<_ACEOF
14475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14476 _ACEOF
14477
14478 fi
14479
14480 done
14481
14482
14483
14484
14485
14486 for ac_header in stdlib.h sys/time.h unistd.h
14487 do
14488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 fi
14495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14497 else
14498 # Is the header compilable?
14499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 $ac_includes_default
14508 #include <$ac_header>
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_header_compiler=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_header_compiler=no
14537 fi
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14540 echo "${ECHO_T}$ac_header_compiler" >&6
14541
14542 # Is the header present?
14543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 #include <$ac_header>
14552 _ACEOF
14553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null; then
14561 if test -s conftest.err; then
14562 ac_cpp_err=$ac_c_preproc_warn_flag
14563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14564 else
14565 ac_cpp_err=
14566 fi
14567 else
14568 ac_cpp_err=yes
14569 fi
14570 if test -z "$ac_cpp_err"; then
14571 ac_header_preproc=yes
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576 ac_header_preproc=no
14577 fi
14578 rm -f conftest.err conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14580 echo "${ECHO_T}$ac_header_preproc" >&6
14581
14582 # So? What about this header?
14583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14584 yes:no: )
14585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14589 ac_header_preproc=yes
14590 ;;
14591 no:yes:* )
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14604 (
14605 cat <<\_ASBOX
14606 ## ------------------------------------------ ##
14607 ## Report this to the AC_PACKAGE_NAME lists. ##
14608 ## ------------------------------------------ ##
14609 _ASBOX
14610 ) |
14611 sed "s/^/$as_me: WARNING: /" >&2
14612 ;;
14613 esac
14614 echo "$as_me:$LINENO: checking for $ac_header" >&5
14615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 eval "$as_ac_Header=\$ac_header_preproc"
14620 fi
14621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14623
14624 fi
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14628 _ACEOF
14629
14630 fi
14631
14632 done
14633
14634
14635 for ac_func in alarm
14636 do
14637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14638 echo "$as_me:$LINENO: checking for $ac_func" >&5
14639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14640 if eval "test \"\${$as_ac_var+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h. */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14651 #define $ac_func innocuous_$ac_func
14652
14653 /* System header to define __stub macros and hopefully few prototypes,
14654 which can conflict with char $ac_func (); below.
14655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14656 <limits.h> exists even on freestanding compilers. */
14657
14658 #ifdef __STDC__
14659 # include <limits.h>
14660 #else
14661 # include <assert.h>
14662 #endif
14663
14664 #undef $ac_func
14665
14666 /* Override any gcc2 internal prototype to avoid an error. */
14667 #ifdef __cplusplus
14668 extern "C"
14669 {
14670 #endif
14671 /* We use char because int might match the return type of a gcc2
14672 builtin and then its argument prototype would still apply. */
14673 char $ac_func ();
14674 /* The GNU C library defines this for functions which it implements
14675 to always fail with ENOSYS. Some functions are actually named
14676 something starting with __ and the normal name is an alias. */
14677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14678 choke me
14679 #else
14680 char (*f) () = $ac_func;
14681 #endif
14682 #ifdef __cplusplus
14683 }
14684 #endif
14685
14686 int
14687 main ()
14688 {
14689 return f != $ac_func;
14690 ;
14691 return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696 (eval $ac_link) 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 eval "$as_ac_var=yes"
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 eval "$as_ac_var=no"
14721 fi
14722 rm -f conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724 fi
14725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14727 if test `eval echo '${'$as_ac_var'}'` = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730 _ACEOF
14731
14732 fi
14733 done
14734
14735 echo "$as_me:$LINENO: checking for working mktime" >&5
14736 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14737 if test "${ac_cv_func_working_mktime+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 if test "$cross_compiling" = yes; then
14741 ac_cv_func_working_mktime=no
14742 else
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 /* Test program from Paul Eggert and Tony Leneis. */
14750 #if TIME_WITH_SYS_TIME
14751 # include <sys/time.h>
14752 # include <time.h>
14753 #else
14754 # if HAVE_SYS_TIME_H
14755 # include <sys/time.h>
14756 # else
14757 # include <time.h>
14758 # endif
14759 #endif
14760
14761 #if HAVE_STDLIB_H
14762 # include <stdlib.h>
14763 #endif
14764
14765 #if HAVE_UNISTD_H
14766 # include <unistd.h>
14767 #endif
14768
14769 #if !HAVE_ALARM
14770 # define alarm(X) /* empty */
14771 #endif
14772
14773 /* Work around redefinition to rpl_putenv by other config tests. */
14774 #undef putenv
14775
14776 static time_t time_t_max;
14777 static time_t time_t_min;
14778
14779 /* Values we'll use to set the TZ environment variable. */
14780 static char *tz_strings[] = {
14781 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14782 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14783 };
14784 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14785
14786 /* Fail if mktime fails to convert a date in the spring-forward gap.
14787 Based on a problem report from Andreas Jaeger. */
14788 static void
14789 spring_forward_gap ()
14790 {
14791 /* glibc (up to about 1998-10-07) failed this test. */
14792 struct tm tm;
14793
14794 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14795 instead of "TZ=America/Vancouver" in order to detect the bug even
14796 on systems that don't support the Olson extension, or don't have the
14797 full zoneinfo tables installed. */
14798 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14799
14800 tm.tm_year = 98;
14801 tm.tm_mon = 3;
14802 tm.tm_mday = 5;
14803 tm.tm_hour = 2;
14804 tm.tm_min = 0;
14805 tm.tm_sec = 0;
14806 tm.tm_isdst = -1;
14807 if (mktime (&tm) == (time_t)-1)
14808 exit (1);
14809 }
14810
14811 static void
14812 mktime_test1 (now)
14813 time_t now;
14814 {
14815 struct tm *lt;
14816 if ((lt = localtime (&now)) && mktime (lt) != now)
14817 exit (1);
14818 }
14819
14820 static void
14821 mktime_test (now)
14822 time_t now;
14823 {
14824 mktime_test1 (now);
14825 mktime_test1 ((time_t) (time_t_max - now));
14826 mktime_test1 ((time_t) (time_t_min + now));
14827 }
14828
14829 static void
14830 irix_6_4_bug ()
14831 {
14832 /* Based on code from Ariel Faigon. */
14833 struct tm tm;
14834 tm.tm_year = 96;
14835 tm.tm_mon = 3;
14836 tm.tm_mday = 0;
14837 tm.tm_hour = 0;
14838 tm.tm_min = 0;
14839 tm.tm_sec = 0;
14840 tm.tm_isdst = -1;
14841 mktime (&tm);
14842 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14843 exit (1);
14844 }
14845
14846 static void
14847 bigtime_test (j)
14848 int j;
14849 {
14850 struct tm tm;
14851 time_t now;
14852 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14853 now = mktime (&tm);
14854 if (now != (time_t) -1)
14855 {
14856 struct tm *lt = localtime (&now);
14857 if (! (lt
14858 && lt->tm_year == tm.tm_year
14859 && lt->tm_mon == tm.tm_mon
14860 && lt->tm_mday == tm.tm_mday
14861 && lt->tm_hour == tm.tm_hour
14862 && lt->tm_min == tm.tm_min
14863 && lt->tm_sec == tm.tm_sec
14864 && lt->tm_yday == tm.tm_yday
14865 && lt->tm_wday == tm.tm_wday
14866 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14867 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14868 exit (1);
14869 }
14870 }
14871
14872 int
14873 main ()
14874 {
14875 time_t t, delta;
14876 int i, j;
14877
14878 /* This test makes some buggy mktime implementations loop.
14879 Give up after 60 seconds; a mktime slower than that
14880 isn't worth using anyway. */
14881 alarm (60);
14882
14883 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14884 continue;
14885 time_t_max--;
14886 if ((time_t) -1 < 0)
14887 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14888 continue;
14889 delta = time_t_max / 997; /* a suitable prime number */
14890 for (i = 0; i < N_STRINGS; i++)
14891 {
14892 if (tz_strings[i])
14893 putenv (tz_strings[i]);
14894
14895 for (t = 0; t <= time_t_max - delta; t += delta)
14896 mktime_test (t);
14897 mktime_test ((time_t) 1);
14898 mktime_test ((time_t) (60 * 60));
14899 mktime_test ((time_t) (60 * 60 * 24));
14900
14901 for (j = 1; 0 < j; j *= 2)
14902 bigtime_test (j);
14903 bigtime_test (j - 1);
14904 }
14905 irix_6_4_bug ();
14906 spring_forward_gap ();
14907 exit (0);
14908 }
14909 _ACEOF
14910 rm -f conftest$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_func_working_mktime=yes
14922 else
14923 echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ( exit $ac_status )
14928 ac_cv_func_working_mktime=no
14929 fi
14930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14931 fi
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14934 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14935 if test $ac_cv_func_working_mktime = no; then
14936 case $LIBOBJS in
14937 "mktime.$ac_objext" | \
14938 *" mktime.$ac_objext" | \
14939 "mktime.$ac_objext "* | \
14940 *" mktime.$ac_objext "* ) ;;
14941 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14942 esac
14943
14944 fi
14945
14946 if test "$ac_cv_func_working_mktime" = no; then
14947
14948 cat >>confdefs.h <<\_ACEOF
14949 #define BROKEN_MKTIME 1
14950 _ACEOF
14951
14952 fi
14953
14954 ac_have_func=no # yes means we've found a way to get the load average.
14955
14956 # Make sure getloadavg.c is where it belongs, at configure-time.
14957 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14958 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14959 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14960 { (exit 1); exit 1; }; }
14961
14962 ac_save_LIBS=$LIBS
14963
14964 # Check for getloadavg, but be sure not to touch the cache variable.
14965 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14966 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14967 if test "${ac_cv_func_getloadavg+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h. */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14978 #define getloadavg innocuous_getloadavg
14979
14980 /* System header to define __stub macros and hopefully few prototypes,
14981 which can conflict with char getloadavg (); below.
14982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14983 <limits.h> exists even on freestanding compilers. */
14984
14985 #ifdef __STDC__
14986 # include <limits.h>
14987 #else
14988 # include <assert.h>
14989 #endif
14990
14991 #undef getloadavg
14992
14993 /* Override any gcc2 internal prototype to avoid an error. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 {
14997 #endif
14998 /* We use char because int might match the return type of a gcc2
14999 builtin and then its argument prototype would still apply. */
15000 char getloadavg ();
15001 /* The GNU C library defines this for functions which it implements
15002 to always fail with ENOSYS. Some functions are actually named
15003 something starting with __ and the normal name is an alias. */
15004 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15005 choke me
15006 #else
15007 char (*f) () = getloadavg;
15008 #endif
15009 #ifdef __cplusplus
15010 }
15011 #endif
15012
15013 int
15014 main ()
15015 {
15016 return f != getloadavg;
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_func_getloadavg=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 ac_cv_func_getloadavg=no
15048 fi
15049 rm -f conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051 fi
15052 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15053 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15054 if test $ac_cv_func_getloadavg = yes; then
15055 exit 0
15056 else
15057 exit 1
15058 fi
15059 ) && ac_have_func=yes
15060
15061 # On HPUX9, an unprivileged user can get load averages through this function.
15062
15063 for ac_func in pstat_getdynamic
15064 do
15065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 echo "$as_me:$LINENO: checking for $ac_func" >&5
15067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15068 if eval "test \"\${$as_ac_var+set}\" = set"; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h. */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15079 #define $ac_func innocuous_$ac_func
15080
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func (); below.
15083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084 <limits.h> exists even on freestanding compilers. */
15085
15086 #ifdef __STDC__
15087 # include <limits.h>
15088 #else
15089 # include <assert.h>
15090 #endif
15091
15092 #undef $ac_func
15093
15094 /* Override any gcc2 internal prototype to avoid an error. */
15095 #ifdef __cplusplus
15096 extern "C"
15097 {
15098 #endif
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15101 char $ac_func ();
15102 /* The GNU C library defines this for functions which it implements
15103 to always fail with ENOSYS. Some functions are actually named
15104 something starting with __ and the normal name is an alias. */
15105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15106 choke me
15107 #else
15108 char (*f) () = $ac_func;
15109 #endif
15110 #ifdef __cplusplus
15111 }
15112 #endif
15113
15114 int
15115 main ()
15116 {
15117 return f != $ac_func;
15118 ;
15119 return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 eval "$as_ac_var=yes"
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148 eval "$as_ac_var=no"
15149 fi
15150 rm -f conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15152 fi
15153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15155 if test `eval echo '${'$as_ac_var'}'` = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15158 _ACEOF
15159
15160 fi
15161 done
15162
15163
15164 # Solaris has libkstat which does not require root.
15165
15166 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15167 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15168 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 ac_check_lib_save_LIBS=$LIBS
15172 LIBS="-lkstat $LIBS"
15173 cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h. */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179
15180 /* Override any gcc2 internal prototype to avoid an error. */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 /* We use char because int might match the return type of a gcc2
15185 builtin and then its argument prototype would still apply. */
15186 char kstat_open ();
15187 int
15188 main ()
15189 {
15190 kstat_open ();
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest$ac_exeext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216 ac_cv_lib_kstat_kstat_open=yes
15217 else
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ac_cv_lib_kstat_kstat_open=no
15222 fi
15223 rm -f conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15226 fi
15227 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15228 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15229 if test $ac_cv_lib_kstat_kstat_open = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231 #define HAVE_LIBKSTAT 1
15232 _ACEOF
15233
15234 LIBS="-lkstat $LIBS"
15235
15236 fi
15237
15238 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15239
15240 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15241 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15242 # to get the right answer into the cache.
15243 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15244 if test $ac_have_func = no; then
15245 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15246 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15247 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 ac_check_lib_save_LIBS=$LIBS
15251 LIBS="-lelf $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258
15259 /* Override any gcc2 internal prototype to avoid an error. */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15265 char elf_begin ();
15266 int
15267 main ()
15268 {
15269 elf_begin ();
15270 ;
15271 return 0;
15272 }
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276 (eval $ac_link) 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_lib_elf_elf_begin=yes
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_cv_lib_elf_elf_begin=no
15301 fi
15302 rm -f conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15305 fi
15306 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15308 if test $ac_cv_lib_elf_elf_begin = yes; then
15309 LIBS="-lelf $LIBS"
15310 fi
15311
15312 fi
15313 if test $ac_have_func = no; then
15314 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15315 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 ac_check_lib_save_LIBS=$LIBS
15320 LIBS="-lkvm $LIBS"
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327
15328 /* Override any gcc2 internal prototype to avoid an error. */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 /* We use char because int might match the return type of a gcc2
15333 builtin and then its argument prototype would still apply. */
15334 char kvm_open ();
15335 int
15336 main ()
15337 {
15338 kvm_open ();
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; } &&
15358 { ac_try='test -s conftest$ac_exeext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_lib_kvm_kvm_open=yes
15365 else
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 ac_cv_lib_kvm_kvm_open=no
15370 fi
15371 rm -f conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373 LIBS=$ac_check_lib_save_LIBS
15374 fi
15375 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15376 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15377 if test $ac_cv_lib_kvm_kvm_open = yes; then
15378 LIBS="-lkvm $LIBS"
15379 fi
15380
15381 # Check for the 4.4BSD definition of getloadavg.
15382 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15383 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15384 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 ac_check_lib_save_LIBS=$LIBS
15388 LIBS="-lutil $LIBS"
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395
15396 /* Override any gcc2 internal prototype to avoid an error. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char getloadavg ();
15403 int
15404 main ()
15405 {
15406 getloadavg ();
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15413 (eval $ac_link) 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_lib_util_getloadavg=yes
15433 else
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 ac_cv_lib_util_getloadavg=no
15438 fi
15439 rm -f conftest.err conftest.$ac_objext \
15440 conftest$ac_exeext conftest.$ac_ext
15441 LIBS=$ac_check_lib_save_LIBS
15442 fi
15443 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15444 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15445 if test $ac_cv_lib_util_getloadavg = yes; then
15446 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15447 fi
15448
15449 fi
15450
15451 if test $ac_have_func = no; then
15452 # There is a commonly available library for RS/6000 AIX.
15453 # Since it is not a standard part of AIX, it might be installed locally.
15454 ac_getloadavg_LIBS=$LIBS
15455 LIBS="-L/usr/local/lib $LIBS"
15456 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15457 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15458 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461 ac_check_lib_save_LIBS=$LIBS
15462 LIBS="-lgetloadavg $LIBS"
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469
15470 /* Override any gcc2 internal prototype to avoid an error. */
15471 #ifdef __cplusplus
15472 extern "C"
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15476 char getloadavg ();
15477 int
15478 main ()
15479 {
15480 getloadavg ();
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest$ac_exeext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_cv_lib_getloadavg_getloadavg=yes
15507 else
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511 ac_cv_lib_getloadavg_getloadavg=no
15512 fi
15513 rm -f conftest.err conftest.$ac_objext \
15514 conftest$ac_exeext conftest.$ac_ext
15515 LIBS=$ac_check_lib_save_LIBS
15516 fi
15517 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15518 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15519 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15520 LIBS="-lgetloadavg $LIBS"
15521 else
15522 LIBS=$ac_getloadavg_LIBS
15523 fi
15524
15525 fi
15526
15527 # Make sure it is really in the library, if we think we found it,
15528 # otherwise set up the replacement function.
15529
15530 for ac_func in getloadavg
15531 do
15532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15533 echo "$as_me:$LINENO: checking for $ac_func" >&5
15534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15535 if eval "test \"\${$as_ac_var+set}\" = set"; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15546 #define $ac_func innocuous_$ac_func
15547
15548 /* System header to define __stub macros and hopefully few prototypes,
15549 which can conflict with char $ac_func (); below.
15550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551 <limits.h> exists even on freestanding compilers. */
15552
15553 #ifdef __STDC__
15554 # include <limits.h>
15555 #else
15556 # include <assert.h>
15557 #endif
15558
15559 #undef $ac_func
15560
15561 /* Override any gcc2 internal prototype to avoid an error. */
15562 #ifdef __cplusplus
15563 extern "C"
15564 {
15565 #endif
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568 char $ac_func ();
15569 /* The GNU C library defines this for functions which it implements
15570 to always fail with ENOSYS. Some functions are actually named
15571 something starting with __ and the normal name is an alias. */
15572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15573 choke me
15574 #else
15575 char (*f) () = $ac_func;
15576 #endif
15577 #ifdef __cplusplus
15578 }
15579 #endif
15580
15581 int
15582 main ()
15583 {
15584 return f != $ac_func;
15585 ;
15586 return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 eval "$as_ac_var=yes"
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 eval "$as_ac_var=no"
15616 fi
15617 rm -f conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 fi
15620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 else
15628 case $LIBOBJS in
15629 "getloadavg.$ac_objext" | \
15630 *" getloadavg.$ac_objext" | \
15631 "getloadavg.$ac_objext "* | \
15632 *" getloadavg.$ac_objext "* ) ;;
15633 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15634 esac
15635
15636
15637 cat >>confdefs.h <<\_ACEOF
15638 #define C_GETLOADAVG 1
15639 _ACEOF
15640
15641 # Figure out what our getloadavg.c needs.
15642 ac_have_func=no
15643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15644 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15645 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15646 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 fi
15649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15651 else
15652 # Is the header compilable?
15653 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15654 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h. */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <sys/dg_sys_info.h>
15663 _ACEOF
15664 rm -f conftest.$ac_objext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_header_compiler=yes
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_header_compiler=no
15691 fi
15692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15694 echo "${ECHO_T}$ac_header_compiler" >&6
15695
15696 # Is the header present?
15697 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15698 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <sys/dg_sys_info.h>
15706 _ACEOF
15707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } >/dev/null; then
15715 if test -s conftest.err; then
15716 ac_cpp_err=$ac_c_preproc_warn_flag
15717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15718 else
15719 ac_cpp_err=
15720 fi
15721 else
15722 ac_cpp_err=yes
15723 fi
15724 if test -z "$ac_cpp_err"; then
15725 ac_header_preproc=yes
15726 else
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730 ac_header_preproc=no
15731 fi
15732 rm -f conftest.err conftest.$ac_ext
15733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15734 echo "${ECHO_T}$ac_header_preproc" >&6
15735
15736 # So? What about this header?
15737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15738 yes:no: )
15739 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15740 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15742 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15743 ac_header_preproc=yes
15744 ;;
15745 no:yes:* )
15746 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15747 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15749 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15751 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15753 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15755 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15757 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15758 (
15759 cat <<\_ASBOX
15760 ## ------------------------------------------ ##
15761 ## Report this to the AC_PACKAGE_NAME lists. ##
15762 ## ------------------------------------------ ##
15763 _ASBOX
15764 ) |
15765 sed "s/^/$as_me: WARNING: /" >&2
15766 ;;
15767 esac
15768 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15769 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15770 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15774 fi
15775 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15776 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15777
15778 fi
15779 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15780 ac_have_func=yes
15781
15782 cat >>confdefs.h <<\_ACEOF
15783 #define DGUX 1
15784 _ACEOF
15785
15786
15787 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15788 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15789 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792 ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-ldgc $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800
15801 /* Override any gcc2 internal prototype to avoid an error. */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 /* We use char because int might match the return type of a gcc2
15806 builtin and then its argument prototype would still apply. */
15807 char dg_sys_info ();
15808 int
15809 main ()
15810 {
15811 dg_sys_info ();
15812 ;
15813 return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_cv_lib_dgc_dg_sys_info=yes
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_cv_lib_dgc_dg_sys_info=no
15843 fi
15844 rm -f conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15847 fi
15848 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15849 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15850 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBDGC 1
15853 _ACEOF
15854
15855 LIBS="-ldgc $LIBS"
15856
15857 fi
15858
15859 fi
15860
15861
15862
15863 if test "${ac_cv_header_locale_h+set}" = set; then
15864 echo "$as_me:$LINENO: checking for locale.h" >&5
15865 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15866 if test "${ac_cv_header_locale_h+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 fi
15869 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15871 else
15872 # Is the header compilable?
15873 echo "$as_me:$LINENO: checking locale.h usability" >&5
15874 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $ac_includes_default
15882 #include <locale.h>
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest.$ac_objext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_header_compiler=yes
15906 else
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 ac_header_compiler=no
15911 fi
15912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15914 echo "${ECHO_T}$ac_header_compiler" >&6
15915
15916 # Is the header present?
15917 echo "$as_me:$LINENO: checking locale.h presence" >&5
15918 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <locale.h>
15926 _ACEOF
15927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_c_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938 else
15939 ac_cpp_err=
15940 fi
15941 else
15942 ac_cpp_err=yes
15943 fi
15944 if test -z "$ac_cpp_err"; then
15945 ac_header_preproc=yes
15946 else
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_header_preproc=no
15951 fi
15952 rm -f conftest.err conftest.$ac_ext
15953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15954 echo "${ECHO_T}$ac_header_preproc" >&6
15955
15956 # So? What about this header?
15957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15958 yes:no: )
15959 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15960 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15961 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15962 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15963 ac_header_preproc=yes
15964 ;;
15965 no:yes:* )
15966 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15967 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15969 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15971 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15973 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15975 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15977 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15978 (
15979 cat <<\_ASBOX
15980 ## ------------------------------------------ ##
15981 ## Report this to the AC_PACKAGE_NAME lists. ##
15982 ## ------------------------------------------ ##
15983 _ASBOX
15984 ) |
15985 sed "s/^/$as_me: WARNING: /" >&2
15986 ;;
15987 esac
15988 echo "$as_me:$LINENO: checking for locale.h" >&5
15989 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15990 if test "${ac_cv_header_locale_h+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 ac_cv_header_locale_h=$ac_header_preproc
15994 fi
15995 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15996 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15997
15998 fi
15999
16000
16001
16002 for ac_func in setlocale
16003 do
16004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16005 echo "$as_me:$LINENO: checking for $ac_func" >&5
16006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16007 if eval "test \"\${$as_ac_var+set}\" = set"; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16019
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16024
16025 #ifdef __STDC__
16026 # include <limits.h>
16027 #else
16028 # include <assert.h>
16029 #endif
16030
16031 #undef $ac_func
16032
16033 /* Override any gcc2 internal prototype to avoid an error. */
16034 #ifdef __cplusplus
16035 extern "C"
16036 {
16037 #endif
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16040 char $ac_func ();
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16045 choke me
16046 #else
16047 char (*f) () = $ac_func;
16048 #endif
16049 #ifdef __cplusplus
16050 }
16051 #endif
16052
16053 int
16054 main ()
16055 {
16056 return f != $ac_func;
16057 ;
16058 return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest$ac_exeext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 eval "$as_ac_var=yes"
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 eval "$as_ac_var=no"
16088 fi
16089 rm -f conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
16091 fi
16092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097 _ACEOF
16098
16099 fi
16100 done
16101
16102
16103 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16104 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16105 # Irix 4.0.5F has the header but not the library.
16106 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16107 ac_have_func=yes
16108
16109 cat >>confdefs.h <<\_ACEOF
16110 #define SVR4 1
16111 _ACEOF
16112
16113 fi
16114
16115 if test $ac_have_func = no; then
16116 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16117 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16118 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16119 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 fi
16122 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16123 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16124 else
16125 # Is the header compilable?
16126 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16127 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16128 cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h. */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 #include <inq_stats/cpustats.h>
16136 _ACEOF
16137 rm -f conftest.$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler=yes
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_header_compiler=no
16164 fi
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6
16168
16169 # Is the header present?
16170 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16171 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <inq_stats/cpustats.h>
16179 _ACEOF
16180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16193 fi
16194 else
16195 ac_cpp_err=yes
16196 fi
16197 if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_header_preproc=no
16204 fi
16205 rm -f conftest.err conftest.$ac_ext
16206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 echo "${ECHO_T}$ac_header_preproc" >&6
16208
16209 # So? What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16211 yes:no: )
16212 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16213 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16215 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16216 ac_header_preproc=yes
16217 ;;
16218 no:yes:* )
16219 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16220 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16222 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16224 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16226 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16228 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16230 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16231 (
16232 cat <<\_ASBOX
16233 ## ------------------------------------------ ##
16234 ## Report this to the AC_PACKAGE_NAME lists. ##
16235 ## ------------------------------------------ ##
16236 _ASBOX
16237 ) |
16238 sed "s/^/$as_me: WARNING: /" >&2
16239 ;;
16240 esac
16241 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16242 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16243 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16247 fi
16248 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16249 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16250
16251 fi
16252 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16253 ac_have_func=yes
16254
16255 cat >>confdefs.h <<\_ACEOF
16256 #define UMAX 1
16257 _ACEOF
16258
16259
16260 cat >>confdefs.h <<\_ACEOF
16261 #define UMAX4_3 1
16262 _ACEOF
16263
16264 fi
16265
16266
16267 fi
16268
16269 if test $ac_have_func = no; then
16270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16271 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16272 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16273 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 fi
16276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16277 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16278 else
16279 # Is the header compilable?
16280 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16281 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16289 #include <sys/cpustats.h>
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest.$ac_objext'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler=yes
16313 else
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16316
16317 ac_header_compiler=no
16318 fi
16319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16321 echo "${ECHO_T}$ac_header_compiler" >&6
16322
16323 # Is the header present?
16324 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16325 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h. */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 #include <sys/cpustats.h>
16333 _ACEOF
16334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16336 ac_status=$?
16337 grep -v '^ *+' conftest.er1 >conftest.err
16338 rm -f conftest.er1
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } >/dev/null; then
16342 if test -s conftest.err; then
16343 ac_cpp_err=$ac_c_preproc_warn_flag
16344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16345 else
16346 ac_cpp_err=
16347 fi
16348 else
16349 ac_cpp_err=yes
16350 fi
16351 if test -z "$ac_cpp_err"; then
16352 ac_header_preproc=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_header_preproc=no
16358 fi
16359 rm -f conftest.err conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16361 echo "${ECHO_T}$ac_header_preproc" >&6
16362
16363 # So? What about this header?
16364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16365 yes:no: )
16366 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16367 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16369 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16370 ac_header_preproc=yes
16371 ;;
16372 no:yes:* )
16373 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16378 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16380 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16382 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16384 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16385 (
16386 cat <<\_ASBOX
16387 ## ------------------------------------------ ##
16388 ## Report this to the AC_PACKAGE_NAME lists. ##
16389 ## ------------------------------------------ ##
16390 _ASBOX
16391 ) |
16392 sed "s/^/$as_me: WARNING: /" >&2
16393 ;;
16394 esac
16395 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16396 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16397 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16401 fi
16402 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16403 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16404
16405 fi
16406 if test $ac_cv_header_sys_cpustats_h = yes; then
16407 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16408 #define UMAX 1
16409 _ACEOF
16410
16411 fi
16412
16413
16414 fi
16415
16416 if test $ac_have_func = no; then
16417
16418 for ac_header in mach/mach.h
16419 do
16420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16422 echo "$as_me:$LINENO: checking for $ac_header" >&5
16423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 fi
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16429 else
16430 # Is the header compilable?
16431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 $ac_includes_default
16440 #include <$ac_header>
16441 _ACEOF
16442 rm -f conftest.$ac_objext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_header_compiler=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468 ac_header_compiler=no
16469 fi
16470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16472 echo "${ECHO_T}$ac_header_compiler" >&6
16473
16474 # Is the header present?
16475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <$ac_header>
16484 _ACEOF
16485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev/null; then
16493 if test -s conftest.err; then
16494 ac_cpp_err=$ac_c_preproc_warn_flag
16495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16496 else
16497 ac_cpp_err=
16498 fi
16499 else
16500 ac_cpp_err=yes
16501 fi
16502 if test -z "$ac_cpp_err"; then
16503 ac_header_preproc=yes
16504 else
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_header_preproc=no
16509 fi
16510 rm -f conftest.err conftest.$ac_ext
16511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16512 echo "${ECHO_T}$ac_header_preproc" >&6
16513
16514 # So? What about this header?
16515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16516 yes:no: )
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16521 ac_header_preproc=yes
16522 ;;
16523 no:yes:* )
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16536 (
16537 cat <<\_ASBOX
16538 ## ------------------------------------------ ##
16539 ## Report this to the AC_PACKAGE_NAME lists. ##
16540 ## ------------------------------------------ ##
16541 _ASBOX
16542 ) |
16543 sed "s/^/$as_me: WARNING: /" >&2
16544 ;;
16545 esac
16546 echo "$as_me:$LINENO: checking for $ac_header" >&5
16547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551 eval "$as_ac_Header=\$ac_header_preproc"
16552 fi
16553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16555
16556 fi
16557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16560 _ACEOF
16561
16562 fi
16563
16564 done
16565
16566 fi
16567
16568
16569 for ac_header in nlist.h
16570 do
16571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16573 echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 fi
16578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16580 else
16581 # Is the header compilable?
16582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 $ac_includes_default
16591 #include <$ac_header>
16592 _ACEOF
16593 rm -f conftest.$ac_objext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16595 (eval $ac_compile) 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
16602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_header_compiler=yes
16615 else
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ac_header_compiler=no
16620 fi
16621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16623 echo "${ECHO_T}$ac_header_compiler" >&6
16624
16625 # Is the header present?
16626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <$ac_header>
16635 _ACEOF
16636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } >/dev/null; then
16644 if test -s conftest.err; then
16645 ac_cpp_err=$ac_c_preproc_warn_flag
16646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16647 else
16648 ac_cpp_err=
16649 fi
16650 else
16651 ac_cpp_err=yes
16652 fi
16653 if test -z "$ac_cpp_err"; then
16654 ac_header_preproc=yes
16655 else
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 ac_header_preproc=no
16660 fi
16661 rm -f conftest.err conftest.$ac_ext
16662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16663 echo "${ECHO_T}$ac_header_preproc" >&6
16664
16665 # So? What about this header?
16666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16667 yes:no: )
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16672 ac_header_preproc=yes
16673 ;;
16674 no:yes:* )
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16687 (
16688 cat <<\_ASBOX
16689 ## ------------------------------------------ ##
16690 ## Report this to the AC_PACKAGE_NAME lists. ##
16691 ## ------------------------------------------ ##
16692 _ASBOX
16693 ) |
16694 sed "s/^/$as_me: WARNING: /" >&2
16695 ;;
16696 esac
16697 echo "$as_me:$LINENO: checking for $ac_header" >&5
16698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 eval "$as_ac_Header=\$ac_header_preproc"
16703 fi
16704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16706
16707 fi
16708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 _ACEOF
16712 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16713 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16714 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <nlist.h>
16724
16725 int
16726 main ()
16727 {
16728 static struct nlist ac_aggr;
16729 if (ac_aggr.n_un.n_name)
16730 return 0;
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16737 (eval $ac_compile) 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest.$ac_objext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_member_struct_nlist_n_un_n_name=yes
16757 else
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <nlist.h>
16768
16769 int
16770 main ()
16771 {
16772 static struct nlist ac_aggr;
16773 if (sizeof ac_aggr.n_un.n_name)
16774 return 0;
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_member_struct_nlist_n_un_n_name=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_cv_member_struct_nlist_n_un_n_name=no
16806 fi
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16808 fi
16809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810 fi
16811 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16812 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16813 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16814
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16817 _ACEOF
16818
16819
16820 cat >>confdefs.h <<\_ACEOF
16821 #define NLIST_NAME_UNION 1
16822 _ACEOF
16823
16824 fi
16825
16826
16827 fi
16828
16829 done
16830
16831 fi
16832 done
16833
16834
16835 # Some definitions of getloadavg require that the program be installed setgid.
16836 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16837 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16838 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h. */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16848 #ifdef LDAV_PRIVILEGED
16849 Yowza Am I SETGID yet
16850 #endif
16851 _ACEOF
16852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16853 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16854 ac_cv_func_getloadavg_setgid=yes
16855 else
16856 ac_cv_func_getloadavg_setgid=no
16857 fi
16858 rm -f conftest*
16859
16860 fi
16861 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16862 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16863 if test $ac_cv_func_getloadavg_setgid = yes; then
16864 NEED_SETGID=true
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define GETLOADAVG_PRIVILEGED 1
16868 _ACEOF
16869
16870 else
16871 NEED_SETGID=false
16872 fi
16873
16874 if test $ac_cv_func_getloadavg_setgid = yes; then
16875 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16876 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16877 if test "${ac_cv_group_kmem+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16881 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16882 # If we got an error (system does not support symlinks), try without -L.
16883 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16884 ac_cv_group_kmem=`echo $ac_ls_output \
16885 | sed -ne 's/[ ][ ]*/ /g;
16886 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16887 / /s/.* //;p;'`
16888
16889 fi
16890 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16891 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16892 KMEM_GROUP=$ac_cv_group_kmem
16893 fi
16894 if test "x$ac_save_LIBS" = x; then
16895 GETLOADAVG_LIBS=$LIBS
16896 else
16897 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16898 fi
16899 LIBS=$ac_save_LIBS
16900
16901
16902
16903 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16904 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16905 if test "${ac_cv_sys_largefile_source+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908 while :; do
16909 ac_cv_sys_largefile_source=no
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 #include <stdio.h>
16917 int
16918 main ()
16919 {
16920 return !fseeko;
16921 ;
16922 return 0;
16923 }
16924 _ACEOF
16925 rm -f conftest.$ac_objext
16926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16927 (eval $ac_compile) 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 break
16947 else
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 fi
16952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 #define _LARGEFILE_SOURCE 1
16960 #include <stdio.h>
16961 int
16962 main ()
16963 {
16964 return !fseeko;
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16971 (eval $ac_compile) 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_sys_largefile_source=1; break
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 fi
16996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16997 break
16998 done
16999 fi
17000 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17001 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17002 if test "$ac_cv_sys_largefile_source" != no; then
17003
17004 cat >>confdefs.h <<_ACEOF
17005 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17006 _ACEOF
17007
17008 fi
17009 rm -f conftest*
17010
17011 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17012 # in glibc 2.1.3, but that breaks too many other things.
17013 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17014 echo "$as_me:$LINENO: checking for fseeko" >&5
17015 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17016 if test "${ac_cv_func_fseeko+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <stdio.h>
17026 int
17027 main ()
17028 {
17029 return fseeko && fseeko (stdin, 0, 0);
17030 ;
17031 return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036 (eval $ac_link) 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_func_fseeko=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 ac_cv_func_fseeko=no
17061 fi
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 fi
17065 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17066 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17067 if test $ac_cv_func_fseeko = yes; then
17068
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_FSEEKO 1
17071 _ACEOF
17072
17073 fi
17074
17075
17076 # Configure getopt.
17077 # getopt.m4 serial 10
17078
17079 # The getopt module assume you want GNU getopt, with getopt_long etc,
17080 # rather than vanilla POSIX getopt. This means your your code should
17081 # always include <getopt.h> for the getopt prototypes.
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093 # Prerequisites of lib/getopt*.
17094
17095
17096
17097
17098 GETOPT_H=
17099
17100 for ac_header in getopt.h
17101 do
17102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 fi
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17111 else
17112 # Is the header compilable?
17113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 $ac_includes_default
17122 #include <$ac_header>
17123 _ACEOF
17124 rm -f conftest.$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_header_compiler=yes
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_header_compiler=no
17151 fi
17152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17154 echo "${ECHO_T}$ac_header_compiler" >&6
17155
17156 # Is the header present?
17157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 #include <$ac_header>
17166 _ACEOF
17167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } >/dev/null; then
17175 if test -s conftest.err; then
17176 ac_cpp_err=$ac_c_preproc_warn_flag
17177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17178 else
17179 ac_cpp_err=
17180 fi
17181 else
17182 ac_cpp_err=yes
17183 fi
17184 if test -z "$ac_cpp_err"; then
17185 ac_header_preproc=yes
17186 else
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_header_preproc=no
17191 fi
17192 rm -f conftest.err conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17194 echo "${ECHO_T}$ac_header_preproc" >&6
17195
17196 # So? What about this header?
17197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17198 yes:no: )
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17203 ac_header_preproc=yes
17204 ;;
17205 no:yes:* )
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17218 (
17219 cat <<\_ASBOX
17220 ## ------------------------------------------ ##
17221 ## Report this to the AC_PACKAGE_NAME lists. ##
17222 ## ------------------------------------------ ##
17223 _ASBOX
17224 ) |
17225 sed "s/^/$as_me: WARNING: /" >&2
17226 ;;
17227 esac
17228 echo "$as_me:$LINENO: checking for $ac_header" >&5
17229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233 eval "$as_ac_Header=\$ac_header_preproc"
17234 fi
17235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17237
17238 fi
17239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 else
17245 GETOPT_H=getopt.h
17246 fi
17247
17248 done
17249
17250 if test -z "$GETOPT_H"; then
17251
17252 for ac_func in getopt_long_only
17253 do
17254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17257 if eval "test \"\${$as_ac_var+set}\" = set"; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17269
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274
17275 #ifdef __STDC__
17276 # include <limits.h>
17277 #else
17278 # include <assert.h>
17279 #endif
17280
17281 #undef $ac_func
17282
17283 /* Override any gcc2 internal prototype to avoid an error. */
17284 #ifdef __cplusplus
17285 extern "C"
17286 {
17287 #endif
17288 /* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17290 char $ac_func ();
17291 /* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17295 choke me
17296 #else
17297 char (*f) () = $ac_func;
17298 #endif
17299 #ifdef __cplusplus
17300 }
17301 #endif
17302
17303 int
17304 main ()
17305 {
17306 return f != $ac_func;
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 eval "$as_ac_var=yes"
17333 else
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 eval "$as_ac_var=no"
17338 fi
17339 rm -f conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17341 fi
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17344 if test `eval echo '${'$as_ac_var'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17347 _ACEOF
17348
17349 else
17350 GETOPT_H=getopt.h
17351 fi
17352 done
17353
17354 fi
17355
17356 if test -z "$GETOPT_H"; then
17357 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17358 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17359 if test "${ac_cv_have_decl_optreset+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <getopt.h>
17369
17370 int
17371 main ()
17372 {
17373 #ifndef optreset
17374 char *p = (char *) optreset;
17375 #endif
17376
17377 ;
17378 return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17383 (eval $ac_compile) 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_have_decl_optreset=yes
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_have_decl_optreset=no
17408 fi
17409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17412 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17413 if test $ac_cv_have_decl_optreset = yes; then
17414 GETOPT_H=getopt.h
17415 fi
17416
17417 fi
17418
17419 if test -z "$GETOPT_H"; then
17420 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17421 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17422 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 if test "$cross_compiling" = yes; then
17426 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17427 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17428 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 #include <getopt.h>
17438
17439 int
17440 main ()
17441 {
17442 #ifndef getopt_clip
17443 char *p = (char *) getopt_clip;
17444 #endif
17445
17446 ;
17447 return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17452 (eval $ac_compile) 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest.$ac_objext'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
17471 ac_cv_have_decl_getopt_clip=yes
17472 else
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_cv_have_decl_getopt_clip=no
17477 fi
17478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479 fi
17480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17481 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17482 if test $ac_cv_have_decl_getopt_clip = yes; then
17483 gl_cv_func_gnu_getopt=no
17484 else
17485 gl_cv_func_gnu_getopt=yes
17486 fi
17487
17488 else
17489 cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <getopt.h>
17496 int
17497 main ()
17498 {
17499
17500 char *myargv[3];
17501 myargv[0] = "conftest";
17502 myargv[1] = "-+";
17503 myargv[2] = 0;
17504 return getopt (2, myargv, "+a") != '?';
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest$ac_exeext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17512 (eval $ac_link) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 gl_cv_func_gnu_getopt=yes
17522 else
17523 echo "$as_me: program exited with status $ac_status" >&5
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527 ( exit $ac_status )
17528 gl_cv_func_gnu_getopt=no
17529 fi
17530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17531 fi
17532 fi
17533 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17534 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17535 if test "$gl_cv_func_gnu_getopt" = "no"; then
17536 GETOPT_H=getopt.h
17537 fi
17538 fi
17539
17540
17541
17542 if test -n "$GETOPT_H"; then
17543
17544
17545 GETOPT_H=getopt.h
17546
17547 cat >>confdefs.h <<\_ACEOF
17548 #define __GETOPT_PREFIX rpl_
17549 _ACEOF
17550
17551
17552
17553 :
17554 GETOPTOBJS='getopt.o getopt1.o'
17555
17556 fi
17557
17558
17559
17560
17561 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17562 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17563 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566 # Use it with a single arg.
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 $ac_includes_default
17574 int
17575 main ()
17576 {
17577 getpgrp (0);
17578 ;
17579 return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17584 (eval $ac_compile) 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest.$ac_objext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_func_getpgrp_void=no
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 ac_cv_func_getpgrp_void=yes
17609 fi
17610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17611
17612 fi
17613 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17614 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17615 if test $ac_cv_func_getpgrp_void = yes; then
17616
17617 cat >>confdefs.h <<\_ACEOF
17618 #define GETPGRP_VOID 1
17619 _ACEOF
17620
17621 fi
17622
17623
17624
17625 for ac_func in strftime
17626 do
17627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17628 echo "$as_me:$LINENO: checking for $ac_func" >&5
17629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17630 if eval "test \"\${$as_ac_var+set}\" = set"; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17641 #define $ac_func innocuous_$ac_func
17642
17643 /* System header to define __stub macros and hopefully few prototypes,
17644 which can conflict with char $ac_func (); below.
17645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17646 <limits.h> exists even on freestanding compilers. */
17647
17648 #ifdef __STDC__
17649 # include <limits.h>
17650 #else
17651 # include <assert.h>
17652 #endif
17653
17654 #undef $ac_func
17655
17656 /* Override any gcc2 internal prototype to avoid an error. */
17657 #ifdef __cplusplus
17658 extern "C"
17659 {
17660 #endif
17661 /* We use char because int might match the return type of a gcc2
17662 builtin and then its argument prototype would still apply. */
17663 char $ac_func ();
17664 /* The GNU C library defines this for functions which it implements
17665 to always fail with ENOSYS. Some functions are actually named
17666 something starting with __ and the normal name is an alias. */
17667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17668 choke me
17669 #else
17670 char (*f) () = $ac_func;
17671 #endif
17672 #ifdef __cplusplus
17673 }
17674 #endif
17675
17676 int
17677 main ()
17678 {
17679 return f != $ac_func;
17680 ;
17681 return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686 (eval $ac_link) 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest$ac_exeext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 eval "$as_ac_var=yes"
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 eval "$as_ac_var=no"
17711 fi
17712 rm -f conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17714 fi
17715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17717 if test `eval echo '${'$as_ac_var'}'` = yes; then
17718 cat >>confdefs.h <<_ACEOF
17719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 _ACEOF
17721
17722 else
17723 # strftime is in -lintl on SCO UNIX.
17724 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17725 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17726 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729 ac_check_lib_save_LIBS=$LIBS
17730 LIBS="-lintl $LIBS"
17731 cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737
17738 /* Override any gcc2 internal prototype to avoid an error. */
17739 #ifdef __cplusplus
17740 extern "C"
17741 #endif
17742 /* We use char because int might match the return type of a gcc2
17743 builtin and then its argument prototype would still apply. */
17744 char strftime ();
17745 int
17746 main ()
17747 {
17748 strftime ();
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext conftest$ac_exeext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_lib_intl_strftime=yes
17775 else
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ac_cv_lib_intl_strftime=no
17780 fi
17781 rm -f conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17786 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17787 if test $ac_cv_lib_intl_strftime = yes; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_STRFTIME 1
17790 _ACEOF
17791
17792 LIBS="-lintl $LIBS"
17793 fi
17794
17795 fi
17796 done
17797
17798
17799 # UNIX98 PTYs.
17800
17801 for ac_func in grantpt
17802 do
17803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17804 echo "$as_me:$LINENO: checking for $ac_func" >&5
17805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17806 if eval "test \"\${$as_ac_var+set}\" = set"; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17817 #define $ac_func innocuous_$ac_func
17818
17819 /* System header to define __stub macros and hopefully few prototypes,
17820 which can conflict with char $ac_func (); below.
17821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822 <limits.h> exists even on freestanding compilers. */
17823
17824 #ifdef __STDC__
17825 # include <limits.h>
17826 #else
17827 # include <assert.h>
17828 #endif
17829
17830 #undef $ac_func
17831
17832 /* Override any gcc2 internal prototype to avoid an error. */
17833 #ifdef __cplusplus
17834 extern "C"
17835 {
17836 #endif
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17839 char $ac_func ();
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17844 choke me
17845 #else
17846 char (*f) () = $ac_func;
17847 #endif
17848 #ifdef __cplusplus
17849 }
17850 #endif
17851
17852 int
17853 main ()
17854 {
17855 return f != $ac_func;
17856 ;
17857 return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest$ac_exeext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 eval "$as_ac_var=yes"
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 eval "$as_ac_var=no"
17887 fi
17888 rm -f conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890 fi
17891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896 _ACEOF
17897
17898 fi
17899 done
17900
17901
17902 # PTY-related GNU extensions.
17903
17904 for ac_func in getpt
17905 do
17906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17907 echo "$as_me:$LINENO: checking for $ac_func" >&5
17908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_var+set}\" = set"; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17920 #define $ac_func innocuous_$ac_func
17921
17922 /* System header to define __stub macros and hopefully few prototypes,
17923 which can conflict with char $ac_func (); below.
17924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925 <limits.h> exists even on freestanding compilers. */
17926
17927 #ifdef __STDC__
17928 # include <limits.h>
17929 #else
17930 # include <assert.h>
17931 #endif
17932
17933 #undef $ac_func
17934
17935 /* Override any gcc2 internal prototype to avoid an error. */
17936 #ifdef __cplusplus
17937 extern "C"
17938 {
17939 #endif
17940 /* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17942 char $ac_func ();
17943 /* The GNU C library defines this for functions which it implements
17944 to always fail with ENOSYS. Some functions are actually named
17945 something starting with __ and the normal name is an alias. */
17946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17947 choke me
17948 #else
17949 char (*f) () = $ac_func;
17950 #endif
17951 #ifdef __cplusplus
17952 }
17953 #endif
17954
17955 int
17956 main ()
17957 {
17958 return f != $ac_func;
17959 ;
17960 return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest$ac_exeext'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 eval "$as_ac_var=yes"
17985 else
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 eval "$as_ac_var=no"
17990 fi
17991 rm -f conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 fi
17994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17999 _ACEOF
18000
18001 fi
18002 done
18003
18004
18005 # Check this now, so that we will NOT find the above functions in ncurses.
18006 # That is because we have not set up to link ncurses in lib-src.
18007 # It's better to believe a function is not available
18008 # than to expect to find it in ncurses.
18009
18010 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18011 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18012 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015 ac_check_lib_save_LIBS=$LIBS
18016 LIBS="-lncurses $LIBS"
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h. */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023
18024 /* Override any gcc2 internal prototype to avoid an error. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18030 char tparm ();
18031 int
18032 main ()
18033 {
18034 tparm ();
18035 ;
18036 return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_lib_ncurses_tparm=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 ac_cv_lib_ncurses_tparm=no
18066 fi
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 LIBS=$ac_check_lib_save_LIBS
18070 fi
18071 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18072 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18073 if test $ac_cv_lib_ncurses_tparm = yes; then
18074 cat >>confdefs.h <<_ACEOF
18075 #define HAVE_LIBNCURSES 1
18076 _ACEOF
18077
18078 LIBS="-lncurses $LIBS"
18079
18080 fi
18081
18082
18083 # Do we need the Hesiod library to provide the support routines?
18084 if test "$with_hesiod" = yes ; then
18085 # Don't set $LIBS here -- see comments above.
18086 resolv=no
18087 echo "$as_me:$LINENO: checking for res_send" >&5
18088 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18089 if test "${ac_cv_func_res_send+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h. */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18100 #define res_send innocuous_res_send
18101
18102 /* System header to define __stub macros and hopefully few prototypes,
18103 which can conflict with char res_send (); below.
18104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18105 <limits.h> exists even on freestanding compilers. */
18106
18107 #ifdef __STDC__
18108 # include <limits.h>
18109 #else
18110 # include <assert.h>
18111 #endif
18112
18113 #undef res_send
18114
18115 /* Override any gcc2 internal prototype to avoid an error. */
18116 #ifdef __cplusplus
18117 extern "C"
18118 {
18119 #endif
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18122 char res_send ();
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined (__stub_res_send) || defined (__stub___res_send)
18127 choke me
18128 #else
18129 char (*f) () = res_send;
18130 #endif
18131 #ifdef __cplusplus
18132 }
18133 #endif
18134
18135 int
18136 main ()
18137 {
18138 return f != res_send;
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145 (eval $ac_link) 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest$ac_exeext'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_func_res_send=yes
18165 else
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169 ac_cv_func_res_send=no
18170 fi
18171 rm -f conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18173 fi
18174 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18175 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18176 if test $ac_cv_func_res_send = yes; then
18177 :
18178 else
18179 echo "$as_me:$LINENO: checking for __res_send" >&5
18180 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18181 if test "${ac_cv_func___res_send+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define __res_send innocuous___res_send
18193
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char __res_send (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18198
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18204
18205 #undef __res_send
18206
18207 /* Override any gcc2 internal prototype to avoid an error. */
18208 #ifdef __cplusplus
18209 extern "C"
18210 {
18211 #endif
18212 /* We use char because int might match the return type of a gcc2
18213 builtin and then its argument prototype would still apply. */
18214 char __res_send ();
18215 /* The GNU C library defines this for functions which it implements
18216 to always fail with ENOSYS. Some functions are actually named
18217 something starting with __ and the normal name is an alias. */
18218 #if defined (__stub___res_send) || defined (__stub_____res_send)
18219 choke me
18220 #else
18221 char (*f) () = __res_send;
18222 #endif
18223 #ifdef __cplusplus
18224 }
18225 #endif
18226
18227 int
18228 main ()
18229 {
18230 return f != __res_send;
18231 ;
18232 return 0;
18233 }
18234 _ACEOF
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_func___res_send=yes
18257 else
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_cv_func___res_send=no
18262 fi
18263 rm -f conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 fi
18266 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18267 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18268 if test $ac_cv_func___res_send = yes; then
18269 :
18270 else
18271 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18272 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18273 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276 ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-lresolv $LIBS"
18278 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h. */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18284
18285 /* Override any gcc2 internal prototype to avoid an error. */
18286 #ifdef __cplusplus
18287 extern "C"
18288 #endif
18289 /* We use char because int might match the return type of a gcc2
18290 builtin and then its argument prototype would still apply. */
18291 char res_send ();
18292 int
18293 main ()
18294 {
18295 res_send ();
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302 (eval $ac_link) 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_resolv_res_send=yes
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_resolv_res_send=no
18327 fi
18328 rm -f conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18331 fi
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18333 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18334 if test $ac_cv_lib_resolv_res_send = yes; then
18335 resolv=yes
18336 else
18337 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18338 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18339 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 else
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lresolv $LIBS"
18344 cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350
18351 /* Override any gcc2 internal prototype to avoid an error. */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357 char __res_send ();
18358 int
18359 main ()
18360 {
18361 __res_send ();
18362 ;
18363 return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_resolv___res_send=yes
18388 else
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ac_cv_lib_resolv___res_send=no
18393 fi
18394 rm -f conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18399 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18400 if test $ac_cv_lib_resolv___res_send = yes; then
18401 resolv=yes
18402 fi
18403
18404 fi
18405
18406 fi
18407
18408 fi
18409
18410 if test "$resolv" = yes ; then
18411 RESOLVLIB=-lresolv
18412
18413 cat >>confdefs.h <<\_ACEOF
18414 #define HAVE_LIBRESOLV 1
18415 _ACEOF
18416
18417 else
18418 RESOLVLIB=
18419 fi
18420 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18421 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18422 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18433 #define hes_getmailhost innocuous_hes_getmailhost
18434
18435 /* System header to define __stub macros and hopefully few prototypes,
18436 which can conflict with char hes_getmailhost (); below.
18437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438 <limits.h> exists even on freestanding compilers. */
18439
18440 #ifdef __STDC__
18441 # include <limits.h>
18442 #else
18443 # include <assert.h>
18444 #endif
18445
18446 #undef hes_getmailhost
18447
18448 /* Override any gcc2 internal prototype to avoid an error. */
18449 #ifdef __cplusplus
18450 extern "C"
18451 {
18452 #endif
18453 /* We use char because int might match the return type of a gcc2
18454 builtin and then its argument prototype would still apply. */
18455 char hes_getmailhost ();
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18460 choke me
18461 #else
18462 char (*f) () = hes_getmailhost;
18463 #endif
18464 #ifdef __cplusplus
18465 }
18466 #endif
18467
18468 int
18469 main ()
18470 {
18471 return f != hes_getmailhost;
18472 ;
18473 return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; } &&
18491 { ac_try='test -s conftest$ac_exeext'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_cv_func_hes_getmailhost=yes
18498 else
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 ac_cv_func_hes_getmailhost=no
18503 fi
18504 rm -f conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18506 fi
18507 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18508 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18509 if test $ac_cv_func_hes_getmailhost = yes; then
18510 :
18511 else
18512 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18513 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18514 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517 ac_check_lib_save_LIBS=$LIBS
18518 LIBS="-lhesiod $RESOLVLIB $LIBS"
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525
18526 /* Override any gcc2 internal prototype to avoid an error. */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 /* We use char because int might match the return type of a gcc2
18531 builtin and then its argument prototype would still apply. */
18532 char hes_getmailhost ();
18533 int
18534 main ()
18535 {
18536 hes_getmailhost ();
18537 ;
18538 return 0;
18539 }
18540 _ACEOF
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543 (eval $ac_link) 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest$ac_exeext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_hesiod_hes_getmailhost=yes
18563 else
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_cv_lib_hesiod_hes_getmailhost=no
18568 fi
18569 rm -f conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18572 fi
18573 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18574 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18575 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18576
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_LIBHESIOD 1
18579 _ACEOF
18580
18581 else
18582 :
18583 fi
18584
18585 fi
18586
18587 fi
18588
18589 # These tell us which Kerberos-related libraries to use.
18590 if test "${with_kerberos+set}" = set; then
18591
18592 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18593 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18594 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 ac_check_lib_save_LIBS=$LIBS
18598 LIBS="-lcom_err $LIBS"
18599 cat >conftest.$ac_ext <<_ACEOF
18600 /* confdefs.h. */
18601 _ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605
18606 /* Override any gcc2 internal prototype to avoid an error. */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 /* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18612 char com_err ();
18613 int
18614 main ()
18615 {
18616 com_err ();
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18623 (eval $ac_link) 2>conftest.er1
18624 ac_status=$?
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_com_err_com_err=yes
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647 ac_cv_lib_com_err_com_err=no
18648 fi
18649 rm -f conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18652 fi
18653 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18654 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18655 if test $ac_cv_lib_com_err_com_err = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define HAVE_LIBCOM_ERR 1
18658 _ACEOF
18659
18660 LIBS="-lcom_err $LIBS"
18661
18662 fi
18663
18664
18665 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18666 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18667 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670 ac_check_lib_save_LIBS=$LIBS
18671 LIBS="-lk5crypto $LIBS"
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678
18679 /* Override any gcc2 internal prototype to avoid an error. */
18680 #ifdef __cplusplus
18681 extern "C"
18682 #endif
18683 /* We use char because int might match the return type of a gcc2
18684 builtin and then its argument prototype would still apply. */
18685 char mit_des_cbc_encrypt ();
18686 int
18687 main ()
18688 {
18689 mit_des_cbc_encrypt ();
18690 ;
18691 return 0;
18692 }
18693 _ACEOF
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18696 (eval $ac_link) 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18709 { ac_try='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18716 else
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18721 fi
18722 rm -f conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18725 fi
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18727 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18728 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18729 cat >>confdefs.h <<_ACEOF
18730 #define HAVE_LIBK5CRYPTO 1
18731 _ACEOF
18732
18733 LIBS="-lk5crypto $LIBS"
18734
18735 fi
18736
18737
18738 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18739 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18740 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 ac_check_lib_save_LIBS=$LIBS
18744 LIBS="-lcrypto $LIBS"
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751
18752 /* Override any gcc2 internal prototype to avoid an error. */
18753 #ifdef __cplusplus
18754 extern "C"
18755 #endif
18756 /* We use char because int might match the return type of a gcc2
18757 builtin and then its argument prototype would still apply. */
18758 char mit_des_cbc_encrypt ();
18759 int
18760 main ()
18761 {
18762 mit_des_cbc_encrypt ();
18763 ;
18764 return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769 (eval $ac_link) 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest$ac_exeext'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18789 else
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18794 fi
18795 rm -f conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18798 fi
18799 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18800 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18801 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_LIBCRYPTO 1
18804 _ACEOF
18805
18806 LIBS="-lcrypto $LIBS"
18807
18808 fi
18809
18810
18811 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18812 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18813 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 else
18816 ac_check_lib_save_LIBS=$LIBS
18817 LIBS="-lkrb5 $LIBS"
18818 cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h. */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824
18825 /* Override any gcc2 internal prototype to avoid an error. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 /* We use char because int might match the return type of a gcc2
18830 builtin and then its argument prototype would still apply. */
18831 char krb5_init_context ();
18832 int
18833 main ()
18834 {
18835 krb5_init_context ();
18836 ;
18837 return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest$ac_exeext'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 ac_cv_lib_krb5_krb5_init_context=yes
18862 else
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866 ac_cv_lib_krb5_krb5_init_context=no
18867 fi
18868 rm -f conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18871 fi
18872 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18873 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18874 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define HAVE_LIBKRB5 1
18877 _ACEOF
18878
18879 LIBS="-lkrb5 $LIBS"
18880
18881 fi
18882
18883 if test "${with_kerberos5+set}" != set; then
18884
18885 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18886 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18887 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890 ac_check_lib_save_LIBS=$LIBS
18891 LIBS="-ldes425 $LIBS"
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898
18899 /* Override any gcc2 internal prototype to avoid an error. */
18900 #ifdef __cplusplus
18901 extern "C"
18902 #endif
18903 /* We use char because int might match the return type of a gcc2
18904 builtin and then its argument prototype would still apply. */
18905 char des_cbc_encrypt ();
18906 int
18907 main ()
18908 {
18909 des_cbc_encrypt ();
18910 ;
18911 return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_lib_des425_des_cbc_encrypt=yes
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 ac_cv_lib_des425_des_cbc_encrypt=no
18941 fi
18942 rm -f conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_check_lib_save_LIBS
18945 fi
18946 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18947 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18948 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_LIBDES425 1
18951 _ACEOF
18952
18953 LIBS="-ldes425 $LIBS"
18954
18955 else
18956
18957 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18958 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18959 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962 ac_check_lib_save_LIBS=$LIBS
18963 LIBS="-ldes $LIBS"
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970
18971 /* Override any gcc2 internal prototype to avoid an error. */
18972 #ifdef __cplusplus
18973 extern "C"
18974 #endif
18975 /* We use char because int might match the return type of a gcc2
18976 builtin and then its argument prototype would still apply. */
18977 char des_cbc_encrypt ();
18978 int
18979 main ()
18980 {
18981 des_cbc_encrypt ();
18982 ;
18983 return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18988 (eval $ac_link) 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_des_des_cbc_encrypt=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_lib_des_des_cbc_encrypt=no
19013 fi
19014 rm -f conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19017 fi
19018 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19019 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19020 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define HAVE_LIBDES 1
19023 _ACEOF
19024
19025 LIBS="-ldes $LIBS"
19026
19027 fi
19028
19029 fi
19030
19031
19032 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19033 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19034 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-lkrb4 $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045
19046 /* Override any gcc2 internal prototype to avoid an error. */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char krb_get_cred ();
19053 int
19054 main ()
19055 {
19056 krb_get_cred ();
19057 ;
19058 return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_krb4_krb_get_cred=yes
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_lib_krb4_krb_get_cred=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19092 fi
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19094 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19095 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097 #define HAVE_LIBKRB4 1
19098 _ACEOF
19099
19100 LIBS="-lkrb4 $LIBS"
19101
19102 else
19103
19104 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19105 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19106 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109 ac_check_lib_save_LIBS=$LIBS
19110 LIBS="-lkrb $LIBS"
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117
19118 /* Override any gcc2 internal prototype to avoid an error. */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19124 char krb_get_cred ();
19125 int
19126 main ()
19127 {
19128 krb_get_cred ();
19129 ;
19130 return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135 (eval $ac_link) 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_krb_krb_get_cred=yes
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_cv_lib_krb_krb_get_cred=no
19160 fi
19161 rm -f conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19164 fi
19165 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19166 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19167 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19168 cat >>confdefs.h <<_ACEOF
19169 #define HAVE_LIBKRB 1
19170 _ACEOF
19171
19172 LIBS="-lkrb $LIBS"
19173
19174 fi
19175
19176 fi
19177
19178 fi
19179
19180 if test "${with_kerberos5+set}" = set; then
19181
19182 for ac_header in krb5.h
19183 do
19184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19186 echo "$as_me:$LINENO: checking for $ac_header" >&5
19187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 fi
19191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19193 else
19194 # Is the header compilable?
19195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19197 cat >conftest.$ac_ext <<_ACEOF
19198 /* confdefs.h. */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19204 #include <$ac_header>
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19208 (eval $ac_compile) 2>conftest.er1
19209 ac_status=$?
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_header_compiler=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_header_compiler=no
19233 fi
19234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6
19237
19238 # Is the header present?
19239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <$ac_header>
19248 _ACEOF
19249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } >/dev/null; then
19257 if test -s conftest.err; then
19258 ac_cpp_err=$ac_c_preproc_warn_flag
19259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19260 else
19261 ac_cpp_err=
19262 fi
19263 else
19264 ac_cpp_err=yes
19265 fi
19266 if test -z "$ac_cpp_err"; then
19267 ac_header_preproc=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 ac_header_preproc=no
19273 fi
19274 rm -f conftest.err conftest.$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19276 echo "${ECHO_T}$ac_header_preproc" >&6
19277
19278 # So? What about this header?
19279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19280 yes:no: )
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19285 ac_header_preproc=yes
19286 ;;
19287 no:yes:* )
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19300 (
19301 cat <<\_ASBOX
19302 ## ------------------------------------------ ##
19303 ## Report this to the AC_PACKAGE_NAME lists. ##
19304 ## ------------------------------------------ ##
19305 _ASBOX
19306 ) |
19307 sed "s/^/$as_me: WARNING: /" >&2
19308 ;;
19309 esac
19310 echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 eval "$as_ac_Header=\$ac_header_preproc"
19316 fi
19317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19319
19320 fi
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19324 _ACEOF
19325
19326 fi
19327
19328 done
19329
19330 else
19331
19332 for ac_header in des.h
19333 do
19334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19336 echo "$as_me:$LINENO: checking for $ac_header" >&5
19337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 fi
19341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19343 else
19344 # Is the header compilable?
19345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 $ac_includes_default
19354 #include <$ac_header>
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19358 (eval $ac_compile) 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_header_compiler=yes
19378 else
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_header_compiler=no
19383 fi
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19386 echo "${ECHO_T}$ac_header_compiler" >&6
19387
19388 # Is the header present?
19389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 #include <$ac_header>
19398 _ACEOF
19399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19401 ac_status=$?
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } >/dev/null; then
19407 if test -s conftest.err; then
19408 ac_cpp_err=$ac_c_preproc_warn_flag
19409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19410 else
19411 ac_cpp_err=
19412 fi
19413 else
19414 ac_cpp_err=yes
19415 fi
19416 if test -z "$ac_cpp_err"; then
19417 ac_header_preproc=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_header_preproc=no
19423 fi
19424 rm -f conftest.err conftest.$ac_ext
19425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19426 echo "${ECHO_T}$ac_header_preproc" >&6
19427
19428 # So? What about this header?
19429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19430 yes:no: )
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19435 ac_header_preproc=yes
19436 ;;
19437 no:yes:* )
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19450 (
19451 cat <<\_ASBOX
19452 ## ------------------------------------------ ##
19453 ## Report this to the AC_PACKAGE_NAME lists. ##
19454 ## ------------------------------------------ ##
19455 _ASBOX
19456 ) |
19457 sed "s/^/$as_me: WARNING: /" >&2
19458 ;;
19459 esac
19460 echo "$as_me:$LINENO: checking for $ac_header" >&5
19461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465 eval "$as_ac_Header=\$ac_header_preproc"
19466 fi
19467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19469
19470 fi
19471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19474 _ACEOF
19475
19476 else
19477
19478 for ac_header in kerberosIV/des.h
19479 do
19480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19482 echo "$as_me:$LINENO: checking for $ac_header" >&5
19483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 fi
19487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19489 else
19490 # Is the header compilable?
19491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 $ac_includes_default
19500 #include <$ac_header>
19501 _ACEOF
19502 rm -f conftest.$ac_objext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19504 (eval $ac_compile) 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_header_compiler=yes
19524 else
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 ac_header_compiler=no
19529 fi
19530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19532 echo "${ECHO_T}$ac_header_compiler" >&6
19533
19534 # Is the header present?
19535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <$ac_header>
19544 _ACEOF
19545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } >/dev/null; then
19553 if test -s conftest.err; then
19554 ac_cpp_err=$ac_c_preproc_warn_flag
19555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19556 else
19557 ac_cpp_err=
19558 fi
19559 else
19560 ac_cpp_err=yes
19561 fi
19562 if test -z "$ac_cpp_err"; then
19563 ac_header_preproc=yes
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 ac_header_preproc=no
19569 fi
19570 rm -f conftest.err conftest.$ac_ext
19571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19572 echo "${ECHO_T}$ac_header_preproc" >&6
19573
19574 # So? What about this header?
19575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19576 yes:no: )
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19581 ac_header_preproc=yes
19582 ;;
19583 no:yes:* )
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19596 (
19597 cat <<\_ASBOX
19598 ## ------------------------------------------ ##
19599 ## Report this to the AC_PACKAGE_NAME lists. ##
19600 ## ------------------------------------------ ##
19601 _ASBOX
19602 ) |
19603 sed "s/^/$as_me: WARNING: /" >&2
19604 ;;
19605 esac
19606 echo "$as_me:$LINENO: checking for $ac_header" >&5
19607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611 eval "$as_ac_Header=\$ac_header_preproc"
19612 fi
19613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19615
19616 fi
19617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19618 cat >>confdefs.h <<_ACEOF
19619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19620 _ACEOF
19621
19622 else
19623
19624 for ac_header in kerberos/des.h
19625 do
19626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19628 echo "$as_me:$LINENO: checking for $ac_header" >&5
19629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 fi
19633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19635 else
19636 # Is the header compilable?
19637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h. */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19645 $ac_includes_default
19646 #include <$ac_header>
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_header_compiler=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 ac_header_compiler=no
19675 fi
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19678 echo "${ECHO_T}$ac_header_compiler" >&6
19679
19680 # Is the header present?
19681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h. */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19689 #include <$ac_header>
19690 _ACEOF
19691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } >/dev/null; then
19699 if test -s conftest.err; then
19700 ac_cpp_err=$ac_c_preproc_warn_flag
19701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19702 else
19703 ac_cpp_err=
19704 fi
19705 else
19706 ac_cpp_err=yes
19707 fi
19708 if test -z "$ac_cpp_err"; then
19709 ac_header_preproc=yes
19710 else
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_header_preproc=no
19715 fi
19716 rm -f conftest.err conftest.$ac_ext
19717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718 echo "${ECHO_T}$ac_header_preproc" >&6
19719
19720 # So? What about this header?
19721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19722 yes:no: )
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc=yes
19728 ;;
19729 no:yes:* )
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19742 (
19743 cat <<\_ASBOX
19744 ## ------------------------------------------ ##
19745 ## Report this to the AC_PACKAGE_NAME lists. ##
19746 ## ------------------------------------------ ##
19747 _ASBOX
19748 ) |
19749 sed "s/^/$as_me: WARNING: /" >&2
19750 ;;
19751 esac
19752 echo "$as_me:$LINENO: checking for $ac_header" >&5
19753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 eval "$as_ac_Header=\$ac_header_preproc"
19758 fi
19759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19761
19762 fi
19763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19766 _ACEOF
19767
19768 fi
19769
19770 done
19771
19772 fi
19773
19774 done
19775
19776 fi
19777
19778 done
19779
19780
19781 for ac_header in krb.h
19782 do
19783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo "$as_me:$LINENO: checking for $ac_header" >&5
19786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 fi
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19792 else
19793 # Is the header compilable?
19794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 $ac_includes_default
19803 #include <$ac_header>
19804 _ACEOF
19805 rm -f conftest.$ac_objext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19807 (eval $ac_compile) 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_header_compiler=yes
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 ac_header_compiler=no
19832 fi
19833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19835 echo "${ECHO_T}$ac_header_compiler" >&6
19836
19837 # Is the header present?
19838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <$ac_header>
19847 _ACEOF
19848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } >/dev/null; then
19856 if test -s conftest.err; then
19857 ac_cpp_err=$ac_c_preproc_warn_flag
19858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19859 else
19860 ac_cpp_err=
19861 fi
19862 else
19863 ac_cpp_err=yes
19864 fi
19865 if test -z "$ac_cpp_err"; then
19866 ac_header_preproc=yes
19867 else
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_header_preproc=no
19872 fi
19873 rm -f conftest.err conftest.$ac_ext
19874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875 echo "${ECHO_T}$ac_header_preproc" >&6
19876
19877 # So? What about this header?
19878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879 yes:no: )
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19884 ac_header_preproc=yes
19885 ;;
19886 no:yes:* )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19899 (
19900 cat <<\_ASBOX
19901 ## ------------------------------------------ ##
19902 ## Report this to the AC_PACKAGE_NAME lists. ##
19903 ## ------------------------------------------ ##
19904 _ASBOX
19905 ) |
19906 sed "s/^/$as_me: WARNING: /" >&2
19907 ;;
19908 esac
19909 echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 eval "$as_ac_Header=\$ac_header_preproc"
19915 fi
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19918
19919 fi
19920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19921 cat >>confdefs.h <<_ACEOF
19922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19923 _ACEOF
19924
19925 else
19926
19927 for ac_header in kerberosIV/krb.h
19928 do
19929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19931 echo "$as_me:$LINENO: checking for $ac_header" >&5
19932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 fi
19936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19938 else
19939 # Is the header compilable?
19940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h. */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 $ac_includes_default
19949 #include <$ac_header>
19950 _ACEOF
19951 rm -f conftest.$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19972 ac_header_compiler=yes
19973 else
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ac_header_compiler=no
19978 fi
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6
19982
19983 # Is the header present?
19984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19993 _ACEOF
19994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev/null; then
20002 if test -s conftest.err; then
20003 ac_cpp_err=$ac_c_preproc_warn_flag
20004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20005 else
20006 ac_cpp_err=
20007 fi
20008 else
20009 ac_cpp_err=yes
20010 fi
20011 if test -z "$ac_cpp_err"; then
20012 ac_header_preproc=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_header_preproc=no
20018 fi
20019 rm -f conftest.err conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6
20022
20023 # So? What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025 yes:no: )
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
20031 ;;
20032 no:yes:* )
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20045 (
20046 cat <<\_ASBOX
20047 ## ------------------------------------------ ##
20048 ## Report this to the AC_PACKAGE_NAME lists. ##
20049 ## ------------------------------------------ ##
20050 _ASBOX
20051 ) |
20052 sed "s/^/$as_me: WARNING: /" >&2
20053 ;;
20054 esac
20055 echo "$as_me:$LINENO: checking for $ac_header" >&5
20056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 eval "$as_ac_Header=\$ac_header_preproc"
20061 fi
20062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20064
20065 fi
20066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20067 cat >>confdefs.h <<_ACEOF
20068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20069 _ACEOF
20070
20071 else
20072
20073 for ac_header in kerberos/krb.h
20074 do
20075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20077 echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 fi
20082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20084 else
20085 # Is the header compilable?
20086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h. */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 $ac_includes_default
20095 #include <$ac_header>
20096 _ACEOF
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_header_compiler=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ac_header_compiler=no
20124 fi
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20127 echo "${ECHO_T}$ac_header_compiler" >&6
20128
20129 # Is the header present?
20130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h. */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 #include <$ac_header>
20139 _ACEOF
20140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } >/dev/null; then
20148 if test -s conftest.err; then
20149 ac_cpp_err=$ac_c_preproc_warn_flag
20150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20151 else
20152 ac_cpp_err=
20153 fi
20154 else
20155 ac_cpp_err=yes
20156 fi
20157 if test -z "$ac_cpp_err"; then
20158 ac_header_preproc=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ac_header_preproc=no
20164 fi
20165 rm -f conftest.err conftest.$ac_ext
20166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6
20168
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20171 yes:no: )
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20176 ac_header_preproc=yes
20177 ;;
20178 no:yes:* )
20179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20191 (
20192 cat <<\_ASBOX
20193 ## ------------------------------------------ ##
20194 ## Report this to the AC_PACKAGE_NAME lists. ##
20195 ## ------------------------------------------ ##
20196 _ASBOX
20197 ) |
20198 sed "s/^/$as_me: WARNING: /" >&2
20199 ;;
20200 esac
20201 echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206 eval "$as_ac_Header=\$ac_header_preproc"
20207 fi
20208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20210
20211 fi
20212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20215 _ACEOF
20216
20217 fi
20218
20219 done
20220
20221 fi
20222
20223 done
20224
20225 fi
20226
20227 done
20228
20229 fi
20230
20231 for ac_header in com_err.h
20232 do
20233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo "$as_me:$LINENO: checking for $ac_header" >&5
20236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 fi
20240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20242 else
20243 # Is the header compilable?
20244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <$ac_header>
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest.$ac_objext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ac_header_compiler=yes
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ac_header_compiler=no
20282 fi
20283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20285 echo "${ECHO_T}$ac_header_compiler" >&6
20286
20287 # Is the header present?
20288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <$ac_header>
20297 _ACEOF
20298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } >/dev/null; then
20306 if test -s conftest.err; then
20307 ac_cpp_err=$ac_c_preproc_warn_flag
20308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20309 else
20310 ac_cpp_err=
20311 fi
20312 else
20313 ac_cpp_err=yes
20314 fi
20315 if test -z "$ac_cpp_err"; then
20316 ac_header_preproc=yes
20317 else
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ac_header_preproc=no
20322 fi
20323 rm -f conftest.err conftest.$ac_ext
20324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20325 echo "${ECHO_T}$ac_header_preproc" >&6
20326
20327 # So? What about this header?
20328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20329 yes:no: )
20330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20334 ac_header_preproc=yes
20335 ;;
20336 no:yes:* )
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20349 (
20350 cat <<\_ASBOX
20351 ## ------------------------------------------ ##
20352 ## Report this to the AC_PACKAGE_NAME lists. ##
20353 ## ------------------------------------------ ##
20354 _ASBOX
20355 ) |
20356 sed "s/^/$as_me: WARNING: /" >&2
20357 ;;
20358 esac
20359 echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 eval "$as_ac_Header=\$ac_header_preproc"
20365 fi
20366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20368
20369 fi
20370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373 _ACEOF
20374
20375 fi
20376
20377 done
20378
20379 fi
20380
20381 # Solaris requires -lintl if you want strerror (which calls dgettext)
20382 # to return localized messages.
20383
20384 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20385 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20386 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lintl $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h. */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397
20398 /* Override any gcc2 internal prototype to avoid an error. */
20399 #ifdef __cplusplus
20400 extern "C"
20401 #endif
20402 /* We use char because int might match the return type of a gcc2
20403 builtin and then its argument prototype would still apply. */
20404 char dgettext ();
20405 int
20406 main ()
20407 {
20408 dgettext ();
20409 ;
20410 return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20415 (eval $ac_link) 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } &&
20422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest$ac_exeext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_lib_intl_dgettext=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ac_cv_lib_intl_dgettext=no
20440 fi
20441 rm -f conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20444 fi
20445 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20446 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20447 if test $ac_cv_lib_intl_dgettext = yes; then
20448 cat >>confdefs.h <<_ACEOF
20449 #define HAVE_LIBINTL 1
20450 _ACEOF
20451
20452 LIBS="-lintl $LIBS"
20453
20454 fi
20455
20456
20457 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20458 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20459 if test "${emacs_cv_localtime_cache+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462 if test x$ac_cv_func_tzset = xyes; then
20463 if test "$cross_compiling" = yes; then
20464 # If we have tzset, assume the worst when cross-compiling.
20465 emacs_cv_localtime_cache=yes
20466 else
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <time.h>
20474 extern char **environ;
20475 unset_TZ ()
20476 {
20477 char **from, **to;
20478 for (to = from = environ; (*to = *from); from++)
20479 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20480 to++;
20481 }
20482 char TZ_GMT0[] = "TZ=GMT0";
20483 char TZ_PST8[] = "TZ=PST8";
20484 main()
20485 {
20486 time_t now = time ((time_t *) 0);
20487 int hour_GMT0, hour_unset;
20488 if (putenv (TZ_GMT0) != 0)
20489 exit (1);
20490 hour_GMT0 = localtime (&now)->tm_hour;
20491 unset_TZ ();
20492 hour_unset = localtime (&now)->tm_hour;
20493 if (putenv (TZ_PST8) != 0)
20494 exit (1);
20495 if (localtime (&now)->tm_hour == hour_GMT0)
20496 exit (1);
20497 unset_TZ ();
20498 if (localtime (&now)->tm_hour != hour_unset)
20499 exit (1);
20500 exit (0);
20501 }
20502 _ACEOF
20503 rm -f conftest$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505 (eval $ac_link) 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 emacs_cv_localtime_cache=no
20515 else
20516 echo "$as_me: program exited with status $ac_status" >&5
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ( exit $ac_status )
20521 emacs_cv_localtime_cache=yes
20522 fi
20523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20524 fi
20525 else
20526 # If we lack tzset, report that localtime does not cache TZ,
20527 # since we can't invalidate the cache if we don't have tzset.
20528 emacs_cv_localtime_cache=no
20529 fi
20530 fi
20531 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20532 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20533 if test $emacs_cv_localtime_cache = yes; then
20534
20535 cat >>confdefs.h <<\_ACEOF
20536 #define LOCALTIME_CACHE 1
20537 _ACEOF
20538
20539 fi
20540
20541 if test "x$HAVE_TIMEVAL" = xyes; then
20542
20543 for ac_func in gettimeofday
20544 do
20545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20546 echo "$as_me:$LINENO: checking for $ac_func" >&5
20547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20548 if eval "test \"\${$as_ac_var+set}\" = set"; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20559 #define $ac_func innocuous_$ac_func
20560
20561 /* System header to define __stub macros and hopefully few prototypes,
20562 which can conflict with char $ac_func (); below.
20563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20564 <limits.h> exists even on freestanding compilers. */
20565
20566 #ifdef __STDC__
20567 # include <limits.h>
20568 #else
20569 # include <assert.h>
20570 #endif
20571
20572 #undef $ac_func
20573
20574 /* Override any gcc2 internal prototype to avoid an error. */
20575 #ifdef __cplusplus
20576 extern "C"
20577 {
20578 #endif
20579 /* We use char because int might match the return type of a gcc2
20580 builtin and then its argument prototype would still apply. */
20581 char $ac_func ();
20582 /* The GNU C library defines this for functions which it implements
20583 to always fail with ENOSYS. Some functions are actually named
20584 something starting with __ and the normal name is an alias. */
20585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20586 choke me
20587 #else
20588 char (*f) () = $ac_func;
20589 #endif
20590 #ifdef __cplusplus
20591 }
20592 #endif
20593
20594 int
20595 main ()
20596 {
20597 return f != $ac_func;
20598 ;
20599 return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 eval "$as_ac_var=yes"
20624 else
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 eval "$as_ac_var=no"
20629 fi
20630 rm -f conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext conftest.$ac_ext
20632 fi
20633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20635 if test `eval echo '${'$as_ac_var'}'` = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20638 _ACEOF
20639
20640 fi
20641 done
20642
20643 if test $ac_cv_func_gettimeofday = yes; then
20644 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20645 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20646 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655
20656 #ifdef TIME_WITH_SYS_TIME
20657 #include <sys/time.h>
20658 #include <time.h>
20659 #else
20660 #ifdef HAVE_SYS_TIME_H
20661 #include <sys/time.h>
20662 #else
20663 #include <time.h>
20664 #endif
20665 #endif
20666 int
20667 main ()
20668 {
20669 struct timeval time;
20670 gettimeofday (&time, 0);
20671 ;
20672 return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 emacs_cv_gettimeofday_two_arguments=yes
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 emacs_cv_gettimeofday_two_arguments=no
20702 fi
20703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704 fi
20705 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20706 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20707 if test $emacs_cv_gettimeofday_two_arguments = no; then
20708
20709 cat >>confdefs.h <<\_ACEOF
20710 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20711 _ACEOF
20712
20713 fi
20714 fi
20715 fi
20716
20717 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20718 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20719 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20720 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <sys/types.h>
20730 #include <$ac_cv_struct_tm>
20731
20732
20733 int
20734 main ()
20735 {
20736 static struct tm ac_aggr;
20737 if (ac_aggr.tm_zone)
20738 return 0;
20739 ;
20740 return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745 (eval $ac_compile) 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20755 ac_status=$?
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; } &&
20758 { ac_try='test -s conftest.$ac_objext'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_member_struct_tm_tm_zone=yes
20765 else
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 #include <sys/types.h>
20776 #include <$ac_cv_struct_tm>
20777
20778
20779 int
20780 main ()
20781 {
20782 static struct tm ac_aggr;
20783 if (sizeof ac_aggr.tm_zone)
20784 return 0;
20785 ;
20786 return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20791 (eval $ac_compile) 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_member_struct_tm_tm_zone=yes
20811 else
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 ac_cv_member_struct_tm_tm_zone=no
20816 fi
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20818 fi
20819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20820 fi
20821 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20822 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20823 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20824
20825 cat >>confdefs.h <<_ACEOF
20826 #define HAVE_STRUCT_TM_TM_ZONE 1
20827 _ACEOF
20828
20829
20830 fi
20831
20832 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_TM_ZONE 1
20836 _ACEOF
20837
20838 else
20839 echo "$as_me:$LINENO: checking for tzname" >&5
20840 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20841 if test "${ac_cv_var_tzname+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <time.h>
20851 #ifndef tzname /* For SGI. */
20852 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858 atoi(*tzname);
20859 ;
20860 return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_var_tzname=yes
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889 ac_cv_var_tzname=no
20890 fi
20891 rm -f conftest.err conftest.$ac_objext \
20892 conftest$ac_exeext conftest.$ac_ext
20893 fi
20894 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20895 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20896 if test $ac_cv_var_tzname = yes; then
20897
20898 cat >>confdefs.h <<\_ACEOF
20899 #define HAVE_TZNAME 1
20900 _ACEOF
20901
20902 fi
20903 fi
20904
20905
20906 if test "$ac_cv_func_gettimeofday" = yes; then
20907 echo "$as_me:$LINENO: checking for struct timezone" >&5
20908 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20909 if test "${emacs_cv_struct_timezone+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911 else
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/time.h>
20919 int
20920 main ()
20921 {
20922 struct timezone tz;
20923 ;
20924 return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929 (eval $ac_compile) 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } &&
20936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20939 ac_status=$?
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } &&
20942 { ac_try='test -s conftest.$ac_objext'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 if test "$cross_compiling" = yes; then
20949 emacs_cv_struct_timezone=yes
20950 else
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957
20958 #ifdef TIME_WITH_SYS_TIME
20959 #include <sys/time.h>
20960 #include <time.h>
20961 #else
20962 #ifdef HAVE_SYS_TIME_H
20963 #include <sys/time.h>
20964 #else
20965 #include <time.h>
20966 #endif
20967 #endif
20968 main () {
20969 struct timeval time;
20970 struct timezone dummy;
20971 exit (gettimeofday (&time, &dummy));
20972 }
20973 _ACEOF
20974 rm -f conftest$ac_exeext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20976 (eval $ac_link) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 emacs_cv_struct_timezone=yes
20986 else
20987 echo "$as_me: program exited with status $ac_status" >&5
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991 ( exit $ac_status )
20992 emacs_cv_struct_timezone=no
20993 fi
20994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20995 fi
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 emacs_cv_struct_timezone=no
21001 fi
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 fi
21004 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21005 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21006 fi
21007
21008 ok_so_far=yes
21009 echo "$as_me:$LINENO: checking for socket" >&5
21010 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21011 if test "${ac_cv_func_socket+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21022 #define socket innocuous_socket
21023
21024 /* System header to define __stub macros and hopefully few prototypes,
21025 which can conflict with char socket (); below.
21026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21027 <limits.h> exists even on freestanding compilers. */
21028
21029 #ifdef __STDC__
21030 # include <limits.h>
21031 #else
21032 # include <assert.h>
21033 #endif
21034
21035 #undef socket
21036
21037 /* Override any gcc2 internal prototype to avoid an error. */
21038 #ifdef __cplusplus
21039 extern "C"
21040 {
21041 #endif
21042 /* We use char because int might match the return type of a gcc2
21043 builtin and then its argument prototype would still apply. */
21044 char socket ();
21045 /* The GNU C library defines this for functions which it implements
21046 to always fail with ENOSYS. Some functions are actually named
21047 something starting with __ and the normal name is an alias. */
21048 #if defined (__stub_socket) || defined (__stub___socket)
21049 choke me
21050 #else
21051 char (*f) () = socket;
21052 #endif
21053 #ifdef __cplusplus
21054 }
21055 #endif
21056
21057 int
21058 main ()
21059 {
21060 return f != socket;
21061 ;
21062 return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext conftest$ac_exeext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest$ac_exeext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_cv_func_socket=yes
21087 else
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_func_socket=no
21092 fi
21093 rm -f conftest.err conftest.$ac_objext \
21094 conftest$ac_exeext conftest.$ac_ext
21095 fi
21096 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21097 echo "${ECHO_T}$ac_cv_func_socket" >&6
21098 if test $ac_cv_func_socket = yes; then
21099 :
21100 else
21101 ok_so_far=no
21102 fi
21103
21104 if test $ok_so_far = yes; then
21105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21106 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21107 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21108 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 fi
21111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21113 else
21114 # Is the header compilable?
21115 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21116 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 $ac_includes_default
21124 #include <netinet/in.h>
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128 (eval $ac_compile) 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_header_compiler=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152 ac_header_compiler=no
21153 fi
21154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21156 echo "${ECHO_T}$ac_header_compiler" >&6
21157
21158 # Is the header present?
21159 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21160 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <netinet/in.h>
21168 _ACEOF
21169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21171 ac_status=$?
21172 grep -v '^ *+' conftest.er1 >conftest.err
21173 rm -f conftest.er1
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } >/dev/null; then
21177 if test -s conftest.err; then
21178 ac_cpp_err=$ac_c_preproc_warn_flag
21179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21180 else
21181 ac_cpp_err=
21182 fi
21183 else
21184 ac_cpp_err=yes
21185 fi
21186 if test -z "$ac_cpp_err"; then
21187 ac_header_preproc=yes
21188 else
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 ac_header_preproc=no
21193 fi
21194 rm -f conftest.err conftest.$ac_ext
21195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21196 echo "${ECHO_T}$ac_header_preproc" >&6
21197
21198 # So? What about this header?
21199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21200 yes:no: )
21201 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21202 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21203 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21204 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21205 ac_header_preproc=yes
21206 ;;
21207 no:yes:* )
21208 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21209 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21211 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21213 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21214 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21215 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21216 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21217 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21219 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21220 (
21221 cat <<\_ASBOX
21222 ## ------------------------------------------ ##
21223 ## Report this to the AC_PACKAGE_NAME lists. ##
21224 ## ------------------------------------------ ##
21225 _ASBOX
21226 ) |
21227 sed "s/^/$as_me: WARNING: /" >&2
21228 ;;
21229 esac
21230 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21231 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21232 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235 ac_cv_header_netinet_in_h=$ac_header_preproc
21236 fi
21237 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21238 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21239
21240 fi
21241 if test $ac_cv_header_netinet_in_h = yes; then
21242 :
21243 else
21244 ok_so_far=no
21245 fi
21246
21247
21248 fi
21249 if test $ok_so_far = yes; then
21250 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21251 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21252 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21253 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 fi
21256 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21258 else
21259 # Is the header compilable?
21260 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21261 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21269 #include <arpa/inet.h>
21270 _ACEOF
21271 rm -f conftest.$ac_objext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21273 (eval $ac_compile) 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
21280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try='test -s conftest.$ac_objext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_header_compiler=yes
21293 else
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ac_header_compiler=no
21298 fi
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21301 echo "${ECHO_T}$ac_header_compiler" >&6
21302
21303 # Is the header present?
21304 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21305 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h. */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <arpa/inet.h>
21313 _ACEOF
21314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null; then
21322 if test -s conftest.err; then
21323 ac_cpp_err=$ac_c_preproc_warn_flag
21324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21325 else
21326 ac_cpp_err=
21327 fi
21328 else
21329 ac_cpp_err=yes
21330 fi
21331 if test -z "$ac_cpp_err"; then
21332 ac_header_preproc=yes
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_header_preproc=no
21338 fi
21339 rm -f conftest.err conftest.$ac_ext
21340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21341 echo "${ECHO_T}$ac_header_preproc" >&6
21342
21343 # So? What about this header?
21344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21345 yes:no: )
21346 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21347 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21349 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21350 ac_header_preproc=yes
21351 ;;
21352 no:yes:* )
21353 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21354 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21356 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21358 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21360 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21362 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21364 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21365 (
21366 cat <<\_ASBOX
21367 ## ------------------------------------------ ##
21368 ## Report this to the AC_PACKAGE_NAME lists. ##
21369 ## ------------------------------------------ ##
21370 _ASBOX
21371 ) |
21372 sed "s/^/$as_me: WARNING: /" >&2
21373 ;;
21374 esac
21375 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21376 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21377 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380 ac_cv_header_arpa_inet_h=$ac_header_preproc
21381 fi
21382 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21383 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21384
21385 fi
21386 if test $ac_cv_header_arpa_inet_h = yes; then
21387 :
21388 else
21389 ok_so_far=no
21390 fi
21391
21392
21393 fi
21394 if test $ok_so_far = yes; then
21395
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_INET_SOCKETS 1
21398 _ACEOF
21399
21400 fi
21401
21402
21403 for ac_header in sys/ioctl.h
21404 do
21405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407 echo "$as_me:$LINENO: checking for $ac_header" >&5
21408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 fi
21412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21414 else
21415 # Is the header compilable?
21416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 #include <$ac_header>
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try='test -s conftest.$ac_objext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 ac_header_compiler=yes
21449 else
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453 ac_header_compiler=no
21454 fi
21455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6
21458
21459 # Is the header present?
21460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21469 _ACEOF
21470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } >/dev/null; then
21478 if test -s conftest.err; then
21479 ac_cpp_err=$ac_c_preproc_warn_flag
21480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21481 else
21482 ac_cpp_err=
21483 fi
21484 else
21485 ac_cpp_err=yes
21486 fi
21487 if test -z "$ac_cpp_err"; then
21488 ac_header_preproc=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 ac_header_preproc=no
21494 fi
21495 rm -f conftest.err conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6
21498
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 yes:no: )
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21506 ac_header_preproc=yes
21507 ;;
21508 no:yes:* )
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21521 (
21522 cat <<\_ASBOX
21523 ## ------------------------------------------ ##
21524 ## Report this to the AC_PACKAGE_NAME lists. ##
21525 ## ------------------------------------------ ##
21526 _ASBOX
21527 ) |
21528 sed "s/^/$as_me: WARNING: /" >&2
21529 ;;
21530 esac
21531 echo "$as_me:$LINENO: checking for $ac_header" >&5
21532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536 eval "$as_ac_Header=\$ac_header_preproc"
21537 fi
21538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21540
21541 fi
21542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545 _ACEOF
21546
21547 fi
21548
21549 done
21550
21551
21552 if test -f /usr/lpp/X11/bin/smt.exp; then
21553
21554 cat >>confdefs.h <<\_ACEOF
21555 #define HAVE_AIX_SMT_EXP 1
21556 _ACEOF
21557
21558 fi
21559
21560 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21561 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21562 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21563 echo "$as_me:$LINENO: result: yes" >&5
21564 echo "${ECHO_T}yes" >&6
21565
21566 cat >>confdefs.h <<\_ACEOF
21567 #define HAVE_DEV_PTMX 1
21568 _ACEOF
21569
21570 else
21571 echo "$as_me:$LINENO: result: no" >&5
21572 echo "${ECHO_T}no" >&6
21573 fi
21574
21575 echo "$as_me:$LINENO: checking for pid_t" >&5
21576 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21577 if test "${ac_cv_type_pid_t+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h. */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586 $ac_includes_default
21587 int
21588 main ()
21589 {
21590 if ((pid_t *) 0)
21591 return 0;
21592 if (sizeof (pid_t))
21593 return 0;
21594 ;
21595 return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600 (eval $ac_compile) 2>conftest.er1
21601 ac_status=$?
21602 grep -v '^ *+' conftest.er1 >conftest.err
21603 rm -f conftest.er1
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; } &&
21613 { ac_try='test -s conftest.$ac_objext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21616 ac_status=$?
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_type_pid_t=yes
21620 else
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624 ac_cv_type_pid_t=no
21625 fi
21626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21629 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21630 if test $ac_cv_type_pid_t = yes; then
21631 :
21632 else
21633
21634 cat >>confdefs.h <<_ACEOF
21635 #define pid_t int
21636 _ACEOF
21637
21638 fi
21639
21640
21641
21642 for ac_header in unistd.h vfork.h
21643 do
21644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21646 echo "$as_me:$LINENO: checking for $ac_header" >&5
21647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 fi
21651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21653 else
21654 # Is the header compilable?
21655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 $ac_includes_default
21664 #include <$ac_header>
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21668 (eval $ac_compile) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
21675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_header_compiler=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692 ac_header_compiler=no
21693 fi
21694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21696 echo "${ECHO_T}$ac_header_compiler" >&6
21697
21698 # Is the header present?
21699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21701 cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h. */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 #include <$ac_header>
21708 _ACEOF
21709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } >/dev/null; then
21717 if test -s conftest.err; then
21718 ac_cpp_err=$ac_c_preproc_warn_flag
21719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21720 else
21721 ac_cpp_err=
21722 fi
21723 else
21724 ac_cpp_err=yes
21725 fi
21726 if test -z "$ac_cpp_err"; then
21727 ac_header_preproc=yes
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ac_header_preproc=no
21733 fi
21734 rm -f conftest.err conftest.$ac_ext
21735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21736 echo "${ECHO_T}$ac_header_preproc" >&6
21737
21738 # So? What about this header?
21739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21740 yes:no: )
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21745 ac_header_preproc=yes
21746 ;;
21747 no:yes:* )
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21760 (
21761 cat <<\_ASBOX
21762 ## ------------------------------------------ ##
21763 ## Report this to the AC_PACKAGE_NAME lists. ##
21764 ## ------------------------------------------ ##
21765 _ASBOX
21766 ) |
21767 sed "s/^/$as_me: WARNING: /" >&2
21768 ;;
21769 esac
21770 echo "$as_me:$LINENO: checking for $ac_header" >&5
21771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775 eval "$as_ac_Header=\$ac_header_preproc"
21776 fi
21777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21779
21780 fi
21781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21784 _ACEOF
21785
21786 fi
21787
21788 done
21789
21790
21791
21792 for ac_func in fork vfork
21793 do
21794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21795 echo "$as_me:$LINENO: checking for $ac_func" >&5
21796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21797 if eval "test \"\${$as_ac_var+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21800 cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h. */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21808 #define $ac_func innocuous_$ac_func
21809
21810 /* System header to define __stub macros and hopefully few prototypes,
21811 which can conflict with char $ac_func (); below.
21812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21813 <limits.h> exists even on freestanding compilers. */
21814
21815 #ifdef __STDC__
21816 # include <limits.h>
21817 #else
21818 # include <assert.h>
21819 #endif
21820
21821 #undef $ac_func
21822
21823 /* Override any gcc2 internal prototype to avoid an error. */
21824 #ifdef __cplusplus
21825 extern "C"
21826 {
21827 #endif
21828 /* We use char because int might match the return type of a gcc2
21829 builtin and then its argument prototype would still apply. */
21830 char $ac_func ();
21831 /* The GNU C library defines this for functions which it implements
21832 to always fail with ENOSYS. Some functions are actually named
21833 something starting with __ and the normal name is an alias. */
21834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21835 choke me
21836 #else
21837 char (*f) () = $ac_func;
21838 #endif
21839 #ifdef __cplusplus
21840 }
21841 #endif
21842
21843 int
21844 main ()
21845 {
21846 return f != $ac_func;
21847 ;
21848 return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853 (eval $ac_link) 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 eval "$as_ac_var=yes"
21873 else
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 eval "$as_ac_var=no"
21878 fi
21879 rm -f conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881 fi
21882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21884 if test `eval echo '${'$as_ac_var'}'` = yes; then
21885 cat >>confdefs.h <<_ACEOF
21886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21887 _ACEOF
21888
21889 fi
21890 done
21891
21892 if test "x$ac_cv_func_fork" = xyes; then
21893 echo "$as_me:$LINENO: checking for working fork" >&5
21894 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21895 if test "${ac_cv_func_fork_works+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898 if test "$cross_compiling" = yes; then
21899 ac_cv_func_fork_works=cross
21900 else
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 $ac_includes_default
21908 int
21909 main ()
21910 {
21911
21912 /* By Ruediger Kuhlmann. */
21913 if (fork() < 0)
21914 exit (1);
21915 exit (0);
21916
21917 ;
21918 return 0;
21919 }
21920 _ACEOF
21921 rm -f conftest$ac_exeext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21923 (eval $ac_link) 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
21932 ac_cv_func_fork_works=yes
21933 else
21934 echo "$as_me: program exited with status $ac_status" >&5
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ( exit $ac_status )
21939 ac_cv_func_fork_works=no
21940 fi
21941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21942 fi
21943 fi
21944 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21945 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21946
21947 else
21948 ac_cv_func_fork_works=$ac_cv_func_fork
21949 fi
21950 if test "x$ac_cv_func_fork_works" = xcross; then
21951 case $host in
21952 *-*-amigaos* | *-*-msdosdjgpp*)
21953 # Override, as these systems have only a dummy fork() stub
21954 ac_cv_func_fork_works=no
21955 ;;
21956 *)
21957 ac_cv_func_fork_works=yes
21958 ;;
21959 esac
21960 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21961 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21962 fi
21963 ac_cv_func_vfork_works=$ac_cv_func_vfork
21964 if test "x$ac_cv_func_vfork" = xyes; then
21965 echo "$as_me:$LINENO: checking for working vfork" >&5
21966 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21967 if test "${ac_cv_func_vfork_works+set}" = set; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21969 else
21970 if test "$cross_compiling" = yes; then
21971 ac_cv_func_vfork_works=cross
21972 else
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h. */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 /* Thanks to Paul Eggert for this test. */
21980 #include <stdio.h>
21981 #include <stdlib.h>
21982 #include <sys/types.h>
21983 #include <sys/stat.h>
21984 #include <sys/wait.h>
21985 #if HAVE_UNISTD_H
21986 # include <unistd.h>
21987 #endif
21988 #if HAVE_VFORK_H
21989 # include <vfork.h>
21990 #endif
21991 /* On some sparc systems, changes by the child to local and incoming
21992 argument registers are propagated back to the parent. The compiler
21993 is told about this with #include <vfork.h>, but some compilers
21994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21995 static variable whose address is put into a register that is
21996 clobbered by the vfork. */
21997 static void
21998 #ifdef __cplusplus
21999 sparc_address_test (int arg)
22000 # else
22001 sparc_address_test (arg) int arg;
22002 #endif
22003 {
22004 static pid_t child;
22005 if (!child) {
22006 child = vfork ();
22007 if (child < 0) {
22008 perror ("vfork");
22009 _exit(2);
22010 }
22011 if (!child) {
22012 arg = getpid();
22013 write(-1, "", 0);
22014 _exit (arg);
22015 }
22016 }
22017 }
22018
22019 int
22020 main ()
22021 {
22022 pid_t parent = getpid ();
22023 pid_t child;
22024
22025 sparc_address_test (0);
22026
22027 child = vfork ();
22028
22029 if (child == 0) {
22030 /* Here is another test for sparc vfork register problems. This
22031 test uses lots of local variables, at least as many local
22032 variables as main has allocated so far including compiler
22033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22035 reuse the register of parent for one of the local variables,
22036 since it will think that parent can't possibly be used any more
22037 in this routine. Assigning to the local variable will thus
22038 munge parent in the parent process. */
22039 pid_t
22040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22042 /* Convince the compiler that p..p7 are live; otherwise, it might
22043 use the same hardware register for all 8 local variables. */
22044 if (p != p1 || p != p2 || p != p3 || p != p4
22045 || p != p5 || p != p6 || p != p7)
22046 _exit(1);
22047
22048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22049 from child file descriptors. If the child closes a descriptor
22050 before it execs or exits, this munges the parent's descriptor
22051 as well. Test for this by closing stdout in the child. */
22052 _exit(close(fileno(stdout)) != 0);
22053 } else {
22054 int status;
22055 struct stat st;
22056
22057 while (wait(&status) != child)
22058 ;
22059 exit(
22060 /* Was there some problem with vforking? */
22061 child < 0
22062
22063 /* Did the child fail? (This shouldn't happen.) */
22064 || status
22065
22066 /* Did the vfork/compiler bug occur? */
22067 || parent != getpid()
22068
22069 /* Did the file descriptor bug occur? */
22070 || fstat(fileno(stdout), &st) != 0
22071 );
22072 }
22073 }
22074 _ACEOF
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ac_cv_func_vfork_works=yes
22087 else
22088 echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ( exit $ac_status )
22093 ac_cv_func_vfork_works=no
22094 fi
22095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 fi
22097 fi
22098 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22099 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22100
22101 fi;
22102 if test "x$ac_cv_func_fork_works" = xcross; then
22103 ac_cv_func_vfork_works=$ac_cv_func_vfork
22104 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22105 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22106 fi
22107
22108 if test "x$ac_cv_func_vfork_works" = xyes; then
22109
22110 cat >>confdefs.h <<\_ACEOF
22111 #define HAVE_WORKING_VFORK 1
22112 _ACEOF
22113
22114 else
22115
22116 cat >>confdefs.h <<\_ACEOF
22117 #define vfork fork
22118 _ACEOF
22119
22120 fi
22121 if test "x$ac_cv_func_fork_works" = xyes; then
22122
22123 cat >>confdefs.h <<\_ACEOF
22124 #define HAVE_WORKING_FORK 1
22125 _ACEOF
22126
22127 fi
22128
22129
22130 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22131 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22132 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h. */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 #include <langinfo.h>
22142 int
22143 main ()
22144 {
22145 char* cs = nl_langinfo(CODESET);
22146 ;
22147 return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
22159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest$ac_exeext'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 emacs_cv_langinfo_codeset=yes
22172 else
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 emacs_cv_langinfo_codeset=no
22177 fi
22178 rm -f conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
22180
22181 fi
22182 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22183 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22184 if test $emacs_cv_langinfo_codeset = yes; then
22185
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_LANGINFO_CODESET 1
22188 _ACEOF
22189
22190 fi
22191
22192 echo "$as_me:$LINENO: checking for size_t" >&5
22193 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22194 if test "${ac_cv_type_size_t+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197 cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h. */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 $ac_includes_default
22204 int
22205 main ()
22206 {
22207 if ((size_t *) 0)
22208 return 0;
22209 if (sizeof (size_t))
22210 return 0;
22211 ;
22212 return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
22224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try='test -s conftest.$ac_objext'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_cv_type_size_t=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241 ac_cv_type_size_t=no
22242 fi
22243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22244 fi
22245 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22246 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22247 if test $ac_cv_type_size_t = yes; then
22248
22249 cat >>confdefs.h <<_ACEOF
22250 #define HAVE_SIZE_T 1
22251 _ACEOF
22252
22253
22254 fi
22255
22256
22257 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22258 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22259 if test "${ac_cv_type_mbstate_t+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262 cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h. */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 $ac_includes_default
22269 # include <wchar.h>
22270 int
22271 main ()
22272 {
22273 mbstate_t x; return sizeof x;
22274 ;
22275 return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest.$ac_objext
22279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280 (eval $ac_compile) 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
22287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_type_mbstate_t=yes
22300 else
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ac_cv_type_mbstate_t=no
22305 fi
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22307 fi
22308 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22309 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22310 if test $ac_cv_type_mbstate_t = yes; then
22311
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_MBSTATE_T 1
22314 _ACEOF
22315
22316 else
22317
22318 cat >>confdefs.h <<\_ACEOF
22319 #define mbstate_t int
22320 _ACEOF
22321
22322 fi
22323
22324 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22325 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22326 if test "${emacs_cv_c_restrict+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h. */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22335 void fred (int *restrict x);
22336 int
22337 main ()
22338 {
22339
22340 ;
22341 return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>conftest.er1
22347 ac_status=$?
22348 grep -v '^ *+' conftest.er1 >conftest.err
22349 rm -f conftest.er1
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } &&
22353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; } &&
22359 { ac_try='test -s conftest.$ac_objext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 emacs_cv_c_restrict=yes
22366 else
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 void fred (int *__restrict x);
22377 int
22378 main ()
22379 {
22380
22381 ;
22382 return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387 (eval $ac_compile) 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 emacs_cv_c_restrict=__restrict
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 emacs_cv_c_restrict=no
22412 fi
22413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 fi
22415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416 fi
22417 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22418 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22419 case "$emacs_cv_c_restrict" in
22420 yes) emacs_restrict=restrict;;
22421 no) emacs_restrict="";;
22422 *) emacs_restrict="$emacs_cv_c_restrict";;
22423 esac
22424 if test "$emacs_restrict" != __restrict; then
22425
22426 cat >>confdefs.h <<_ACEOF
22427 #define __restrict $emacs_restrict
22428 _ACEOF
22429
22430 fi
22431
22432 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22433 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22434 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h. */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 void fred (int x[__restrict]);
22444 int
22445 main ()
22446 {
22447
22448 ;
22449 return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454 (eval $ac_compile) 2>conftest.er1
22455 ac_status=$?
22456 grep -v '^ *+' conftest.er1 >conftest.err
22457 rm -f conftest.er1
22458 cat conftest.err >&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
22461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; } &&
22467 { ac_try='test -s conftest.$ac_objext'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22470 ac_status=$?
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 emacs_cv_c_restrict_arr=yes
22474 else
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 emacs_cv_c_restrict_arr=no
22479 fi
22480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22481 fi
22482 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22483 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22484 if test "$emacs_cv_c_restrict_arr" = yes; then
22485
22486 cat >>confdefs.h <<\_ACEOF
22487 #define __restrict_arr __restrict
22488 _ACEOF
22489
22490 fi
22491
22492
22493
22494 # Set up the CFLAGS for real compilation, so we can substitute it.
22495 CFLAGS="$REAL_CFLAGS"
22496 CPPFLAGS="$REAL_CPPFLAGS"
22497
22498 #### Find out which version of Emacs this is.
22499 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22500 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22501 if test x"${version}" = x; then
22502 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22503 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22504 { (exit 1); exit 1; }; }
22505 fi
22506
22507 ### Specify what sort of things we'll be editing into Makefile and config.h.
22508 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544 cat >>confdefs.h <<_ACEOF
22545 #define EMACS_CONFIGURATION "${canonical}"
22546 _ACEOF
22547
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22551 _ACEOF
22552
22553
22554 cat >>confdefs.h <<_ACEOF
22555 #define config_machfile "${machfile}"
22556 _ACEOF
22557
22558
22559 cat >>confdefs.h <<_ACEOF
22560 #define config_opsysfile "${opsysfile}"
22561 _ACEOF
22562
22563
22564 cat >>confdefs.h <<_ACEOF
22565 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22566 _ACEOF
22567
22568
22569 cat >>confdefs.h <<_ACEOF
22570 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22571 _ACEOF
22572
22573
22574 cat >>confdefs.h <<_ACEOF
22575 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22576 _ACEOF
22577
22578
22579 cat >>confdefs.h <<_ACEOF
22580 #define UNEXEC_SRC ${UNEXEC_SRC}
22581 _ACEOF
22582
22583
22584 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22585
22586 cat >>confdefs.h <<\_ACEOF
22587 #define HAVE_X_WINDOWS 1
22588 _ACEOF
22589
22590 fi
22591 if test "${USE_X_TOOLKIT}" != "none" ; then
22592
22593 cat >>confdefs.h <<\_ACEOF
22594 #define USE_X_TOOLKIT 1
22595 _ACEOF
22596
22597 fi
22598 if test "${HAVE_X11}" = "yes" ; then
22599
22600 cat >>confdefs.h <<\_ACEOF
22601 #define HAVE_X11 1
22602 _ACEOF
22603
22604 fi
22605 if test "${HAVE_XFREE386}" = "yes" ; then
22606
22607 cat >>confdefs.h <<\_ACEOF
22608 #define HAVE_XFREE386 1
22609 _ACEOF
22610
22611 fi
22612 if test "${HAVE_MENUS}" = "yes" ; then
22613
22614 cat >>confdefs.h <<\_ACEOF
22615 #define HAVE_MENUS 1
22616 _ACEOF
22617
22618 fi
22619 if test "${GNU_MALLOC}" = "yes" ; then
22620
22621 cat >>confdefs.h <<\_ACEOF
22622 #define GNU_MALLOC 1
22623 _ACEOF
22624
22625 fi
22626 if test "${REL_ALLOC}" = "yes" ; then
22627
22628 cat >>confdefs.h <<\_ACEOF
22629 #define REL_ALLOC 1
22630 _ACEOF
22631
22632 fi
22633
22634
22635
22636
22637
22638 #### Report on what we decided to do.
22639 #### Report GTK as a toolkit, even if it doesn't use Xt.
22640 #### It makes printing result more understandable as using GTK sets
22641 #### toolkit_scroll_bars to yes by default.
22642 if test "${HAVE_GTK}" = "yes"; then
22643 USE_X_TOOLKIT=GTK
22644 fi
22645
22646 echo "
22647 Configured for \`${canonical}'.
22648
22649 Where should the build process find the source code? ${srcdir}
22650 What operating system and machine description files should Emacs use?
22651 \`${opsysfile}' and \`${machfile}'
22652 What compiler should emacs be built with? ${CC} ${CFLAGS}
22653 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22654 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22655 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22656 What window system should Emacs use? ${window_system}
22657 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22658
22659 if test -n "${x_includes}"; then
22660 echo " Where do we find X Windows header files? ${x_includes}"
22661 else
22662 echo " Where do we find X Windows header files? Standard dirs"
22663 fi
22664 if test -n "${x_libraries}"; then
22665 echo " Where do we find X Windows libraries? ${x_libraries}"
22666 else
22667 echo " Where do we find X Windows libraries? Standard dirs"
22668 fi
22669
22670 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22671 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22672 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22673 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22674 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22675 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22676 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22677 echo
22678
22679 if test $USE_XASSERTS = yes; then
22680 echo " Compiling with asserts turned on."
22681 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22682 echo
22683 fi
22684
22685
22686
22687 # Remove any trailing slashes in these variables.
22688 test "${prefix}" != NONE &&
22689 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22690 test "${exec_prefix}" != NONE &&
22691 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22692
22693 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22694 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22695 ## from Makefile.c can correctly provide the arg `-traditional' to the
22696 ## C preprocessor.
22697
22698 cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h. */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22704 yes..yes
22705 _ACEOF
22706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22707 $EGREP "yes..yes" >/dev/null 2>&1; then
22708 CPP_NEED_TRADITIONAL=no
22709 else
22710 CPP_NEED_TRADITIONAL=yes
22711 fi
22712 rm -f conftest*
22713
22714
22715 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"
22716 ac_config_commands="$ac_config_commands default"
22717 cat >confcache <<\_ACEOF
22718 # This file is a shell script that caches the results of configure
22719 # tests run on this system so they can be shared between configure
22720 # scripts and configure runs, see configure's option --config-cache.
22721 # It is not useful on other systems. If it contains results you don't
22722 # want to keep, you may remove or edit it.
22723 #
22724 # config.status only pays attention to the cache file if you give it
22725 # the --recheck option to rerun configure.
22726 #
22727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22729 # following values.
22730
22731 _ACEOF
22732
22733 # The following way of writing the cache mishandles newlines in values,
22734 # but we know of no workaround that is simple, portable, and efficient.
22735 # So, don't put newlines in cache variables' values.
22736 # Ultrix sh set writes to stderr and can't be redirected directly,
22737 # and sets the high bit in the cache file unless we assign to the vars.
22738 {
22739 (set) 2>&1 |
22740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22741 *ac_space=\ *)
22742 # `set' does not quote correctly, so add quotes (double-quote
22743 # substitution turns \\\\ into \\, and sed turns \\ into \).
22744 sed -n \
22745 "s/'/'\\\\''/g;
22746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22747 ;;
22748 *)
22749 # `set' quotes correctly as required by POSIX, so do not add quotes.
22750 sed -n \
22751 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22752 ;;
22753 esac;
22754 } |
22755 sed '
22756 t clear
22757 : clear
22758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22759 t end
22760 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22761 : end' >>confcache
22762 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22763 if test -w $cache_file; then
22764 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22765 cat confcache >$cache_file
22766 else
22767 echo "not updating unwritable cache $cache_file"
22768 fi
22769 fi
22770 rm -f confcache
22771
22772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22773 # Let make expand exec_prefix.
22774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22775
22776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22778 # trailing colons and then remove the whole line if VPATH becomes empty
22779 # (actually we leave an empty line to preserve line numbers).
22780 if test "x$srcdir" = x.; then
22781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22782 s/:*\$(srcdir):*/:/;
22783 s/:*\${srcdir}:*/:/;
22784 s/:*@srcdir@:*/:/;
22785 s/^\([^=]*=[ ]*\):*/\1/;
22786 s/:*$//;
22787 s/^[^=]*=[ ]*$//;
22788 }'
22789 fi
22790
22791 DEFS=-DHAVE_CONFIG_H
22792
22793 ac_libobjs=
22794 ac_ltlibobjs=
22795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22796 # 1. Remove the extension, and $U if already installed.
22797 ac_i=`echo "$ac_i" |
22798 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22799 # 2. Add them.
22800 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22801 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22802 done
22803 LIBOBJS=$ac_libobjs
22804
22805 LTLIBOBJS=$ac_ltlibobjs
22806
22807
22808
22809 : ${CONFIG_STATUS=./config.status}
22810 ac_clean_files_save=$ac_clean_files
22811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22812 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22813 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22814 cat >$CONFIG_STATUS <<_ACEOF
22815 #! $SHELL
22816 # Generated by $as_me.
22817 # Run this file to recreate the current configuration.
22818 # Compiler output produced by configure, useful for debugging
22819 # configure, is in config.log if it exists.
22820
22821 debug=false
22822 ac_cs_recheck=false
22823 ac_cs_silent=false
22824 SHELL=\${CONFIG_SHELL-$SHELL}
22825 _ACEOF
22826
22827 cat >>$CONFIG_STATUS <<\_ACEOF
22828 ## --------------------- ##
22829 ## M4sh Initialization. ##
22830 ## --------------------- ##
22831
22832 # Be Bourne compatible
22833 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22834 emulate sh
22835 NULLCMD=:
22836 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22837 # is contrary to our usage. Disable this feature.
22838 alias -g '${1+"$@"}'='"$@"'
22839 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22840 set -o posix
22841 fi
22842 DUALCASE=1; export DUALCASE # for MKS sh
22843
22844 # Support unset when possible.
22845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22846 as_unset=unset
22847 else
22848 as_unset=false
22849 fi
22850
22851
22852 # Work around bugs in pre-3.0 UWIN ksh.
22853 $as_unset ENV MAIL MAILPATH
22854 PS1='$ '
22855 PS2='> '
22856 PS4='+ '
22857
22858 # NLS nuisances.
22859 for as_var in \
22860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22862 LC_TELEPHONE LC_TIME
22863 do
22864 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22865 eval $as_var=C; export $as_var
22866 else
22867 $as_unset $as_var
22868 fi
22869 done
22870
22871 # Required to use basename.
22872 if expr a : '\(a\)' >/dev/null 2>&1; then
22873 as_expr=expr
22874 else
22875 as_expr=false
22876 fi
22877
22878 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22879 as_basename=basename
22880 else
22881 as_basename=false
22882 fi
22883
22884
22885 # Name of the executable.
22886 as_me=`$as_basename "$0" ||
22887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22888 X"$0" : 'X\(//\)$' \| \
22889 X"$0" : 'X\(/\)$' \| \
22890 . : '\(.\)' 2>/dev/null ||
22891 echo X/"$0" |
22892 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22893 /^X\/\(\/\/\)$/{ s//\1/; q; }
22894 /^X\/\(\/\).*/{ s//\1/; q; }
22895 s/.*/./; q'`
22896
22897
22898 # PATH needs CR, and LINENO needs CR and PATH.
22899 # Avoid depending upon Character Ranges.
22900 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22901 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22902 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22903 as_cr_digits='0123456789'
22904 as_cr_alnum=$as_cr_Letters$as_cr_digits
22905
22906 # The user is always right.
22907 if test "${PATH_SEPARATOR+set}" != set; then
22908 echo "#! /bin/sh" >conf$$.sh
22909 echo "exit 0" >>conf$$.sh
22910 chmod +x conf$$.sh
22911 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22912 PATH_SEPARATOR=';'
22913 else
22914 PATH_SEPARATOR=:
22915 fi
22916 rm -f conf$$.sh
22917 fi
22918
22919
22920 as_lineno_1=$LINENO
22921 as_lineno_2=$LINENO
22922 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22923 test "x$as_lineno_1" != "x$as_lineno_2" &&
22924 test "x$as_lineno_3" = "x$as_lineno_2" || {
22925 # Find who we are. Look in the path if we contain no path at all
22926 # relative or not.
22927 case $0 in
22928 *[\\/]* ) as_myself=$0 ;;
22929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22930 for as_dir in $PATH
22931 do
22932 IFS=$as_save_IFS
22933 test -z "$as_dir" && as_dir=.
22934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22935 done
22936
22937 ;;
22938 esac
22939 # We did not find ourselves, most probably we were run as `sh COMMAND'
22940 # in which case we are not to be found in the path.
22941 if test "x$as_myself" = x; then
22942 as_myself=$0
22943 fi
22944 if test ! -f "$as_myself"; then
22945 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22946 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22947 { (exit 1); exit 1; }; }
22948 fi
22949 case $CONFIG_SHELL in
22950 '')
22951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22952 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22953 do
22954 IFS=$as_save_IFS
22955 test -z "$as_dir" && as_dir=.
22956 for as_base in sh bash ksh sh5; do
22957 case $as_dir in
22958 /*)
22959 if ("$as_dir/$as_base" -c '
22960 as_lineno_1=$LINENO
22961 as_lineno_2=$LINENO
22962 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22963 test "x$as_lineno_1" != "x$as_lineno_2" &&
22964 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22965 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22966 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22967 CONFIG_SHELL=$as_dir/$as_base
22968 export CONFIG_SHELL
22969 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22970 fi;;
22971 esac
22972 done
22973 done
22974 ;;
22975 esac
22976
22977 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22978 # uniformly replaced by the line number. The first 'sed' inserts a
22979 # line-number line before each line; the second 'sed' does the real
22980 # work. The second script uses 'N' to pair each line-number line
22981 # with the numbered line, and appends trailing '-' during
22982 # substitution so that $LINENO is not a special case at line end.
22983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22984 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22985 sed '=' <$as_myself |
22986 sed '
22987 N
22988 s,$,-,
22989 : loop
22990 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22991 t loop
22992 s,-$,,
22993 s,^['$as_cr_digits']*\n,,
22994 ' >$as_me.lineno &&
22995 chmod +x $as_me.lineno ||
22996 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22997 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22998 { (exit 1); exit 1; }; }
22999
23000 # Don't try to exec as it changes $[0], causing all sort of problems
23001 # (the dirname of $[0] is not the place where we might find the
23002 # original and so on. Autoconf is especially sensible to this).
23003 . ./$as_me.lineno
23004 # Exit status is that of the last command.
23005 exit
23006 }
23007
23008
23009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23010 *c*,-n*) ECHO_N= ECHO_C='
23011 ' ECHO_T=' ' ;;
23012 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23013 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23014 esac
23015
23016 if expr a : '\(a\)' >/dev/null 2>&1; then
23017 as_expr=expr
23018 else
23019 as_expr=false
23020 fi
23021
23022 rm -f conf$$ conf$$.exe conf$$.file
23023 echo >conf$$.file
23024 if ln -s conf$$.file conf$$ 2>/dev/null; then
23025 # We could just check for DJGPP; but this test a) works b) is more generic
23026 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23027 if test -f conf$$.exe; then
23028 # Don't use ln at all; we don't have any links
23029 as_ln_s='cp -p'
23030 else
23031 as_ln_s='ln -s'
23032 fi
23033 elif ln conf$$.file conf$$ 2>/dev/null; then
23034 as_ln_s=ln
23035 else
23036 as_ln_s='cp -p'
23037 fi
23038 rm -f conf$$ conf$$.exe conf$$.file
23039
23040 if mkdir -p . 2>/dev/null; then
23041 as_mkdir_p=:
23042 else
23043 test -d ./-p && rmdir ./-p
23044 as_mkdir_p=false
23045 fi
23046
23047 as_executable_p="test -f"
23048
23049 # Sed expression to map a string onto a valid CPP name.
23050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23051
23052 # Sed expression to map a string onto a valid variable name.
23053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23054
23055
23056 # IFS
23057 # We need space, tab and new line, in precisely that order.
23058 as_nl='
23059 '
23060 IFS=" $as_nl"
23061
23062 # CDPATH.
23063 $as_unset CDPATH
23064
23065 exec 6>&1
23066
23067 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling. Logging --version etc. is OK.
23070 exec 5>>config.log
23071 {
23072 echo
23073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23074 ## Running $as_me. ##
23075 _ASBOX
23076 } >&5
23077 cat >&5 <<_CSEOF
23078
23079 This file was extended by $as_me, which was
23080 generated by GNU Autoconf 2.59. Invocation command line was
23081
23082 CONFIG_FILES = $CONFIG_FILES
23083 CONFIG_HEADERS = $CONFIG_HEADERS
23084 CONFIG_LINKS = $CONFIG_LINKS
23085 CONFIG_COMMANDS = $CONFIG_COMMANDS
23086 $ $0 $@
23087
23088 _CSEOF
23089 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23090 echo >&5
23091 _ACEOF
23092
23093 # Files that config.status was made for.
23094 if test -n "$ac_config_files"; then
23095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23096 fi
23097
23098 if test -n "$ac_config_headers"; then
23099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23100 fi
23101
23102 if test -n "$ac_config_links"; then
23103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23104 fi
23105
23106 if test -n "$ac_config_commands"; then
23107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23108 fi
23109
23110 cat >>$CONFIG_STATUS <<\_ACEOF
23111
23112 ac_cs_usage="\
23113 \`$as_me' instantiates files from templates according to the
23114 current configuration.
23115
23116 Usage: $0 [OPTIONS] [FILE]...
23117
23118 -h, --help print this help, then exit
23119 -V, --version print version number, then exit
23120 -q, --quiet do not print progress messages
23121 -d, --debug don't remove temporary files
23122 --recheck update $as_me by reconfiguring in the same conditions
23123 --file=FILE[:TEMPLATE]
23124 instantiate the configuration file FILE
23125 --header=FILE[:TEMPLATE]
23126 instantiate the configuration header FILE
23127
23128 Configuration files:
23129 $config_files
23130
23131 Configuration headers:
23132 $config_headers
23133
23134 Configuration commands:
23135 $config_commands
23136
23137 Report bugs to <bug-autoconf@gnu.org>."
23138 _ACEOF
23139
23140 cat >>$CONFIG_STATUS <<_ACEOF
23141 ac_cs_version="\\
23142 config.status
23143 configured by $0, generated by GNU Autoconf 2.59,
23144 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23145
23146 Copyright (C) 2003 Free Software Foundation, Inc.
23147 This config.status script is free software; the Free Software Foundation
23148 gives unlimited permission to copy, distribute and modify it."
23149 srcdir=$srcdir
23150 INSTALL="$INSTALL"
23151 _ACEOF
23152
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 # If no file are specified by the user, then we need to provide default
23155 # value. By we need to know if files were specified by the user.
23156 ac_need_defaults=:
23157 while test $# != 0
23158 do
23159 case $1 in
23160 --*=*)
23161 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23162 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23163 ac_shift=:
23164 ;;
23165 -*)
23166 ac_option=$1
23167 ac_optarg=$2
23168 ac_shift=shift
23169 ;;
23170 *) # This is not an option, so the user has probably given explicit
23171 # arguments.
23172 ac_option=$1
23173 ac_need_defaults=false;;
23174 esac
23175
23176 case $ac_option in
23177 # Handling of the options.
23178 _ACEOF
23179 cat >>$CONFIG_STATUS <<\_ACEOF
23180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23181 ac_cs_recheck=: ;;
23182 --version | --vers* | -V )
23183 echo "$ac_cs_version"; exit 0 ;;
23184 --he | --h)
23185 # Conflict between --help and --header
23186 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23187 Try \`$0 --help' for more information." >&5
23188 echo "$as_me: error: ambiguous option: $1
23189 Try \`$0 --help' for more information." >&2;}
23190 { (exit 1); exit 1; }; };;
23191 --help | --hel | -h )
23192 echo "$ac_cs_usage"; exit 0 ;;
23193 --debug | --d* | -d )
23194 debug=: ;;
23195 --file | --fil | --fi | --f )
23196 $ac_shift
23197 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23198 ac_need_defaults=false;;
23199 --header | --heade | --head | --hea )
23200 $ac_shift
23201 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23202 ac_need_defaults=false;;
23203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23205 ac_cs_silent=: ;;
23206
23207 # This is an error.
23208 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23209 Try \`$0 --help' for more information." >&5
23210 echo "$as_me: error: unrecognized option: $1
23211 Try \`$0 --help' for more information." >&2;}
23212 { (exit 1); exit 1; }; } ;;
23213
23214 *) ac_config_targets="$ac_config_targets $1" ;;
23215
23216 esac
23217 shift
23218 done
23219
23220 ac_configure_extra_args=
23221
23222 if $ac_cs_silent; then
23223 exec 6>/dev/null
23224 ac_configure_extra_args="$ac_configure_extra_args --silent"
23225 fi
23226
23227 _ACEOF
23228 cat >>$CONFIG_STATUS <<_ACEOF
23229 if \$ac_cs_recheck; then
23230 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23231 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23232 fi
23233
23234 _ACEOF
23235
23236 cat >>$CONFIG_STATUS <<_ACEOF
23237 #
23238 # INIT-COMMANDS section.
23239 #
23240
23241 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23242
23243 _ACEOF
23244
23245
23246
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 for ac_config_target in $ac_config_targets
23249 do
23250 case "$ac_config_target" in
23251 # Handling of arguments.
23252 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23253 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23254 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23255 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23256 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23257 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23258 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23259 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23260 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23261 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23262 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23263 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23266 { (exit 1); exit 1; }; };;
23267 esac
23268 done
23269
23270 # If the user did not use the arguments to specify the items to instantiate,
23271 # then the envvar interface is used. Set only those that are not.
23272 # We use the long form for the default assignment because of an extremely
23273 # bizarre bug on SunOS 4.1.3.
23274 if $ac_need_defaults; then
23275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23278 fi
23279
23280 # Have a temporary directory for convenience. Make it in the build tree
23281 # simply because there is no reason to put it here, and in addition,
23282 # creating and moving files from /tmp can sometimes cause problems.
23283 # Create a temporary directory, and hook for its removal unless debugging.
23284 $debug ||
23285 {
23286 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23287 trap '{ (exit 1); exit 1; }' 1 2 13 15
23288 }
23289
23290 # Create a (secure) tmp directory for tmp files.
23291
23292 {
23293 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23294 test -n "$tmp" && test -d "$tmp"
23295 } ||
23296 {
23297 tmp=./confstat$$-$RANDOM
23298 (umask 077 && mkdir $tmp)
23299 } ||
23300 {
23301 echo "$me: cannot create a temporary directory in ." >&2
23302 { (exit 1); exit 1; }
23303 }
23304
23305 _ACEOF
23306
23307 cat >>$CONFIG_STATUS <<_ACEOF
23308
23309 #
23310 # CONFIG_FILES section.
23311 #
23312
23313 # No need to generate the scripts if there are no CONFIG_FILES.
23314 # This happens for instance when ./config.status config.h
23315 if test -n "\$CONFIG_FILES"; then
23316 # Protect against being on the right side of a sed subst in config.status.
23317 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23318 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23319 s,@SHELL@,$SHELL,;t t
23320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23321 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23322 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23323 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23324 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23325 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23326 s,@exec_prefix@,$exec_prefix,;t t
23327 s,@prefix@,$prefix,;t t
23328 s,@program_transform_name@,$program_transform_name,;t t
23329 s,@bindir@,$bindir,;t t
23330 s,@sbindir@,$sbindir,;t t
23331 s,@libexecdir@,$libexecdir,;t t
23332 s,@datadir@,$datadir,;t t
23333 s,@sysconfdir@,$sysconfdir,;t t
23334 s,@sharedstatedir@,$sharedstatedir,;t t
23335 s,@localstatedir@,$localstatedir,;t t
23336 s,@libdir@,$libdir,;t t
23337 s,@includedir@,$includedir,;t t
23338 s,@oldincludedir@,$oldincludedir,;t t
23339 s,@infodir@,$infodir,;t t
23340 s,@mandir@,$mandir,;t t
23341 s,@build_alias@,$build_alias,;t t
23342 s,@host_alias@,$host_alias,;t t
23343 s,@target_alias@,$target_alias,;t t
23344 s,@DEFS@,$DEFS,;t t
23345 s,@ECHO_C@,$ECHO_C,;t t
23346 s,@ECHO_N@,$ECHO_N,;t t
23347 s,@ECHO_T@,$ECHO_T,;t t
23348 s,@LIBS@,$LIBS,;t t
23349 s,@MAINT@,$MAINT,;t t
23350 s,@build@,$build,;t t
23351 s,@build_cpu@,$build_cpu,;t t
23352 s,@build_vendor@,$build_vendor,;t t
23353 s,@build_os@,$build_os,;t t
23354 s,@host@,$host,;t t
23355 s,@host_cpu@,$host_cpu,;t t
23356 s,@host_vendor@,$host_vendor,;t t
23357 s,@host_os@,$host_os,;t t
23358 s,@CC@,$CC,;t t
23359 s,@CFLAGS@,$CFLAGS,;t t
23360 s,@LDFLAGS@,$LDFLAGS,;t t
23361 s,@CPPFLAGS@,$CPPFLAGS,;t t
23362 s,@ac_ct_CC@,$ac_ct_CC,;t t
23363 s,@EXEEXT@,$EXEEXT,;t t
23364 s,@OBJEXT@,$OBJEXT,;t t
23365 s,@CPP@,$CPP,;t t
23366 s,@EGREP@,$EGREP,;t t
23367 s,@LN_S@,$LN_S,;t t
23368 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23369 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23370 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23371 s,@RANLIB@,$RANLIB,;t t
23372 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23373 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23374 s,@GZIP_PROG@,$GZIP_PROG,;t t
23375 s,@LIBSOUND@,$LIBSOUND,;t t
23376 s,@SET_MAKE@,$SET_MAKE,;t t
23377 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23378 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23379 s,@GTK_LIBS@,$GTK_LIBS,;t t
23380 s,@ALLOCA@,$ALLOCA,;t t
23381 s,@liblockfile@,$liblockfile,;t t
23382 s,@LIBOBJS@,$LIBOBJS,;t t
23383 s,@NEED_SETGID@,$NEED_SETGID,;t t
23384 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23385 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23386 s,@GETOPT_H@,$GETOPT_H,;t t
23387 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23388 s,@version@,$version,;t t
23389 s,@configuration@,$configuration,;t t
23390 s,@canonical@,$canonical,;t t
23391 s,@srcdir@,$srcdir,;t t
23392 s,@lispdir@,$lispdir,;t t
23393 s,@locallisppath@,$locallisppath,;t t
23394 s,@lisppath@,$lisppath,;t t
23395 s,@x_default_search_path@,$x_default_search_path,;t t
23396 s,@etcdir@,$etcdir,;t t
23397 s,@archlibdir@,$archlibdir,;t t
23398 s,@docdir@,$docdir,;t t
23399 s,@bitmapdir@,$bitmapdir,;t t
23400 s,@gamedir@,$gamedir,;t t
23401 s,@gameuser@,$gameuser,;t t
23402 s,@c_switch_system@,$c_switch_system,;t t
23403 s,@c_switch_machine@,$c_switch_machine,;t t
23404 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23405 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23406 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23407 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23408 s,@machfile@,$machfile,;t t
23409 s,@opsysfile@,$opsysfile,;t t
23410 s,@carbon_appdir@,$carbon_appdir,;t t
23411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23412 CEOF
23413
23414 _ACEOF
23415
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23417 # Split the substitutions into bite-sized pieces for seds with
23418 # small command number limits, like on Digital OSF/1 and HP-UX.
23419 ac_max_sed_lines=48
23420 ac_sed_frag=1 # Number of current file.
23421 ac_beg=1 # First line for current file.
23422 ac_end=$ac_max_sed_lines # Line after last line for current file.
23423 ac_more_lines=:
23424 ac_sed_cmds=
23425 while $ac_more_lines; do
23426 if test $ac_beg -gt 1; then
23427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23428 else
23429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23430 fi
23431 if test ! -s $tmp/subs.frag; then
23432 ac_more_lines=false
23433 else
23434 # The purpose of the label and of the branching condition is to
23435 # speed up the sed processing (if there are no `@' at all, there
23436 # is no need to browse any of the substitutions).
23437 # These are the two extra sed commands mentioned above.
23438 (echo ':t
23439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23440 if test -z "$ac_sed_cmds"; then
23441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23442 else
23443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23444 fi
23445 ac_sed_frag=`expr $ac_sed_frag + 1`
23446 ac_beg=$ac_end
23447 ac_end=`expr $ac_end + $ac_max_sed_lines`
23448 fi
23449 done
23450 if test -z "$ac_sed_cmds"; then
23451 ac_sed_cmds=cat
23452 fi
23453 fi # test -n "$CONFIG_FILES"
23454
23455 _ACEOF
23456 cat >>$CONFIG_STATUS <<\_ACEOF
23457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23459 case $ac_file in
23460 - | *:- | *:-:* ) # input from stdin
23461 cat >$tmp/stdin
23462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23466 * ) ac_file_in=$ac_file.in ;;
23467 esac
23468
23469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23470 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23472 X"$ac_file" : 'X\(//\)[^/]' \| \
23473 X"$ac_file" : 'X\(//\)$' \| \
23474 X"$ac_file" : 'X\(/\)' \| \
23475 . : '\(.\)' 2>/dev/null ||
23476 echo X"$ac_file" |
23477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23479 /^X\(\/\/\)$/{ s//\1/; q; }
23480 /^X\(\/\).*/{ s//\1/; q; }
23481 s/.*/./; q'`
23482 { if $as_mkdir_p; then
23483 mkdir -p "$ac_dir"
23484 else
23485 as_dir="$ac_dir"
23486 as_dirs=
23487 while test ! -d "$as_dir"; do
23488 as_dirs="$as_dir $as_dirs"
23489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23491 X"$as_dir" : 'X\(//\)[^/]' \| \
23492 X"$as_dir" : 'X\(//\)$' \| \
23493 X"$as_dir" : 'X\(/\)' \| \
23494 . : '\(.\)' 2>/dev/null ||
23495 echo X"$as_dir" |
23496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23498 /^X\(\/\/\)$/{ s//\1/; q; }
23499 /^X\(\/\).*/{ s//\1/; q; }
23500 s/.*/./; q'`
23501 done
23502 test ! -n "$as_dirs" || mkdir $as_dirs
23503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23505 { (exit 1); exit 1; }; }; }
23506
23507 ac_builddir=.
23508
23509 if test "$ac_dir" != .; then
23510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23511 # A "../" for each directory in $ac_dir_suffix.
23512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23513 else
23514 ac_dir_suffix= ac_top_builddir=
23515 fi
23516
23517 case $srcdir in
23518 .) # No --srcdir option. We are building in place.
23519 ac_srcdir=.
23520 if test -z "$ac_top_builddir"; then
23521 ac_top_srcdir=.
23522 else
23523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23524 fi ;;
23525 [\\/]* | ?:[\\/]* ) # Absolute path.
23526 ac_srcdir=$srcdir$ac_dir_suffix;
23527 ac_top_srcdir=$srcdir ;;
23528 *) # Relative path.
23529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23531 esac
23532
23533 # Do not use `cd foo && pwd` to compute absolute paths, because
23534 # the directories may not exist.
23535 case `pwd` in
23536 .) ac_abs_builddir="$ac_dir";;
23537 *)
23538 case "$ac_dir" in
23539 .) ac_abs_builddir=`pwd`;;
23540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23542 esac;;
23543 esac
23544 case $ac_abs_builddir in
23545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23546 *)
23547 case ${ac_top_builddir}. in
23548 .) ac_abs_top_builddir=$ac_abs_builddir;;
23549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23551 esac;;
23552 esac
23553 case $ac_abs_builddir in
23554 .) ac_abs_srcdir=$ac_srcdir;;
23555 *)
23556 case $ac_srcdir in
23557 .) ac_abs_srcdir=$ac_abs_builddir;;
23558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23560 esac;;
23561 esac
23562 case $ac_abs_builddir in
23563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23564 *)
23565 case $ac_top_srcdir in
23566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23569 esac;;
23570 esac
23571
23572
23573 case $INSTALL in
23574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23575 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23576 esac
23577
23578 # Let's still pretend it is `configure' which instantiates (i.e., don't
23579 # use $as_me), people would be surprised to read:
23580 # /* config.h. Generated by config.status. */
23581 if test x"$ac_file" = x-; then
23582 configure_input=
23583 else
23584 configure_input="$ac_file. "
23585 fi
23586 configure_input=$configure_input"Generated from `echo $ac_file_in |
23587 sed 's,.*/,,'` by configure."
23588
23589 # First look for the input files in the build tree, otherwise in the
23590 # src tree.
23591 ac_file_inputs=`IFS=:
23592 for f in $ac_file_in; do
23593 case $f in
23594 -) echo $tmp/stdin ;;
23595 [\\/$]*)
23596 # Absolute (can't be DOS-style, as IFS=:)
23597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23598 echo "$as_me: error: cannot find input file: $f" >&2;}
23599 { (exit 1); exit 1; }; }
23600 echo "$f";;
23601 *) # Relative
23602 if test -f "$f"; then
23603 # Build tree
23604 echo "$f"
23605 elif test -f "$srcdir/$f"; then
23606 # Source tree
23607 echo "$srcdir/$f"
23608 else
23609 # /dev/null tree
23610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23611 echo "$as_me: error: cannot find input file: $f" >&2;}
23612 { (exit 1); exit 1; }; }
23613 fi;;
23614 esac
23615 done` || { (exit 1); exit 1; }
23616
23617 if test x"$ac_file" != x-; then
23618 { echo "$as_me:$LINENO: creating $ac_file" >&5
23619 echo "$as_me: creating $ac_file" >&6;}
23620 rm -f "$ac_file"
23621 fi
23622 _ACEOF
23623 cat >>$CONFIG_STATUS <<_ACEOF
23624 sed "$ac_vpsub
23625 $extrasub
23626 _ACEOF
23627 cat >>$CONFIG_STATUS <<\_ACEOF
23628 :t
23629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23630 s,@configure_input@,$configure_input,;t t
23631 s,@srcdir@,$ac_srcdir,;t t
23632 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23633 s,@top_srcdir@,$ac_top_srcdir,;t t
23634 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23635 s,@builddir@,$ac_builddir,;t t
23636 s,@abs_builddir@,$ac_abs_builddir,;t t
23637 s,@top_builddir@,$ac_top_builddir,;t t
23638 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23639 s,@INSTALL@,$ac_INSTALL,;t t
23640 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23641 rm -f $tmp/stdin
23642 if test x"$ac_file" != x-; then
23643 mv $tmp/out $ac_file
23644 else
23645 cat $tmp/out
23646 rm -f $tmp/out
23647 fi
23648
23649 done
23650 _ACEOF
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652
23653 #
23654 # CONFIG_HEADER section.
23655 #
23656
23657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23659 #
23660 # ac_d sets the value in "#define NAME VALUE" lines.
23661 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23662 ac_dB='[ ].*$,\1#\2'
23663 ac_dC=' '
23664 ac_dD=',;t'
23665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23666 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23667 ac_uB='$,\1#\2define\3'
23668 ac_uC=' '
23669 ac_uD=',;t'
23670
23671 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23673 case $ac_file in
23674 - | *:- | *:-:* ) # input from stdin
23675 cat >$tmp/stdin
23676 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23678 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23680 * ) ac_file_in=$ac_file.in ;;
23681 esac
23682
23683 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23684 echo "$as_me: creating $ac_file" >&6;}
23685
23686 # First look for the input files in the build tree, otherwise in the
23687 # src tree.
23688 ac_file_inputs=`IFS=:
23689 for f in $ac_file_in; do
23690 case $f in
23691 -) echo $tmp/stdin ;;
23692 [\\/$]*)
23693 # Absolute (can't be DOS-style, as IFS=:)
23694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23695 echo "$as_me: error: cannot find input file: $f" >&2;}
23696 { (exit 1); exit 1; }; }
23697 # Do quote $f, to prevent DOS paths from being IFS'd.
23698 echo "$f";;
23699 *) # Relative
23700 if test -f "$f"; then
23701 # Build tree
23702 echo "$f"
23703 elif test -f "$srcdir/$f"; then
23704 # Source tree
23705 echo "$srcdir/$f"
23706 else
23707 # /dev/null tree
23708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23709 echo "$as_me: error: cannot find input file: $f" >&2;}
23710 { (exit 1); exit 1; }; }
23711 fi;;
23712 esac
23713 done` || { (exit 1); exit 1; }
23714 # Remove the trailing spaces.
23715 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23716
23717 _ACEOF
23718
23719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23720 # `conftest.undefs', that substitutes the proper values into
23721 # config.h.in to produce config.h. The first handles `#define'
23722 # templates, and the second `#undef' templates.
23723 # And first: Protect against being on the right side of a sed subst in
23724 # config.status. Protect against being in an unquoted here document
23725 # in config.status.
23726 rm -f conftest.defines conftest.undefs
23727 # Using a here document instead of a string reduces the quoting nightmare.
23728 # Putting comments in sed scripts is not portable.
23729 #
23730 # `end' is used to avoid that the second main sed command (meant for
23731 # 0-ary CPP macros) applies to n-ary macro definitions.
23732 # See the Autoconf documentation for `clear'.
23733 cat >confdef2sed.sed <<\_ACEOF
23734 s/[\\&,]/\\&/g
23735 s,[\\$`],\\&,g
23736 t clear
23737 : clear
23738 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23739 t end
23740 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23741 : end
23742 _ACEOF
23743 # If some macros were called several times there might be several times
23744 # the same #defines, which is useless. Nevertheless, we may not want to
23745 # sort them, since we want the *last* AC-DEFINE to be honored.
23746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23748 rm -f confdef2sed.sed
23749
23750 # This sed command replaces #undef with comments. This is necessary, for
23751 # example, in the case of _POSIX_SOURCE, which is predefined and required
23752 # on some systems where configure will not decide to define it.
23753 cat >>conftest.undefs <<\_ACEOF
23754 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23755 _ACEOF
23756
23757 # Break up conftest.defines because some shells have a limit on the size
23758 # of here documents, and old seds have small limits too (100 cmds).
23759 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23760 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23761 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23762 echo ' :' >>$CONFIG_STATUS
23763 rm -f conftest.tail
23764 while grep . conftest.defines >/dev/null
23765 do
23766 # Write a limited-size here document to $tmp/defines.sed.
23767 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23768 # Speed up: don't consider the non `#define' lines.
23769 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23770 # Work around the forget-to-reset-the-flag bug.
23771 echo 't clr' >>$CONFIG_STATUS
23772 echo ': clr' >>$CONFIG_STATUS
23773 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23774 echo 'CEOF
23775 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23776 rm -f $tmp/in
23777 mv $tmp/out $tmp/in
23778 ' >>$CONFIG_STATUS
23779 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23780 rm -f conftest.defines
23781 mv conftest.tail conftest.defines
23782 done
23783 rm -f conftest.defines
23784 echo ' fi # grep' >>$CONFIG_STATUS
23785 echo >>$CONFIG_STATUS
23786
23787 # Break up conftest.undefs because some shells have a limit on the size
23788 # of here documents, and old seds have small limits too (100 cmds).
23789 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23790 rm -f conftest.tail
23791 while grep . conftest.undefs >/dev/null
23792 do
23793 # Write a limited-size here document to $tmp/undefs.sed.
23794 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23795 # Speed up: don't consider the non `#undef'
23796 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23797 # Work around the forget-to-reset-the-flag bug.
23798 echo 't clr' >>$CONFIG_STATUS
23799 echo ': clr' >>$CONFIG_STATUS
23800 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23801 echo 'CEOF
23802 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23803 rm -f $tmp/in
23804 mv $tmp/out $tmp/in
23805 ' >>$CONFIG_STATUS
23806 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23807 rm -f conftest.undefs
23808 mv conftest.tail conftest.undefs
23809 done
23810 rm -f conftest.undefs
23811
23812 cat >>$CONFIG_STATUS <<\_ACEOF
23813 # Let's still pretend it is `configure' which instantiates (i.e., don't
23814 # use $as_me), people would be surprised to read:
23815 # /* config.h. Generated by config.status. */
23816 if test x"$ac_file" = x-; then
23817 echo "/* Generated by configure. */" >$tmp/config.h
23818 else
23819 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23820 fi
23821 cat $tmp/in >>$tmp/config.h
23822 rm -f $tmp/in
23823 if test x"$ac_file" != x-; then
23824 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23826 echo "$as_me: $ac_file is unchanged" >&6;}
23827 else
23828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23830 X"$ac_file" : 'X\(//\)[^/]' \| \
23831 X"$ac_file" : 'X\(//\)$' \| \
23832 X"$ac_file" : 'X\(/\)' \| \
23833 . : '\(.\)' 2>/dev/null ||
23834 echo X"$ac_file" |
23835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23837 /^X\(\/\/\)$/{ s//\1/; q; }
23838 /^X\(\/\).*/{ s//\1/; q; }
23839 s/.*/./; q'`
23840 { if $as_mkdir_p; then
23841 mkdir -p "$ac_dir"
23842 else
23843 as_dir="$ac_dir"
23844 as_dirs=
23845 while test ! -d "$as_dir"; do
23846 as_dirs="$as_dir $as_dirs"
23847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23849 X"$as_dir" : 'X\(//\)[^/]' \| \
23850 X"$as_dir" : 'X\(//\)$' \| \
23851 X"$as_dir" : 'X\(/\)' \| \
23852 . : '\(.\)' 2>/dev/null ||
23853 echo X"$as_dir" |
23854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23856 /^X\(\/\/\)$/{ s//\1/; q; }
23857 /^X\(\/\).*/{ s//\1/; q; }
23858 s/.*/./; q'`
23859 done
23860 test ! -n "$as_dirs" || mkdir $as_dirs
23861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23863 { (exit 1); exit 1; }; }; }
23864
23865 rm -f $ac_file
23866 mv $tmp/config.h $ac_file
23867 fi
23868 else
23869 cat $tmp/config.h
23870 rm -f $tmp/config.h
23871 fi
23872 done
23873 _ACEOF
23874 cat >>$CONFIG_STATUS <<\_ACEOF
23875
23876 #
23877 # CONFIG_COMMANDS section.
23878 #
23879 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23880 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23881 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23882 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23883 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23884 X"$ac_dest" : 'X\(//\)[^/]' \| \
23885 X"$ac_dest" : 'X\(//\)$' \| \
23886 X"$ac_dest" : 'X\(/\)' \| \
23887 . : '\(.\)' 2>/dev/null ||
23888 echo X"$ac_dest" |
23889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23891 /^X\(\/\/\)$/{ s//\1/; q; }
23892 /^X\(\/\).*/{ s//\1/; q; }
23893 s/.*/./; q'`
23894 { if $as_mkdir_p; then
23895 mkdir -p "$ac_dir"
23896 else
23897 as_dir="$ac_dir"
23898 as_dirs=
23899 while test ! -d "$as_dir"; do
23900 as_dirs="$as_dir $as_dirs"
23901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23903 X"$as_dir" : 'X\(//\)[^/]' \| \
23904 X"$as_dir" : 'X\(//\)$' \| \
23905 X"$as_dir" : 'X\(/\)' \| \
23906 . : '\(.\)' 2>/dev/null ||
23907 echo X"$as_dir" |
23908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23910 /^X\(\/\/\)$/{ s//\1/; q; }
23911 /^X\(\/\).*/{ s//\1/; q; }
23912 s/.*/./; q'`
23913 done
23914 test ! -n "$as_dirs" || mkdir $as_dirs
23915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23917 { (exit 1); exit 1; }; }; }
23918
23919 ac_builddir=.
23920
23921 if test "$ac_dir" != .; then
23922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23923 # A "../" for each directory in $ac_dir_suffix.
23924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23925 else
23926 ac_dir_suffix= ac_top_builddir=
23927 fi
23928
23929 case $srcdir in
23930 .) # No --srcdir option. We are building in place.
23931 ac_srcdir=.
23932 if test -z "$ac_top_builddir"; then
23933 ac_top_srcdir=.
23934 else
23935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23936 fi ;;
23937 [\\/]* | ?:[\\/]* ) # Absolute path.
23938 ac_srcdir=$srcdir$ac_dir_suffix;
23939 ac_top_srcdir=$srcdir ;;
23940 *) # Relative path.
23941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23943 esac
23944
23945 # Do not use `cd foo && pwd` to compute absolute paths, because
23946 # the directories may not exist.
23947 case `pwd` in
23948 .) ac_abs_builddir="$ac_dir";;
23949 *)
23950 case "$ac_dir" in
23951 .) ac_abs_builddir=`pwd`;;
23952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23954 esac;;
23955 esac
23956 case $ac_abs_builddir in
23957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23958 *)
23959 case ${ac_top_builddir}. in
23960 .) ac_abs_top_builddir=$ac_abs_builddir;;
23961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23963 esac;;
23964 esac
23965 case $ac_abs_builddir in
23966 .) ac_abs_srcdir=$ac_srcdir;;
23967 *)
23968 case $ac_srcdir in
23969 .) ac_abs_srcdir=$ac_abs_builddir;;
23970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23972 esac;;
23973 esac
23974 case $ac_abs_builddir in
23975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23976 *)
23977 case $ac_top_srcdir in
23978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23981 esac;;
23982 esac
23983
23984
23985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23986 echo "$as_me: executing $ac_dest commands" >&6;}
23987 case $ac_dest in
23988 default )
23989
23990 ### Make the necessary directories, if they don't exist.
23991 for dir in etc lisp ; do
23992 test -d ${dir} || mkdir ${dir}
23993 done
23994
23995 # Build src/Makefile from ${srcdir}/src/Makefile.c
23996 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23997 # This must be done after src/config.h is built, since we rely on that file.
23998
23999 # Now get this: Some word that is part of the ${srcdir} directory name
24000 # or the ${configuration} value might, just might, happen to be an
24001 # identifier like `sun4' or `i386' or something, and be predefined by
24002 # the C preprocessor to some helpful value like 1, or maybe the empty
24003 # string. Needless to say consequent macro substitutions are less
24004 # than conducive to the makefile finding the correct directory.
24005 undefs="`echo $top_srcdir $configuration $canonical |
24006 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24007 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24008 `"
24009
24010 echo creating src/epaths.h
24011 ${MAKE-make} epaths-force
24012
24013 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24014 # `..' to `. .' unless invoked with -traditional
24015
24016 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24017 CPPFLAGS="$CPPFLAGS -traditional"
24018 fi
24019
24020 echo creating lib-src/Makefile
24021 ( cd lib-src
24022 rm -f junk.c junk1.c junk2.c
24023 sed -e '/start of cpp stuff/q' \
24024 < Makefile.c > junk1.c
24025 sed -e '1,/start of cpp stuff/d'\
24026 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24027 < Makefile.c > junk.c
24028 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24029 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24030 cat junk1.c junk2.c > Makefile.new
24031 rm -f junk.c junk1.c junk2.c
24032 chmod 444 Makefile.new
24033 mv -f Makefile.new Makefile
24034 )
24035
24036 echo creating src/Makefile
24037 ( cd src
24038 rm -f junk.c junk1.c junk2.c
24039 sed -e '/start of cpp stuff/q' \
24040 < Makefile.c > junk1.c
24041 sed -e '1,/start of cpp stuff/d'\
24042 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24043 < Makefile.c > junk.c
24044 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24045 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24046 cat junk1.c junk2.c > Makefile.new
24047 rm -f junk.c junk1.c junk2.c
24048 chmod 444 Makefile.new
24049 mv -f Makefile.new Makefile
24050 )
24051
24052 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24053 echo creating src/.gdbinit
24054 echo source $srcdir/src/.gdbinit > src/.gdbinit
24055 fi
24056
24057 # This is how we know whether to re-run configure in certain cases.
24058 touch src/config.stamp
24059
24060 ;;
24061 esac
24062 done
24063 _ACEOF
24064
24065 cat >>$CONFIG_STATUS <<\_ACEOF
24066
24067 { (exit 0); exit 0; }
24068 _ACEOF
24069 chmod +x $CONFIG_STATUS
24070 ac_clean_files=$ac_clean_files_save
24071
24072
24073 # configure is writing to config.log, and then calls config.status.
24074 # config.status does its own redirection, appending to config.log.
24075 # Unfortunately, on DOS this fails, as config.log is still kept open
24076 # by configure, so config.status won't be able to write to it; its
24077 # output is simply discarded. So we exec the FD to /dev/null,
24078 # effectively closing config.log, so it can be properly (re)opened and
24079 # appended to by config.status. When coming back to configure, we
24080 # need to make the FD available again.
24081 if test "$no_create" != yes; then
24082 ac_cs_success=:
24083 ac_config_status_args=
24084 test "$silent" = yes &&
24085 ac_config_status_args="$ac_config_status_args --quiet"
24086 exec 5>/dev/null
24087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24088 exec 5>>config.log
24089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24090 # would make configure fail if this is the last instruction.
24091 $ac_cs_success || { (exit 1); exit 1; }
24092 fi
24093
24094