]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1722 ;;
1723
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1728
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1732
1733 fi
1734
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1751 ;;
1752
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1765 ;;
1766
1767 ## LynxOS ports
1768 *-*-lynxos* )
1769 opsys=lynxos
1770 case "${canonical}" in
1771 i[3456]86-*-lynxos*) machine=intel386 ;;
1772 powerpc-*-lynxos*) machine=powerpc ;;
1773 esac
1774 ;;
1775
1776 ## Acorn RISCiX:
1777 arm-acorn-riscix1.1* )
1778 machine=acorn opsys=riscix1-1
1779 ;;
1780 arm-acorn-riscix1.2* | arm-acorn-riscix )
1781 ## This name is riscix12 instead of riscix1.2
1782 ## to avoid a file name conflict on MSDOS.
1783 machine=acorn opsys=riscix12
1784 ;;
1785
1786 ## BSDI ports
1787 *-*-bsdi* )
1788 opsys=bsdi
1789 case "${canonical}" in
1790 i[345]86-*-bsdi*) machine=intel386 ;;
1791 sparc-*-bsdi*) machine=sparc ;;
1792 powerpc-*-bsdi*) machine=macppc ;;
1793 esac
1794 case "${canonical}" in
1795 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1796 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1797 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1798 *-*-bsdi3* ) opsys=bsdos3 ;;
1799 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1800 esac
1801 ;;
1802
1803 ## Alliant machines
1804 ## Strictly speaking, we need the version of the alliant operating
1805 ## system to choose the right machine file, but currently the
1806 ## configuration name doesn't tell us enough to choose the right
1807 ## one; we need to give alliants their own operating system name to
1808 ## do this right. When someone cares, they can help us.
1809 fx80-alliant-* )
1810 machine=alliant4 opsys=bsd4-2
1811 ;;
1812 i860-alliant-* )
1813 machine=alliant-2800 opsys=bsd4-3
1814 ;;
1815
1816 ## Alpha (DEC) machines.
1817 alpha*-dec-osf* )
1818 machine=alpha opsys=osf1
1819 # This is needed to find X11R6.1 libraries for certain tests.
1820 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1821 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1823 # due to non-traditional preprocessing with the current compiler
1824 # defaults. OSF 4 can also have that compiler version, and there
1825 # seems always to have been a usable /usr/bin/cpp.
1826 NON_GNU_CPP=/usr/bin/cpp
1827 case "${canonical}" in
1828 alpha*-dec-osf[5-9]*)
1829 opsys=osf5-0 ;;
1830 esac
1831 ;;
1832
1833 alpha*-*-linux-gnu* )
1834 machine=alpha opsys=gnu-linux
1835 ;;
1836
1837 arm*-*-linux-gnu* )
1838 machine=arm opsys=gnu-linux
1839 ;;
1840
1841 ## Altos 3068
1842 m68*-altos-sysv* )
1843 machine=altos opsys=usg5-2
1844 ;;
1845
1846 ## Amdahl UTS
1847 580-amdahl-sysv* )
1848 machine=amdahl opsys=usg5-2-2
1849 ;;
1850
1851 ## Apollo, Domain/OS
1852 m68*-apollo-* )
1853 machine=apollo opsys=bsd4-3
1854 ;;
1855
1856 ## AT&T 3b2, 3b5, 3b15, 3b20
1857 we32k-att-sysv* )
1858 machine=att3b opsys=usg5-2-2
1859 ;;
1860
1861 ## AT&T 3b1 - The Mighty Unix PC!
1862 m68*-att-sysv* )
1863 machine=7300 opsys=usg5-2-2
1864 ;;
1865
1866 ## Bull dpx20
1867 rs6000-bull-bosx* )
1868 machine=ibmrs6000 opsys=aix3-2
1869 ;;
1870
1871 ## Bull dpx2
1872 m68*-bull-sysv3* )
1873 machine=dpx2 opsys=usg5-3
1874 ;;
1875
1876 ## Bull sps7
1877 m68*-bull-sysv2* )
1878 machine=sps7 opsys=usg5-2
1879 ;;
1880
1881 ## CCI 5/32, 6/32 -- see "Tahoe".
1882
1883 ## Celerity
1884 ## I don't know what configuration name to use for this; config.sub
1885 ## doesn't seem to know anything about it. Hey, Celerity users, get
1886 ## in touch with us!
1887 celerity-celerity-bsd* )
1888 machine=celerity opsys=bsd4-2
1889 ;;
1890
1891 ## Clipper
1892 ## What operating systems does this chip run that Emacs has been
1893 ## tested on?
1894 clipper-* )
1895 machine=clipper
1896 ## We'll use the catch-all code at the bottom to guess the
1897 ## operating system.
1898 ;;
1899
1900 ## Compaq Nonstop
1901 mips-compaq-nonstopux* )
1902 machine=nonstopux opsys=nonstopux
1903 ;;
1904
1905 ## Convex
1906 *-convex-bsd* | *-convex-convexos* )
1907 machine=convex opsys=bsd4-3
1908 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1909 NON_GNU_CPP="cc -E -P"
1910 ;;
1911
1912 ## Cubix QBx/386
1913 i[3456]86-cubix-sysv* )
1914 machine=intel386 opsys=usg5-3
1915 ;;
1916
1917 ## Cydra 5
1918 cydra*-cydrome-sysv* )
1919 machine=cydra5 opsys=usg5-3
1920 ;;
1921
1922 ## Data General AViiON Machines
1923 ## DG changed naming conventions with the release of 5.4.4.10, they
1924 ## dropped the initial 5.4 but left the intervening R. Because of the
1925 ## R this shouldn't conflict with older versions of the OS (which I
1926 ## think were named like dgux4.*). In addition, DG new AViiONs series
1927 ## uses either Motorola M88k or Intel Pentium CPUs.
1928 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1929 machine=aviion opsys=dgux4
1930 ;;
1931 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1932 ## This name is dgux5-4-3 instead of dgux5-4r3
1933 ## to avoid a file name conflict on MSDOS.
1934 machine=aviion opsys=dgux5-4-3
1935 ;;
1936 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1937 machine=aviion opsys=dgux5-4r2
1938 ;;
1939 m88k-dg-dgux* )
1940 machine=aviion opsys=dgux
1941 ;;
1942
1943 ## Data General AViiON Intel (x86) Machines
1944 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1945 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1946 i[345]86-dg-dguxR4* )
1947 machine=aviion-intel opsys=dgux4
1948 ;;
1949
1950 ## DECstations
1951 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1952 machine=pmax opsys=bsd4-2
1953 ;;
1954 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1955 machine=pmax opsys=bsd4-3
1956 ;;
1957 mips-dec-ultrix* )
1958 machine=pmax opsys=ultrix4-3
1959 ;;
1960 mips-dec-osf* )
1961 machine=pmax opsys=osf1
1962 ;;
1963 mips-dec-mach_bsd4.3* )
1964 machine=pmax opsys=mach-bsd4-3
1965 ;;
1966
1967 ## Motorola Delta machines
1968 m68k-motorola-sysv* | m68000-motorola-sysv* )
1969 machine=delta opsys=usg5-3
1970 if test -z "`type gnucc | grep 'not found'`"
1971 then
1972 if test -s /etc/167config
1973 then CC="gnucc -m68040"
1974 else CC="gnucc -m68881"
1975 fi
1976 else
1977 if test -z "`type gcc | grep 'not found'`"
1978 then CC=gcc
1979 else CC=cc
1980 fi
1981 fi
1982 ;;
1983 m88k-motorola-sysv4* )
1984 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1985 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1986 # I hope there are not other 4.0 versions for this machine
1987 # which really need usg5-4 instead.
1988 machine=delta88k opsys=usg5-4-2
1989 ;;
1990 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1991 machine=delta88k opsys=usg5-3
1992 ;;
1993
1994 ## Dual machines
1995 m68*-dual-sysv* )
1996 machine=dual opsys=usg5-2
1997 ;;
1998 m68*-dual-uniplus* )
1999 machine=dual opsys=unipl5-2
2000 ;;
2001
2002 ## Elxsi 6400
2003 elxsi-elxsi-sysv* )
2004 machine=elxsi opsys=usg5-2
2005 ;;
2006
2007 ## Encore machines
2008 ns16k-encore-bsd* )
2009 machine=ns16000 opsys=umax
2010 ;;
2011
2012 ## The GEC 63 - apparently, this port isn't really finished yet.
2013 # I'm sure we finished off the last of the machines, though. -- fx
2014
2015 ## Gould Power Node and NP1
2016 pn-gould-bsd4.2* )
2017 machine=gould opsys=bsd4-2
2018 ;;
2019 pn-gould-bsd4.3* )
2020 machine=gould opsys=bsd4-3
2021 ;;
2022 np1-gould-bsd* )
2023 machine=gould-np1 opsys=bsd4-3
2024 ;;
2025
2026 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2027 ## as far as Emacs is concerned).
2028 m88k-harris-cxux* )
2029 # Build needs to be different on 7.0 and later releases
2030 case "`uname -r`" in
2031 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2032 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2033 esac
2034 NON_GNU_CPP="/lib/cpp"
2035 ;;
2036 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2037 m68k-harris-cxux* )
2038 machine=nh3000 opsys=cxux
2039 ;;
2040 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2041 powerpc-harris-powerunix )
2042 machine=nh6000 opsys=powerunix
2043 NON_GNU_CPP="cc -Xo -E -P"
2044 ;;
2045 ## SR2001/SR2201 running HI-UX/MPP
2046 hppa1.1-hitachi-hiuxmpp* )
2047 machine=sr2k opsys=hiuxmpp
2048 ;;
2049 hppa1.1-hitachi-hiuxwe2* )
2050 machine=sr2k opsys=hiuxwe2
2051 ;;
2052 ## Honeywell XPS100
2053 xps*-honeywell-sysv* )
2054 machine=xps100 opsys=usg5-2
2055 ;;
2056
2057 ## HP 9000 series 200 or 300
2058 m68*-hp-bsd* )
2059 machine=hp9000s300 opsys=bsd4-3
2060 ;;
2061 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2062 m68*-hp-hpux* )
2063 case "`uname -r`" in
2064 ## Someone's system reports A.B8.05 for this.
2065 ## I wonder what other possibilities there are.
2066 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2067 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2069 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2070 *) machine=hp9000s300 opsys=hpux ;;
2071 esac
2072 ;;
2073
2074 ## HP 9000 series 700 and 800, running HP/UX
2075 hppa*-hp-hpux7* )
2076 machine=hp800 opsys=hpux
2077 ;;
2078 hppa*-hp-hpux8* )
2079 machine=hp800 opsys=hpux8
2080 ;;
2081 hppa*-hp-hpux9shr* )
2082 machine=hp800 opsys=hpux9shr
2083 ;;
2084 hppa*-hp-hpux9* )
2085 machine=hp800 opsys=hpux9
2086 ;;
2087 hppa*-hp-hpux10.2* )
2088 machine=hp800 opsys=hpux10-20
2089 ;;
2090 hppa*-hp-hpux10* )
2091 machine=hp800 opsys=hpux10
2092 ;;
2093 hppa*-hp-hpux1[1-9]* )
2094 machine=hp800 opsys=hpux11
2095 ;;
2096
2097 hppa*-*-linux-gnu* )
2098 machine=hp800 opsys=gnu-linux
2099 ;;
2100
2101 ## HP 9000 series 700 and 800, running HP/UX
2102 hppa*-hp-hpux* )
2103 ## Cross-compilation? Nah!
2104 case "`uname -r`" in
2105 ## Someone's system reports A.B8.05 for this.
2106 ## I wonder what other possibilities there are.
2107 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2108 *.08.* ) machine=hp800 opsys=hpux8 ;;
2109 *.09.* ) machine=hp800 opsys=hpux9 ;;
2110 *) machine=hp800 opsys=hpux10 ;;
2111 esac
2112 ;;
2113 hppa*-*-nextstep* )
2114 machine=hp800 opsys=nextstep
2115 ;;
2116
2117 ## Orion machines
2118 orion-orion-bsd* )
2119 machine=orion opsys=bsd4-2
2120 ;;
2121 clipper-orion-bsd* )
2122 machine=orion105 opsys=bsd4-2
2123 ;;
2124
2125 ## IBM machines
2126 i[3456]86-ibm-aix1.1* )
2127 machine=ibmps2-aix opsys=usg5-2-2
2128 ;;
2129 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2130 machine=ibmps2-aix opsys=usg5-3
2131 ;;
2132 i370-ibm-aix*)
2133 machine=ibm370aix opsys=usg5-3
2134 ;;
2135 s390-*-linux-gnu* )
2136 machine=ibms390 opsys=gnu-linux
2137 ;;
2138 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2139 machine=ibmrs6000 opsys=aix3-1
2140 ;;
2141 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2142 machine=ibmrs6000 opsys=aix3-2-5
2143 ;;
2144 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2145 machine=ibmrs6000 opsys=aix4-1
2146 ;;
2147 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2148 machine=ibmrs6000 opsys=aix4-2
2149 ;;
2150 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2151 machine=ibmrs6000 opsys=aix4-2
2152 ;;
2153 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2154 machine=ibmrs6000 opsys=aix4
2155 ;;
2156 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2157 machine=ibmrs6000 opsys=aix4-1
2158 ;;
2159 rs6000-ibm-aix* | powerpc-ibm-aix* )
2160 machine=ibmrs6000 opsys=aix3-2
2161 ;;
2162 romp-ibm-bsd4.3* )
2163 machine=ibmrt opsys=bsd4-3
2164 ;;
2165 romp-ibm-bsd4.2* )
2166 machine=ibmrt opsys=bsd4-2
2167 ;;
2168 romp-ibm-aos4.3* )
2169 machine=ibmrt opsys=bsd4-3
2170 ;;
2171 romp-ibm-aos4.2* )
2172 machine=ibmrt opsys=bsd4-2
2173 ;;
2174 romp-ibm-aos* )
2175 machine=ibmrt opsys=bsd4-3
2176 ;;
2177 romp-ibm-bsd* )
2178 machine=ibmrt opsys=bsd4-3
2179 ;;
2180 romp-ibm-aix* )
2181 machine=ibmrt-aix opsys=usg5-2-2
2182 ;;
2183
2184 ## Integrated Solutions `Optimum V'
2185 m68*-isi-bsd4.2* )
2186 machine=isi-ov opsys=bsd4-2
2187 ;;
2188 m68*-isi-bsd4.3* )
2189 machine=isi-ov opsys=bsd4-3
2190 ;;
2191
2192 ## Intel 386 machines where we do care about the manufacturer
2193 i[3456]86-intsys-sysv* )
2194 machine=is386 opsys=usg5-2-2
2195 ;;
2196
2197 ## Prime EXL
2198 i[3456]86-prime-sysv* )
2199 machine=i386 opsys=usg5-3
2200 ;;
2201
2202 ## Sequent Symmetry running Dynix
2203 i[3456]86-sequent-bsd* )
2204 machine=symmetry opsys=bsd4-3
2205 ;;
2206
2207 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2208 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2209 machine=sequent-ptx opsys=ptx4
2210 NON_GNU_CPP=/lib/cpp
2211 ;;
2212
2213 ## Sequent Symmetry running DYNIX/ptx
2214 ## Use the old cpp rather than the newer ANSI one.
2215 i[3456]86-sequent-ptx* )
2216 machine=sequent-ptx opsys=ptx
2217 NON_GNU_CPP="/lib/cpp"
2218 ;;
2219
2220 ## ncr machine running svr4.3.
2221 i[3456]86-ncr-sysv4.3 )
2222 machine=ncr386 opsys=usg5-4-3
2223 ;;
2224
2225 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2226 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2227 i[3456]86-ncr-sysv* )
2228 machine=ncr386 opsys=usg5-4-2
2229 ;;
2230
2231 ## Intel Paragon OSF/1
2232 i860-intel-osf1* )
2233 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2234 ;;
2235
2236 ## Intel 860
2237 i860-*-sysv4* )
2238 machine=i860 opsys=usg5-4
2239 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2240 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2241 ;;
2242
2243 ## Macintosh PowerPC
2244 powerpc*-*-linux-gnu* )
2245 machine=macppc opsys=gnu-linux
2246 ;;
2247
2248 ## Masscomp machines
2249 m68*-masscomp-rtu* )
2250 machine=masscomp opsys=rtu
2251 ;;
2252
2253 ## Megatest machines
2254 m68*-megatest-bsd* )
2255 machine=mega68 opsys=bsd4-2
2256 ;;
2257
2258 ## Workstations sold by MIPS
2259 ## This is not necessarily all workstations using the MIPS processor -
2260 ## Irises are produced by SGI, and DECstations by DEC.
2261
2262 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2263 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2264 ## it gives for choosing between the alternatives seems to be "Use
2265 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2266 ## the BSD world." I'll assume that these are instructions for
2267 ## handling two odd situations, and that every other situation
2268 ## should use mips.h and usg5-2-2, they being listed first.
2269 mips-mips-usg* )
2270 machine=mips4
2271 ## Fall through to the general code at the bottom to decide on the OS.
2272 ;;
2273 mips-mips-riscos4* )
2274 machine=mips4 opsys=bsd4-3
2275 NON_GNU_CC="cc -systype bsd43"
2276 NON_GNU_CPP="cc -systype bsd43 -E"
2277 ;;
2278 mips-mips-riscos5* )
2279 machine=mips4 opsys=riscos5
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2282 ;;
2283 mips-mips-bsd* )
2284 machine=mips opsys=bsd4-3
2285 ;;
2286 mips-mips-* )
2287 machine=mips opsys=usg5-2-2
2288 ;;
2289
2290 ## NeXT
2291 m68*-next-* | m68k-*-nextstep* )
2292 machine=m68k opsys=nextstep
2293 ;;
2294
2295 ## The complete machine from National Semiconductor
2296 ns32k-ns-genix* )
2297 machine=ns32000 opsys=usg5-2
2298 ;;
2299
2300 ## NCR machines
2301 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2302 machine=tower32 opsys=usg5-2-2
2303 ;;
2304 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2305 machine=tower32v3 opsys=usg5-3
2306 ;;
2307
2308 ## NEC EWS4800
2309 mips-nec-sysv4*)
2310 machine=ews4800 opsys=ux4800
2311 ;;
2312
2313 ## Nixdorf Targon 31
2314 m68*-nixdorf-sysv* )
2315 machine=targon31 opsys=usg5-2-2
2316 ;;
2317
2318 ## Nu (TI or LMI)
2319 m68*-nu-sysv* )
2320 machine=nu opsys=usg5-2
2321 ;;
2322
2323 ## Plexus
2324 m68*-plexus-sysv* )
2325 machine=plexus opsys=usg5-2
2326 ;;
2327
2328 ## Pyramid machines
2329 ## I don't really have any idea what sort of processor the Pyramid has,
2330 ## so I'm assuming it is its own architecture.
2331 pyramid-pyramid-bsd* )
2332 machine=pyramid opsys=bsd4-2
2333 ;;
2334
2335 ## Sequent Balance
2336 ns32k-sequent-bsd4.2* )
2337 machine=sequent opsys=bsd4-2
2338 ;;
2339 ns32k-sequent-bsd4.3* )
2340 machine=sequent opsys=bsd4-3
2341 ;;
2342
2343 ## Siemens Nixdorf
2344 mips-siemens-sysv* | mips-sni-sysv*)
2345 machine=mips-siemens opsys=usg5-4
2346 NON_GNU_CC=/usr/ccs/bin/cc
2347 NON_GNU_CPP=/usr/ccs/lib/cpp
2348 ;;
2349
2350 ## Silicon Graphics machines
2351 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2352 m68*-sgi-iris3.5* )
2353 machine=irist opsys=iris3-5
2354 ;;
2355 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2356 machine=irist opsys=iris3-6
2357 ;;
2358 ## Iris 4D
2359 mips-sgi-irix3* )
2360 machine=iris4d opsys=irix3-3
2361 ;;
2362 mips-sgi-irix4* )
2363 machine=iris4d opsys=irix4-0
2364 ;;
2365 mips-sgi-irix6.5 )
2366 machine=iris4d opsys=irix6-5
2367 # Without defining _LANGUAGE_C, things get masked out in the headers
2368 # so that, for instance, grepping for `free' in stdlib.h fails and
2369 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2370 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2371 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2372 ;;
2373 mips-sgi-irix6* )
2374 machine=iris4d opsys=irix6-0
2375 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2376 # but presumably it does no harm.
2377 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2378 # -32 probably isn't necessary in later v.6s -- anyone know which?
2379 NON_GCC_TEST_OPTIONS=-32
2380 ;;
2381 mips-sgi-irix5.[01]* )
2382 machine=iris4d opsys=irix5-0
2383 ;;
2384 mips-sgi-irix5* | mips-sgi-irix* )
2385 machine=iris4d opsys=irix5-2
2386 ;;
2387
2388 ## SONY machines
2389 m68*-sony-bsd4.2* )
2390 machine=news opsys=bsd4-2
2391 ;;
2392 m68*-sony-bsd4.3* )
2393 machine=news opsys=bsd4-3
2394 ;;
2395 m68*-sony-newsos3* | m68*-sony-news3*)
2396 machine=news opsys=bsd4-3
2397 ;;
2398 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2399 machine=news-risc opsys=bsd4-3
2400 ;;
2401 mips-sony-newsos6* )
2402 machine=news-r6 opsys=newsos6
2403 ;;
2404 mips-sony-news* )
2405 machine=news-risc opsys=newsos5
2406 ;;
2407
2408 ## Stride
2409 m68*-stride-sysv* )
2410 machine=stride opsys=usg5-2
2411 ;;
2412
2413 ## Suns
2414 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2415 machine=sparc opsys=gnu-linux
2416 ;;
2417
2418 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2419 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2420 | rs6000-*-solaris2*)
2421 case "${canonical}" in
2422 m68*-sunos1* ) machine=sun1 ;;
2423 m68*-sunos2* ) machine=sun2 ;;
2424 m68* ) machine=sun3 ;;
2425 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2426 i[3456]86-*-* ) machine=intel386 ;;
2427 powerpcle* ) machine=powerpcle ;;
2428 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2429 sparc* ) machine=sparc ;;
2430 * ) unported=yes ;;
2431 esac
2432 case "${canonical}" in
2433 ## The Sun386 didn't get past 4.0.
2434 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2435 *-sunos4.0* ) opsys=sunos4-0 ;;
2436 *-sunos4.1.[3-9]*noshare )
2437 ## This name is sunos413 instead of sunos4-1-3
2438 ## to avoid a file name conflict on MSDOS.
2439 opsys=sunos413
2440 NON_GNU_CPP=/usr/lib/cpp
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2443 ;;
2444 *-sunos4.1.[3-9]* | *-sunos4shr*)
2445 opsys=sunos4shr
2446 NON_GNU_CPP=/usr/lib/cpp
2447 ;;
2448 *-sunos4* | *-sunos )
2449 opsys=sunos4-1
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2452 ;;
2453 *-sunos5.3* | *-solaris2.3* )
2454 opsys=sol2-3
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 ;;
2457 *-sunos5.4* | *-solaris2.4* )
2458 opsys=sol2-4
2459 NON_GNU_CPP=/usr/ccs/lib/cpp
2460 RANLIB="ar -ts"
2461 ;;
2462 *-sunos5.5* | *-solaris2.5* )
2463 opsys=sol2-5
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2466 ;;
2467 *-sunos5.6* | *-solaris2.6* )
2468 opsys=sol2-6
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2471 ;;
2472 *-sunos5* | *-solaris* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 ;;
2476 * ) opsys=bsd4-2 ;;
2477 esac
2478 ## Watch out for a compiler that we know will not work.
2479 case "${canonical}" in
2480 *-solaris* | *-sunos5* )
2481 if [ "x$CC" = x/usr/ucb/cc ]; then
2482 ## /usr/ucb/cc doesn't work;
2483 ## we should find some other compiler that does work.
2484 unset CC
2485 fi
2486 ;;
2487 *) ;;
2488 esac
2489 ;;
2490 sparc-*-nextstep* )
2491 machine=sparc opsys=nextstep
2492 ;;
2493
2494 ## Tadpole 68k
2495 m68*-tadpole-sysv* )
2496 machine=tad68k opsys=usg5-3
2497 ;;
2498
2499 ## Tahoe machines
2500 tahoe-tahoe-bsd4.2* )
2501 machine=tahoe opsys=bsd4-2
2502 ;;
2503 tahoe-tahoe-bsd4.3* )
2504 machine=tahoe opsys=bsd4-3
2505 ;;
2506
2507 ## Tandem Integrity S2
2508 mips-tandem-sysv* )
2509 machine=tandem-s2 opsys=usg5-3
2510 ;;
2511
2512 ## Tektronix XD88
2513 m88k-tektronix-sysv3* )
2514 machine=tekxd88 opsys=usg5-3
2515 ;;
2516
2517 ## Tektronix 16000 box (6130?)
2518 ns16k-tektronix-bsd* )
2519 machine=ns16000 opsys=bsd4-2
2520 ;;
2521 ## Tektronix 4300
2522 ## src/m/tek4300.h hints that this is a m68k machine.
2523 m68*-tektronix-bsd* )
2524 machine=tek4300 opsys=bsd4-3
2525 ;;
2526
2527 ## Titan P2 or P3
2528 ## We seem to have lost the machine-description file titan.h!
2529 titan-titan-sysv* )
2530 machine=titan opsys=usg5-3
2531 ;;
2532
2533 ## Ustation E30 (SS5E)
2534 m68*-unisys-uniplus* )
2535 machine=ustation opsystem=unipl5-2
2536 ;;
2537
2538 ## Vaxen.
2539 vax-dec-* )
2540 machine=vax
2541 case "${canonical}" in
2542 *-bsd4.1* ) opsys=bsd4-1 ;;
2543 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2544 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2545 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2546 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2547 *-vms* ) opsys=vms ;;
2548 * ) unported=yes
2549 esac
2550 ;;
2551
2552 ## Whitechapel MG1
2553 ns16k-whitechapel-* )
2554 machine=mg1
2555 ## We don't know what sort of OS runs on these; we'll let the
2556 ## operating system guessing code below try.
2557 ;;
2558
2559 ## Wicat
2560 m68*-wicat-sysv* )
2561 machine=wicat opsys=usg5-2
2562 ;;
2563
2564 ## IA-64
2565 ia64*-*-linux* )
2566 machine=ia64 opsys=gnu-linux
2567 ;;
2568
2569 ## Intel 386 machines where we don't care about the manufacturer
2570 i[3456]86-*-* )
2571 machine=intel386
2572 case "${canonical}" in
2573 *-cygwin ) opsys=cygwin ;;
2574 *-darwin ) opsys=darwin
2575 CPP="${CC-cc} -E -no-cpp-precomp"
2576 ;;
2577 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2578 *-isc2.2* ) opsys=isc2-2 ;;
2579 *-isc4.0* ) opsys=isc4-0 ;;
2580 *-isc4.* ) opsys=isc4-1
2581 GCC_TEST_OPTIONS=-posix
2582 NON_GCC_TEST_OPTIONS=-Xp
2583 ;;
2584 *-isc* ) opsys=isc3-0 ;;
2585 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2586 *-esix* ) opsys=esix ;;
2587 *-xenix* ) opsys=xenix ;;
2588 *-linux-gnu* ) opsys=gnu-linux ;;
2589 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2590 *-sco3.2v5* ) opsys=sco5
2591 NON_GNU_CPP=/lib/cpp
2592 # Prevent -belf from being passed to $CPP.
2593 # /lib/cpp does not accept it.
2594 OVERRIDE_CPPFLAGS=" "
2595 ;;
2596 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2597 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-386bsd* ) opsys=386bsd ;;
2600 *-nextstep* ) opsys=nextstep ;;
2601 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2602 esac
2603 ;;
2604
2605 ## m68k Linux-based GNU system
2606 m68k-*-linux-gnu* )
2607 machine=m68k opsys=gnu-linux
2608 ;;
2609
2610 ## Mips Linux-based GNU system
2611 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2612 machine=mips opsys=gnu-linux
2613 ;;
2614
2615 ## UXP/DS
2616 sparc-fujitsu-sysv4* )
2617 machine=sparc opsys=uxpds
2618 NON_GNU_CPP=/usr/ccs/lib/cpp
2619 RANLIB="ar -ts"
2620 ;;
2621
2622 ## UXP/V
2623 f301-fujitsu-uxpv4.1)
2624 machine=f301 opsys=uxpv
2625 ;;
2626
2627 ## Darwin / Mac OS X
2628 powerpc-apple-darwin* )
2629 machine=powermac opsys=darwin
2630 # Define CPP as follows to make autoconf work correctly.
2631 CPP="${CC-cc} -E -no-cpp-precomp"
2632 # Use fink packages if available.
2633 if test -d /sw/include && test -d /sw/lib; then
2634 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2635 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2636 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2637 fi
2638 ;;
2639
2640 ## AMD x86-64 Linux-based GNU system
2641 x86_64-*-linux-gnu* )
2642 machine=amdx86-64 opsys=gnu-linux
2643 ;;
2644
2645 * )
2646 unported=yes
2647 ;;
2648 esac
2649
2650 ### If the code above didn't choose an operating system, just choose
2651 ### an operating system based on the configuration name. You really
2652 ### only want to use this when you have no idea what the right
2653 ### operating system is; if you know what operating systems a machine
2654 ### runs, it's cleaner to make it explicit in the case statement
2655 ### above.
2656 if test x"${opsys}" = x; then
2657 case "${canonical}" in
2658 *-gnu* ) opsys=gnu ;;
2659 *-bsd4.[01] ) opsys=bsd4-1 ;;
2660 *-bsd4.2 ) opsys=bsd4-2 ;;
2661 *-bsd4.3 ) opsys=bsd4-3 ;;
2662 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2663 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2664 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2665 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2666 *-sysv4.2uw* ) opsys=unixware ;;
2667 *-sysv5uw* ) opsys=unixware ;;
2668 *-sysv5OpenUNIX* ) opsys=unixware ;;
2669 *-sysv4.1* | *-sysvr4.1* )
2670 NON_GNU_CPP=/usr/lib/cpp
2671 opsys=usg5-4 ;;
2672 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2673 if [ x$NON_GNU_CPP = x ]; then
2674 if [ -f /usr/ccs/lib/cpp ]; then
2675 NON_GNU_CPP=/usr/ccs/lib/cpp
2676 else
2677 NON_GNU_CPP=/lib/cpp
2678 fi
2679 fi
2680 opsys=usg5-4-2 ;;
2681 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2682 * )
2683 unported=yes
2684 ;;
2685 esac
2686 fi
2687
2688
2689
2690 if test $unported = yes; then
2691 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2692 Check \`etc/MACHINES' for recognized configuration names." >&5
2693 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2694 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2695 { (exit 1); exit 1; }; }
2696 fi
2697
2698 machfile="m/${machine}.h"
2699 opsysfile="s/${opsys}.h"
2700
2701
2702 #### Choose a compiler.
2703 test -n "$CC" && cc_specified=yes
2704
2705 # Save the value of CFLAGS that the user specified.
2706 SPECIFIED_CFLAGS="$CFLAGS"
2707
2708 case ${with_gcc} in
2709 "yes" ) CC="gcc" GCC=yes ;;
2710 "no" ) : ${CC=cc} ;;
2711 * )
2712 esac
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754 fi
2755 if test -z "$ac_cv_prog_CC"; then
2756 ac_ct_CC=$CC
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791
2792 CC=$ac_ct_CC
2793 else
2794 CC="$ac_cv_prog_CC"
2795 fi
2796
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cc; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 fi
2833
2834 fi
2835 if test -z "$ac_cv_prog_CC"; then
2836 ac_ct_CC=$CC
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2875 fi
2876
2877 fi
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2899 continue
2900 fi
2901 ac_cv_prog_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2911 shift
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2916 shift
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 fi
2919 fi
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2969 fi
2970
2971 test -n "$CC" && break
2972 done
2973 fi
2974 if test -z "$CC"; then
2975 ac_ct_CC=$CC
2976 for ac_prog in cl
2977 do
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3011 fi
3012
3013 test -n "$ac_ct_CC" && break
3014 done
3015
3016 CC=$ac_ct_CC
3017 fi
3018
3019 fi
3020
3021
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3027
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev/null >&5) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054
3055 int
3056 main ()
3057 {
3058
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 ac_clean_files_save=$ac_clean_files
3064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3065 # Try to create an executable without -o first, disregard a.out.
3066 # It will help us diagnose broken compilers, and finding out an intuition
3067 # of exeext.
3068 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3072 (eval $ac_link_default) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Find the output, starting from the most likely. This scheme is
3077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3078 # resort.
3079
3080 # Be careful to initialize this variable, since it used to be cached.
3081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3082 ac_cv_exeext=
3083 # b.out is created by i960 compilers.
3084 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3085 do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3089 ;;
3090 conftest.$ac_ext )
3091 # This is the source file.
3092 ;;
3093 [ab].out )
3094 # We found the default executable, but exeext='' is most
3095 # certainly right.
3096 break;;
3097 *.* )
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # FIXME: I believe we export ac_cv_exeext for Libtool,
3100 # but it would be cool to find out if it's true. Does anybody
3101 # maintain Libtool? --akim.
3102 export ac_cv_exeext
3103 break;;
3104 * )
3105 break;;
3106 esac
3107 done
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C compiler cannot create executables
3115 See \`config.log' for more details." >&2;}
3116 { (exit 77); exit 77; }; }
3117 fi
3118
3119 ac_exeext=$ac_cv_exeext
3120 echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6
3122
3123 # Check the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3128 # If not cross compiling, check that we can run a simple program.
3129 if test "$cross_compiling" != yes; then
3130 if { ac_try='./$ac_file'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 cross_compiling=no
3137 else
3138 if test "$cross_compiling" = maybe; then
3139 cross_compiling=yes
3140 else
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3148 fi
3149 fi
3150 fi
3151 echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3153
3154 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 # Check the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6
3162
3163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166 (eval $ac_link) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3173 # `rm'.
3174 for ac_file in conftest.exe conftest conftest.*; do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 export ac_cv_exeext
3180 break;;
3181 * ) break;;
3182 esac
3183 done
3184 else
3185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3190 fi
3191
3192 rm -f conftest$ac_cv_exeext
3193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3194 echo "${ECHO_T}$ac_cv_exeext" >&6
3195
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3198 ac_exeext=$EXEEXT
3199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3201 if test "${ac_cv_objext+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.o conftest.obj
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3229 break;;
3230 esac
3231 done
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244 fi
3245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3246 echo "${ECHO_T}$ac_cv_objext" >&6
3247 OBJEXT=$ac_cv_objext
3248 ac_objext=$OBJEXT
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264 #ifndef __GNUC__
3265 choke me
3266 #endif
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_compiler_gnu=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 ac_compiler_gnu=no
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 CFLAGS="-g"
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_g=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 ac_cv_prog_cc_g=no
3359 fi
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3368 CFLAGS="-g -O2"
3369 else
3370 CFLAGS="-g"
3371 fi
3372 else
3373 if test "$GCC" = yes; then
3374 CFLAGS="-O2"
3375 else
3376 CFLAGS=
3377 fi
3378 fi
3379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_cv_prog_cc_stdc=no
3385 ac_save_CC=$CC
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h. */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400 char **p;
3401 int i;
3402 {
3403 return p[i];
3404 }
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3406 {
3407 char *s;
3408 va_list v;
3409 va_start (v,p);
3410 s = g (p, va_arg (v,int));
3411 va_end (v);
3412 return s;
3413 }
3414
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std1 is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std1. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3428 int argc;
3429 char **argv;
3430 int
3431 main ()
3432 {
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 # Don't try gcc -ansi; that turns off useful extensions and
3439 # breaks some systems' header files.
3440 # AIX -qlanglvl=ansi
3441 # Ultrix and OSF/1 -std1
3442 # HP-UX 10.20 and later -Ae
3443 # HP-UX older versions -Aa -D_HPUX_SOURCE
3444 # SVR4 -Xc -D__EXTENSIONS__
3445 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 do
3447 CC="$ac_save_CC $ac_arg"
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 ac_cv_prog_cc_stdc=$ac_arg
3471 break
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 fi
3477 rm -f conftest.err conftest.$ac_objext
3478 done
3479 rm -f conftest.$ac_ext conftest.$ac_objext
3480 CC=$ac_save_CC
3481
3482 fi
3483
3484 case "x$ac_cv_prog_cc_stdc" in
3485 x|xno)
3486 echo "$as_me:$LINENO: result: none needed" >&5
3487 echo "${ECHO_T}none needed" >&6 ;;
3488 *)
3489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3490 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3491 CC="$CC $ac_cv_prog_cc_stdc" ;;
3492 esac
3493
3494 # Some people use a C++ compiler to compile C. Since we use `exit',
3495 # in C++ we need to declare it. In case someone uses the same compiler
3496 # for both compiling C and C++ we need to have the C++ compiler decide
3497 # the declaration of exit, since it's the most demanding environment.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #ifndef __cplusplus
3500 choke me
3501 #endif
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_c_werror_flag"
3513 || 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"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 :
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 continue
3577 fi
3578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 $ac_declaration
3586 int
3587 main ()
3588 {
3589 exit (42);
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 break
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 fi
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 done
3624 rm -f conftest*
3625 if test -n "$ac_declaration"; then
3626 echo '#ifdef __cplusplus' >>confdefs.h
3627 echo $ac_declaration >>confdefs.h
3628 echo '#endif' >>confdefs.h
3629 fi
3630
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 fi
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3646 CPP=
3647 fi
3648
3649 #### Some systems specify a CPP to use unless we are using GCC.
3650 #### Now that we know whether we are using GCC, we can decide whether
3651 #### to use that one.
3652 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3653 then
3654 CPP="$NON_GNU_CPP"
3655 fi
3656
3657 #### Some systems specify a CC to use unless we are using GCC.
3658 #### Now that we know whether we are using GCC, we can decide whether
3659 #### to use that one.
3660 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3661 test x$cc_specified != xyes
3662 then
3663 CC="$NON_GNU_CC"
3664 fi
3665
3666 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3667 then
3668 CC="$CC $GCC_TEST_OPTIONS"
3669 fi
3670
3671 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3672 then
3673 CC="$CC $NON_GCC_TEST_OPTIONS"
3674 fi
3675
3676 #### Some other nice autoconf tests.
3677
3678 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3680 LN_S=$as_ln_s
3681 if test "$LN_S" = "ln -s"; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3686 echo "${ECHO_T}no, using $LN_S" >&6
3687 fi
3688
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3696 # On Suns, sometimes $CPP names a directory.
3697 if test -n "$CPP" && test -d "$CPP"; then
3698 CPP=
3699 fi
3700 if test -z "$CPP"; then
3701 if test "${ac_cv_prog_CPP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 # Double quotes because CPP needs to be expanded
3705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3706 do
3707 ac_preproc_ok=false
3708 for ac_c_preproc_warn_flag in '' yes
3709 do
3710 # Use a header file that comes with gcc, so configuring glibc
3711 # with a fresh cross-compiler works.
3712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 # <limits.h> exists even on freestanding compilers.
3714 # On the NeXT, cc -E runs the code through the compiler's parser,
3715 # not just through cpp. "Syntax error" is here to catch this case.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #ifdef __STDC__
3723 # include <limits.h>
3724 #else
3725 # include <assert.h>
3726 #endif
3727 Syntax error
3728 _ACEOF
3729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null; then
3737 if test -s conftest.err; then
3738 ac_cpp_err=$ac_c_preproc_warn_flag
3739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3740 else
3741 ac_cpp_err=
3742 fi
3743 else
3744 ac_cpp_err=yes
3745 fi
3746 if test -z "$ac_cpp_err"; then
3747 :
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 # Broken: fails on valid input.
3753 continue
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 # OK, works on sane cases. Now check whether non-existent headers
3758 # can be detected and how.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3766 _ACEOF
3767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null; then
3775 if test -s conftest.err; then
3776 ac_cpp_err=$ac_c_preproc_warn_flag
3777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3778 else
3779 ac_cpp_err=
3780 fi
3781 else
3782 ac_cpp_err=yes
3783 fi
3784 if test -z "$ac_cpp_err"; then
3785 # Broken: success on invalid input.
3786 continue
3787 else
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 # Passes both tests.
3792 ac_preproc_ok=:
3793 break
3794 fi
3795 rm -f conftest.err conftest.$ac_ext
3796
3797 done
3798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799 rm -f conftest.err conftest.$ac_ext
3800 if $ac_preproc_ok; then
3801 break
3802 fi
3803
3804 done
3805 ac_cv_prog_CPP=$CPP
3806
3807 fi
3808 CPP=$ac_cv_prog_CPP
3809 else
3810 ac_cv_prog_CPP=$CPP
3811 fi
3812 echo "$as_me:$LINENO: result: $CPP" >&5
3813 echo "${ECHO_T}$CPP" >&6
3814 ac_preproc_ok=false
3815 for ac_c_preproc_warn_flag in '' yes
3816 do
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #ifdef __STDC__
3830 # include <limits.h>
3831 #else
3832 # include <assert.h>
3833 #endif
3834 Syntax error
3835 _ACEOF
3836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev/null; then
3844 if test -s conftest.err; then
3845 ac_cpp_err=$ac_c_preproc_warn_flag
3846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3847 else
3848 ac_cpp_err=
3849 fi
3850 else
3851 ac_cpp_err=yes
3852 fi
3853 if test -z "$ac_cpp_err"; then
3854 :
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 # Broken: fails on valid input.
3860 continue
3861 fi
3862 rm -f conftest.err conftest.$ac_ext
3863
3864 # OK, works on sane cases. Now check whether non-existent headers
3865 # can be detected and how.
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <ac_nonexistent.h>
3873 _ACEOF
3874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null; then
3882 if test -s conftest.err; then
3883 ac_cpp_err=$ac_c_preproc_warn_flag
3884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3885 else
3886 ac_cpp_err=
3887 fi
3888 else
3889 ac_cpp_err=yes
3890 fi
3891 if test -z "$ac_cpp_err"; then
3892 # Broken: success on invalid input.
3893 continue
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 # Passes both tests.
3899 ac_preproc_ok=:
3900 break
3901 fi
3902 rm -f conftest.err conftest.$ac_ext
3903
3904 done
3905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906 rm -f conftest.err conftest.$ac_ext
3907 if $ac_preproc_ok; then
3908 :
3909 else
3910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&5
3912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3913 See \`config.log' for more details." >&2;}
3914 { (exit 1); exit 1; }; }
3915 fi
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923 # Find a good install program. We prefer a C program (faster),
3924 # so one script is as good as another. But avoid the broken or
3925 # incompatible versions:
3926 # SysV /etc/install, /usr/sbin/install
3927 # SunOS /usr/etc/install
3928 # IRIX /sbin/install
3929 # AIX /bin/install
3930 # AmigaOS /C/install, which installs bootblocks on floppy discs
3931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3934 # OS/2's system install, which has a completely different semantic
3935 # ./install, which can be erroneously created by make from ./install.sh.
3936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3938 if test -z "$INSTALL"; then
3939 if test "${ac_cv_path_install+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 # Account for people who put trailing slashes in PATH elements.
3948 case $as_dir/ in
3949 ./ | .// | /cC/* | \
3950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3952 /usr/ucb/* ) ;;
3953 *)
3954 # OSF1 and SCO ODT 3.0 have their own names for install.
3955 # Don't use installbsd from OSF since it installs stuff as root
3956 # by default.
3957 for ac_prog in ginstall scoinst install; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3960 if test $ac_prog = install &&
3961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3962 # AIX install. It has an incompatible calling convention.
3963 :
3964 elif test $ac_prog = install &&
3965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3966 # program-specific install script used by HP pwplus--don't use.
3967 :
3968 else
3969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3970 break 3
3971 fi
3972 fi
3973 done
3974 done
3975 ;;
3976 esac
3977 done
3978
3979
3980 fi
3981 if test "${ac_cv_path_install+set}" = set; then
3982 INSTALL=$ac_cv_path_install
3983 else
3984 # As a last resort, use the slow shell script. We don't cache a
3985 # path for INSTALL within a source directory, because that will
3986 # break other packages using the cache if that directory is
3987 # removed, or if the path is relative.
3988 INSTALL=$ac_install_sh
3989 fi
3990 fi
3991 echo "$as_me:$LINENO: result: $INSTALL" >&5
3992 echo "${ECHO_T}$INSTALL" >&6
3993
3994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3995 # It thinks the first close brace ends the variable substitution.
3996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3997
3998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3999
4000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4001
4002 if test "x$RANLIB" = x; then
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 if test -n "$RANLIB"; then
4012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027
4028 fi
4029 fi
4030 RANLIB=$ac_cv_prog_RANLIB
4031 if test -n "$RANLIB"; then
4032 echo "$as_me:$LINENO: result: $RANLIB" >&5
4033 echo "${ECHO_T}$RANLIB" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039 fi
4040 if test -z "$ac_cv_prog_RANLIB"; then
4041 ac_ct_RANLIB=$RANLIB
4042 # Extract the first word of "ranlib", so it can be a program name with args.
4043 set dummy ranlib; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test -n "$ac_ct_RANLIB"; then
4050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_RANLIB="ranlib"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065
4066 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4067 fi
4068 fi
4069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4070 if test -n "$ac_ct_RANLIB"; then
4071 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4072 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4073 else
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078 RANLIB=$ac_ct_RANLIB
4079 else
4080 RANLIB="$ac_cv_prog_RANLIB"
4081 fi
4082
4083 fi
4084 # Extract the first word of "install-info", so it can be a program name with args.
4085 set dummy install-info; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 case $INSTALL_INFO in
4092 [\\/]* | ?:[\\/]*)
4093 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4094 ;;
4095 *)
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107 done
4108 done
4109
4110 ;;
4111 esac
4112 fi
4113 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4114
4115 if test -n "$INSTALL_INFO"; then
4116 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4117 echo "${ECHO_T}$INSTALL_INFO" >&6
4118 else
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123 # Extract the first word of "install-info", so it can be a program name with args.
4124 set dummy install-info; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 case $INSTALL_INFO in
4131 [\\/]* | ?:[\\/]*)
4132 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4133 ;;
4134 *)
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in /usr/sbin
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148
4149 ;;
4150 esac
4151 fi
4152 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4153
4154 if test -n "$INSTALL_INFO"; then
4155 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4156 echo "${ECHO_T}$INSTALL_INFO" >&6
4157 else
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162 # Extract the first word of "install-info", so it can be a program name with args.
4163 set dummy install-info; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 case $INSTALL_INFO in
4170 [\\/]* | ?:[\\/]*)
4171 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4172 ;;
4173 *)
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in /sbin
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187
4188 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4189 ;;
4190 esac
4191 fi
4192 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4193
4194 if test -n "$INSTALL_INFO"; then
4195 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4196 echo "${ECHO_T}$INSTALL_INFO" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6
4200 fi
4201
4202
4203
4204 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4205 then
4206 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4207 fi
4208
4209 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4210 then
4211 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4212 fi
4213
4214
4215 late_LDFLAGS=$LDFLAGS
4216 if test "$GCC" = yes; then
4217 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4218 else
4219 LDFLAGS="$LDFLAGS -znocombreloc"
4220 fi
4221
4222 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4223 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4224
4225 cat >conftest.$ac_ext <<_ACEOF
4226 main(){return 0;}
4227 _ACEOF
4228 rm -f conftest.$ac_objext conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -z "$ac_c_werror_flag"
4238 || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251 echo "${ECHO_T}yes" >&6
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 LDFLAGS=$late_LDFLAGS
4257 echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4259 fi
4260 rm -f conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4262
4263
4264 echo "$as_me:$LINENO: checking for egrep" >&5
4265 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4266 if test "${ac_cv_prog_egrep+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4270 then ac_cv_prog_egrep='grep -E'
4271 else ac_cv_prog_egrep='egrep'
4272 fi
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4275 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4276 EGREP=$ac_cv_prog_egrep
4277
4278
4279
4280 echo "$as_me:$LINENO: checking for AIX" >&5
4281 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #ifdef _AIX
4289 yes
4290 #endif
4291
4292 _ACEOF
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294 $EGREP "yes" >/dev/null 2>&1; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296 echo "${ECHO_T}yes" >&6
4297 cat >>confdefs.h <<\_ACEOF
4298 #define _ALL_SOURCE 1
4299 _ACEOF
4300
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305 rm -f conftest*
4306
4307
4308
4309
4310 #### Extract some information from the operating system and machine files.
4311
4312 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4313 - which libraries the lib-src programs will want, and
4314 - whether the GNU malloc routines are usable..." >&5
4315 echo "$as_me: checking the machine- and system-dependent files to find out
4316 - which libraries the lib-src programs will want, and
4317 - whether the GNU malloc routines are usable..." >&6;}
4318
4319 ### First figure out CFLAGS (which we use for running the compiler here)
4320 ### and REAL_CFLAGS (which we use for real compilation).
4321 ### The two are the same except on a few systems, where they are made
4322 ### different to work around various lossages. For example,
4323 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4324 ### as implying static linking.
4325
4326 ### If the CFLAGS env var is specified, we use that value
4327 ### instead of the default.
4328
4329 ### It's not important that this name contain the PID; you can't run
4330 ### two configures in the same directory and have anything work
4331 ### anyway.
4332 tempcname="conftest.c"
4333
4334 echo '
4335 #include "'${srcdir}'/src/'${opsysfile}'"
4336 #include "'${srcdir}'/src/'${machfile}'"
4337 #ifndef LIBS_MACHINE
4338 #define LIBS_MACHINE
4339 #endif
4340 #ifndef LIBS_SYSTEM
4341 #define LIBS_SYSTEM
4342 #endif
4343 #ifndef C_SWITCH_SYSTEM
4344 #define C_SWITCH_SYSTEM
4345 #endif
4346 #ifndef C_SWITCH_MACHINE
4347 #define C_SWITCH_MACHINE
4348 #endif
4349 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4350 configure___ c_switch_system=C_SWITCH_SYSTEM
4351 configure___ c_switch_machine=C_SWITCH_MACHINE
4352
4353 #ifndef LIB_X11_LIB
4354 #define LIB_X11_LIB -lX11
4355 #endif
4356
4357 #ifndef LIBX11_MACHINE
4358 #define LIBX11_MACHINE
4359 #endif
4360
4361 #ifndef LIBX11_SYSTEM
4362 #define LIBX11_SYSTEM
4363 #endif
4364 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4365
4366 #ifdef UNEXEC
4367 configure___ unexec=UNEXEC
4368 #else
4369 configure___ unexec=unexec.o
4370 #endif
4371
4372 #ifdef SYSTEM_MALLOC
4373 configure___ system_malloc=yes
4374 #else
4375 configure___ system_malloc=no
4376 #endif
4377
4378 #ifdef USE_MMAP_FOR_BUFFERS
4379 configure___ use_mmap_for_buffers=yes
4380 #else
4381 configure___ use_mmap_for_buffers=no
4382 #endif
4383
4384 #ifndef C_DEBUG_SWITCH
4385 #define C_DEBUG_SWITCH -g
4386 #endif
4387
4388 #ifndef C_OPTIMIZE_SWITCH
4389 #ifdef __GNUC__
4390 #define C_OPTIMIZE_SWITCH -O2
4391 #else
4392 #define C_OPTIMIZE_SWITCH -O
4393 #endif
4394 #endif
4395
4396 #ifndef LD_SWITCH_MACHINE
4397 #define LD_SWITCH_MACHINE
4398 #endif
4399
4400 #ifndef LD_SWITCH_SYSTEM
4401 #define LD_SWITCH_SYSTEM
4402 #endif
4403
4404 #ifndef LD_SWITCH_X_SITE_AUX
4405 #define LD_SWITCH_X_SITE_AUX
4406 #endif
4407
4408 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4409 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4410
4411 #ifdef THIS_IS_CONFIGURE
4412
4413 /* Get the CFLAGS for tests in configure. */
4414 #ifdef __GNUC__
4415 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4416 #else
4417 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4418 #endif
4419
4420 #else /* not THIS_IS_CONFIGURE */
4421
4422 /* Get the CFLAGS for real compilation. */
4423 #ifdef __GNUC__
4424 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4425 #else
4426 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4427 #endif
4428
4429 #endif /* not THIS_IS_CONFIGURE */
4430 ' > ${tempcname}
4431
4432 # The value of CPP is a quoted variable reference, so we need to do this
4433 # to get its actual value...
4434 CPP=`eval "echo $CPP"`
4435 eval `${CPP} -Isrc ${tempcname} \
4436 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4437 if test "x$SPECIFIED_CFLAGS" = x; then
4438 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4439 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4440 else
4441 REAL_CFLAGS="$CFLAGS"
4442 fi
4443 rm ${tempcname}
4444
4445 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4446
4447 ### Make sure subsequent tests use flags consistent with the build flags.
4448
4449 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4450 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4451 else
4452 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4453 fi
4454
4455
4456
4457
4458 cat >>confdefs.h <<\_ACEOF
4459 #define _GNU_SOURCE 1
4460 _ACEOF
4461
4462
4463
4464 # Check whether --enable-largefile or --disable-largefile was given.
4465 if test "${enable_largefile+set}" = set; then
4466 enableval="$enable_largefile"
4467
4468 fi;
4469 if test "$enable_largefile" != no; then
4470
4471 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4472 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4473 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 ac_cv_sys_largefile_CC=no
4477 if test "$GCC" != yes; then
4478 ac_save_CC=$CC
4479 while :; do
4480 # IRIX 6.2 and later do not support large files by default,
4481 # so use the C compiler's -n32 option if that helps.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <sys/types.h>
4489 /* Check that off_t can represent 2**63 - 1 correctly.
4490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4491 since some C++ compilers masquerading as C compilers
4492 incorrectly reject 9223372036854775807. */
4493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4495 && LARGE_OFF_T % 2147483647 == 1)
4496 ? 1 : -1];
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_c_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 break
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 fi
4533 rm -f conftest.err conftest.$ac_objext
4534 CC="$CC -n32"
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_largefile_CC=' -n32'; break
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 fi
4563 rm -f conftest.err conftest.$ac_objext
4564 break
4565 done
4566 CC=$ac_save_CC
4567 rm -f conftest.$ac_ext
4568 fi
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4571 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4572 if test "$ac_cv_sys_largefile_CC" != no; then
4573 CC=$CC$ac_cv_sys_largefile_CC
4574 fi
4575
4576 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4577 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 while :; do
4582 ac_cv_sys_file_offset_bits=no
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 #include <sys/types.h>
4590 /* Check that off_t can represent 2**63 - 1 correctly.
4591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4592 since some C++ compilers masquerading as C compilers
4593 incorrectly reject 9223372036854775807. */
4594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4596 && LARGE_OFF_T % 2147483647 == 1)
4597 ? 1 : -1];
4598 int
4599 main ()
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest.$ac_objext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 break
4629 else
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #define _FILE_OFFSET_BITS 64
4642 #include <sys/types.h>
4643 /* Check that off_t can represent 2**63 - 1 correctly.
4644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4645 since some C++ compilers masquerading as C compilers
4646 incorrectly reject 9223372036854775807. */
4647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4649 && LARGE_OFF_T % 2147483647 == 1)
4650 ? 1 : -1];
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_sys_file_offset_bits=64; break
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 fi
4687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4688 break
4689 done
4690 fi
4691 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4693 if test "$ac_cv_sys_file_offset_bits" != no; then
4694
4695 cat >>confdefs.h <<_ACEOF
4696 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4697 _ACEOF
4698
4699 fi
4700 rm -f conftest*
4701 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4702 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4703 if test "${ac_cv_sys_large_files+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 while :; do
4707 ac_cv_sys_large_files=no
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include <sys/types.h>
4715 /* Check that off_t can represent 2**63 - 1 correctly.
4716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4717 since some C++ compilers masquerading as C compilers
4718 incorrectly reject 9223372036854775807. */
4719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4721 && LARGE_OFF_T % 2147483647 == 1)
4722 ? 1 : -1];
4723 int
4724 main ()
4725 {
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 (eval $ac_try) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 break
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #define _LARGE_FILES 1
4767 #include <sys/types.h>
4768 /* Check that off_t can represent 2**63 - 1 correctly.
4769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4770 since some C++ compilers masquerading as C compilers
4771 incorrectly reject 9223372036854775807. */
4772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4774 && LARGE_OFF_T % 2147483647 == 1)
4775 ? 1 : -1];
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_sys_large_files=1; break
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 fi
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 break
4814 done
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4817 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4818 if test "$ac_cv_sys_large_files" != no; then
4819
4820 cat >>confdefs.h <<_ACEOF
4821 #define _LARGE_FILES $ac_cv_sys_large_files
4822 _ACEOF
4823
4824 fi
4825 rm -f conftest*
4826 fi
4827
4828
4829 if test "${with_sound}" != "no"; then
4830 # Sound support for GNU/Linux and the free BSDs.
4831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4833 if test "${ac_cv_header_stdc+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <stdlib.h>
4843 #include <stdarg.h>
4844 #include <string.h>
4845 #include <float.h>
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_cv_header_stdc=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_cv_header_stdc=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885
4886 if test $ac_cv_header_stdc = yes; then
4887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev/null 2>&1; then
4899 :
4900 else
4901 ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <stdlib.h>
4916
4917 _ACEOF
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919 $EGREP "free" >/dev/null 2>&1; then
4920 :
4921 else
4922 ac_cv_header_stdc=no
4923 fi
4924 rm -f conftest*
4925
4926 fi
4927
4928 if test $ac_cv_header_stdc = yes; then
4929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4930 if test "$cross_compiling" = yes; then
4931 :
4932 else
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 #include <ctype.h>
4940 #if ((' ' & 0x0FF) == 0x020)
4941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4943 #else
4944 # define ISLOWER(c) \
4945 (('a' <= (c) && (c) <= 'i') \
4946 || ('j' <= (c) && (c) <= 'r') \
4947 || ('s' <= (c) && (c) <= 'z'))
4948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4949 #endif
4950
4951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 int
4953 main ()
4954 {
4955 int i;
4956 for (i = 0; i < 256; i++)
4957 if (XOR (islower (i), ISLOWER (i))
4958 || toupper (i) != TOUPPER (i))
4959 exit(2);
4960 exit (0);
4961 }
4962 _ACEOF
4963 rm -f conftest$ac_exeext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4965 (eval $ac_link) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 :
4975 else
4976 echo "$as_me: program exited with status $ac_status" >&5
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ( exit $ac_status )
4981 ac_cv_header_stdc=no
4982 fi
4983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 fi
4986 fi
4987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4989 if test $ac_cv_header_stdc = yes; then
4990
4991 cat >>confdefs.h <<\_ACEOF
4992 #define STDC_HEADERS 1
4993 _ACEOF
4994
4995 fi
4996
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5008 inttypes.h stdint.h unistd.h
5009 do
5010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011 echo "$as_me:$LINENO: checking for $ac_header" >&5
5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5023
5024 #include <$ac_header>
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -z "$ac_c_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5048 eval "$as_ac_Header=yes"
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 eval "$as_ac_Header=no"
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5060 cat >>confdefs.h <<_ACEOF
5061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5062 _ACEOF
5063
5064 fi
5065
5066 done
5067
5068
5069
5070
5071
5072 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5073 do
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 fi
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 else
5084 # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 $ac_includes_default
5094 #include <$ac_header>
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098 (eval $ac_compile) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest.$ac_objext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_header_compiler=yes
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 ac_header_compiler=no
5124 fi
5125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5127 echo "${ECHO_T}$ac_header_compiler" >&6
5128
5129 # Is the header present?
5130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #include <$ac_header>
5139 _ACEOF
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_c_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5151 else
5152 ac_cpp_err=
5153 fi
5154 else
5155 ac_cpp_err=yes
5156 fi
5157 if test -z "$ac_cpp_err"; then
5158 ac_header_preproc=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ac_header_preproc=no
5164 fi
5165 rm -f conftest.err conftest.$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5167 echo "${ECHO_T}$ac_header_preproc" >&6
5168
5169 # So? What about this header?
5170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5171 yes:no: )
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5176 ac_header_preproc=yes
5177 ;;
5178 no:yes:* )
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5191 (
5192 cat <<\_ASBOX
5193 ## ------------------------------------------ ##
5194 ## Report this to the AC_PACKAGE_NAME lists. ##
5195 ## ------------------------------------------ ##
5196 _ASBOX
5197 ) |
5198 sed "s/^/$as_me: WARNING: /" >&2
5199 ;;
5200 esac
5201 echo "$as_me:$LINENO: checking for $ac_header" >&5
5202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 eval "$as_ac_Header=\$ac_header_preproc"
5207 fi
5208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5210
5211 fi
5212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 _ACEOF
5216
5217 fi
5218
5219 done
5220
5221 # Emulation library used on NetBSD.
5222 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5223 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5224 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lossaudio $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5242 char _oss_ioctl ();
5243 int
5244 main ()
5245 {
5246 _oss_ioctl ();
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_lib_ossaudio__oss_ioctl=yes
5274 else
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 ac_cv_lib_ossaudio__oss_ioctl=no
5279 fi
5280 rm -f conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5283 fi
5284 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5285 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5286 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5287 LIBSOUND=-lossaudio
5288 else
5289 LIBSOUND=
5290 fi
5291
5292
5293 fi
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5321 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5322 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5323 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5324 sys/utsname.h pwd.h
5325 do
5326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 fi
5333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5335 else
5336 # Is the header compilable?
5337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_c_werror_flag"
5358 || 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 ac_header_compiler=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_header_compiler=no
5376 fi
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379 echo "${ECHO_T}$ac_header_compiler" >&6
5380
5381 # Is the header present?
5382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <$ac_header>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406 else
5407 ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410 ac_header_preproc=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_header_preproc=no
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419 echo "${ECHO_T}$ac_header_preproc" >&6
5420
5421 # So? What about this header?
5422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5423 yes:no: )
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428 ac_header_preproc=yes
5429 ;;
5430 no:yes:* )
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5443 (
5444 cat <<\_ASBOX
5445 ## ------------------------------------------ ##
5446 ## Report this to the AC_PACKAGE_NAME lists. ##
5447 ## ------------------------------------------ ##
5448 _ASBOX
5449 ) |
5450 sed "s/^/$as_me: WARNING: /" >&2
5451 ;;
5452 esac
5453 echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 eval "$as_ac_Header=\$ac_header_preproc"
5459 fi
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462
5463 fi
5464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465 cat >>confdefs.h <<_ACEOF
5466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467 _ACEOF
5468
5469 fi
5470
5471 done
5472
5473
5474 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5475 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <sys/personality.h>
5483 int
5484 main ()
5485 {
5486 personality (PER_LINUX32)
5487 ;
5488 return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 emacs_cv_personality_linux32=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 emacs_cv_personality_linux32=no
5519 fi
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5522 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5523
5524 if test $emacs_cv_personality_linux32 = yes; then
5525
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_PERSONALITY_LINUX32 1
5528 _ACEOF
5529
5530 fi
5531
5532
5533 for ac_header in term.h
5534 do
5535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 echo "$as_me:$LINENO: checking for $ac_header" >&5
5537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 #include <$ac_header>
5548 _ACEOF
5549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560 else
5561 ac_cpp_err=
5562 fi
5563 else
5564 ac_cpp_err=yes
5565 fi
5566 if test -z "$ac_cpp_err"; then
5567 eval "$as_ac_Header=yes"
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 eval "$as_ac_Header=no"
5573 fi
5574 rm -f conftest.err conftest.$ac_ext
5575 fi
5576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 _ACEOF
5582
5583 fi
5584
5585 done
5586
5587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589 if test "${ac_cv_header_stdc+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <stdlib.h>
5599 #include <stdarg.h>
5600 #include <string.h>
5601 #include <float.h>
5602
5603 int
5604 main ()
5605 {
5606
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_header_stdc=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_header_stdc=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641
5642 if test $ac_cv_header_stdc = yes; then
5643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <string.h>
5651
5652 _ACEOF
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 $EGREP "memchr" >/dev/null 2>&1; then
5655 :
5656 else
5657 ac_cv_header_stdc=no
5658 fi
5659 rm -f conftest*
5660
5661 fi
5662
5663 if test $ac_cv_header_stdc = yes; then
5664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <stdlib.h>
5672
5673 _ACEOF
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 $EGREP "free" >/dev/null 2>&1; then
5676 :
5677 else
5678 ac_cv_header_stdc=no
5679 fi
5680 rm -f conftest*
5681
5682 fi
5683
5684 if test $ac_cv_header_stdc = yes; then
5685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686 if test "$cross_compiling" = yes; then
5687 :
5688 else
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #include <ctype.h>
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 #else
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 #endif
5706
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5708 int
5709 main ()
5710 {
5711 int i;
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5715 exit(2);
5716 exit (0);
5717 }
5718 _ACEOF
5719 rm -f conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 :
5731 else
5732 echo "$as_me: program exited with status $ac_status" >&5
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ( exit $ac_status )
5737 ac_cv_header_stdc=no
5738 fi
5739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740 fi
5741 fi
5742 fi
5743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5745 if test $ac_cv_header_stdc = yes; then
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define STDC_HEADERS 1
5749 _ACEOF
5750
5751 fi
5752
5753 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5754 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5755 if test "${ac_cv_header_time+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 #include <sys/time.h>
5766 #include <time.h>
5767
5768 int
5769 main ()
5770 {
5771 if ((struct tm *) 0)
5772 return 0;
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_header_time=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_header_time=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5809 echo "${ECHO_T}$ac_cv_header_time" >&6
5810 if test $ac_cv_header_time = yes; then
5811
5812 cat >>confdefs.h <<\_ACEOF
5813 #define TIME_WITH_SYS_TIME 1
5814 _ACEOF
5815
5816 fi
5817
5818 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5819 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5820 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 #ifndef sys_siglist
5834 char *p = (char *) sys_siglist;
5835 #endif
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_have_decl_sys_siglist=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 ac_cv_have_decl_sys_siglist=no
5869 fi
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5873 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5874 if test $ac_cv_have_decl_sys_siglist = yes; then
5875
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_DECL_SYS_SIGLIST 1
5878 _ACEOF
5879
5880
5881 else
5882 cat >>confdefs.h <<_ACEOF
5883 #define HAVE_DECL_SYS_SIGLIST 0
5884 _ACEOF
5885
5886
5887 fi
5888
5889
5890 if test $ac_cv_have_decl_sys_siglist != yes; then
5891 # For Tru64, at least:
5892 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5893 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5894 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h. */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 int
5905 main ()
5906 {
5907 #ifndef __sys_siglist
5908 char *p = (char *) __sys_siglist;
5909 #endif
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_have_decl___sys_siglist=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_cv_have_decl___sys_siglist=no
5943 fi
5944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945 fi
5946 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5947 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5948 if test $ac_cv_have_decl___sys_siglist = yes; then
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define HAVE_DECL___SYS_SIGLIST 1
5952 _ACEOF
5953
5954
5955 else
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL___SYS_SIGLIST 0
5958 _ACEOF
5959
5960
5961 fi
5962
5963
5964 if test $ac_cv_have_decl___sys_siglist = yes; then
5965
5966 cat >>confdefs.h <<\_ACEOF
5967 #define sys_siglist __sys_siglist
5968 _ACEOF
5969
5970 fi
5971 fi
5972 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5973 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5974 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <sys/wait.h>
5985 #ifndef WEXITSTATUS
5986 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5987 #endif
5988 #ifndef WIFEXITED
5989 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5990 #endif
5991
5992 int
5993 main ()
5994 {
5995 int s;
5996 wait (&s);
5997 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag"
6012 || test ! -s conftest.err'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_header_sys_wait_h=yes
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_cv_header_sys_wait_h=no
6030 fi
6031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6035 if test $ac_cv_header_sys_wait_h = yes; then
6036
6037 cat >>confdefs.h <<\_ACEOF
6038 #define HAVE_SYS_WAIT_H 1
6039 _ACEOF
6040
6041 fi
6042
6043
6044 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6045 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6046 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #ifdef TIME_WITH_SYS_TIME
6056 #include <sys/time.h>
6057 #include <time.h>
6058 #else
6059 #ifdef HAVE_SYS_TIME_H
6060 #include <sys/time.h>
6061 #else
6062 #include <time.h>
6063 #endif
6064 #endif
6065 #ifdef HAVE_UTIME_H
6066 #include <utime.h>
6067 #endif
6068 int
6069 main ()
6070 {
6071 static struct utimbuf x; x.actime = x.modtime;
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 emacs_cv_struct_utimbuf=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 emacs_cv_struct_utimbuf=no
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6108 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6109 if test $emacs_cv_struct_utimbuf = yes; then
6110
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_STRUCT_UTIMBUF 1
6113 _ACEOF
6114
6115 fi
6116
6117 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6119 if test "${ac_cv_type_signal+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 #include <signal.h>
6130 #ifdef signal
6131 # undef signal
6132 #endif
6133 #ifdef __cplusplus
6134 extern "C" void (*signal (int, void (*)(int)))(int);
6135 #else
6136 void (*signal ()) ();
6137 #endif
6138
6139 int
6140 main ()
6141 {
6142 int i;
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_type_signal=void
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 ac_cv_type_signal=int
6175 fi
6176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6177 fi
6178 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6179 echo "${ECHO_T}$ac_cv_type_signal" >&6
6180
6181 cat >>confdefs.h <<_ACEOF
6182 #define RETSIGTYPE $ac_cv_type_signal
6183 _ACEOF
6184
6185
6186
6187 echo "$as_me:$LINENO: checking for speed_t" >&5
6188 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6189 if test "${emacs_cv_speed_t+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <termios.h>
6199 int
6200 main ()
6201 {
6202 speed_t x = 1;
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 emacs_cv_speed_t=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 emacs_cv_speed_t=no
6235 fi
6236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6239 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6240 if test $emacs_cv_speed_t = yes; then
6241
6242 cat >>confdefs.h <<\_ACEOF
6243 #define HAVE_SPEED_T 1
6244 _ACEOF
6245
6246 fi
6247
6248 echo "$as_me:$LINENO: checking for struct timeval" >&5
6249 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6250 if test "${emacs_cv_struct_timeval+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #ifdef TIME_WITH_SYS_TIME
6260 #include <sys/time.h>
6261 #include <time.h>
6262 #else
6263 #ifdef HAVE_SYS_TIME_H
6264 #include <sys/time.h>
6265 #else
6266 #include <time.h>
6267 #endif
6268 #endif
6269 int
6270 main ()
6271 {
6272 static struct timeval x; x.tv_sec = x.tv_usec;
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 emacs_cv_struct_timeval=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 emacs_cv_struct_timeval=no
6305 fi
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6309 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6310 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6311 if test $emacs_cv_struct_timeval = yes; then
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define HAVE_TIMEVAL 1
6315 _ACEOF
6316
6317 fi
6318
6319 echo "$as_me:$LINENO: checking for struct exception" >&5
6320 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6321 if test "${emacs_cv_struct_exception+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 #include <math.h>
6331 int
6332 main ()
6333 {
6334 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 emacs_cv_struct_exception=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 emacs_cv_struct_exception=no
6367 fi
6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 fi
6370 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6371 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6372 HAVE_EXCEPTION=$emacs_cv_struct_exception
6373 if test $emacs_cv_struct_exception != yes; then
6374
6375 cat >>confdefs.h <<\_ACEOF
6376 #define NO_MATHERR 1
6377 _ACEOF
6378
6379 fi
6380
6381
6382 for ac_header in sys/socket.h
6383 do
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 fi
6391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6393 else
6394 # Is the header compilable?
6395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6404 #include <$ac_header>
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_header_compiler=yes
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_header_compiler=no
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6437 echo "${ECHO_T}$ac_header_compiler" >&6
6438
6439 # Is the header present?
6440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 #include <$ac_header>
6449 _ACEOF
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null; then
6458 if test -s conftest.err; then
6459 ac_cpp_err=$ac_c_preproc_warn_flag
6460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6461 else
6462 ac_cpp_err=
6463 fi
6464 else
6465 ac_cpp_err=yes
6466 fi
6467 if test -z "$ac_cpp_err"; then
6468 ac_header_preproc=yes
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6472
6473 ac_header_preproc=no
6474 fi
6475 rm -f conftest.err conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6477 echo "${ECHO_T}$ac_header_preproc" >&6
6478
6479 # So? What about this header?
6480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6481 yes:no: )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6486 ac_header_preproc=yes
6487 ;;
6488 no:yes:* )
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6501 (
6502 cat <<\_ASBOX
6503 ## ------------------------------------------ ##
6504 ## Report this to the AC_PACKAGE_NAME lists. ##
6505 ## ------------------------------------------ ##
6506 _ASBOX
6507 ) |
6508 sed "s/^/$as_me: WARNING: /" >&2
6509 ;;
6510 esac
6511 echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 eval "$as_ac_Header=\$ac_header_preproc"
6517 fi
6518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6520
6521 fi
6522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6525 _ACEOF
6526
6527 fi
6528
6529 done
6530
6531
6532 for ac_header in net/if.h
6533 do
6534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #if HAVE_SYS_SOCKET_H
6548 #include <sys/socket.h>
6549 #endif
6550
6551 #include <$ac_header>
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 eval "$as_ac_Header=yes"
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 eval "$as_ac_Header=no"
6581 fi
6582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6583 fi
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6587 cat >>confdefs.h <<_ACEOF
6588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6589 _ACEOF
6590
6591 fi
6592
6593 done
6594
6595
6596 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6597 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6598 if test "${ac_cv_struct_tm+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 #include <time.h>
6609
6610 int
6611 main ()
6612 {
6613 struct tm *tp; tp->tm_sec;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_struct_tm=time.h
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_cv_struct_tm=sys/time.h
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6650 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6651 if test $ac_cv_struct_tm = sys/time.h; then
6652
6653 cat >>confdefs.h <<\_ACEOF
6654 #define TM_IN_SYS_TIME 1
6655 _ACEOF
6656
6657 fi
6658
6659 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6660 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6661 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/types.h>
6671 #include <$ac_cv_struct_tm>
6672
6673
6674 int
6675 main ()
6676 {
6677 static struct tm ac_aggr;
6678 if (ac_aggr.tm_zone)
6679 return 0;
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try='test -s conftest.$ac_objext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_member_struct_tm_tm_zone=yes
6707 else
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 #include <$ac_cv_struct_tm>
6719
6720
6721 int
6722 main ()
6723 {
6724 static struct tm ac_aggr;
6725 if (sizeof ac_aggr.tm_zone)
6726 return 0;
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_member_struct_tm_tm_zone=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 ac_cv_member_struct_tm_tm_zone=no
6759 fi
6760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6761 fi
6762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6765 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6766 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6767
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_STRUCT_TM_TM_ZONE 1
6770 _ACEOF
6771
6772
6773 fi
6774
6775 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6776
6777 cat >>confdefs.h <<\_ACEOF
6778 #define HAVE_TM_ZONE 1
6779 _ACEOF
6780
6781 else
6782 echo "$as_me:$LINENO: checking for tzname" >&5
6783 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6784 if test "${ac_cv_var_tzname+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <time.h>
6794 #ifndef tzname /* For SGI. */
6795 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6796 #endif
6797
6798 int
6799 main ()
6800 {
6801 atoi(*tzname);
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext conftest$ac_exeext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_var_tzname=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_var_tzname=no
6834 fi
6835 rm -f conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6839 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6840 if test $ac_cv_var_tzname = yes; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_TZNAME 1
6844 _ACEOF
6845
6846 fi
6847 fi
6848
6849 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6850 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6851 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <time.h>
6861
6862 int
6863 main ()
6864 {
6865 static struct tm ac_aggr;
6866 if (ac_aggr.tm_gmtoff)
6867 return 0;
6868 ;
6869 return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_member_struct_tm_tm_gmtoff=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <time.h>
6906
6907 int
6908 main ()
6909 {
6910 static struct tm ac_aggr;
6911 if (sizeof ac_aggr.tm_gmtoff)
6912 return 0;
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6920 ac_status=$?
6921 grep -v '^ *+' conftest.er1 >conftest.err
6922 rm -f conftest.er1
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag"
6927 || test ! -s conftest.err'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; } &&
6933 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6939 ac_cv_member_struct_tm_tm_gmtoff=yes
6940 else
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ac_cv_member_struct_tm_tm_gmtoff=no
6945 fi
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 fi
6948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6949 fi
6950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6951 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6952 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6953
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_TM_GMTOFF 1
6956 _ACEOF
6957
6958 fi
6959
6960 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6961 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6962 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 $ac_includes_default
6972 #if HAVE_SYS_SOCKET_H
6973 #include <sys/socket.h>
6974 #endif
6975 #if HAVE_NET_IF_H
6976 #include <net/if.h>
6977 #endif
6978
6979 int
6980 main ()
6981 {
6982 static struct ifreq ac_aggr;
6983 if (ac_aggr.ifr_flags)
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"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_member_struct_ifreq_ifr_flags=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7023 #if HAVE_SYS_SOCKET_H
7024 #include <sys/socket.h>
7025 #endif
7026 #if HAVE_NET_IF_H
7027 #include <net/if.h>
7028 #endif
7029
7030 int
7031 main ()
7032 {
7033 static struct ifreq ac_aggr;
7034 if (sizeof ac_aggr.ifr_flags)
7035 return 0;
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_member_struct_ifreq_ifr_flags=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_member_struct_ifreq_ifr_flags=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7074 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7075 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7079 _ACEOF
7080
7081
7082 fi
7083 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7084 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7085 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7097 #endif
7098 #if HAVE_NET_IF_H
7099 #include <net/if.h>
7100 #endif
7101
7102 int
7103 main ()
7104 {
7105 static struct ifreq ac_aggr;
7106 if (ac_aggr.ifr_hwaddr)
7107 return 0;
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag"
7122 || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 #if HAVE_SYS_SOCKET_H
7147 #include <sys/socket.h>
7148 #endif
7149 #if HAVE_NET_IF_H
7150 #include <net/if.h>
7151 #endif
7152
7153 int
7154 main ()
7155 {
7156 static struct ifreq ac_aggr;
7157 if (sizeof ac_aggr.ifr_hwaddr)
7158 return 0;
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag"
7173 || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest.$ac_objext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7186 else
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7191 fi
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 fi
7194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195 fi
7196 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7197 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7198 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7199
7200 cat >>confdefs.h <<_ACEOF
7201 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7202 _ACEOF
7203
7204
7205 fi
7206 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7207 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7208 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7218 #if HAVE_SYS_SOCKET_H
7219 #include <sys/socket.h>
7220 #endif
7221 #if HAVE_NET_IF_H
7222 #include <net/if.h>
7223 #endif
7224
7225 int
7226 main ()
7227 {
7228 static struct ifreq ac_aggr;
7229 if (ac_aggr.ifr_netmask)
7230 return 0;
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_member_struct_ifreq_ifr_netmask=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #if HAVE_SYS_SOCKET_H
7270 #include <sys/socket.h>
7271 #endif
7272 #if HAVE_NET_IF_H
7273 #include <net/if.h>
7274 #endif
7275
7276 int
7277 main ()
7278 {
7279 static struct ifreq ac_aggr;
7280 if (sizeof ac_aggr.ifr_netmask)
7281 return 0;
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_member_struct_ifreq_ifr_netmask=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_member_struct_ifreq_ifr_netmask=no
7314 fi
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 fi
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7320 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7321 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7322
7323 cat >>confdefs.h <<_ACEOF
7324 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7325 _ACEOF
7326
7327
7328 fi
7329 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7330 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7331 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7341 #if HAVE_SYS_SOCKET_H
7342 #include <sys/socket.h>
7343 #endif
7344 #if HAVE_NET_IF_H
7345 #include <net/if.h>
7346 #endif
7347
7348 int
7349 main ()
7350 {
7351 static struct ifreq ac_aggr;
7352 if (ac_aggr.ifr_broadaddr)
7353 return 0;
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try='test -z "$ac_c_werror_flag"
7368 || test ! -s conftest.err'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; } &&
7374 { ac_try='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7392 #if HAVE_SYS_SOCKET_H
7393 #include <sys/socket.h>
7394 #endif
7395 #if HAVE_NET_IF_H
7396 #include <net/if.h>
7397 #endif
7398
7399 int
7400 main ()
7401 {
7402 static struct ifreq ac_aggr;
7403 if (sizeof ac_aggr.ifr_broadaddr)
7404 return 0;
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -z "$ac_c_werror_flag"
7419 || 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_broadaddr=yes
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7437 fi
7438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7443 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7444 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7448 _ACEOF
7449
7450
7451 fi
7452 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7453 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7454 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 cat >conftest.$ac_ext <<_ACEOF
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7463 $ac_includes_default
7464 #if HAVE_SYS_SOCKET_H
7465 #include <sys/socket.h>
7466 #endif
7467 #if HAVE_NET_IF_H
7468 #include <net/if.h>
7469 #endif
7470
7471 int
7472 main ()
7473 {
7474 static struct ifreq ac_aggr;
7475 if (ac_aggr.ifr_addr)
7476 return 0;
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_member_struct_ifreq_ifr_addr=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7517 #endif
7518 #if HAVE_NET_IF_H
7519 #include <net/if.h>
7520 #endif
7521
7522 int
7523 main ()
7524 {
7525 static struct ifreq ac_aggr;
7526 if (sizeof ac_aggr.ifr_addr)
7527 return 0;
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_member_struct_ifreq_ifr_addr=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_cv_member_struct_ifreq_ifr_addr=no
7560 fi
7561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7562 fi
7563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7566 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7567 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7571 _ACEOF
7572
7573
7574 fi
7575
7576
7577
7578 echo "$as_me:$LINENO: checking for function prototypes" >&5
7579 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7580 if test "$ac_cv_prog_cc_stdc" != no; then
7581 echo "$as_me:$LINENO: result: yes" >&5
7582 echo "${ECHO_T}yes" >&6
7583
7584 cat >>confdefs.h <<\_ACEOF
7585 #define PROTOTYPES 1
7586 _ACEOF
7587
7588
7589 cat >>confdefs.h <<\_ACEOF
7590 #define __PROTOTYPES 1
7591 _ACEOF
7592
7593 else
7594 echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7596 fi
7597
7598 echo "$as_me:$LINENO: checking for working volatile" >&5
7599 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7600 if test "${ac_cv_c_volatile+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609
7610 int
7611 main ()
7612 {
7613
7614 volatile int x;
7615 int * volatile y;
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_c_volatile=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_c_volatile=no
7648 fi
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7652 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7653 if test $ac_cv_c_volatile = no; then
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define volatile
7657 _ACEOF
7658
7659 fi
7660
7661 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7662 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7663 if test "${ac_cv_c_const+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672
7673 int
7674 main ()
7675 {
7676 /* FIXME: Include the comments suggested by Paul. */
7677 #ifndef __cplusplus
7678 /* Ultrix mips cc rejects this. */
7679 typedef int charset[2];
7680 const charset x;
7681 /* SunOS 4.1.1 cc rejects this. */
7682 char const *const *ccp;
7683 char **p;
7684 /* NEC SVR4.0.2 mips cc rejects this. */
7685 struct point {int x, y;};
7686 static struct point const zero = {0,0};
7687 /* AIX XL C 1.02.0.0 rejects this.
7688 It does not let you subtract one const X* pointer from another in
7689 an arm of an if-expression whose if-part is not a constant
7690 expression */
7691 const char *g = "string";
7692 ccp = &g + (g ? g-g : 0);
7693 /* HPUX 7.0 cc rejects these. */
7694 ++ccp;
7695 p = (char**) ccp;
7696 ccp = (char const *const *) p;
7697 { /* SCO 3.2v4 cc rejects this. */
7698 char *t;
7699 char const *s = 0 ? (char *) 0 : (char const *) 0;
7700
7701 *t++ = 0;
7702 }
7703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7704 int x[] = {25, 17};
7705 const int *foo = &x[0];
7706 ++foo;
7707 }
7708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7709 typedef const int *iptr;
7710 iptr p = 0;
7711 ++p;
7712 }
7713 { /* AIX XL C 1.02.0.0 rejects this saying
7714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7715 struct s { int j; const int *ap[3]; };
7716 struct s *b; b->j = 5;
7717 }
7718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7719 const int foo = 10;
7720 }
7721 #endif
7722
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_c_const=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_c_const=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7759 echo "${ECHO_T}$ac_cv_c_const" >&6
7760 if test $ac_cv_c_const = no; then
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define const
7764 _ACEOF
7765
7766 fi
7767
7768 echo "$as_me:$LINENO: checking for void * support" >&5
7769 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7770 if test "${emacs_cv_void_star+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779
7780 int
7781 main ()
7782 {
7783 void * foo;
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 (eval $ac_try) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 emacs_cv_void_star=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 emacs_cv_void_star=no
7816 fi
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7820 echo "${ECHO_T}$emacs_cv_void_star" >&6
7821 if test $emacs_cv_void_star = yes; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define POINTER_TYPE void
7824 _ACEOF
7825
7826 else
7827 cat >>confdefs.h <<\_ACEOF
7828 #define POINTER_TYPE char
7829 _ACEOF
7830
7831 fi
7832
7833
7834
7835
7836
7837 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7838 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7839 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7840 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 cat >conftest.make <<\_ACEOF
7844 all:
7845 @echo 'ac_maketemp="$(MAKE)"'
7846 _ACEOF
7847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7848 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7849 if test -n "$ac_maketemp"; then
7850 eval ac_cv_prog_make_${ac_make}_set=yes
7851 else
7852 eval ac_cv_prog_make_${ac_make}_set=no
7853 fi
7854 rm -f conftest.make
7855 fi
7856 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7857 echo "$as_me:$LINENO: result: yes" >&5
7858 echo "${ECHO_T}yes" >&6
7859 SET_MAKE=
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7863 SET_MAKE="MAKE=${MAKE-make}"
7864 fi
7865
7866
7867 echo "$as_me:$LINENO: checking for long file names" >&5
7868 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7869 if test "${ac_cv_sys_long_file_names+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 ac_cv_sys_long_file_names=yes
7873 # Test for long file names in all the places we know might matter:
7874 # . the current directory, where building will happen
7875 # $prefix/lib where we will be installing things
7876 # $exec_prefix/lib likewise
7877 # eval it to expand exec_prefix.
7878 # $TMPDIR if set, where it might want to write temporary files
7879 # if $TMPDIR is not set:
7880 # /tmp where it might want to write temporary files
7881 # /var/tmp likewise
7882 # /usr/tmp likewise
7883 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7884 ac_tmpdirs=$TMPDIR
7885 else
7886 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7887 fi
7888 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7889 test -d $ac_dir || continue
7890 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7891 ac_xdir=$ac_dir/cf$$
7892 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7893 ac_tf1=$ac_xdir/conftest9012345
7894 ac_tf2=$ac_xdir/conftest9012346
7895 (echo 1 >$ac_tf1) 2>/dev/null
7896 (echo 2 >$ac_tf2) 2>/dev/null
7897 ac_val=`cat $ac_tf1 2>/dev/null`
7898 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7899 ac_cv_sys_long_file_names=no
7900 rm -rf $ac_xdir 2>/dev/null
7901 break
7902 fi
7903 rm -rf $ac_xdir 2>/dev/null
7904 done
7905 fi
7906 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7907 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7908 if test $ac_cv_sys_long_file_names = yes; then
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LONG_FILE_NAMES 1
7912 _ACEOF
7913
7914 fi
7915
7916
7917 #### Choose a window system.
7918
7919 echo "$as_me:$LINENO: checking for X" >&5
7920 echo $ECHO_N "checking for X... $ECHO_C" >&6
7921
7922
7923 # Check whether --with-x or --without-x was given.
7924 if test "${with_x+set}" = set; then
7925 withval="$with_x"
7926
7927 fi;
7928 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7929 if test "x$with_x" = xno; then
7930 # The user explicitly disabled X.
7931 have_x=disabled
7932 else
7933 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7934 # Both variables are already set.
7935 have_x=yes
7936 else
7937 if test "${ac_cv_have_x+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 # One or both of the vars are not set, and there is no cached value.
7941 ac_x_includes=no ac_x_libraries=no
7942 rm -fr conftest.dir
7943 if mkdir conftest.dir; then
7944 cd conftest.dir
7945 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7946 cat >Imakefile <<'_ACEOF'
7947 acfindx:
7948 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7949 _ACEOF
7950 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7951 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7952 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7953 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7954 for ac_extension in a so sl; do
7955 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7956 test -f $ac_im_libdir/libX11.$ac_extension; then
7957 ac_im_usrlibdir=$ac_im_libdir; break
7958 fi
7959 done
7960 # Screen out bogus values from the imake configuration. They are
7961 # bogus both because they are the default anyway, and because
7962 # using them would break gcc on systems where it needs fixed includes.
7963 case $ac_im_incroot in
7964 /usr/include) ;;
7965 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7966 esac
7967 case $ac_im_usrlibdir in
7968 /usr/lib | /lib) ;;
7969 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7970 esac
7971 fi
7972 cd ..
7973 rm -fr conftest.dir
7974 fi
7975
7976 # Standard set of common directories for X headers.
7977 # Check X11 before X11Rn because it is often a symlink to the current release.
7978 ac_x_header_dirs='
7979 /usr/X11/include
7980 /usr/X11R6/include
7981 /usr/X11R5/include
7982 /usr/X11R4/include
7983
7984 /usr/include/X11
7985 /usr/include/X11R6
7986 /usr/include/X11R5
7987 /usr/include/X11R4
7988
7989 /usr/local/X11/include
7990 /usr/local/X11R6/include
7991 /usr/local/X11R5/include
7992 /usr/local/X11R4/include
7993
7994 /usr/local/include/X11
7995 /usr/local/include/X11R6
7996 /usr/local/include/X11R5
7997 /usr/local/include/X11R4
7998
7999 /usr/X386/include
8000 /usr/x386/include
8001 /usr/XFree86/include/X11
8002
8003 /usr/include
8004 /usr/local/include
8005 /usr/unsupported/include
8006 /usr/athena/include
8007 /usr/local/x11r5/include
8008 /usr/lpp/Xamples/include
8009
8010 /usr/openwin/include
8011 /usr/openwin/share/include'
8012
8013 if test "$ac_x_includes" = no; then
8014 # Guess where to find include files, by looking for Intrinsic.h.
8015 # First, try using that file with no special directory specified.
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <X11/Intrinsic.h>
8023 _ACEOF
8024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } >/dev/null; then
8032 if test -s conftest.err; then
8033 ac_cpp_err=$ac_c_preproc_warn_flag
8034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8035 else
8036 ac_cpp_err=
8037 fi
8038 else
8039 ac_cpp_err=yes
8040 fi
8041 if test -z "$ac_cpp_err"; then
8042 # We can compile using X headers with no special include directory.
8043 ac_x_includes=
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 for ac_dir in $ac_x_header_dirs; do
8049 if test -r "$ac_dir/X11/Intrinsic.h"; then
8050 ac_x_includes=$ac_dir
8051 break
8052 fi
8053 done
8054 fi
8055 rm -f conftest.err conftest.$ac_ext
8056 fi # $ac_x_includes = no
8057
8058 if test "$ac_x_libraries" = no; then
8059 # Check for the libraries.
8060 # See if we find them without any special options.
8061 # Don't add to $LIBS permanently.
8062 ac_save_LIBS=$LIBS
8063 LIBS="-lXt $LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <X11/Intrinsic.h>
8071 int
8072 main ()
8073 {
8074 XtMalloc (0)
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 LIBS=$ac_save_LIBS
8102 # We can link X programs with no special library path.
8103 ac_x_libraries=
8104 else
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8107
8108 LIBS=$ac_save_LIBS
8109 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8110 do
8111 # Don't even attempt the hair of trying to link an X program!
8112 for ac_extension in a so sl; do
8113 if test -r $ac_dir/libXt.$ac_extension; then
8114 ac_x_libraries=$ac_dir
8115 break 2
8116 fi
8117 done
8118 done
8119 fi
8120 rm -f conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 fi # $ac_x_libraries = no
8123
8124 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8125 # Didn't find X anywhere. Cache the known absence of X.
8126 ac_cv_have_x="have_x=no"
8127 else
8128 # Record where we found X for the cache.
8129 ac_cv_have_x="have_x=yes \
8130 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8131 fi
8132 fi
8133
8134 fi
8135 eval "$ac_cv_have_x"
8136 fi # $with_x != no
8137
8138 if test "$have_x" != yes; then
8139 echo "$as_me:$LINENO: result: $have_x" >&5
8140 echo "${ECHO_T}$have_x" >&6
8141 no_x=yes
8142 else
8143 # If each of the values was on the command line, it overrides each guess.
8144 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8145 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8146 # Update the cache value to reflect the command line values.
8147 ac_cv_have_x="have_x=yes \
8148 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8149 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8150 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8151 fi
8152
8153 if test "$no_x" = yes; then
8154 window_system=none
8155 else
8156 window_system=x11
8157 fi
8158
8159 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8160 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8161 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8162 x_default_search_path=""
8163 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8164 x_search_path="\
8165 ${x_library}/X11/%L/%T/%N%C%S:\
8166 ${x_library}/X11/%l/%T/%N%C%S:\
8167 ${x_library}/X11/%T/%N%C%S:\
8168 ${x_library}/X11/%L/%T/%N%S:\
8169 ${x_library}/X11/%l/%T/%N%S:\
8170 ${x_library}/X11/%T/%N%S"
8171 if test x"${x_default_search_path}" = x; then
8172 x_default_search_path=${x_search_path}
8173 else
8174 x_default_search_path="${x_search_path}:${x_default_search_path}"
8175 fi
8176 done
8177 fi
8178 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8179 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8180 fi
8181
8182 if test x"${x_includes}" = x; then
8183 bitmapdir=/usr/include/X11/bitmaps
8184 else
8185 # accumulate include directories that have X11 bitmap subdirectories
8186 bmd_acc="dummyval"
8187 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8188 if test -d "${bmd}/X11/bitmaps"; then
8189 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8190 fi
8191 if test -d "${bmd}/bitmaps"; then
8192 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8193 fi
8194 done
8195 if test ${bmd_acc} != "dummyval"; then
8196 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8197 fi
8198 fi
8199
8200 HAVE_CARBON=no
8201 if test "${with_carbon}" != no; then
8202 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8203 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8204 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8205 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8209 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8210 else
8211 # Is the header compilable?
8212 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8213 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 $ac_includes_default
8221 #include <Carbon/Carbon.h>
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_header_compiler=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_header_compiler=no
8251 fi
8252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8254 echo "${ECHO_T}$ac_header_compiler" >&6
8255
8256 # Is the header present?
8257 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8258 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <Carbon/Carbon.h>
8266 _ACEOF
8267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } >/dev/null; then
8275 if test -s conftest.err; then
8276 ac_cpp_err=$ac_c_preproc_warn_flag
8277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8278 else
8279 ac_cpp_err=
8280 fi
8281 else
8282 ac_cpp_err=yes
8283 fi
8284 if test -z "$ac_cpp_err"; then
8285 ac_header_preproc=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 ac_header_preproc=no
8291 fi
8292 rm -f conftest.err conftest.$ac_ext
8293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8294 echo "${ECHO_T}$ac_header_preproc" >&6
8295
8296 # So? What about this header?
8297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8298 yes:no: )
8299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8300 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8302 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8303 ac_header_preproc=yes
8304 ;;
8305 no:yes:* )
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8311 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8312 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8313 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8314 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8315 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8317 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8318 (
8319 cat <<\_ASBOX
8320 ## ------------------------------------------ ##
8321 ## Report this to the AC_PACKAGE_NAME lists. ##
8322 ## ------------------------------------------ ##
8323 _ASBOX
8324 ) |
8325 sed "s/^/$as_me: WARNING: /" >&2
8326 ;;
8327 esac
8328 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8329 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8330 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8334 fi
8335 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8336 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8337
8338 fi
8339 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8340 HAVE_CARBON=yes
8341 fi
8342
8343
8344 fi
8345 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8346 if test "${with_carbon+set}" != set \
8347 && test "${carbon_appdir_x+set}" != set; then
8348 HAVE_CARBON=no
8349 fi
8350 fi
8351 if test "${HAVE_CARBON}" = yes; then
8352 window_system=mac
8353 fi
8354
8355 case "${window_system}" in
8356 x11 )
8357 HAVE_X_WINDOWS=yes
8358 HAVE_X11=yes
8359 case "${with_x_toolkit}" in
8360 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8361 motif ) USE_X_TOOLKIT=MOTIF ;;
8362 gtk ) with_gtk=yes
8363 USE_X_TOOLKIT=none ;;
8364 no ) USE_X_TOOLKIT=none ;;
8365 * ) USE_X_TOOLKIT=maybe ;;
8366 esac
8367 ;;
8368 mac | none )
8369 HAVE_X_WINDOWS=no
8370 HAVE_X11=no
8371 USE_X_TOOLKIT=none
8372 ;;
8373 esac
8374
8375 ### If we're using X11, we should use the X menu package.
8376 HAVE_MENUS=no
8377 case ${HAVE_X11} in
8378 yes ) HAVE_MENUS=yes ;;
8379 esac
8380
8381 if test "${opsys}" = "hpux9"; then
8382 case "${x_libraries}" in
8383 *X11R4* )
8384 opsysfile="s/hpux9-x11r4.h"
8385 ;;
8386 esac
8387 fi
8388
8389 if test "${opsys}" = "hpux9shr"; then
8390 case "${x_libraries}" in
8391 *X11R4* )
8392 opsysfile="s/hpux9shxr4.h"
8393 ;;
8394 esac
8395 fi
8396
8397 ### Compute the unexec source name from the object name.
8398 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8399
8400 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8401 # Assume not, until told otherwise.
8402 GNU_MALLOC=yes
8403 doug_lea_malloc=yes
8404 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8405 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8406 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8417 #define malloc_get_state innocuous_malloc_get_state
8418
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char malloc_get_state (); below.
8421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422 <limits.h> exists even on freestanding compilers. */
8423
8424 #ifdef __STDC__
8425 # include <limits.h>
8426 #else
8427 # include <assert.h>
8428 #endif
8429
8430 #undef malloc_get_state
8431
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 #ifdef __cplusplus
8434 extern "C"
8435 {
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char malloc_get_state ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8444 choke me
8445 #else
8446 char (*f) () = malloc_get_state;
8447 #endif
8448 #ifdef __cplusplus
8449 }
8450 #endif
8451
8452 int
8453 main ()
8454 {
8455 return f != malloc_get_state;
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_func_malloc_get_state=yes
8483 else
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ac_cv_func_malloc_get_state=no
8488 fi
8489 rm -f conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8493 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8494 if test $ac_cv_func_malloc_get_state = yes; then
8495 :
8496 else
8497 doug_lea_malloc=no
8498 fi
8499
8500 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8501 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8502 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
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 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8513 #define malloc_set_state innocuous_malloc_set_state
8514
8515 /* System header to define __stub macros and hopefully few prototypes,
8516 which can conflict with char malloc_set_state (); below.
8517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 <limits.h> exists even on freestanding compilers. */
8519
8520 #ifdef __STDC__
8521 # include <limits.h>
8522 #else
8523 # include <assert.h>
8524 #endif
8525
8526 #undef malloc_set_state
8527
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 #ifdef __cplusplus
8530 extern "C"
8531 {
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char malloc_set_state ();
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8540 choke me
8541 #else
8542 char (*f) () = malloc_set_state;
8543 #endif
8544 #ifdef __cplusplus
8545 }
8546 #endif
8547
8548 int
8549 main ()
8550 {
8551 return f != malloc_set_state;
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 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); } &&
8565 { ac_try='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_func_malloc_set_state=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_func_malloc_set_state=no
8584 fi
8585 rm -f conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 fi
8588 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8589 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8590 if test $ac_cv_func_malloc_set_state = yes; then
8591 :
8592 else
8593 doug_lea_malloc=no
8594 fi
8595
8596 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8597 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8598 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 extern void (* __after_morecore_hook)();
8608 int
8609 main ()
8610 {
8611 __after_morecore_hook = 0
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 emacs_cv_var___after_morecore_hook=yes
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 emacs_cv_var___after_morecore_hook=no
8644 fi
8645 rm -f conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647 fi
8648 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8649 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8650 if test $emacs_cv_var___after_morecore_hook = no; then
8651 doug_lea_malloc=no
8652 fi
8653 if test "${system_malloc}" = "yes"; then
8654 GNU_MALLOC=no
8655 GNU_MALLOC_reason="
8656 (The GNU allocators don't work with this system configuration.)"
8657 fi
8658 if test "$doug_lea_malloc" = "yes" ; then
8659 if test "$GNU_MALLOC" = yes ; then
8660 GNU_MALLOC_reason="
8661 (Using Doug Lea's new malloc from the GNU C Library.)"
8662 fi
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define DOUG_LEA_MALLOC 1
8666 _ACEOF
8667
8668 fi
8669
8670 if test x"${REL_ALLOC}" = x; then
8671 REL_ALLOC=${GNU_MALLOC}
8672 fi
8673
8674
8675
8676
8677 for ac_header in stdlib.h unistd.h
8678 do
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 fi
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 else
8689 # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #include <$ac_header>
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_header_compiler=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_header_compiler=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8732 echo "${ECHO_T}$ac_header_compiler" >&6
8733
8734 # Is the header present?
8735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <$ac_header>
8744 _ACEOF
8745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev/null; then
8753 if test -s conftest.err; then
8754 ac_cpp_err=$ac_c_preproc_warn_flag
8755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8756 else
8757 ac_cpp_err=
8758 fi
8759 else
8760 ac_cpp_err=yes
8761 fi
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_header_preproc=no
8769 fi
8770 rm -f conftest.err conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8772 echo "${ECHO_T}$ac_header_preproc" >&6
8773
8774 # So? What about this header?
8775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8776 yes:no: )
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8781 ac_header_preproc=yes
8782 ;;
8783 no:yes:* )
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8796 (
8797 cat <<\_ASBOX
8798 ## ------------------------------------------ ##
8799 ## Report this to the AC_PACKAGE_NAME lists. ##
8800 ## ------------------------------------------ ##
8801 _ASBOX
8802 ) |
8803 sed "s/^/$as_me: WARNING: /" >&2
8804 ;;
8805 esac
8806 echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 eval "$as_ac_Header=\$ac_header_preproc"
8812 fi
8813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8815
8816 fi
8817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8818 cat >>confdefs.h <<_ACEOF
8819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8820 _ACEOF
8821
8822 fi
8823
8824 done
8825
8826
8827 for ac_func in getpagesize
8828 do
8829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8830 echo "$as_me:$LINENO: checking for $ac_func" >&5
8831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8832 if eval "test \"\${$as_ac_var+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8843 #define $ac_func innocuous_$ac_func
8844
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func (); below.
8847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848 <limits.h> exists even on freestanding compilers. */
8849
8850 #ifdef __STDC__
8851 # include <limits.h>
8852 #else
8853 # include <assert.h>
8854 #endif
8855
8856 #undef $ac_func
8857
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 {
8862 #endif
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char $ac_func ();
8866 /* The GNU C library defines this for functions which it implements
8867 to always fail with ENOSYS. Some functions are actually named
8868 something starting with __ and the normal name is an alias. */
8869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8870 choke me
8871 #else
8872 char (*f) () = $ac_func;
8873 #endif
8874 #ifdef __cplusplus
8875 }
8876 #endif
8877
8878 int
8879 main ()
8880 {
8881 return f != $ac_func;
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 eval "$as_ac_var=yes"
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 eval "$as_ac_var=no"
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 fi
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8920 if test `eval echo '${'$as_ac_var'}'` = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926 done
8927
8928 echo "$as_me:$LINENO: checking for working mmap" >&5
8929 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8930 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 if test "$cross_compiling" = yes; then
8934 ac_cv_func_mmap_fixed_mapped=no
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 /* malloc might have been renamed as rpl_malloc. */
8944 #undef malloc
8945
8946 /* Thanks to Mike Haertel and Jim Avera for this test.
8947 Here is a matrix of mmap possibilities:
8948 mmap private not fixed
8949 mmap private fixed at somewhere currently unmapped
8950 mmap private fixed at somewhere already mapped
8951 mmap shared not fixed
8952 mmap shared fixed at somewhere currently unmapped
8953 mmap shared fixed at somewhere already mapped
8954 For private mappings, we should verify that changes cannot be read()
8955 back from the file, nor mmap's back from the file at a different
8956 address. (There have been systems where private was not correctly
8957 implemented like the infamous i386 svr4.0, and systems where the
8958 VM page cache was not coherent with the file system buffer cache
8959 like early versions of FreeBSD and possibly contemporary NetBSD.)
8960 For shared mappings, we should conversely verify that changes get
8961 propagated back to all the places they're supposed to be.
8962
8963 Grep wants private fixed already mapped.
8964 The main things grep needs to know about mmap are:
8965 * does it exist and is it safe to write into the mmap'd area
8966 * how to use it (BSD variants) */
8967
8968 #include <fcntl.h>
8969 #include <sys/mman.h>
8970
8971 #if !STDC_HEADERS && !HAVE_STDLIB_H
8972 char *malloc ();
8973 #endif
8974
8975 /* This mess was copied from the GNU getpagesize.h. */
8976 #if !HAVE_GETPAGESIZE
8977 /* Assume that all systems that can run configure have sys/param.h. */
8978 # if !HAVE_SYS_PARAM_H
8979 # define HAVE_SYS_PARAM_H 1
8980 # endif
8981
8982 # ifdef _SC_PAGESIZE
8983 # define getpagesize() sysconf(_SC_PAGESIZE)
8984 # else /* no _SC_PAGESIZE */
8985 # if HAVE_SYS_PARAM_H
8986 # include <sys/param.h>
8987 # ifdef EXEC_PAGESIZE
8988 # define getpagesize() EXEC_PAGESIZE
8989 # else /* no EXEC_PAGESIZE */
8990 # ifdef NBPG
8991 # define getpagesize() NBPG * CLSIZE
8992 # ifndef CLSIZE
8993 # define CLSIZE 1
8994 # endif /* no CLSIZE */
8995 # else /* no NBPG */
8996 # ifdef NBPC
8997 # define getpagesize() NBPC
8998 # else /* no NBPC */
8999 # ifdef PAGESIZE
9000 # define getpagesize() PAGESIZE
9001 # endif /* PAGESIZE */
9002 # endif /* no NBPC */
9003 # endif /* no NBPG */
9004 # endif /* no EXEC_PAGESIZE */
9005 # else /* no HAVE_SYS_PARAM_H */
9006 # define getpagesize() 8192 /* punt totally */
9007 # endif /* no HAVE_SYS_PARAM_H */
9008 # endif /* no _SC_PAGESIZE */
9009
9010 #endif /* no HAVE_GETPAGESIZE */
9011
9012 int
9013 main ()
9014 {
9015 char *data, *data2, *data3;
9016 int i, pagesize;
9017 int fd;
9018
9019 pagesize = getpagesize ();
9020
9021 /* First, make a file with some known garbage in it. */
9022 data = (char *) malloc (pagesize);
9023 if (!data)
9024 exit (1);
9025 for (i = 0; i < pagesize; ++i)
9026 *(data + i) = rand ();
9027 umask (0);
9028 fd = creat ("conftest.mmap", 0600);
9029 if (fd < 0)
9030 exit (1);
9031 if (write (fd, data, pagesize) != pagesize)
9032 exit (1);
9033 close (fd);
9034
9035 /* Next, try to mmap the file at a fixed address which already has
9036 something else allocated at it. If we can, also make sure that
9037 we see the same garbage. */
9038 fd = open ("conftest.mmap", O_RDWR);
9039 if (fd < 0)
9040 exit (1);
9041 data2 = (char *) malloc (2 * pagesize);
9042 if (!data2)
9043 exit (1);
9044 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9045 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9047 exit (1);
9048 for (i = 0; i < pagesize; ++i)
9049 if (*(data + i) != *(data2 + i))
9050 exit (1);
9051
9052 /* Finally, make sure that changes to the mapped area do not
9053 percolate back to the file as seen by read(). (This is a bug on
9054 some variants of i386 svr4.0.) */
9055 for (i = 0; i < pagesize; ++i)
9056 *(data2 + i) = *(data2 + i) + 1;
9057 data3 = (char *) malloc (pagesize);
9058 if (!data3)
9059 exit (1);
9060 if (read (fd, data3, pagesize) != pagesize)
9061 exit (1);
9062 for (i = 0; i < pagesize; ++i)
9063 if (*(data + i) != *(data3 + i))
9064 exit (1);
9065 close (fd);
9066 exit (0);
9067 }
9068 _ACEOF
9069 rm -f conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_func_mmap_fixed_mapped=yes
9081 else
9082 echo "$as_me: program exited with status $ac_status" >&5
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 ( exit $ac_status )
9087 ac_cv_func_mmap_fixed_mapped=no
9088 fi
9089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 fi
9092 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9093 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_MMAP 1
9098 _ACEOF
9099
9100 fi
9101 rm -f conftest.mmap
9102
9103 if test $use_mmap_for_buffers = yes; then
9104 REL_ALLOC=no
9105 fi
9106
9107 LIBS="$libsrc_libs $LIBS"
9108
9109
9110 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9111 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9112 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 ac_check_lib_save_LIBS=$LIBS
9116 LIBS="-ldnet $LIBS"
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123
9124 /* Override any gcc2 internal prototype to avoid an error. */
9125 #ifdef __cplusplus
9126 extern "C"
9127 #endif
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char dnet_ntoa ();
9131 int
9132 main ()
9133 {
9134 dnet_ntoa ();
9135 ;
9136 return 0;
9137 }
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_lib_dnet_dnet_ntoa=yes
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166 ac_cv_lib_dnet_dnet_ntoa=no
9167 fi
9168 rm -f conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
9170 LIBS=$ac_check_lib_save_LIBS
9171 fi
9172 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9173 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9174 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define HAVE_LIBDNET 1
9177 _ACEOF
9178
9179 LIBS="-ldnet $LIBS"
9180
9181 fi
9182
9183
9184 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9185 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9186 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189 ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lXbsd $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197
9198
9199 int
9200 main ()
9201 {
9202 main ();
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_Xbsd_main=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 ac_cv_lib_Xbsd_main=no
9235 fi
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9239 fi
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9241 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9242 if test $ac_cv_lib_Xbsd_main = yes; then
9243 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9244 fi
9245
9246
9247
9248 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9249 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9250 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 ac_check_lib_save_LIBS=$LIBS
9254 LIBS="-lpthreads $LIBS"
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h. */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9268 char cma_open ();
9269 int
9270 main ()
9271 {
9272 cma_open ();
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_pthreads_cma_open=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_cv_lib_pthreads_cma_open=no
9305 fi
9306 rm -f conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9309 fi
9310 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9311 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9312 if test $ac_cv_lib_pthreads_cma_open = yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define HAVE_LIBPTHREADS 1
9315 _ACEOF
9316
9317 LIBS="-lpthreads $LIBS"
9318
9319 fi
9320
9321
9322 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9323 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9324 if test -d /usr/X386/include; then
9325 HAVE_XFREE386=yes
9326 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9327 else
9328 HAVE_XFREE386=no
9329 fi
9330 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9331 echo "${ECHO_T}$HAVE_XFREE386" >&6
9332
9333
9334 case ${host_os} in
9335 aix*)
9336 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9337 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9338 if test "${gdb_cv_bigtoc+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341
9342 case $GCC in
9343 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9344 *) gdb_cv_bigtoc=-bbigtoc ;;
9345 esac
9346
9347 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h. */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354
9355 int
9356 main ()
9357 {
9358 int i;
9359 ;
9360 return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 :
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 gdb_cv_bigtoc=
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394
9395 fi
9396 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9397 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9398 ;;
9399 esac
9400
9401 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9402 # used for the tests that follow. We set them back to REAL_CFLAGS and
9403 # REAL_CPPFLAGS later on.
9404
9405 REAL_CPPFLAGS="$CPPFLAGS"
9406
9407 if test "${HAVE_X11}" = "yes"; then
9408 DEFS="$C_SWITCH_X_SITE $DEFS"
9409 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9410 LIBS="$LIBX $LIBS"
9411 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9412 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9413
9414 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9415 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9416 # but it's more convenient here to set LD_RUN_PATH
9417 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9418 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9419 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9420 export LD_RUN_PATH
9421 fi
9422
9423 if test "${opsys}" = "gnu-linux"; then
9424 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9425 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432
9433 int
9434 main ()
9435 {
9436 XOpenDisplay ("foo");
9437 ;
9438 return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_c_werror_flag"
9451 || test ! -s conftest.err'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 (eval $ac_try) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 xlinux_first_failure=no
9464 else
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468 xlinux_first_failure=yes
9469 fi
9470 rm -f conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 if test "${xlinux_first_failure}" = "yes"; then
9473 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9474 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9475 OLD_CPPFLAGS="$CPPFLAGS"
9476 OLD_LIBS="$LIBS"
9477 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9478 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9479 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9480 LIBS="$LIBS -b i486-linuxaout"
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487
9488 int
9489 main ()
9490 {
9491 XOpenDisplay ("foo");
9492 ;
9493 return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
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); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 xlinux_second_failure=no
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 xlinux_second_failure=yes
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 if test "${xlinux_second_failure}" = "yes"; then
9528 # If we get the same failure with -b, there is no use adding -b.
9529 # So take it out. This plays safe.
9530 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9531 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9532 CPPFLAGS="$OLD_CPPFLAGS"
9533 LIBS="$OLD_LIBS"
9534 echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536 else
9537 echo "$as_me:$LINENO: result: yes" >&5
9538 echo "${ECHO_T}yes" >&6
9539 fi
9540 else
9541 echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6
9543 fi
9544 fi
9545
9546 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9547 # header files included from there.
9548 echo "$as_me:$LINENO: checking for Xkb" >&5
9549 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <X11/Xlib.h>
9557 #include <X11/XKBlib.h>
9558 int
9559 main ()
9560 {
9561 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag"
9576 || test ! -s conftest.err'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 emacs_xkb=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 emacs_xkb=no
9594 fi
9595 rm -f conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9598 echo "${ECHO_T}$emacs_xkb" >&6
9599 if test $emacs_xkb = yes; then
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_XKBGETKEYBOARD 1
9603 _ACEOF
9604
9605 fi
9606
9607
9608
9609
9610
9611 for ac_func in XrmSetDatabase XScreenResourceString \
9612 XScreenNumberOfScreen XSetWMProtocols
9613 do
9614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615 echo "$as_me:$LINENO: checking for $ac_func" >&5
9616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9617 if eval "test \"\${$as_ac_var+set}\" = set"; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h. */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9628 #define $ac_func innocuous_$ac_func
9629
9630 /* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char $ac_func (); below.
9632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 <limits.h> exists even on freestanding compilers. */
9634
9635 #ifdef __STDC__
9636 # include <limits.h>
9637 #else
9638 # include <assert.h>
9639 #endif
9640
9641 #undef $ac_func
9642
9643 /* Override any gcc2 internal prototype to avoid an error. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 {
9647 #endif
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650 char $ac_func ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9655 choke me
9656 #else
9657 char (*f) () = $ac_func;
9658 #endif
9659 #ifdef __cplusplus
9660 }
9661 #endif
9662
9663 int
9664 main ()
9665 {
9666 return f != $ac_func;
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698 eval "$as_ac_var=no"
9699 fi
9700 rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 fi
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9708 _ACEOF
9709
9710 fi
9711 done
9712
9713 fi
9714
9715 if test "${window_system}" = "x11"; then
9716 echo "$as_me:$LINENO: checking X11 version 6" >&5
9717 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9718 if test "${emacs_cv_x11_version_6+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9728 int
9729 main ()
9730 {
9731 #if XlibSpecificationRelease < 6
9732 fail;
9733 #endif
9734
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 emacs_cv_x11_version_6=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 emacs_cv_x11_version_6=no
9767 fi
9768 rm -f conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771
9772 if test $emacs_cv_x11_version_6 = yes; then
9773 echo "$as_me:$LINENO: result: 6 or newer" >&5
9774 echo "${ECHO_T}6 or newer" >&6
9775
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_X11R6 1
9778 _ACEOF
9779
9780 else
9781 echo "$as_me:$LINENO: result: before 6" >&5
9782 echo "${ECHO_T}before 6" >&6
9783 fi
9784 fi
9785
9786 if test "${window_system}" = "x11"; then
9787 echo "$as_me:$LINENO: checking X11 version 5" >&5
9788 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9789 if test "${emacs_cv_x11_version_5+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 #include <X11/Xlib.h>
9799 int
9800 main ()
9801 {
9802 #if XlibSpecificationRelease < 5
9803 fail;
9804 #endif
9805
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 emacs_cv_x11_version_5=yes
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 emacs_cv_x11_version_5=no
9838 fi
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 fi
9842
9843 if test $emacs_cv_x11_version_5 = yes; then
9844 echo "$as_me:$LINENO: result: 5 or newer" >&5
9845 echo "${ECHO_T}5 or newer" >&6
9846 HAVE_X11R5=yes
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_X11R5 1
9850 _ACEOF
9851
9852 else
9853 HAVE_X11R5=no
9854 echo "$as_me:$LINENO: result: before 5" >&5
9855 echo "${ECHO_T}before 5" >&6
9856 fi
9857 fi
9858
9859
9860
9861 HAVE_GTK=no
9862 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9863 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9864 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9865 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9866 { (exit 1); exit 1; }; };
9867 fi
9868 GLIB_REQUIRED=2.0.1
9869 GTK_REQUIRED=2.0.1
9870 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9871
9872 if test "X${with_pkg_config_prog}" != X; then
9873 PKG_CONFIG="${with_pkg_config_prog}"
9874 fi
9875
9876 succeeded=no
9877
9878 if test -z "$PKG_CONFIG"; then
9879 # Extract the first word of "pkg-config", so it can be a program name with args.
9880 set dummy pkg-config; ac_word=$2
9881 echo "$as_me:$LINENO: checking for $ac_word" >&5
9882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 case $PKG_CONFIG in
9887 [\\/]* | ?:[\\/]*)
9888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9889 ;;
9890 *)
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9893 do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9901 fi
9902 done
9903 done
9904
9905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9906 ;;
9907 esac
9908 fi
9909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9910
9911 if test -n "$PKG_CONFIG"; then
9912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9913 echo "${ECHO_T}$PKG_CONFIG" >&6
9914 else
9915 echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9917 fi
9918
9919 fi
9920
9921 if test "$PKG_CONFIG" = "no" ; then
9922 echo "*** The pkg-config script could not be found. Make sure it is"
9923 echo "*** in your path, or give the full path to pkg-config with"
9924 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9925 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9926 else
9927 PKG_CONFIG_MIN_VERSION=0.9.0
9928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9929 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9930 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9931
9932 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9935 succeeded=yes
9936
9937 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9938 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9939 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9940 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9941 echo "${ECHO_T}$GTK_CFLAGS" >&6
9942
9943 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9944 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9945 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9946 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9947 echo "${ECHO_T}$GTK_LIBS" >&6
9948 else
9949 GTK_CFLAGS=""
9950 GTK_LIBS=""
9951 ## If we have a custom action on failure, don't print errors, but
9952 ## do set a variable so people can do so.
9953 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9954 echo $GTK_PKG_ERRORS
9955 fi
9956
9957
9958
9959 else
9960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9962 fi
9963 fi
9964
9965 if test $succeeded = yes; then
9966 :
9967 else
9968 { { 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
9969 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;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972
9973
9974
9975 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9976 CFLAGS="$CFLAGS $GTK_CFLAGS"
9977 LIBS="$GTK_LIBS $LIBS"
9978 HAVE_GTK=yes
9979
9980 cat >>confdefs.h <<\_ACEOF
9981 #define HAVE_GTK 1
9982 _ACEOF
9983
9984 USE_X_TOOLKIT=none
9985
9986 if test "$with_toolkit_scroll_bars" != no; then
9987 with_toolkit_scroll_bars=yes
9988 fi
9989
9990 HAVE_GTK_MULTIDISPLAY=no
9991
9992 for ac_func in gdk_display_open
9993 do
9994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_func" >&5
9996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_var+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008 #define $ac_func innocuous_$ac_func
10009
10010 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char $ac_func (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10014
10015 #ifdef __STDC__
10016 # include <limits.h>
10017 #else
10018 # include <assert.h>
10019 #endif
10020
10021 #undef $ac_func
10022
10023 /* Override any gcc2 internal prototype to avoid an error. */
10024 #ifdef __cplusplus
10025 extern "C"
10026 {
10027 #endif
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char $ac_func ();
10031 /* The GNU C library defines this for functions which it implements
10032 to always fail with ENOSYS. Some functions are actually named
10033 something starting with __ and the normal name is an alias. */
10034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10035 choke me
10036 #else
10037 char (*f) () = $ac_func;
10038 #endif
10039 #ifdef __cplusplus
10040 }
10041 #endif
10042
10043 int
10044 main ()
10045 {
10046 return f != $ac_func;
10047 ;
10048 return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 eval "$as_ac_var=yes"
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 eval "$as_ac_var=no"
10079 fi
10080 rm -f conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 fi
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10085 if test `eval echo '${'$as_ac_var'}'` = yes; then
10086 cat >>confdefs.h <<_ACEOF
10087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088 _ACEOF
10089 HAVE_GTK_MULTIDISPLAY=yes
10090 fi
10091 done
10092
10093 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define HAVE_GTK_MULTIDISPLAY 1
10097 _ACEOF
10098
10099 fi
10100 HAVE_GTK_FILE_SELECTION=no
10101
10102 for ac_func in gtk_file_selection_new
10103 do
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10119
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10124
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10130
10131 #undef $ac_func
10132
10133 /* Override any gcc2 internal prototype to avoid an error. */
10134 #ifdef __cplusplus
10135 extern "C"
10136 {
10137 #endif
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140 char $ac_func ();
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 char (*f) () = $ac_func;
10148 #endif
10149 #ifdef __cplusplus
10150 }
10151 #endif
10152
10153 int
10154 main ()
10155 {
10156 return f != $ac_func;
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 eval "$as_ac_var=no"
10189 fi
10190 rm -f conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 fi
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 _ACEOF
10199 HAVE_GTK_FILE_SELECTION=yes
10200 fi
10201 done
10202
10203
10204 HAVE_GTK_FILE_CHOOSER=no
10205
10206 for ac_func in gtk_file_chooser_dialog_new
10207 do
10208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209 echo "$as_me:$LINENO: checking for $ac_func" >&5
10210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_var+set}\" = set"; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10222 #define $ac_func innocuous_$ac_func
10223
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char $ac_func (); below.
10226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227 <limits.h> exists even on freestanding compilers. */
10228
10229 #ifdef __STDC__
10230 # include <limits.h>
10231 #else
10232 # include <assert.h>
10233 #endif
10234
10235 #undef $ac_func
10236
10237 /* Override any gcc2 internal prototype to avoid an error. */
10238 #ifdef __cplusplus
10239 extern "C"
10240 {
10241 #endif
10242 /* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10244 char $ac_func ();
10245 /* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10249 choke me
10250 #else
10251 char (*f) () = $ac_func;
10252 #endif
10253 #ifdef __cplusplus
10254 }
10255 #endif
10256
10257 int
10258 main ()
10259 {
10260 return f != $ac_func;
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 eval "$as_ac_var=no"
10293 fi
10294 rm -f conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 fi
10297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10299 if test `eval echo '${'$as_ac_var'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10303 HAVE_GTK_FILE_CHOOSER=yes
10304 fi
10305 done
10306
10307
10308 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10309 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10310
10311 cat >>confdefs.h <<\_ACEOF
10312 #define HAVE_GTK_FILE_BOTH 1
10313 _ACEOF
10314
10315 fi
10316
10317 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10318 HAVE_GTK_AND_PTHREAD=no
10319
10320 for ac_header in pthread.h
10321 do
10322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo "$as_me:$LINENO: checking for $ac_header" >&5
10325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 fi
10329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10331 else
10332 # Is the header compilable?
10333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10342 #include <$ac_header>
10343 _ACEOF
10344 rm -f conftest.$ac_objext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_header_compiler=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_header_compiler=no
10372 fi
10373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10375 echo "${ECHO_T}$ac_header_compiler" >&6
10376
10377 # Is the header present?
10378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
10387 _ACEOF
10388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev/null; then
10396 if test -s conftest.err; then
10397 ac_cpp_err=$ac_c_preproc_warn_flag
10398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10399 else
10400 ac_cpp_err=
10401 fi
10402 else
10403 ac_cpp_err=yes
10404 fi
10405 if test -z "$ac_cpp_err"; then
10406 ac_header_preproc=yes
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 ac_header_preproc=no
10412 fi
10413 rm -f conftest.err conftest.$ac_ext
10414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10415 echo "${ECHO_T}$ac_header_preproc" >&6
10416
10417 # So? What about this header?
10418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10419 yes:no: )
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10424 ac_header_preproc=yes
10425 ;;
10426 no:yes:* )
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10439 (
10440 cat <<\_ASBOX
10441 ## ------------------------------------------ ##
10442 ## Report this to the AC_PACKAGE_NAME lists. ##
10443 ## ------------------------------------------ ##
10444 _ASBOX
10445 ) |
10446 sed "s/^/$as_me: WARNING: /" >&2
10447 ;;
10448 esac
10449 echo "$as_me:$LINENO: checking for $ac_header" >&5
10450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 eval "$as_ac_Header=\$ac_header_preproc"
10455 fi
10456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10458
10459 fi
10460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10461 cat >>confdefs.h <<_ACEOF
10462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10463 _ACEOF
10464
10465 fi
10466
10467 done
10468
10469 if test "$ac_cv_header_pthread_h"; then
10470 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10471 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10472 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-lpthread $LIBS"
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483
10484 /* Override any gcc2 internal prototype to avoid an error. */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 /* We use char because int might match the return type of a gcc2
10489 builtin and then its argument prototype would still apply. */
10490 char pthread_self ();
10491 int
10492 main ()
10493 {
10494 pthread_self ();
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_lib_pthread_pthread_self=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_lib_pthread_pthread_self=no
10527 fi
10528 rm -f conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10531 fi
10532 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10533 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10534 if test $ac_cv_lib_pthread_pthread_self = yes; then
10535 HAVE_GTK_AND_PTHREAD=yes
10536 fi
10537
10538 fi
10539 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10540 GTK_LIBS="$GTK_LIBS -lpthread"
10541
10542 cat >>confdefs.h <<\_ACEOF
10543 #define HAVE_GTK_AND_PTHREAD 1
10544 _ACEOF
10545
10546 fi
10547 fi
10548 fi
10549
10550 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10551 if test x"${HAVE_X11R5}" = xyes; then
10552 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10553 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10554 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563
10564 #include <X11/Intrinsic.h>
10565 #include <X11/Xaw/Simple.h>
10566 int
10567 main ()
10568 {
10569
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -z "$ac_c_werror_flag"
10584 || test ! -s conftest.err'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 emacs_cv_x11_version_5_with_xaw=yes
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 emacs_cv_x11_version_5_with_xaw=no
10602 fi
10603 rm -f conftest.err conftest.$ac_objext \
10604 conftest$ac_exeext conftest.$ac_ext
10605 fi
10606
10607 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10608 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10609 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10610 USE_X_TOOLKIT=LUCID
10611 else
10612 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10613 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10614 USE_X_TOOLKIT=none
10615 fi
10616 else
10617 USE_X_TOOLKIT=none
10618 fi
10619 fi
10620
10621 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10622
10623 if test "${USE_X_TOOLKIT}" != "none"; then
10624 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10625 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10626 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 #include <X11/Intrinsic.h>
10636 int
10637 main ()
10638 {
10639 #if XtSpecificationRelease < 6
10640 fail;
10641 #endif
10642
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 emacs_cv_x11_toolkit_version_6=yes
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 emacs_cv_x11_toolkit_version_6=no
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 fi
10679
10680 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10681 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10682 echo "$as_me:$LINENO: result: 6 or newer" >&5
10683 echo "${ECHO_T}6 or newer" >&6
10684
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_X11XTR6 1
10687 _ACEOF
10688
10689 else
10690 echo "$as_me:$LINENO: result: before 6" >&5
10691 echo "${ECHO_T}before 6" >&6
10692 fi
10693
10694 OLDLIBS="$LIBS"
10695 if test x$HAVE_X11XTR6 = xyes; then
10696 LIBS="-lXt -lSM -lICE $LIBS"
10697 else
10698 LIBS="-lXt $LIBS"
10699 fi
10700
10701 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10702 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10703 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lXmu $LIBS"
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714
10715 /* Override any gcc2 internal prototype to avoid an error. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10721 char XmuConvertStandardSelection ();
10722 int
10723 main ()
10724 {
10725 XmuConvertStandardSelection ();
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>conftest.er1
10733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -z "$ac_c_werror_flag"
10740 || test ! -s conftest.err'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; } &&
10746 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10752 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10753 else
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10758 fi
10759 rm -f conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10764 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10765 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define HAVE_LIBXMU 1
10768 _ACEOF
10769
10770 LIBS="-lXmu $LIBS"
10771
10772 fi
10773
10774 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10775 fi
10776
10777 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10778 if test "${HAVE_X11}" = "yes"; then
10779 if test "${USE_X_TOOLKIT}" != "none"; then
10780
10781 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10782 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10783 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786 ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-lXext $LIBS"
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794
10795 /* Override any gcc2 internal prototype to avoid an error. */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 /* We use char because int might match the return type of a gcc2
10800 builtin and then its argument prototype would still apply. */
10801 char XShapeQueryExtension ();
10802 int
10803 main ()
10804 {
10805 XShapeQueryExtension ();
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext conftest$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812 (eval $ac_link) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag"
10820 || test ! -s conftest.err'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_cv_lib_Xext_XShapeQueryExtension=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 ac_cv_lib_Xext_XShapeQueryExtension=no
10838 fi
10839 rm -f conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10842 fi
10843 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10844 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10845 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_LIBXEXT 1
10848 _ACEOF
10849
10850 LIBS="-lXext $LIBS"
10851
10852 fi
10853
10854 fi
10855 fi
10856
10857 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10858 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10859 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10860 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 #include <Xm/Xm.h>
10870 int
10871 main ()
10872 {
10873 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10874 int x = 5;
10875 #else
10876 Motif version prior to 2.1.
10877 #endif
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 emacs_cv_motif_version_2_1=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 emacs_cv_motif_version_2_1=no
10910 fi
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10912 fi
10913 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10914 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10915 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10916 if test $emacs_cv_motif_version_2_1 = yes; then
10917 HAVE_LIBXP=no
10918
10919 cat >>confdefs.h <<\_ACEOF
10920 #define HAVE_MOTIF_2_1 1
10921 _ACEOF
10922
10923 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10924 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10925 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928 ac_check_lib_save_LIBS=$LIBS
10929 LIBS="-lXp $LIBS"
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936
10937 /* Override any gcc2 internal prototype to avoid an error. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10943 char XpCreateContext ();
10944 int
10945 main ()
10946 {
10947 XpCreateContext ();
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_lib_Xp_XpCreateContext=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979 ac_cv_lib_Xp_XpCreateContext=no
10980 fi
10981 rm -f conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10984 fi
10985 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10986 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10987 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10988 HAVE_LIBXP=yes
10989 fi
10990
10991 if test ${HAVE_LIBXP} = yes; then
10992
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_LIBXP 1
10995 _ACEOF
10996
10997 fi
10998 else
10999 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11000 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11001 if test "${emacs_cv_lesstif+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 # We put this in CFLAGS temporarily to precede other -I options
11005 # that might be in CFLAGS temporarily.
11006 # We put this in CPPFLAGS where it precedes the other -I options.
11007 OLD_CPPFLAGS=$CPPFLAGS
11008 OLD_CFLAGS=$CFLAGS
11009 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11010 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11018 int
11019 main ()
11020 {
11021 int x = 5;
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 emacs_cv_lesstif=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 emacs_cv_lesstif=no
11054 fi
11055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11056 fi
11057 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11058 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11059 if test $emacs_cv_lesstif = yes; then
11060 # Make sure this -I option remains in CPPFLAGS after it is set
11061 # back to REAL_CPPFLAGS.
11062 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11063 # have those other -I options anyway. Ultimately, having this
11064 # directory ultimately in CPPFLAGS will be enough.
11065 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11066 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11067 else
11068 CFLAGS=$OLD_CFLAGS
11069 CPPFLAGS=$OLD_CPPFLAGS
11070 fi
11071 fi
11072 fi
11073
11074 ### Is -lXaw3d available?
11075 HAVE_XAW3D=no
11076 if test "${HAVE_X11}" = "yes"; then
11077 if test "${USE_X_TOOLKIT}" != "none"; then
11078 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11079 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11080 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <X11/Xaw3d/Scrollbar.h>
11090 _ACEOF
11091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null; then
11099 if test -s conftest.err; then
11100 ac_cpp_err=$ac_c_preproc_warn_flag
11101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11102 else
11103 ac_cpp_err=
11104 fi
11105 else
11106 ac_cpp_err=yes
11107 fi
11108 if test -z "$ac_cpp_err"; then
11109 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11115 fi
11116 rm -f conftest.err conftest.$ac_ext
11117 fi
11118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11119 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11120 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11121 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11122 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11123 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 ac_check_lib_save_LIBS=$LIBS
11127 LIBS="-lXaw3d $LIBS"
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h. */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134
11135 /* Override any gcc2 internal prototype to avoid an error. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 /* We use char because int might match the return type of a gcc2
11140 builtin and then its argument prototype would still apply. */
11141 char XawScrollbarSetThumb ();
11142 int
11143 main ()
11144 {
11145 XawScrollbarSetThumb ();
11146 ;
11147 return 0;
11148 }
11149 _ACEOF
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag"
11160 || test ! -s conftest.err'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; } &&
11166 { ac_try='test -s conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11178 fi
11179 rm -f conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11184 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11185 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11186 HAVE_XAW3D=yes
11187 fi
11188
11189 fi
11190
11191
11192 if test "${HAVE_XAW3D}" = "yes"; then
11193
11194 cat >>confdefs.h <<\_ACEOF
11195 #define HAVE_XAW3D 1
11196 _ACEOF
11197
11198 fi
11199 fi
11200 fi
11201
11202
11203
11204 USE_TOOLKIT_SCROLL_BARS=no
11205 if test "${with_toolkit_scroll_bars}" != "no"; then
11206 if test "${USE_X_TOOLKIT}" != "none"; then
11207 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11208 cat >>confdefs.h <<\_ACEOF
11209 #define USE_TOOLKIT_SCROLL_BARS 1
11210 _ACEOF
11211
11212 HAVE_XAW3D=no
11213 USE_TOOLKIT_SCROLL_BARS=yes
11214 elif test "${HAVE_XAW3D}" = "yes"; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define USE_TOOLKIT_SCROLL_BARS 1
11217 _ACEOF
11218
11219 USE_TOOLKIT_SCROLL_BARS=yes
11220 fi
11221 elif test "${HAVE_GTK}" = "yes"; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define USE_TOOLKIT_SCROLL_BARS 1
11224 _ACEOF
11225
11226 USE_TOOLKIT_SCROLL_BARS=yes
11227 elif test "${HAVE_CARBON}" = "yes"; then
11228 cat >>confdefs.h <<\_ACEOF
11229 #define USE_TOOLKIT_SCROLL_BARS 1
11230 _ACEOF
11231
11232 USE_TOOLKIT_SCROLL_BARS=yes
11233 fi
11234 fi
11235
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242
11243 #include <X11/Xlib.h>
11244 #include <X11/Xresource.h>
11245 int
11246 main ()
11247 {
11248 XIMProc callback;
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 HAVE_XIM=yes
11276
11277 cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_XIM 1
11279 _ACEOF
11280
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 HAVE_XIM=no
11286 fi
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288
11289
11290 if test "${with_xim}" != "no"; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define USE_XIM 1
11294 _ACEOF
11295
11296 fi
11297
11298
11299 if test "${HAVE_XIM}" != "no"; then
11300 late_CFLAGS=$CFLAGS
11301 if test "$GCC" = yes; then
11302 CFLAGS="$CFLAGS --pedantic-errors"
11303 fi
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310
11311 #include <X11/Xlib.h>
11312 #include <X11/Xresource.h>
11313 int
11314 main ()
11315 {
11316 Display *display;
11317 XrmDatabase db;
11318 char *res_name;
11319 char *res_class;
11320 XIMProc callback;
11321 XPointer *client_data;
11322 #ifndef __GNUC__
11323 /* If we're not using GCC, it's probably not XFree86, and this is
11324 probably right, but we can't use something like --pedantic-errors. */
11325 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11326 char*, XIMProc, XPointer*);
11327 #endif
11328 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11329 client_data);
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 rm -f conftest.$ac_objext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336 (eval $ac_compile) 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 emacs_cv_arg6_star=yes
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 fi
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363
11364 if test "$emacs_cv_arg6_star" = yes; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11367 _ACEOF
11368
11369 else
11370 cat >>confdefs.h <<\_ACEOF
11371 #define XRegisterIMInstantiateCallback_arg6 XPointer
11372 _ACEOF
11373
11374 fi
11375 CFLAGS=$late_CFLAGS
11376 fi
11377
11378 ### Use -lXpm if available, unless `--with-xpm=no'.
11379 HAVE_XPM=no
11380 if test "${HAVE_X11}" = "yes"; then
11381 if test "${with_xpm}" != "no"; then
11382 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11383 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11384 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11385 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 fi
11388 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11389 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11390 else
11391 # Is the header compilable?
11392 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11393 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 $ac_includes_default
11401 #include <X11/xpm.h>
11402 _ACEOF
11403 rm -f conftest.$ac_objext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405 (eval $ac_compile) 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag"
11413 || test ! -s conftest.err'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_header_compiler=yes
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 ac_header_compiler=no
11431 fi
11432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11434 echo "${ECHO_T}$ac_header_compiler" >&6
11435
11436 # Is the header present?
11437 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11438 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 #include <X11/xpm.h>
11446 _ACEOF
11447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } >/dev/null; then
11455 if test -s conftest.err; then
11456 ac_cpp_err=$ac_c_preproc_warn_flag
11457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11458 else
11459 ac_cpp_err=
11460 fi
11461 else
11462 ac_cpp_err=yes
11463 fi
11464 if test -z "$ac_cpp_err"; then
11465 ac_header_preproc=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_header_preproc=no
11471 fi
11472 rm -f conftest.err conftest.$ac_ext
11473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11474 echo "${ECHO_T}$ac_header_preproc" >&6
11475
11476 # So? What about this header?
11477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11478 yes:no: )
11479 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11480 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11482 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11483 ac_header_preproc=yes
11484 ;;
11485 no:yes:* )
11486 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11487 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11489 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11491 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11493 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11495 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11497 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11498 (
11499 cat <<\_ASBOX
11500 ## ------------------------------------------ ##
11501 ## Report this to the AC_PACKAGE_NAME lists. ##
11502 ## ------------------------------------------ ##
11503 _ASBOX
11504 ) |
11505 sed "s/^/$as_me: WARNING: /" >&2
11506 ;;
11507 esac
11508 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11509 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11510 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513 ac_cv_header_X11_xpm_h=$ac_header_preproc
11514 fi
11515 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11516 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11517
11518 fi
11519 if test $ac_cv_header_X11_xpm_h = yes; then
11520 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11521 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11522 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lXpm -lX11 $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533
11534 /* Override any gcc2 internal prototype to avoid an error. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char XpmReadFileToPixmap ();
11541 int
11542 main ()
11543 {
11544 XpmReadFileToPixmap ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551 (eval $ac_link) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11571 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11577 fi
11578 rm -f conftest.err conftest.$ac_objext \
11579 conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11583 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11584 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11585 HAVE_XPM=yes
11586 fi
11587
11588 fi
11589
11590
11591 if test "${HAVE_XPM}" = "yes"; then
11592 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11593 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include "X11/xpm.h"
11601 #ifndef XpmReturnAllocPixels
11602 no_return_alloc_pixels
11603 #endif
11604
11605 _ACEOF
11606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11607 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11608 HAVE_XPM=no
11609 else
11610 HAVE_XPM=yes
11611 fi
11612 rm -f conftest*
11613
11614
11615 if test "${HAVE_XPM}" = "yes"; then
11616 echo "$as_me:$LINENO: result: yes" >&5
11617 echo "${ECHO_T}yes" >&6
11618 else
11619 echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6
11621 fi
11622 fi
11623 fi
11624
11625 if test "${HAVE_XPM}" = "yes"; then
11626
11627 cat >>confdefs.h <<\_ACEOF
11628 #define HAVE_XPM 1
11629 _ACEOF
11630
11631 fi
11632 fi
11633
11634 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11635 HAVE_JPEG=no
11636 if test "${HAVE_X11}" = "yes"; then
11637 if test "${with_jpeg}" != "no"; then
11638 if test "${ac_cv_header_jerror_h+set}" = set; then
11639 echo "$as_me:$LINENO: checking for jerror.h" >&5
11640 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11641 if test "${ac_cv_header_jerror_h+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 fi
11644 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11645 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11646 else
11647 # Is the header compilable?
11648 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11649 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 $ac_includes_default
11657 #include <jerror.h>
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_header_compiler=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_header_compiler=no
11687 fi
11688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6
11691
11692 # Is the header present?
11693 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11694 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <jerror.h>
11702 _ACEOF
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11714 else
11715 ac_cpp_err=
11716 fi
11717 else
11718 ac_cpp_err=yes
11719 fi
11720 if test -z "$ac_cpp_err"; then
11721 ac_header_preproc=yes
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_header_preproc=no
11727 fi
11728 rm -f conftest.err conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11730 echo "${ECHO_T}$ac_header_preproc" >&6
11731
11732 # So? What about this header?
11733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11734 yes:no: )
11735 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11736 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11738 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11739 ac_header_preproc=yes
11740 ;;
11741 no:yes:* )
11742 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11743 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11745 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11747 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11749 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11753 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11754 (
11755 cat <<\_ASBOX
11756 ## ------------------------------------------ ##
11757 ## Report this to the AC_PACKAGE_NAME lists. ##
11758 ## ------------------------------------------ ##
11759 _ASBOX
11760 ) |
11761 sed "s/^/$as_me: WARNING: /" >&2
11762 ;;
11763 esac
11764 echo "$as_me:$LINENO: checking for jerror.h" >&5
11765 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11766 if test "${ac_cv_header_jerror_h+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769 ac_cv_header_jerror_h=$ac_header_preproc
11770 fi
11771 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11772 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11773
11774 fi
11775 if test $ac_cv_header_jerror_h = yes; then
11776 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11777 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11778 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 ac_check_lib_save_LIBS=$LIBS
11782 LIBS="-ljpeg $LIBS"
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789
11790 /* Override any gcc2 internal prototype to avoid an error. */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11796 char jpeg_destroy_compress ();
11797 int
11798 main ()
11799 {
11800 jpeg_destroy_compress ();
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11833 fi
11834 rm -f conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 LIBS=$ac_check_lib_save_LIBS
11837 fi
11838 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11839 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11840 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11841 HAVE_JPEG=yes
11842 fi
11843
11844 fi
11845
11846
11847 fi
11848
11849
11850 if test "${HAVE_JPEG}" = "yes"; then
11851 cat >>confdefs.h <<\_ACEOF
11852 #define HAVE_JPEG 1
11853 _ACEOF
11854
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <jpeglib.h>
11862 version=JPEG_LIB_VERSION
11863
11864 _ACEOF
11865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11866 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_JPEG 1
11869 _ACEOF
11870
11871 else
11872 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11873 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11874 HAVE_JPEG=no
11875 fi
11876 rm -f conftest*
11877
11878 fi
11879 fi
11880
11881 ### Use -lpng if available, unless `--with-png=no'.
11882 HAVE_PNG=no
11883 if test "${HAVE_X11}" = "yes"; then
11884 if test "${with_png}" != "no"; then
11885 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11886 # in /usr/include/libpng.
11887
11888
11889 for ac_header in png.h libpng/png.h
11890 do
11891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11893 echo "$as_me:$LINENO: checking for $ac_header" >&5
11894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 fi
11898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11900 else
11901 # Is the header compilable?
11902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 $ac_includes_default
11911 #include <$ac_header>
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_header_compiler=yes
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_header_compiler=no
11941 fi
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11944 echo "${ECHO_T}$ac_header_compiler" >&6
11945
11946 # Is the header present?
11947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 #include <$ac_header>
11956 _ACEOF
11957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } >/dev/null; then
11965 if test -s conftest.err; then
11966 ac_cpp_err=$ac_c_preproc_warn_flag
11967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11968 else
11969 ac_cpp_err=
11970 fi
11971 else
11972 ac_cpp_err=yes
11973 fi
11974 if test -z "$ac_cpp_err"; then
11975 ac_header_preproc=yes
11976 else
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_header_preproc=no
11981 fi
11982 rm -f conftest.err conftest.$ac_ext
11983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11984 echo "${ECHO_T}$ac_header_preproc" >&6
11985
11986 # So? What about this header?
11987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11988 yes:no: )
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11993 ac_header_preproc=yes
11994 ;;
11995 no:yes:* )
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12008 (
12009 cat <<\_ASBOX
12010 ## ------------------------------------------ ##
12011 ## Report this to the AC_PACKAGE_NAME lists. ##
12012 ## ------------------------------------------ ##
12013 _ASBOX
12014 ) |
12015 sed "s/^/$as_me: WARNING: /" >&2
12016 ;;
12017 esac
12018 echo "$as_me:$LINENO: checking for $ac_header" >&5
12019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 eval "$as_ac_Header=\$ac_header_preproc"
12024 fi
12025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12027
12028 fi
12029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12032 _ACEOF
12033
12034 fi
12035
12036 done
12037
12038 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12039 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12040 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12041 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044 ac_check_lib_save_LIBS=$LIBS
12045 LIBS="-lpng -lz -lm $LIBS"
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052
12053 /* Override any gcc2 internal prototype to avoid an error. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char png_get_channels ();
12060 int
12061 main ()
12062 {
12063 png_get_channels ();
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_lib_png_png_get_channels=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 ac_cv_lib_png_png_get_channels=no
12096 fi
12097 rm -f conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12100 fi
12101 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12102 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12103 if test $ac_cv_lib_png_png_get_channels = yes; then
12104 HAVE_PNG=yes
12105 fi
12106
12107 fi
12108 fi
12109
12110 if test "${HAVE_PNG}" = "yes"; then
12111
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_PNG 1
12114 _ACEOF
12115
12116 fi
12117 fi
12118
12119 ### Use -ltiff if available, unless `--with-tiff=no'.
12120 HAVE_TIFF=no
12121 if test "${HAVE_X11}" = "yes"; then
12122 if test "${with_tiff}" != "no"; then
12123 if test "${ac_cv_header_tiffio_h+set}" = set; then
12124 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12125 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12126 if test "${ac_cv_header_tiffio_h+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 fi
12129 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12130 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12131 else
12132 # Is the header compilable?
12133 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12134 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12142 #include <tiffio.h>
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_header_compiler=yes
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_header_compiler=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175 echo "${ECHO_T}$ac_header_compiler" >&6
12176
12177 # Is the header present?
12178 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12179 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <tiffio.h>
12187 _ACEOF
12188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null; then
12196 if test -s conftest.err; then
12197 ac_cpp_err=$ac_c_preproc_warn_flag
12198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12199 else
12200 ac_cpp_err=
12201 fi
12202 else
12203 ac_cpp_err=yes
12204 fi
12205 if test -z "$ac_cpp_err"; then
12206 ac_header_preproc=yes
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_header_preproc=no
12212 fi
12213 rm -f conftest.err conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12215 echo "${ECHO_T}$ac_header_preproc" >&6
12216
12217 # So? What about this header?
12218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219 yes:no: )
12220 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12221 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12223 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12224 ac_header_preproc=yes
12225 ;;
12226 no:yes:* )
12227 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12228 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12230 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12232 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12234 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12236 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12238 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12239 (
12240 cat <<\_ASBOX
12241 ## ------------------------------------------ ##
12242 ## Report this to the AC_PACKAGE_NAME lists. ##
12243 ## ------------------------------------------ ##
12244 _ASBOX
12245 ) |
12246 sed "s/^/$as_me: WARNING: /" >&2
12247 ;;
12248 esac
12249 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12250 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12251 if test "${ac_cv_header_tiffio_h+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 ac_cv_header_tiffio_h=$ac_header_preproc
12255 fi
12256 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12258
12259 fi
12260 if test $ac_cv_header_tiffio_h = yes; then
12261 tifflibs="-lz -lm"
12262 # At least one tiff package requires the jpeg library.
12263 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12264 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12265 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12266 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-ltiff $tifflibs $LIBS"
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277
12278 /* Override any gcc2 internal prototype to avoid an error. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 /* We use char because int might match the return type of a gcc2
12283 builtin and then its argument prototype would still apply. */
12284 char TIFFGetVersion ();
12285 int
12286 main ()
12287 {
12288 TIFFGetVersion ();
12289 ;
12290 return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>conftest.er1
12296 ac_status=$?
12297 grep -v '^ *+' conftest.er1 >conftest.err
12298 rm -f conftest.er1
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -z "$ac_c_werror_flag"
12303 || test ! -s conftest.err'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_lib_tiff_TIFFGetVersion=yes
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_cv_lib_tiff_TIFFGetVersion=no
12321 fi
12322 rm -f conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12327 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12328 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12329 HAVE_TIFF=yes
12330 fi
12331
12332 fi
12333
12334
12335 fi
12336
12337 if test "${HAVE_TIFF}" = "yes"; then
12338
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_TIFF 1
12341 _ACEOF
12342
12343 fi
12344 fi
12345
12346 ### Use -lgif if available, unless `--with-gif=no'.
12347 HAVE_GIF=no
12348 if test "${HAVE_X11}" = "yes"; then
12349 if test "${with_gif}" != "no"; then
12350 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12351 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12352 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 fi
12356 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12357 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12358 else
12359 # Is the header compilable?
12360 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12361 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12369 #include <gif_lib.h>
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 ac_header_compiler=yes
12394 else
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 ac_header_compiler=no
12399 fi
12400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6
12403
12404 # Is the header present?
12405 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12406 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <gif_lib.h>
12414 _ACEOF
12415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } >/dev/null; then
12423 if test -s conftest.err; then
12424 ac_cpp_err=$ac_c_preproc_warn_flag
12425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12426 else
12427 ac_cpp_err=
12428 fi
12429 else
12430 ac_cpp_err=yes
12431 fi
12432 if test -z "$ac_cpp_err"; then
12433 ac_header_preproc=yes
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 ac_header_preproc=no
12439 fi
12440 rm -f conftest.err conftest.$ac_ext
12441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6
12443
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12466 (
12467 cat <<\_ASBOX
12468 ## ------------------------------------------ ##
12469 ## Report this to the AC_PACKAGE_NAME lists. ##
12470 ## ------------------------------------------ ##
12471 _ASBOX
12472 ) |
12473 sed "s/^/$as_me: WARNING: /" >&2
12474 ;;
12475 esac
12476 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12477 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12478 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481 ac_cv_header_gif_lib_h=$ac_header_preproc
12482 fi
12483 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12484 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12485
12486 fi
12487 if test $ac_cv_header_gif_lib_h = yes; then
12488 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12489 # Earlier versions can crash Emacs.
12490 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12491 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12492 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 ac_check_lib_save_LIBS=$LIBS
12496 LIBS="-lungif $LIBS"
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12510 char EGifPutExtensionLast ();
12511 int
12512 main ()
12513 {
12514 EGifPutExtensionLast ();
12515 ;
12516 return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521 (eval $ac_link) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_cv_lib_ungif_EGifPutExtensionLast=no
12547 fi
12548 rm -f conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12553 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12554 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12555 HAVE_GIF=yes
12556 fi
12557
12558 fi
12559
12560
12561 fi
12562
12563 if test "${HAVE_GIF}" = "yes"; then
12564
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_GIF 1
12567 _ACEOF
12568
12569 fi
12570 fi
12571
12572 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12573 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12574 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12575 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12579 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12580 else
12581 # Is the header compilable?
12582 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12583 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12591 #include <malloc/malloc.h>
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595 (eval $ac_compile) 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest.$ac_objext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_header_compiler=yes
12616 else
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ac_header_compiler=no
12621 fi
12622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12624 echo "${ECHO_T}$ac_header_compiler" >&6
12625
12626 # Is the header present?
12627 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12628 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <malloc/malloc.h>
12636 _ACEOF
12637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12648 else
12649 ac_cpp_err=
12650 fi
12651 else
12652 ac_cpp_err=yes
12653 fi
12654 if test -z "$ac_cpp_err"; then
12655 ac_header_preproc=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ac_header_preproc=no
12661 fi
12662 rm -f conftest.err conftest.$ac_ext
12663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12664 echo "${ECHO_T}$ac_header_preproc" >&6
12665
12666 # So? What about this header?
12667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12668 yes:no: )
12669 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12670 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12672 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12673 ac_header_preproc=yes
12674 ;;
12675 no:yes:* )
12676 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12677 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12679 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12681 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12683 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12685 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12687 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12688 (
12689 cat <<\_ASBOX
12690 ## ------------------------------------------ ##
12691 ## Report this to the AC_PACKAGE_NAME lists. ##
12692 ## ------------------------------------------ ##
12693 _ASBOX
12694 ) |
12695 sed "s/^/$as_me: WARNING: /" >&2
12696 ;;
12697 esac
12698 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12699 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12700 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12704 fi
12705 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12706 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12707
12708 fi
12709 if test $ac_cv_header_malloc_malloc_h = yes; then
12710
12711 cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_MALLOC_MALLOC_H 1
12713 _ACEOF
12714
12715 fi
12716
12717
12718
12719 ### Use Mac OS X Carbon API to implement GUI.
12720 if test "${HAVE_CARBON}" = "yes"; then
12721
12722 cat >>confdefs.h <<\_ACEOF
12723 #define HAVE_CARBON 1
12724 _ACEOF
12725
12726 ## Specify the install directory
12727 carbon_appdir=
12728 if test "${carbon_appdir_x}" != ""; then
12729 case ${carbon_appdir_x} in
12730 y | ye | yes) carbon_appdir=/Applications ;;
12731 * ) carbon_appdir=${carbon_appdir_x} ;;
12732 esac
12733 fi
12734 # We also have mouse menus.
12735 HAVE_MENUS=yes
12736
12737 tmp_CFLAGS="$CFLAGS"
12738 CFLAGS="$CFLAGS -framework Carbon"
12739 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12740 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12741 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12752 #define CancelMenuTracking innocuous_CancelMenuTracking
12753
12754 /* System header to define __stub macros and hopefully few prototypes,
12755 which can conflict with char CancelMenuTracking (); below.
12756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757 <limits.h> exists even on freestanding compilers. */
12758
12759 #ifdef __STDC__
12760 # include <limits.h>
12761 #else
12762 # include <assert.h>
12763 #endif
12764
12765 #undef CancelMenuTracking
12766
12767 /* Override any gcc2 internal prototype to avoid an error. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 {
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char CancelMenuTracking ();
12775 /* The GNU C library defines this for functions which it implements
12776 to always fail with ENOSYS. Some functions are actually named
12777 something starting with __ and the normal name is an alias. */
12778 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12779 choke me
12780 #else
12781 char (*f) () = CancelMenuTracking;
12782 #endif
12783 #ifdef __cplusplus
12784 }
12785 #endif
12786
12787 int
12788 main ()
12789 {
12790 return f != CancelMenuTracking;
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12798 ac_status=$?
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_c_werror_flag"
12805 || test ! -s conftest.err'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } &&
12811 { ac_try='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_func_CancelMenuTracking=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ac_cv_func_CancelMenuTracking=no
12823 fi
12824 rm -f conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826 fi
12827 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12828 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12829 if test $ac_cv_func_CancelMenuTracking = yes; then
12830 have_cmt=yes
12831 else
12832 have_cmt=no
12833 fi
12834
12835 if test "$have_cmt" = yes; then
12836
12837 cat >>confdefs.h <<\_ACEOF
12838 #define HAVE_CANCELMENUTRACKING 1
12839 _ACEOF
12840
12841 fi
12842 CFLAGS="$tmp_CFLAGS"
12843 fi
12844
12845 ### Use session management (-lSM -lICE) if available
12846 HAVE_X_SM=no
12847 if test "${HAVE_X11}" = "yes"; then
12848 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12849 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12850 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12851 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 fi
12854 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12855 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12856 else
12857 # Is the header compilable?
12858 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12859 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h. */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12867 #include <X11/SM/SMlib.h>
12868 _ACEOF
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag"
12879 || test ! -s conftest.err'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_header_compiler=yes
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 ac_header_compiler=no
12897 fi
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6
12901
12902 # Is the header present?
12903 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12904 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <X11/SM/SMlib.h>
12912 _ACEOF
12913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } >/dev/null; then
12921 if test -s conftest.err; then
12922 ac_cpp_err=$ac_c_preproc_warn_flag
12923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12924 else
12925 ac_cpp_err=
12926 fi
12927 else
12928 ac_cpp_err=yes
12929 fi
12930 if test -z "$ac_cpp_err"; then
12931 ac_header_preproc=yes
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 ac_header_preproc=no
12937 fi
12938 rm -f conftest.err conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940 echo "${ECHO_T}$ac_header_preproc" >&6
12941
12942 # So? What about this header?
12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12944 yes:no: )
12945 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12946 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12948 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc=yes
12950 ;;
12951 no:yes:* )
12952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12953 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12955 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12957 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12959 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12963 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12964 (
12965 cat <<\_ASBOX
12966 ## ------------------------------------------ ##
12967 ## Report this to the AC_PACKAGE_NAME lists. ##
12968 ## ------------------------------------------ ##
12969 _ASBOX
12970 ) |
12971 sed "s/^/$as_me: WARNING: /" >&2
12972 ;;
12973 esac
12974 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12975 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12976 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12980 fi
12981 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12982 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12983
12984 fi
12985 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12986 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12987 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12988 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 ac_check_lib_save_LIBS=$LIBS
12992 LIBS="-lSM -lICE $LIBS"
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999
13000 /* Override any gcc2 internal prototype to avoid an error. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char SmcOpenConnection ();
13007 int
13008 main ()
13009 {
13010 SmcOpenConnection ();
13011 ;
13012 return 0;
13013 }
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
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); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_SM_SmcOpenConnection=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_cv_lib_SM_SmcOpenConnection=no
13043 fi
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 LIBS=$ac_check_lib_save_LIBS
13047 fi
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13051 HAVE_X_SM=yes
13052 fi
13053
13054 fi
13055
13056
13057
13058 if test "${HAVE_X_SM}" = "yes"; then
13059
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_X_SM 1
13062 _ACEOF
13063
13064 case "$LIBS" in
13065 *-lSM*) ;;
13066 *) LIBS="-lSM -lICE $LIBS" ;;
13067 esac
13068 fi
13069 fi
13070
13071 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13072 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13073 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13074 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 #include <netdb.h>
13084 int
13085 main ()
13086 {
13087 return h_errno;
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 emacs_cv_netdb_declares_h_errno=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 emacs_cv_netdb_declares_h_errno=no
13120 fi
13121 rm -f conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 fi
13124 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13125 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13126 if test $emacs_cv_netdb_declares_h_errno = yes; then
13127
13128 cat >>confdefs.h <<\_ACEOF
13129 #define HAVE_H_ERRNO 1
13130 _ACEOF
13131
13132 fi
13133
13134 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13135 # for constant arguments. Useless!
13136 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13137 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13138 if test "${ac_cv_working_alloca_h+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <alloca.h>
13148 int
13149 main ()
13150 {
13151 char *p = (char *) alloca (2 * sizeof (int));
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest$ac_exeext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_cv_working_alloca_h=yes
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 ac_cv_working_alloca_h=no
13184 fi
13185 rm -f conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 fi
13188 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13189 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13190 if test $ac_cv_working_alloca_h = yes; then
13191
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_ALLOCA_H 1
13194 _ACEOF
13195
13196 fi
13197
13198 echo "$as_me:$LINENO: checking for alloca" >&5
13199 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13200 if test "${ac_cv_func_alloca_works+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #ifdef __GNUC__
13210 # define alloca __builtin_alloca
13211 #else
13212 # ifdef _MSC_VER
13213 # include <malloc.h>
13214 # define alloca _alloca
13215 # else
13216 # if HAVE_ALLOCA_H
13217 # include <alloca.h>
13218 # else
13219 # ifdef _AIX
13220 #pragma alloca
13221 # else
13222 # ifndef alloca /* predefined by HP cc +Olibcalls */
13223 char *alloca ();
13224 # endif
13225 # endif
13226 # endif
13227 # endif
13228 #endif
13229
13230 int
13231 main ()
13232 {
13233 char *p = (char *) alloca (1);
13234 ;
13235 return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_func_alloca_works=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_func_alloca_works=no
13266 fi
13267 rm -f conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13271 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13272
13273 if test $ac_cv_func_alloca_works = yes; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define HAVE_ALLOCA 1
13277 _ACEOF
13278
13279 else
13280 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13281 # that cause trouble. Some versions do not even contain alloca or
13282 # contain a buggy version. If you still want to use their alloca,
13283 # use ar to extract alloca.o from them instead of compiling alloca.c.
13284
13285 ALLOCA=alloca.$ac_objext
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define C_ALLOCA 1
13289 _ACEOF
13290
13291
13292 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13293 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13294 if test "${ac_cv_os_cray+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #if defined(CRAY) && ! defined(CRAY2)
13304 webecray
13305 #else
13306 wenotbecray
13307 #endif
13308
13309 _ACEOF
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311 $EGREP "webecray" >/dev/null 2>&1; then
13312 ac_cv_os_cray=yes
13313 else
13314 ac_cv_os_cray=no
13315 fi
13316 rm -f conftest*
13317
13318 fi
13319 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13320 echo "${ECHO_T}$ac_cv_os_cray" >&6
13321 if test $ac_cv_os_cray = yes; then
13322 for ac_func in _getb67 GETB67 getb67; do
13323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13324 echo "$as_me:$LINENO: checking for $ac_func" >&5
13325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13326 if eval "test \"\${$as_ac_var+set}\" = set"; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329 cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h. */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13337 #define $ac_func innocuous_$ac_func
13338
13339 /* System header to define __stub macros and hopefully few prototypes,
13340 which can conflict with char $ac_func (); below.
13341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13342 <limits.h> exists even on freestanding compilers. */
13343
13344 #ifdef __STDC__
13345 # include <limits.h>
13346 #else
13347 # include <assert.h>
13348 #endif
13349
13350 #undef $ac_func
13351
13352 /* Override any gcc2 internal prototype to avoid an error. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 {
13356 #endif
13357 /* We use char because int might match the return type of a gcc2
13358 builtin and then its argument prototype would still apply. */
13359 char $ac_func ();
13360 /* The GNU C library defines this for functions which it implements
13361 to always fail with ENOSYS. Some functions are actually named
13362 something starting with __ and the normal name is an alias. */
13363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13364 choke me
13365 #else
13366 char (*f) () = $ac_func;
13367 #endif
13368 #ifdef __cplusplus
13369 }
13370 #endif
13371
13372 int
13373 main ()
13374 {
13375 return f != $ac_func;
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
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); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 eval "$as_ac_var=yes"
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 eval "$as_ac_var=no"
13408 fi
13409 rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 fi
13412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13414 if test `eval echo '${'$as_ac_var'}'` = yes; then
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define CRAY_STACKSEG_END $ac_func
13418 _ACEOF
13419
13420 break
13421 fi
13422
13423 done
13424 fi
13425
13426 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13427 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13428 if test "${ac_cv_c_stack_direction+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431 if test "$cross_compiling" = yes; then
13432 ac_cv_c_stack_direction=0
13433 else
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 int
13441 find_stack_direction ()
13442 {
13443 static char *addr = 0;
13444 auto char dummy;
13445 if (addr == 0)
13446 {
13447 addr = &dummy;
13448 return find_stack_direction ();
13449 }
13450 else
13451 return (&dummy > addr) ? 1 : -1;
13452 }
13453
13454 int
13455 main ()
13456 {
13457 exit (find_stack_direction () < 0);
13458 }
13459 _ACEOF
13460 rm -f conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_c_stack_direction=1
13472 else
13473 echo "$as_me: program exited with status $ac_status" >&5
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ( exit $ac_status )
13478 ac_cv_c_stack_direction=-1
13479 fi
13480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13481 fi
13482 fi
13483 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13484 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13485
13486 cat >>confdefs.h <<_ACEOF
13487 #define STACK_DIRECTION $ac_cv_c_stack_direction
13488 _ACEOF
13489
13490
13491 fi
13492
13493
13494 # fmod, logb, and frexp are found in -lm on most systems.
13495 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13496
13497 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13498 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13499 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-lm $LIBS"
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510
13511 /* Override any gcc2 internal prototype to avoid an error. */
13512 #ifdef __cplusplus
13513 extern "C"
13514 #endif
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13517 char sqrt ();
13518 int
13519 main ()
13520 {
13521 sqrt ();
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest$ac_exeext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_m_sqrt=yes
13549 else
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_cv_lib_m_sqrt=no
13554 fi
13555 rm -f conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13560 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13561 if test $ac_cv_lib_m_sqrt = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBM 1
13564 _ACEOF
13565
13566 LIBS="-lm $LIBS"
13567
13568 fi
13569
13570
13571 # Check for mail-locking functions in a "mail" library. Probably this should
13572 # have the same check as for liblockfile below.
13573
13574 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13575 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13576 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lmail $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587
13588 /* Override any gcc2 internal prototype to avoid an error. */
13589 #ifdef __cplusplus
13590 extern "C"
13591 #endif
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13594 char maillock ();
13595 int
13596 main ()
13597 {
13598 maillock ();
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_lib_mail_maillock=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_lib_mail_maillock=no
13631 fi
13632 rm -f conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634 LIBS=$ac_check_lib_save_LIBS
13635 fi
13636 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13637 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13638 if test $ac_cv_lib_mail_maillock = yes; then
13639 cat >>confdefs.h <<_ACEOF
13640 #define HAVE_LIBMAIL 1
13641 _ACEOF
13642
13643 LIBS="-lmail $LIBS"
13644
13645 fi
13646
13647
13648 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13649 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13650 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 else
13653 ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-llockfile $LIBS"
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661
13662 /* Override any gcc2 internal prototype to avoid an error. */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 /* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13668 char maillock ();
13669 int
13670 main ()
13671 {
13672 maillock ();
13673 ;
13674 return 0;
13675 }
13676 _ACEOF
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679 (eval $ac_link) 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -z "$ac_c_werror_flag"
13687 || test ! -s conftest.err'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; } &&
13693 { ac_try='test -s conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_lib_lockfile_maillock=yes
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 ac_cv_lib_lockfile_maillock=no
13705 fi
13706 rm -f conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13708 LIBS=$ac_check_lib_save_LIBS
13709 fi
13710 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13711 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13712 if test $ac_cv_lib_lockfile_maillock = yes; then
13713 cat >>confdefs.h <<_ACEOF
13714 #define HAVE_LIBLOCKFILE 1
13715 _ACEOF
13716
13717 LIBS="-llockfile $LIBS"
13718
13719 fi
13720
13721 # If we have the shared liblockfile, assume we must use it for mail
13722 # locking (e.g. Debian). If we couldn't link against liblockfile
13723 # (no liblockfile.a installed), ensure that we don't need to.
13724 if test "$ac_cv_lib_lockfile_maillock" = no; then
13725 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13726 set dummy liblockfile.so; ac_word=$2
13727 echo "$as_me:$LINENO: checking for $ac_word" >&5
13728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13729 if test "${ac_cv_prog_liblockfile+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 if test -n "$liblockfile"; then
13733 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13734 else
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13737 for as_dir in $as_dummy
13738 do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743 ac_cv_prog_liblockfile="yes"
13744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13745 break 2
13746 fi
13747 done
13748 done
13749
13750 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13751 fi
13752 fi
13753 liblockfile=$ac_cv_prog_liblockfile
13754 if test -n "$liblockfile"; then
13755 echo "$as_me:$LINENO: result: $liblockfile" >&5
13756 echo "${ECHO_T}$liblockfile" >&6
13757 else
13758 echo "$as_me:$LINENO: result: no" >&5
13759 echo "${ECHO_T}no" >&6
13760 fi
13761
13762 if test $ac_cv_prog_liblockfile = yes; then
13763 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13764 This probably means that movemail could lose mail.
13765 There may be a \`development' package to install containing liblockfile." >&5
13766 echo "$as_me: error: Shared liblockfile found but can't link against it.
13767 This probably means that movemail could lose mail.
13768 There may be a \`development' package to install containing liblockfile." >&2;}
13769 { (exit 1); exit 1; }; }
13770 else :
13771 fi
13772 fi
13773
13774 for ac_func in touchlock
13775 do
13776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 echo "$as_me:$LINENO: checking for $ac_func" >&5
13778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13779 if eval "test \"\${$as_ac_var+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13790 #define $ac_func innocuous_$ac_func
13791
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func (); below.
13794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13795 <limits.h> exists even on freestanding compilers. */
13796
13797 #ifdef __STDC__
13798 # include <limits.h>
13799 #else
13800 # include <assert.h>
13801 #endif
13802
13803 #undef $ac_func
13804
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 #ifdef __cplusplus
13807 extern "C"
13808 {
13809 #endif
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13812 char $ac_func ();
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 char (*f) () = $ac_func;
13820 #endif
13821 #ifdef __cplusplus
13822 }
13823 #endif
13824
13825 int
13826 main ()
13827 {
13828 return f != $ac_func;
13829 ;
13830 return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag"
13843 || test ! -s conftest.err'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; } &&
13849 { ac_try='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 eval "$as_ac_var=yes"
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860 eval "$as_ac_var=no"
13861 fi
13862 rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 fi
13865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13867 if test `eval echo '${'$as_ac_var'}'` = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 fi
13873 done
13874
13875
13876 for ac_header in maillock.h
13877 do
13878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo "$as_me:$LINENO: checking for $ac_header" >&5
13881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 fi
13885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13887 else
13888 # Is the header compilable?
13889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 #include <$ac_header>
13899 _ACEOF
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_header_compiler=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_compiler=no
13928 fi
13929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931 echo "${ECHO_T}$ac_header_compiler" >&6
13932
13933 # Is the header present?
13934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h. */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <$ac_header>
13943 _ACEOF
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev/null; then
13952 if test -s conftest.err; then
13953 ac_cpp_err=$ac_c_preproc_warn_flag
13954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13955 else
13956 ac_cpp_err=
13957 fi
13958 else
13959 ac_cpp_err=yes
13960 fi
13961 if test -z "$ac_cpp_err"; then
13962 ac_header_preproc=yes
13963 else
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_header_preproc=no
13968 fi
13969 rm -f conftest.err conftest.$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6
13972
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975 yes:no: )
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13981 ;;
13982 no:yes:* )
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995 (
13996 cat <<\_ASBOX
13997 ## ------------------------------------------ ##
13998 ## Report this to the AC_PACKAGE_NAME lists. ##
13999 ## ------------------------------------------ ##
14000 _ASBOX
14001 ) |
14002 sed "s/^/$as_me: WARNING: /" >&2
14003 ;;
14004 esac
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 eval "$as_ac_Header=\$ac_header_preproc"
14011 fi
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014
14015 fi
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 _ACEOF
14020
14021 fi
14022
14023 done
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 for ac_func in gethostname getdomainname dup2 \
14095 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14096 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14097 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14098 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14099 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14100 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14101 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14102 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14103 do
14104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14105 echo "$as_me:$LINENO: checking for $ac_func" >&5
14106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_var+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14118 #define $ac_func innocuous_$ac_func
14119
14120 /* System header to define __stub macros and hopefully few prototypes,
14121 which can conflict with char $ac_func (); below.
14122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14123 <limits.h> exists even on freestanding compilers. */
14124
14125 #ifdef __STDC__
14126 # include <limits.h>
14127 #else
14128 # include <assert.h>
14129 #endif
14130
14131 #undef $ac_func
14132
14133 /* Override any gcc2 internal prototype to avoid an error. */
14134 #ifdef __cplusplus
14135 extern "C"
14136 {
14137 #endif
14138 /* We use char because int might match the return type of a gcc2
14139 builtin and then its argument prototype would still apply. */
14140 char $ac_func ();
14141 /* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14145 choke me
14146 #else
14147 char (*f) () = $ac_func;
14148 #endif
14149 #ifdef __cplusplus
14150 }
14151 #endif
14152
14153 int
14154 main ()
14155 {
14156 return f != $ac_func;
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 eval "$as_ac_var=yes"
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 eval "$as_ac_var=no"
14189 fi
14190 rm -f conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 fi
14193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14195 if test `eval echo '${'$as_ac_var'}'` = yes; then
14196 cat >>confdefs.h <<_ACEOF
14197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14198 _ACEOF
14199
14200 fi
14201 done
14202
14203
14204
14205 for ac_header in sys/un.h
14206 do
14207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 fi
14214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14216 else
14217 # Is the header compilable?
14218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14220 cat >conftest.$ac_ext <<_ACEOF
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <$ac_header>
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_header_compiler=yes
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_header_compiler=no
14257 fi
14258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6
14261
14262 # Is the header present?
14263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <$ac_header>
14272 _ACEOF
14273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev/null; then
14281 if test -s conftest.err; then
14282 ac_cpp_err=$ac_c_preproc_warn_flag
14283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14284 else
14285 ac_cpp_err=
14286 fi
14287 else
14288 ac_cpp_err=yes
14289 fi
14290 if test -z "$ac_cpp_err"; then
14291 ac_header_preproc=yes
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_header_preproc=no
14297 fi
14298 rm -f conftest.err conftest.$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14300 echo "${ECHO_T}$ac_header_preproc" >&6
14301
14302 # So? What about this header?
14303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14304 yes:no: )
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14309 ac_header_preproc=yes
14310 ;;
14311 no:yes:* )
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14324 (
14325 cat <<\_ASBOX
14326 ## ------------------------------------------ ##
14327 ## Report this to the AC_PACKAGE_NAME lists. ##
14328 ## ------------------------------------------ ##
14329 _ASBOX
14330 ) |
14331 sed "s/^/$as_me: WARNING: /" >&2
14332 ;;
14333 esac
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 eval "$as_ac_Header=\$ac_header_preproc"
14340 fi
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343
14344 fi
14345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14348 _ACEOF
14349
14350 fi
14351
14352 done
14353
14354
14355
14356
14357
14358 for ac_header in stdlib.h sys/time.h unistd.h
14359 do
14360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362 echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 fi
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14369 else
14370 # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 #include <$ac_header>
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest.$ac_objext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_header_compiler=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_header_compiler=no
14410 fi
14411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14413 echo "${ECHO_T}$ac_header_compiler" >&6
14414
14415 # Is the header present?
14416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <$ac_header>
14425 _ACEOF
14426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } >/dev/null; then
14434 if test -s conftest.err; then
14435 ac_cpp_err=$ac_c_preproc_warn_flag
14436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14437 else
14438 ac_cpp_err=
14439 fi
14440 else
14441 ac_cpp_err=yes
14442 fi
14443 if test -z "$ac_cpp_err"; then
14444 ac_header_preproc=yes
14445 else
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 ac_header_preproc=no
14450 fi
14451 rm -f conftest.err conftest.$ac_ext
14452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14453 echo "${ECHO_T}$ac_header_preproc" >&6
14454
14455 # So? What about this header?
14456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14457 yes:no: )
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14462 ac_header_preproc=yes
14463 ;;
14464 no:yes:* )
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14477 (
14478 cat <<\_ASBOX
14479 ## ------------------------------------------ ##
14480 ## Report this to the AC_PACKAGE_NAME lists. ##
14481 ## ------------------------------------------ ##
14482 _ASBOX
14483 ) |
14484 sed "s/^/$as_me: WARNING: /" >&2
14485 ;;
14486 esac
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492 eval "$as_ac_Header=\$ac_header_preproc"
14493 fi
14494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14496
14497 fi
14498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14499 cat >>confdefs.h <<_ACEOF
14500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14501 _ACEOF
14502
14503 fi
14504
14505 done
14506
14507
14508 for ac_func in alarm
14509 do
14510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511 echo "$as_me:$LINENO: checking for $ac_func" >&5
14512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14513 if eval "test \"\${$as_ac_var+set}\" = set"; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524 #define $ac_func innocuous_$ac_func
14525
14526 /* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14530
14531 #ifdef __STDC__
14532 # include <limits.h>
14533 #else
14534 # include <assert.h>
14535 #endif
14536
14537 #undef $ac_func
14538
14539 /* Override any gcc2 internal prototype to avoid an error. */
14540 #ifdef __cplusplus
14541 extern "C"
14542 {
14543 #endif
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14546 char $ac_func ();
14547 /* The GNU C library defines this for functions which it implements
14548 to always fail with ENOSYS. Some functions are actually named
14549 something starting with __ and the normal name is an alias. */
14550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14551 choke me
14552 #else
14553 char (*f) () = $ac_func;
14554 #endif
14555 #ifdef __cplusplus
14556 }
14557 #endif
14558
14559 int
14560 main ()
14561 {
14562 return f != $ac_func;
14563 ;
14564 return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 eval "$as_ac_var=yes"
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 eval "$as_ac_var=no"
14595 fi
14596 rm -f conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 fi
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14601 if test `eval echo '${'$as_ac_var'}'` = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 _ACEOF
14605
14606 fi
14607 done
14608
14609 echo "$as_me:$LINENO: checking for working mktime" >&5
14610 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14611 if test "${ac_cv_func_working_mktime+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614 if test "$cross_compiling" = yes; then
14615 ac_cv_func_working_mktime=no
14616 else
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 /* Test program from Paul Eggert and Tony Leneis. */
14624 #if TIME_WITH_SYS_TIME
14625 # include <sys/time.h>
14626 # include <time.h>
14627 #else
14628 # if HAVE_SYS_TIME_H
14629 # include <sys/time.h>
14630 # else
14631 # include <time.h>
14632 # endif
14633 #endif
14634
14635 #if HAVE_STDLIB_H
14636 # include <stdlib.h>
14637 #endif
14638
14639 #if HAVE_UNISTD_H
14640 # include <unistd.h>
14641 #endif
14642
14643 #if !HAVE_ALARM
14644 # define alarm(X) /* empty */
14645 #endif
14646
14647 /* Work around redefinition to rpl_putenv by other config tests. */
14648 #undef putenv
14649
14650 static time_t time_t_max;
14651 static time_t time_t_min;
14652
14653 /* Values we'll use to set the TZ environment variable. */
14654 static char *tz_strings[] = {
14655 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14656 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14657 };
14658 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14659
14660 /* Fail if mktime fails to convert a date in the spring-forward gap.
14661 Based on a problem report from Andreas Jaeger. */
14662 static void
14663 spring_forward_gap ()
14664 {
14665 /* glibc (up to about 1998-10-07) failed this test. */
14666 struct tm tm;
14667
14668 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14669 instead of "TZ=America/Vancouver" in order to detect the bug even
14670 on systems that don't support the Olson extension, or don't have the
14671 full zoneinfo tables installed. */
14672 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14673
14674 tm.tm_year = 98;
14675 tm.tm_mon = 3;
14676 tm.tm_mday = 5;
14677 tm.tm_hour = 2;
14678 tm.tm_min = 0;
14679 tm.tm_sec = 0;
14680 tm.tm_isdst = -1;
14681 if (mktime (&tm) == (time_t)-1)
14682 exit (1);
14683 }
14684
14685 static void
14686 mktime_test1 (now)
14687 time_t now;
14688 {
14689 struct tm *lt;
14690 if ((lt = localtime (&now)) && mktime (lt) != now)
14691 exit (1);
14692 }
14693
14694 static void
14695 mktime_test (now)
14696 time_t now;
14697 {
14698 mktime_test1 (now);
14699 mktime_test1 ((time_t) (time_t_max - now));
14700 mktime_test1 ((time_t) (time_t_min + now));
14701 }
14702
14703 static void
14704 irix_6_4_bug ()
14705 {
14706 /* Based on code from Ariel Faigon. */
14707 struct tm tm;
14708 tm.tm_year = 96;
14709 tm.tm_mon = 3;
14710 tm.tm_mday = 0;
14711 tm.tm_hour = 0;
14712 tm.tm_min = 0;
14713 tm.tm_sec = 0;
14714 tm.tm_isdst = -1;
14715 mktime (&tm);
14716 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14717 exit (1);
14718 }
14719
14720 static void
14721 bigtime_test (j)
14722 int j;
14723 {
14724 struct tm tm;
14725 time_t now;
14726 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14727 now = mktime (&tm);
14728 if (now != (time_t) -1)
14729 {
14730 struct tm *lt = localtime (&now);
14731 if (! (lt
14732 && lt->tm_year == tm.tm_year
14733 && lt->tm_mon == tm.tm_mon
14734 && lt->tm_mday == tm.tm_mday
14735 && lt->tm_hour == tm.tm_hour
14736 && lt->tm_min == tm.tm_min
14737 && lt->tm_sec == tm.tm_sec
14738 && lt->tm_yday == tm.tm_yday
14739 && lt->tm_wday == tm.tm_wday
14740 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14741 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14742 exit (1);
14743 }
14744 }
14745
14746 int
14747 main ()
14748 {
14749 time_t t, delta;
14750 int i, j;
14751
14752 /* This test makes some buggy mktime implementations loop.
14753 Give up after 60 seconds; a mktime slower than that
14754 isn't worth using anyway. */
14755 alarm (60);
14756
14757 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14758 continue;
14759 time_t_max--;
14760 if ((time_t) -1 < 0)
14761 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14762 continue;
14763 delta = time_t_max / 997; /* a suitable prime number */
14764 for (i = 0; i < N_STRINGS; i++)
14765 {
14766 if (tz_strings[i])
14767 putenv (tz_strings[i]);
14768
14769 for (t = 0; t <= time_t_max - delta; t += delta)
14770 mktime_test (t);
14771 mktime_test ((time_t) 1);
14772 mktime_test ((time_t) (60 * 60));
14773 mktime_test ((time_t) (60 * 60 * 24));
14774
14775 for (j = 1; 0 < j; j *= 2)
14776 bigtime_test (j);
14777 bigtime_test (j - 1);
14778 }
14779 irix_6_4_bug ();
14780 spring_forward_gap ();
14781 exit (0);
14782 }
14783 _ACEOF
14784 rm -f conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_func_working_mktime=yes
14796 else
14797 echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ( exit $ac_status )
14802 ac_cv_func_working_mktime=no
14803 fi
14804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14805 fi
14806 fi
14807 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14809 if test $ac_cv_func_working_mktime = no; then
14810 case $LIBOBJS in
14811 "mktime.$ac_objext" | \
14812 *" mktime.$ac_objext" | \
14813 "mktime.$ac_objext "* | \
14814 *" mktime.$ac_objext "* ) ;;
14815 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14816 esac
14817
14818 fi
14819
14820 if test "$ac_cv_func_working_mktime" = no; then
14821
14822 cat >>confdefs.h <<\_ACEOF
14823 #define BROKEN_MKTIME 1
14824 _ACEOF
14825
14826 fi
14827
14828 ac_have_func=no # yes means we've found a way to get the load average.
14829
14830 # Make sure getloadavg.c is where it belongs, at configure-time.
14831 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14832 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14833 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14834 { (exit 1); exit 1; }; }
14835
14836 ac_save_LIBS=$LIBS
14837
14838 # Check for getloadavg, but be sure not to touch the cache variable.
14839 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14840 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14841 if test "${ac_cv_func_getloadavg+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14852 #define getloadavg innocuous_getloadavg
14853
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char getloadavg (); below.
14856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14857 <limits.h> exists even on freestanding compilers. */
14858
14859 #ifdef __STDC__
14860 # include <limits.h>
14861 #else
14862 # include <assert.h>
14863 #endif
14864
14865 #undef getloadavg
14866
14867 /* Override any gcc2 internal prototype to avoid an error. */
14868 #ifdef __cplusplus
14869 extern "C"
14870 {
14871 #endif
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char getloadavg ();
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14879 choke me
14880 #else
14881 char (*f) () = getloadavg;
14882 #endif
14883 #ifdef __cplusplus
14884 }
14885 #endif
14886
14887 int
14888 main ()
14889 {
14890 return f != getloadavg;
14891 ;
14892 return 0;
14893 }
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_func_getloadavg=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_cv_func_getloadavg=no
14923 fi
14924 rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14928 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14929 if test $ac_cv_func_getloadavg = yes; then
14930 exit 0
14931 else
14932 exit 1
14933 fi
14934 ) && ac_have_func=yes
14935
14936 # On HPUX9, an unprivileged user can get load averages through this function.
14937
14938 for ac_func in pstat_getdynamic
14939 do
14940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14941 echo "$as_me:$LINENO: checking for $ac_func" >&5
14942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14943 if eval "test \"\${$as_ac_var+set}\" = set"; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14954 #define $ac_func innocuous_$ac_func
14955
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char $ac_func (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14960
14961 #ifdef __STDC__
14962 # include <limits.h>
14963 #else
14964 # include <assert.h>
14965 #endif
14966
14967 #undef $ac_func
14968
14969 /* Override any gcc2 internal prototype to avoid an error. */
14970 #ifdef __cplusplus
14971 extern "C"
14972 {
14973 #endif
14974 /* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14976 char $ac_func ();
14977 /* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14981 choke me
14982 #else
14983 char (*f) () = $ac_func;
14984 #endif
14985 #ifdef __cplusplus
14986 }
14987 #endif
14988
14989 int
14990 main ()
14991 {
14992 return f != $ac_func;
14993 ;
14994 return 0;
14995 }
14996 _ACEOF
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 eval "$as_ac_var=yes"
15020 else
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 eval "$as_ac_var=no"
15025 fi
15026 rm -f conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15028 fi
15029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15031 if test `eval echo '${'$as_ac_var'}'` = yes; then
15032 cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15034 _ACEOF
15035
15036 fi
15037 done
15038
15039
15040 # Solaris has libkstat which does not require root.
15041
15042 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15043 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15044 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 ac_check_lib_save_LIBS=$LIBS
15048 LIBS="-lkstat $LIBS"
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055
15056 /* Override any gcc2 internal prototype to avoid an error. */
15057 #ifdef __cplusplus
15058 extern "C"
15059 #endif
15060 /* We use char because int might match the return type of a gcc2
15061 builtin and then its argument prototype would still apply. */
15062 char kstat_open ();
15063 int
15064 main ()
15065 {
15066 kstat_open ();
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_lib_kstat_kstat_open=yes
15094 else
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098 ac_cv_lib_kstat_kstat_open=no
15099 fi
15100 rm -f conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15103 fi
15104 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15105 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15106 if test $ac_cv_lib_kstat_kstat_open = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_LIBKSTAT 1
15109 _ACEOF
15110
15111 LIBS="-lkstat $LIBS"
15112
15113 fi
15114
15115 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15116
15117 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15118 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15119 # to get the right answer into the cache.
15120 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15121 if test $ac_have_func = no; then
15122 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15123 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15124 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127 ac_check_lib_save_LIBS=$LIBS
15128 LIBS="-lelf $LIBS"
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 #ifdef __cplusplus
15138 extern "C"
15139 #endif
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142 char elf_begin ();
15143 int
15144 main ()
15145 {
15146 elf_begin ();
15147 ;
15148 return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_elf_elf_begin=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178 ac_cv_lib_elf_elf_begin=no
15179 fi
15180 rm -f conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15183 fi
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15185 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15186 if test $ac_cv_lib_elf_elf_begin = yes; then
15187 LIBS="-lelf $LIBS"
15188 fi
15189
15190 fi
15191 if test $ac_have_func = no; then
15192 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15193 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15194 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-lkvm $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205
15206 /* Override any gcc2 internal prototype to avoid an error. */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15212 char kvm_open ();
15213 int
15214 main ()
15215 {
15216 kvm_open ();
15217 ;
15218 return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_cv_lib_kvm_kvm_open=yes
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 ac_cv_lib_kvm_kvm_open=no
15249 fi
15250 rm -f conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 LIBS=$ac_check_lib_save_LIBS
15253 fi
15254 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15255 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15256 if test $ac_cv_lib_kvm_kvm_open = yes; then
15257 LIBS="-lkvm $LIBS"
15258 fi
15259
15260 # Check for the 4.4BSD definition of getloadavg.
15261 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15262 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15263 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-lutil $LIBS"
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h. */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15274
15275 /* Override any gcc2 internal prototype to avoid an error. */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15281 char getloadavg ();
15282 int
15283 main ()
15284 {
15285 getloadavg ();
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15292 (eval $ac_link) 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try='test -z "$ac_c_werror_flag"
15300 || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_lib_util_getloadavg=yes
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 ac_cv_lib_util_getloadavg=no
15318 fi
15319 rm -f conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15321 LIBS=$ac_check_lib_save_LIBS
15322 fi
15323 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15324 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15325 if test $ac_cv_lib_util_getloadavg = yes; then
15326 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15327 fi
15328
15329 fi
15330
15331 if test $ac_have_func = no; then
15332 # There is a commonly available library for RS/6000 AIX.
15333 # Since it is not a standard part of AIX, it might be installed locally.
15334 ac_getloadavg_LIBS=$LIBS
15335 LIBS="-L/usr/local/lib $LIBS"
15336 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15337 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15338 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 ac_check_lib_save_LIBS=$LIBS
15342 LIBS="-lgetloadavg $LIBS"
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349
15350 /* Override any gcc2 internal prototype to avoid an error. */
15351 #ifdef __cplusplus
15352 extern "C"
15353 #endif
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15356 char getloadavg ();
15357 int
15358 main ()
15359 {
15360 getloadavg ();
15361 ;
15362 return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367 (eval $ac_link) 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_lib_getloadavg_getloadavg=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_cv_lib_getloadavg_getloadavg=no
15393 fi
15394 rm -f conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15396 LIBS=$ac_check_lib_save_LIBS
15397 fi
15398 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15399 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15400 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15401 LIBS="-lgetloadavg $LIBS"
15402 else
15403 LIBS=$ac_getloadavg_LIBS
15404 fi
15405
15406 fi
15407
15408 # Make sure it is really in the library, if we think we found it,
15409 # otherwise set up the replacement function.
15410
15411 for ac_func in getloadavg
15412 do
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15427 #define $ac_func innocuous_$ac_func
15428
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below.
15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432 <limits.h> exists even on freestanding compilers. */
15433
15434 #ifdef __STDC__
15435 # include <limits.h>
15436 #else
15437 # include <assert.h>
15438 #endif
15439
15440 #undef $ac_func
15441
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 #ifdef __cplusplus
15444 extern "C"
15445 {
15446 #endif
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char $ac_func ();
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 char (*f) () = $ac_func;
15457 #endif
15458 #ifdef __cplusplus
15459 }
15460 #endif
15461
15462 int
15463 main ()
15464 {
15465 return f != $ac_func;
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest$ac_exeext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 eval "$as_ac_var=yes"
15493 else
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497 eval "$as_ac_var=no"
15498 fi
15499 rm -f conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15501 fi
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 _ACEOF
15508
15509 else
15510 case $LIBOBJS in
15511 "getloadavg.$ac_objext" | \
15512 *" getloadavg.$ac_objext" | \
15513 "getloadavg.$ac_objext "* | \
15514 *" getloadavg.$ac_objext "* ) ;;
15515 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15516 esac
15517
15518
15519 cat >>confdefs.h <<\_ACEOF
15520 #define C_GETLOADAVG 1
15521 _ACEOF
15522
15523 # Figure out what our getloadavg.c needs.
15524 ac_have_func=no
15525 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15526 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15527 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15528 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 fi
15531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15532 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15533 else
15534 # Is the header compilable?
15535 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15536 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 #include <sys/dg_sys_info.h>
15545 _ACEOF
15546 rm -f conftest.$ac_objext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548 (eval $ac_compile) 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try='test -z "$ac_c_werror_flag"
15556 || test ! -s conftest.err'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_header_compiler=yes
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_header_compiler=no
15574 fi
15575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15577 echo "${ECHO_T}$ac_header_compiler" >&6
15578
15579 # Is the header present?
15580 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15581 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <sys/dg_sys_info.h>
15589 _ACEOF
15590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15591 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15598 if test -s conftest.err; then
15599 ac_cpp_err=$ac_c_preproc_warn_flag
15600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15601 else
15602 ac_cpp_err=
15603 fi
15604 else
15605 ac_cpp_err=yes
15606 fi
15607 if test -z "$ac_cpp_err"; then
15608 ac_header_preproc=yes
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_header_preproc=no
15614 fi
15615 rm -f conftest.err conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6
15618
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 yes:no: )
15622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15625 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc=yes
15627 ;;
15628 no:yes:* )
15629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15630 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15632 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15634 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15636 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15638 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15640 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15641 (
15642 cat <<\_ASBOX
15643 ## ------------------------------------------ ##
15644 ## Report this to the AC_PACKAGE_NAME lists. ##
15645 ## ------------------------------------------ ##
15646 _ASBOX
15647 ) |
15648 sed "s/^/$as_me: WARNING: /" >&2
15649 ;;
15650 esac
15651 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15652 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15653 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15657 fi
15658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15659 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15660
15661 fi
15662 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15663 ac_have_func=yes
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define DGUX 1
15667 _ACEOF
15668
15669
15670 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15671 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15672 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 ac_check_lib_save_LIBS=$LIBS
15676 LIBS="-ldgc $LIBS"
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683
15684 /* Override any gcc2 internal prototype to avoid an error. */
15685 #ifdef __cplusplus
15686 extern "C"
15687 #endif
15688 /* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15690 char dg_sys_info ();
15691 int
15692 main ()
15693 {
15694 dg_sys_info ();
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag"
15709 || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_lib_dgc_dg_sys_info=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726 ac_cv_lib_dgc_dg_sys_info=no
15727 fi
15728 rm -f conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LIBS=$ac_check_lib_save_LIBS
15731 fi
15732 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15733 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15734 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_LIBDGC 1
15737 _ACEOF
15738
15739 LIBS="-ldgc $LIBS"
15740
15741 fi
15742
15743 fi
15744
15745
15746
15747 if test "${ac_cv_header_locale_h+set}" = set; then
15748 echo "$as_me:$LINENO: checking for locale.h" >&5
15749 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15750 if test "${ac_cv_header_locale_h+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 fi
15753 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15754 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15755 else
15756 # Is the header compilable?
15757 echo "$as_me:$LINENO: checking locale.h usability" >&5
15758 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 $ac_includes_default
15766 #include <locale.h>
15767 _ACEOF
15768 rm -f conftest.$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770 (eval $ac_compile) 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15791 else
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_header_compiler=no
15796 fi
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6
15800
15801 # Is the header present?
15802 echo "$as_me:$LINENO: checking locale.h presence" >&5
15803 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <locale.h>
15811 _ACEOF
15812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev/null; then
15820 if test -s conftest.err; then
15821 ac_cpp_err=$ac_c_preproc_warn_flag
15822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15823 else
15824 ac_cpp_err=
15825 fi
15826 else
15827 ac_cpp_err=yes
15828 fi
15829 if test -z "$ac_cpp_err"; then
15830 ac_header_preproc=yes
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 ac_header_preproc=no
15836 fi
15837 rm -f conftest.err conftest.$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839 echo "${ECHO_T}$ac_header_preproc" >&6
15840
15841 # So? What about this header?
15842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843 yes:no: )
15844 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15845 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15847 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15848 ac_header_preproc=yes
15849 ;;
15850 no:yes:* )
15851 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15852 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15854 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15856 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15858 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15860 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15862 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15863 (
15864 cat <<\_ASBOX
15865 ## ------------------------------------------ ##
15866 ## Report this to the AC_PACKAGE_NAME lists. ##
15867 ## ------------------------------------------ ##
15868 _ASBOX
15869 ) |
15870 sed "s/^/$as_me: WARNING: /" >&2
15871 ;;
15872 esac
15873 echo "$as_me:$LINENO: checking for locale.h" >&5
15874 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15875 if test "${ac_cv_header_locale_h+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878 ac_cv_header_locale_h=$ac_header_preproc
15879 fi
15880 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15882
15883 fi
15884
15885
15886
15887 for ac_func in setlocale
15888 do
15889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_var+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15904
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15909
15910 #ifdef __STDC__
15911 # include <limits.h>
15912 #else
15913 # include <assert.h>
15914 #endif
15915
15916 #undef $ac_func
15917
15918 /* Override any gcc2 internal prototype to avoid an error. */
15919 #ifdef __cplusplus
15920 extern "C"
15921 {
15922 #endif
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15925 char $ac_func ();
15926 /* The GNU C library defines this for functions which it implements
15927 to always fail with ENOSYS. Some functions are actually named
15928 something starting with __ and the normal name is an alias. */
15929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15930 choke me
15931 #else
15932 char (*f) () = $ac_func;
15933 #endif
15934 #ifdef __cplusplus
15935 }
15936 #endif
15937
15938 int
15939 main ()
15940 {
15941 return f != $ac_func;
15942 ;
15943 return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 eval "$as_ac_var=yes"
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 eval "$as_ac_var=no"
15974 fi
15975 rm -f conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 fi
15978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15980 if test `eval echo '${'$as_ac_var'}'` = yes; then
15981 cat >>confdefs.h <<_ACEOF
15982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 _ACEOF
15984
15985 fi
15986 done
15987
15988
15989 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15990 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15991 # Irix 4.0.5F has the header but not the library.
15992 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15993 ac_have_func=yes
15994
15995 cat >>confdefs.h <<\_ACEOF
15996 #define SVR4 1
15997 _ACEOF
15998
15999 fi
16000
16001 if test $ac_have_func = no; then
16002 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16003 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16004 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16005 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16009 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16010 else
16011 # Is the header compilable?
16012 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16013 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16014 cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h. */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16020 $ac_includes_default
16021 #include <inq_stats/cpustats.h>
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_c_werror_flag"
16033 || test ! -s conftest.err'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_header_compiler=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050 ac_header_compiler=no
16051 fi
16052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16054 echo "${ECHO_T}$ac_header_compiler" >&6
16055
16056 # Is the header present?
16057 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16058 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <inq_stats/cpustats.h>
16066 _ACEOF
16067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078 else
16079 ac_cpp_err=
16080 fi
16081 else
16082 ac_cpp_err=yes
16083 fi
16084 if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16086 else
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_header_preproc=no
16091 fi
16092 rm -f conftest.err conftest.$ac_ext
16093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6
16095
16096 # So? What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16098 yes:no: )
16099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16103 ac_header_preproc=yes
16104 ;;
16105 no:yes:* )
16106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16118 (
16119 cat <<\_ASBOX
16120 ## ------------------------------------------ ##
16121 ## Report this to the AC_PACKAGE_NAME lists. ##
16122 ## ------------------------------------------ ##
16123 _ASBOX
16124 ) |
16125 sed "s/^/$as_me: WARNING: /" >&2
16126 ;;
16127 esac
16128 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16129 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16130 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16134 fi
16135 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16136 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16137
16138 fi
16139 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16140 ac_have_func=yes
16141
16142 cat >>confdefs.h <<\_ACEOF
16143 #define UMAX 1
16144 _ACEOF
16145
16146
16147 cat >>confdefs.h <<\_ACEOF
16148 #define UMAX4_3 1
16149 _ACEOF
16150
16151 fi
16152
16153
16154 fi
16155
16156 if test $ac_have_func = no; then
16157 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16158 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16159 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16160 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 fi
16163 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16164 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16165 else
16166 # Is the header compilable?
16167 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16168 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16176 #include <sys/cpustats.h>
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag"
16188 || test ! -s conftest.err'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_header_compiler=yes
16201 else
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204
16205 ac_header_compiler=no
16206 fi
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16209 echo "${ECHO_T}$ac_header_compiler" >&6
16210
16211 # Is the header present?
16212 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16213 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #include <sys/cpustats.h>
16221 _ACEOF
16222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } >/dev/null; then
16230 if test -s conftest.err; then
16231 ac_cpp_err=$ac_c_preproc_warn_flag
16232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16233 else
16234 ac_cpp_err=
16235 fi
16236 else
16237 ac_cpp_err=yes
16238 fi
16239 if test -z "$ac_cpp_err"; then
16240 ac_header_preproc=yes
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ac_header_preproc=no
16246 fi
16247 rm -f conftest.err conftest.$ac_ext
16248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249 echo "${ECHO_T}$ac_header_preproc" >&6
16250
16251 # So? What about this header?
16252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16253 yes:no: )
16254 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16255 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16257 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16259 ;;
16260 no:yes:* )
16261 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16262 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16264 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16266 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16268 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16272 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16273 (
16274 cat <<\_ASBOX
16275 ## ------------------------------------------ ##
16276 ## Report this to the AC_PACKAGE_NAME lists. ##
16277 ## ------------------------------------------ ##
16278 _ASBOX
16279 ) |
16280 sed "s/^/$as_me: WARNING: /" >&2
16281 ;;
16282 esac
16283 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16284 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16285 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16289 fi
16290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16291 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16292
16293 fi
16294 if test $ac_cv_header_sys_cpustats_h = yes; then
16295 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16296 #define UMAX 1
16297 _ACEOF
16298
16299 fi
16300
16301
16302 fi
16303
16304 if test $ac_have_func = no; then
16305
16306 for ac_header in mach/mach.h
16307 do
16308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16310 echo "$as_me:$LINENO: checking for $ac_header" >&5
16311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 fi
16315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16317 else
16318 # Is the header compilable?
16319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16328 #include <$ac_header>
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16332 (eval $ac_compile) 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag"
16340 || test ! -s conftest.err'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_header_compiler=no
16358 fi
16359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361 echo "${ECHO_T}$ac_header_compiler" >&6
16362
16363 # Is the header present?
16364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 #include <$ac_header>
16373 _ACEOF
16374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } >/dev/null; then
16382 if test -s conftest.err; then
16383 ac_cpp_err=$ac_c_preproc_warn_flag
16384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16385 else
16386 ac_cpp_err=
16387 fi
16388 else
16389 ac_cpp_err=yes
16390 fi
16391 if test -z "$ac_cpp_err"; then
16392 ac_header_preproc=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_header_preproc=no
16398 fi
16399 rm -f conftest.err conftest.$ac_ext
16400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401 echo "${ECHO_T}$ac_header_preproc" >&6
16402
16403 # So? What about this header?
16404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16405 yes:no: )
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16410 ac_header_preproc=yes
16411 ;;
16412 no:yes:* )
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16425 (
16426 cat <<\_ASBOX
16427 ## ------------------------------------------ ##
16428 ## Report this to the AC_PACKAGE_NAME lists. ##
16429 ## ------------------------------------------ ##
16430 _ASBOX
16431 ) |
16432 sed "s/^/$as_me: WARNING: /" >&2
16433 ;;
16434 esac
16435 echo "$as_me:$LINENO: checking for $ac_header" >&5
16436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440 eval "$as_ac_Header=\$ac_header_preproc"
16441 fi
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16444
16445 fi
16446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16449 _ACEOF
16450
16451 fi
16452
16453 done
16454
16455 fi
16456
16457
16458 for ac_header in nlist.h
16459 do
16460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16462 echo "$as_me:$LINENO: checking for $ac_header" >&5
16463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 fi
16467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16469 else
16470 # Is the header compilable?
16471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 $ac_includes_default
16480 #include <$ac_header>
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_header_compiler=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_header_compiler=no
16510 fi
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16513 echo "${ECHO_T}$ac_header_compiler" >&6
16514
16515 # Is the header present?
16516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <$ac_header>
16525 _ACEOF
16526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16537 else
16538 ac_cpp_err=
16539 fi
16540 else
16541 ac_cpp_err=yes
16542 fi
16543 if test -z "$ac_cpp_err"; then
16544 ac_header_preproc=yes
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_header_preproc=no
16550 fi
16551 rm -f conftest.err conftest.$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16553 echo "${ECHO_T}$ac_header_preproc" >&6
16554
16555 # So? What about this header?
16556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16557 yes:no: )
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16562 ac_header_preproc=yes
16563 ;;
16564 no:yes:* )
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16577 (
16578 cat <<\_ASBOX
16579 ## ------------------------------------------ ##
16580 ## Report this to the AC_PACKAGE_NAME lists. ##
16581 ## ------------------------------------------ ##
16582 _ASBOX
16583 ) |
16584 sed "s/^/$as_me: WARNING: /" >&2
16585 ;;
16586 esac
16587 echo "$as_me:$LINENO: checking for $ac_header" >&5
16588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592 eval "$as_ac_Header=\$ac_header_preproc"
16593 fi
16594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16596
16597 fi
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601 _ACEOF
16602 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16603 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16604 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607 cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h. */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16613 #include <nlist.h>
16614
16615 int
16616 main ()
16617 {
16618 static struct nlist ac_aggr;
16619 if (ac_aggr.n_un.n_name)
16620 return 0;
16621 ;
16622 return 0;
16623 }
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627 (eval $ac_compile) 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag"
16635 || test ! -s conftest.err'
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 ac_cv_member_struct_nlist_n_un_n_name=yes
16648 else
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 cat >conftest.$ac_ext <<_ACEOF
16653 /* confdefs.h. */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 #include <nlist.h>
16659
16660 int
16661 main ()
16662 {
16663 static struct nlist ac_aggr;
16664 if (sizeof ac_aggr.n_un.n_name)
16665 return 0;
16666 ;
16667 return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest.$ac_objext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_member_struct_nlist_n_un_n_name=yes
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ac_cv_member_struct_nlist_n_un_n_name=no
16698 fi
16699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16704 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16705 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16706
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16709 _ACEOF
16710
16711
16712 cat >>confdefs.h <<\_ACEOF
16713 #define NLIST_NAME_UNION 1
16714 _ACEOF
16715
16716 fi
16717
16718
16719 fi
16720
16721 done
16722
16723 fi
16724 done
16725
16726
16727 # Some definitions of getloadavg require that the program be installed setgid.
16728 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16729 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16730 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16740 #ifdef LDAV_PRIVILEGED
16741 Yowza Am I SETGID yet
16742 #endif
16743 _ACEOF
16744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16745 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16746 ac_cv_func_getloadavg_setgid=yes
16747 else
16748 ac_cv_func_getloadavg_setgid=no
16749 fi
16750 rm -f conftest*
16751
16752 fi
16753 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16754 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16755 if test $ac_cv_func_getloadavg_setgid = yes; then
16756 NEED_SETGID=true
16757
16758 cat >>confdefs.h <<\_ACEOF
16759 #define GETLOADAVG_PRIVILEGED 1
16760 _ACEOF
16761
16762 else
16763 NEED_SETGID=false
16764 fi
16765
16766 if test $ac_cv_func_getloadavg_setgid = yes; then
16767 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16768 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16769 if test "${ac_cv_group_kmem+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16773 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16774 # If we got an error (system does not support symlinks), try without -L.
16775 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16776 ac_cv_group_kmem=`echo $ac_ls_output \
16777 | sed -ne 's/[ ][ ]*/ /g;
16778 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16779 / /s/.* //;p;'`
16780
16781 fi
16782 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16783 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16784 KMEM_GROUP=$ac_cv_group_kmem
16785 fi
16786 if test "x$ac_save_LIBS" = x; then
16787 GETLOADAVG_LIBS=$LIBS
16788 else
16789 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16790 fi
16791 LIBS=$ac_save_LIBS
16792
16793
16794
16795 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16796 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16797 if test "${ac_cv_sys_largefile_source+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 while :; do
16801 ac_cv_sys_largefile_source=no
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <stdio.h>
16809 int
16810 main ()
16811 {
16812 return !fseeko;
16813 ;
16814 return 0;
16815 }
16816 _ACEOF
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 break
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844 fi
16845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #define _LARGEFILE_SOURCE 1
16853 #include <stdio.h>
16854 int
16855 main ()
16856 {
16857 return !fseeko;
16858 ;
16859 return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_cv_sys_largefile_source=1; break
16885 else
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 break
16892 done
16893 fi
16894 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16895 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16896 if test "$ac_cv_sys_largefile_source" != no; then
16897
16898 cat >>confdefs.h <<_ACEOF
16899 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16900 _ACEOF
16901
16902 fi
16903 rm -f conftest*
16904
16905 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16906 # in glibc 2.1.3, but that breaks too many other things.
16907 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16908 echo "$as_me:$LINENO: checking for fseeko" >&5
16909 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16910 if test "${ac_cv_func_fseeko+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <stdio.h>
16920 int
16921 main ()
16922 {
16923 return fseeko && fseeko (stdin, 0, 0);
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930 (eval $ac_link) 2>conftest.er1
16931 ac_status=$?
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_c_werror_flag"
16938 || test ! -s conftest.err'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_func_fseeko=yes
16951 else
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_func_fseeko=no
16956 fi
16957 rm -f conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16959 fi
16960 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16961 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16962 if test $ac_cv_func_fseeko = yes; then
16963
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_FSEEKO 1
16966 _ACEOF
16967
16968 fi
16969
16970
16971 # Configure getopt.
16972 # getopt.m4 serial 10
16973
16974 # The getopt module assume you want GNU getopt, with getopt_long etc,
16975 # rather than vanilla POSIX getopt. This means your your code should
16976 # always include <getopt.h> for the getopt prototypes.
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988 # Prerequisites of lib/getopt*.
16989
16990
16991
16992
16993 GETOPT_H=
16994
16995 for ac_header in getopt.h
16996 do
16997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16999 echo "$as_me:$LINENO: checking for $ac_header" >&5
17000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 fi
17004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17006 else
17007 # Is the header compilable?
17008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17017 #include <$ac_header>
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_header_compiler=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_header_compiler=no
17047 fi
17048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 echo "${ECHO_T}$ac_header_compiler" >&6
17051
17052 # Is the header present?
17053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17062 _ACEOF
17063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17065 ac_status=$?
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } >/dev/null; then
17071 if test -s conftest.err; then
17072 ac_cpp_err=$ac_c_preproc_warn_flag
17073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17074 else
17075 ac_cpp_err=
17076 fi
17077 else
17078 ac_cpp_err=yes
17079 fi
17080 if test -z "$ac_cpp_err"; then
17081 ac_header_preproc=yes
17082 else
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_header_preproc=no
17087 fi
17088 rm -f conftest.err conftest.$ac_ext
17089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6
17091
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17100 ;;
17101 no:yes:* )
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17114 (
17115 cat <<\_ASBOX
17116 ## ------------------------------------------ ##
17117 ## Report this to the AC_PACKAGE_NAME lists. ##
17118 ## ------------------------------------------ ##
17119 _ASBOX
17120 ) |
17121 sed "s/^/$as_me: WARNING: /" >&2
17122 ;;
17123 esac
17124 echo "$as_me:$LINENO: checking for $ac_header" >&5
17125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129 eval "$as_ac_Header=\$ac_header_preproc"
17130 fi
17131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17133
17134 fi
17135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17136 cat >>confdefs.h <<_ACEOF
17137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17138 _ACEOF
17139
17140 else
17141 GETOPT_H=getopt.h
17142 fi
17143
17144 done
17145
17146 if test -z "$GETOPT_H"; then
17147
17148 for ac_func in getopt_long_only
17149 do
17150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 echo "$as_me:$LINENO: checking for $ac_func" >&5
17152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17153 if eval "test \"\${$as_ac_var+set}\" = set"; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17164 #define $ac_func innocuous_$ac_func
17165
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17170
17171 #ifdef __STDC__
17172 # include <limits.h>
17173 #else
17174 # include <assert.h>
17175 #endif
17176
17177 #undef $ac_func
17178
17179 /* Override any gcc2 internal prototype to avoid an error. */
17180 #ifdef __cplusplus
17181 extern "C"
17182 {
17183 #endif
17184 /* We use char because int might match the return type of a gcc2
17185 builtin and then its argument prototype would still apply. */
17186 char $ac_func ();
17187 /* The GNU C library defines this for functions which it implements
17188 to always fail with ENOSYS. Some functions are actually named
17189 something starting with __ and the normal name is an alias. */
17190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17191 choke me
17192 #else
17193 char (*f) () = $ac_func;
17194 #endif
17195 #ifdef __cplusplus
17196 }
17197 #endif
17198
17199 int
17200 main ()
17201 {
17202 return f != $ac_func;
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17230 else
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 eval "$as_ac_var=no"
17235 fi
17236 rm -f conftest.err conftest.$ac_objext \
17237 conftest$ac_exeext conftest.$ac_ext
17238 fi
17239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17241 if test `eval echo '${'$as_ac_var'}'` = yes; then
17242 cat >>confdefs.h <<_ACEOF
17243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17244 _ACEOF
17245
17246 else
17247 GETOPT_H=getopt.h
17248 fi
17249 done
17250
17251 fi
17252
17253 if test -z "$GETOPT_H"; then
17254 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17255 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17256 if test "${ac_cv_have_decl_optreset+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259 cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h. */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 #include <getopt.h>
17266
17267 int
17268 main ()
17269 {
17270 #ifndef optreset
17271 char *p = (char *) optreset;
17272 #endif
17273
17274 ;
17275 return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280 (eval $ac_compile) 2>conftest.er1
17281 ac_status=$?
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_have_decl_optreset=yes
17301 else
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 ac_cv_have_decl_optreset=no
17306 fi
17307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17308 fi
17309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17310 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17311 if test $ac_cv_have_decl_optreset = yes; then
17312 GETOPT_H=getopt.h
17313 fi
17314
17315 fi
17316
17317 if test -z "$GETOPT_H"; then
17318 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17319 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17320 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 else
17323 if test "$cross_compiling" = yes; then
17324 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17325 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17326 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329 cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h. */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 #include <getopt.h>
17336
17337 int
17338 main ()
17339 {
17340 #ifndef getopt_clip
17341 char *p = (char *) getopt_clip;
17342 #endif
17343
17344 ;
17345 return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_have_decl_getopt_clip=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_cv_have_decl_getopt_clip=no
17376 fi
17377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 fi
17379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17380 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17381 if test $ac_cv_have_decl_getopt_clip = yes; then
17382 gl_cv_func_gnu_getopt=no
17383 else
17384 gl_cv_func_gnu_getopt=yes
17385 fi
17386
17387 else
17388 cat >conftest.$ac_ext <<_ACEOF
17389 /* confdefs.h. */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17394 #include <getopt.h>
17395 int
17396 main ()
17397 {
17398
17399 char *myargv[3];
17400 myargv[0] = "conftest";
17401 myargv[1] = "-+";
17402 myargv[2] = 0;
17403 return getopt (2, myargv, "+a") != '?';
17404
17405 ;
17406 return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest$ac_exeext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411 (eval $ac_link) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 gl_cv_func_gnu_getopt=yes
17421 else
17422 echo "$as_me: program exited with status $ac_status" >&5
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 ( exit $ac_status )
17427 gl_cv_func_gnu_getopt=no
17428 fi
17429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17430 fi
17431 fi
17432 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17433 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17434 if test "$gl_cv_func_gnu_getopt" = "no"; then
17435 GETOPT_H=getopt.h
17436 fi
17437 fi
17438
17439
17440
17441 if test -n "$GETOPT_H"; then
17442
17443
17444 GETOPT_H=getopt.h
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define __GETOPT_PREFIX rpl_
17448 _ACEOF
17449
17450
17451
17452 :
17453 GETOPTOBJS='getopt.o getopt1.o'
17454
17455 fi
17456
17457
17458
17459
17460 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17461 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17462 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465 # Use it with a single arg.
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17473 int
17474 main ()
17475 {
17476 getpgrp (0);
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_func_getpgrp_void=no
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_cv_func_getpgrp_void=yes
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17514 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17515 if test $ac_cv_func_getpgrp_void = yes; then
17516
17517 cat >>confdefs.h <<\_ACEOF
17518 #define GETPGRP_VOID 1
17519 _ACEOF
17520
17521 fi
17522
17523
17524
17525 for ac_func in strftime
17526 do
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17530 if eval "test \"\${$as_ac_var+set}\" = set"; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h. */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541 #define $ac_func innocuous_$ac_func
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef $ac_func
17555
17556 /* Override any gcc2 internal prototype to avoid an error. */
17557 #ifdef __cplusplus
17558 extern "C"
17559 {
17560 #endif
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17563 char $ac_func ();
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17568 choke me
17569 #else
17570 char (*f) () = $ac_func;
17571 #endif
17572 #ifdef __cplusplus
17573 }
17574 #endif
17575
17576 int
17577 main ()
17578 {
17579 return f != $ac_func;
17580 ;
17581 return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 eval "$as_ac_var=yes"
17607 else
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 eval "$as_ac_var=no"
17612 fi
17613 rm -f conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17615 fi
17616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619 cat >>confdefs.h <<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17621 _ACEOF
17622
17623 else
17624 # strftime is in -lintl on SCO UNIX.
17625 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17626 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17627 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-lintl $LIBS"
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638
17639 /* Override any gcc2 internal prototype to avoid an error. */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 /* We use char because int might match the return type of a gcc2
17644 builtin and then its argument prototype would still apply. */
17645 char strftime ();
17646 int
17647 main ()
17648 {
17649 strftime ();
17650 ;
17651 return 0;
17652 }
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17656 (eval $ac_link) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_c_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_lib_intl_strftime=yes
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_cv_lib_intl_strftime=no
17682 fi
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17686 fi
17687 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17688 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17689 if test $ac_cv_lib_intl_strftime = yes; then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_STRFTIME 1
17692 _ACEOF
17693
17694 LIBS="-lintl $LIBS"
17695 fi
17696
17697 fi
17698 done
17699
17700
17701 # UNIX98 PTYs.
17702
17703 for ac_func in grantpt
17704 do
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17708 if eval "test \"\${$as_ac_var+set}\" = set"; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17720
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17725
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17731
17732 #undef $ac_func
17733
17734 /* Override any gcc2 internal prototype to avoid an error. */
17735 #ifdef __cplusplus
17736 extern "C"
17737 {
17738 #endif
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17741 char $ac_func ();
17742 /* The GNU C library defines this for functions which it implements
17743 to always fail with ENOSYS. Some functions are actually named
17744 something starting with __ and the normal name is an alias. */
17745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17746 choke me
17747 #else
17748 char (*f) () = $ac_func;
17749 #endif
17750 #ifdef __cplusplus
17751 }
17752 #endif
17753
17754 int
17755 main ()
17756 {
17757 return f != $ac_func;
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>conftest.er1
17765 ac_status=$?
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_var=yes"
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 eval "$as_ac_var=no"
17790 fi
17791 rm -f conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 fi
17794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17796 if test `eval echo '${'$as_ac_var'}'` = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17799 _ACEOF
17800
17801 fi
17802 done
17803
17804
17805 # PTY-related GNU extensions.
17806
17807 for ac_func in getpt
17808 do
17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17812 if eval "test \"\${$as_ac_var+set}\" = set"; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823 #define $ac_func innocuous_$ac_func
17824
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17829
17830 #ifdef __STDC__
17831 # include <limits.h>
17832 #else
17833 # include <assert.h>
17834 #endif
17835
17836 #undef $ac_func
17837
17838 /* Override any gcc2 internal prototype to avoid an error. */
17839 #ifdef __cplusplus
17840 extern "C"
17841 {
17842 #endif
17843 /* We use char because int might match the return type of a gcc2
17844 builtin and then its argument prototype would still apply. */
17845 char $ac_func ();
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17850 choke me
17851 #else
17852 char (*f) () = $ac_func;
17853 #endif
17854 #ifdef __cplusplus
17855 }
17856 #endif
17857
17858 int
17859 main ()
17860 {
17861 return f != $ac_func;
17862 ;
17863 return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 eval "$as_ac_var=yes"
17889 else
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893 eval "$as_ac_var=no"
17894 fi
17895 rm -f conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 fi
17898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17900 if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17903 _ACEOF
17904
17905 fi
17906 done
17907
17908
17909 # Check this now, so that we will NOT find the above functions in ncurses.
17910 # That is because we have not set up to link ncurses in lib-src.
17911 # It's better to believe a function is not available
17912 # than to expect to find it in ncurses.
17913
17914 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17915 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17916 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919 ac_check_lib_save_LIBS=$LIBS
17920 LIBS="-lncurses $LIBS"
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927
17928 /* Override any gcc2 internal prototype to avoid an error. */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 /* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17934 char tparm ();
17935 int
17936 main ()
17937 {
17938 tparm ();
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest$ac_exeext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_ncurses_tparm=yes
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 ac_cv_lib_ncurses_tparm=no
17971 fi
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17975 fi
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17977 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17978 if test $ac_cv_lib_ncurses_tparm = yes; then
17979 cat >>confdefs.h <<_ACEOF
17980 #define HAVE_LIBNCURSES 1
17981 _ACEOF
17982
17983 LIBS="-lncurses $LIBS"
17984
17985 fi
17986
17987
17988 # Do we need the Hesiod library to provide the support routines?
17989 if test "$with_hesiod" = yes ; then
17990 # Don't set $LIBS here -- see comments above.
17991 resolv=no
17992 echo "$as_me:$LINENO: checking for res_send" >&5
17993 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17994 if test "${ac_cv_func_res_send+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18005 #define res_send innocuous_res_send
18006
18007 /* System header to define __stub macros and hopefully few prototypes,
18008 which can conflict with char res_send (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18011
18012 #ifdef __STDC__
18013 # include <limits.h>
18014 #else
18015 # include <assert.h>
18016 #endif
18017
18018 #undef res_send
18019
18020 /* Override any gcc2 internal prototype to avoid an error. */
18021 #ifdef __cplusplus
18022 extern "C"
18023 {
18024 #endif
18025 /* We use char because int might match the return type of a gcc2
18026 builtin and then its argument prototype would still apply. */
18027 char res_send ();
18028 /* The GNU C library defines this for functions which it implements
18029 to always fail with ENOSYS. Some functions are actually named
18030 something starting with __ and the normal name is an alias. */
18031 #if defined (__stub_res_send) || defined (__stub___res_send)
18032 choke me
18033 #else
18034 char (*f) () = res_send;
18035 #endif
18036 #ifdef __cplusplus
18037 }
18038 #endif
18039
18040 int
18041 main ()
18042 {
18043 return f != res_send;
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext conftest$ac_exeext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050 (eval $ac_link) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_func_res_send=yes
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_func_res_send=no
18076 fi
18077 rm -f conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 fi
18080 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18081 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18082 if test $ac_cv_func_res_send = yes; then
18083 :
18084 else
18085 echo "$as_me:$LINENO: checking for __res_send" >&5
18086 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18087 if test "${ac_cv_func___res_send+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h. */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18098 #define __res_send innocuous___res_send
18099
18100 /* System header to define __stub macros and hopefully few prototypes,
18101 which can conflict with char __res_send (); below.
18102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103 <limits.h> exists even on freestanding compilers. */
18104
18105 #ifdef __STDC__
18106 # include <limits.h>
18107 #else
18108 # include <assert.h>
18109 #endif
18110
18111 #undef __res_send
18112
18113 /* Override any gcc2 internal prototype to avoid an error. */
18114 #ifdef __cplusplus
18115 extern "C"
18116 {
18117 #endif
18118 /* We use char because int might match the return type of a gcc2
18119 builtin and then its argument prototype would still apply. */
18120 char __res_send ();
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined (__stub___res_send) || defined (__stub_____res_send)
18125 choke me
18126 #else
18127 char (*f) () = __res_send;
18128 #endif
18129 #ifdef __cplusplus
18130 }
18131 #endif
18132
18133 int
18134 main ()
18135 {
18136 return f != __res_send;
18137 ;
18138 return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest$ac_exeext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_func___res_send=yes
18164 else
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 ac_cv_func___res_send=no
18169 fi
18170 rm -f conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 fi
18173 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18174 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18175 if test $ac_cv_func___res_send = yes; then
18176 :
18177 else
18178 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18179 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18180 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183 ac_check_lib_save_LIBS=$LIBS
18184 LIBS="-lresolv $LIBS"
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191
18192 /* Override any gcc2 internal prototype to avoid an error. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 /* We use char because int might match the return type of a gcc2
18197 builtin and then its argument prototype would still apply. */
18198 char res_send ();
18199 int
18200 main ()
18201 {
18202 res_send ();
18203 ;
18204 return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest$ac_exeext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_lib_resolv_res_send=yes
18230 else
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234 ac_cv_lib_resolv_res_send=no
18235 fi
18236 rm -f conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 LIBS=$ac_check_lib_save_LIBS
18239 fi
18240 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18241 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18242 if test $ac_cv_lib_resolv_res_send = yes; then
18243 resolv=yes
18244 else
18245 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18246 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18247 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 ac_check_lib_save_LIBS=$LIBS
18251 LIBS="-lresolv $LIBS"
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258
18259 /* Override any gcc2 internal prototype to avoid an error. */
18260 #ifdef __cplusplus
18261 extern "C"
18262 #endif
18263 /* We use char because int might match the return type of a gcc2
18264 builtin and then its argument prototype would still apply. */
18265 char __res_send ();
18266 int
18267 main ()
18268 {
18269 __res_send ();
18270 ;
18271 return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext conftest$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest$ac_exeext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_lib_resolv___res_send=yes
18297 else
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301 ac_cv_lib_resolv___res_send=no
18302 fi
18303 rm -f conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18306 fi
18307 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18308 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18309 if test $ac_cv_lib_resolv___res_send = yes; then
18310 resolv=yes
18311 fi
18312
18313 fi
18314
18315 fi
18316
18317 fi
18318
18319 if test "$resolv" = yes ; then
18320 RESOLVLIB=-lresolv
18321
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE_LIBRESOLV 1
18324 _ACEOF
18325
18326 else
18327 RESOLVLIB=
18328 fi
18329 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18330 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18331 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h. */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18342 #define hes_getmailhost innocuous_hes_getmailhost
18343
18344 /* System header to define __stub macros and hopefully few prototypes,
18345 which can conflict with char hes_getmailhost (); below.
18346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18347 <limits.h> exists even on freestanding compilers. */
18348
18349 #ifdef __STDC__
18350 # include <limits.h>
18351 #else
18352 # include <assert.h>
18353 #endif
18354
18355 #undef hes_getmailhost
18356
18357 /* Override any gcc2 internal prototype to avoid an error. */
18358 #ifdef __cplusplus
18359 extern "C"
18360 {
18361 #endif
18362 /* We use char because int might match the return type of a gcc2
18363 builtin and then its argument prototype would still apply. */
18364 char hes_getmailhost ();
18365 /* The GNU C library defines this for functions which it implements
18366 to always fail with ENOSYS. Some functions are actually named
18367 something starting with __ and the normal name is an alias. */
18368 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18369 choke me
18370 #else
18371 char (*f) () = hes_getmailhost;
18372 #endif
18373 #ifdef __cplusplus
18374 }
18375 #endif
18376
18377 int
18378 main ()
18379 {
18380 return f != hes_getmailhost;
18381 ;
18382 return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_func_hes_getmailhost=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_func_hes_getmailhost=no
18413 fi
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 fi
18417 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18418 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18419 if test $ac_cv_func_hes_getmailhost = yes; then
18420 :
18421 else
18422 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18423 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18424 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427 ac_check_lib_save_LIBS=$LIBS
18428 LIBS="-lhesiod $RESOLVLIB $LIBS"
18429 cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h. */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435
18436 /* Override any gcc2 internal prototype to avoid an error. */
18437 #ifdef __cplusplus
18438 extern "C"
18439 #endif
18440 /* We use char because int might match the return type of a gcc2
18441 builtin and then its argument prototype would still apply. */
18442 char hes_getmailhost ();
18443 int
18444 main ()
18445 {
18446 hes_getmailhost ();
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18453 (eval $ac_link) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_lib_hesiod_hes_getmailhost=yes
18474 else
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 ac_cv_lib_hesiod_hes_getmailhost=no
18479 fi
18480 rm -f conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18483 fi
18484 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18485 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18486 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18487
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_LIBHESIOD 1
18490 _ACEOF
18491
18492 else
18493 :
18494 fi
18495
18496 fi
18497
18498 fi
18499
18500 # These tell us which Kerberos-related libraries to use.
18501 if test "${with_kerberos+set}" = set; then
18502
18503 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18504 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18505 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-lcom_err $LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516
18517 /* Override any gcc2 internal prototype to avoid an error. */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18523 char com_err ();
18524 int
18525 main ()
18526 {
18527 com_err ();
18528 ;
18529 return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18535 ac_status=$?
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag"
18542 || test ! -s conftest.err'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_com_err_com_err=yes
18555 else
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_lib_com_err_com_err=no
18560 fi
18561 rm -f conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18566 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18567 if test $ac_cv_lib_com_err_com_err = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_LIBCOM_ERR 1
18570 _ACEOF
18571
18572 LIBS="-lcom_err $LIBS"
18573
18574 fi
18575
18576
18577 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18578 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18579 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 ac_check_lib_save_LIBS=$LIBS
18583 LIBS="-lk5crypto $LIBS"
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590
18591 /* Override any gcc2 internal prototype to avoid an error. */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 /* We use char because int might match the return type of a gcc2
18596 builtin and then its argument prototype would still apply. */
18597 char mit_des_cbc_encrypt ();
18598 int
18599 main ()
18600 {
18601 mit_des_cbc_encrypt ();
18602 ;
18603 return 0;
18604 }
18605 _ACEOF
18606 rm -f conftest.$ac_objext conftest$ac_exeext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608 (eval $ac_link) 2>conftest.er1
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -z "$ac_c_werror_flag"
18616 || test ! -s conftest.err'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18629 else
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18634 fi
18635 rm -f conftest.err conftest.$ac_objext \
18636 conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18638 fi
18639 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18640 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18641 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_LIBK5CRYPTO 1
18644 _ACEOF
18645
18646 LIBS="-lk5crypto $LIBS"
18647
18648 fi
18649
18650
18651 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18652 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18653 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656 ac_check_lib_save_LIBS=$LIBS
18657 LIBS="-lcrypto $LIBS"
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664
18665 /* Override any gcc2 internal prototype to avoid an error. */
18666 #ifdef __cplusplus
18667 extern "C"
18668 #endif
18669 /* We use char because int might match the return type of a gcc2
18670 builtin and then its argument prototype would still apply. */
18671 char mit_des_cbc_encrypt ();
18672 int
18673 main ()
18674 {
18675 mit_des_cbc_encrypt ();
18676 ;
18677 return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18708 fi
18709 rm -f conftest.err conftest.$ac_objext \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18712 fi
18713 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18714 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18715 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18716 cat >>confdefs.h <<_ACEOF
18717 #define HAVE_LIBCRYPTO 1
18718 _ACEOF
18719
18720 LIBS="-lcrypto $LIBS"
18721
18722 fi
18723
18724
18725 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18726 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18727 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 ac_check_lib_save_LIBS=$LIBS
18731 LIBS="-lkrb5 $LIBS"
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h. */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738
18739 /* Override any gcc2 internal prototype to avoid an error. */
18740 #ifdef __cplusplus
18741 extern "C"
18742 #endif
18743 /* We use char because int might match the return type of a gcc2
18744 builtin and then its argument prototype would still apply. */
18745 char krb5_init_context ();
18746 int
18747 main ()
18748 {
18749 krb5_init_context ();
18750 ;
18751 return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag"
18764 || test ! -s conftest.err'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_lib_krb5_krb5_init_context=yes
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 ac_cv_lib_krb5_krb5_init_context=no
18782 fi
18783 rm -f conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18786 fi
18787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18788 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18789 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_LIBKRB5 1
18792 _ACEOF
18793
18794 LIBS="-lkrb5 $LIBS"
18795
18796 fi
18797
18798 if test "${with_kerberos5+set}" != set; then
18799
18800 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18801 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18802 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-ldes425 $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813
18814 /* Override any gcc2 internal prototype to avoid an error. */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 /* We use char because int might match the return type of a gcc2
18819 builtin and then its argument prototype would still apply. */
18820 char des_cbc_encrypt ();
18821 int
18822 main ()
18823 {
18824 des_cbc_encrypt ();
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_des425_des_cbc_encrypt=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_cv_lib_des425_des_cbc_encrypt=no
18857 fi
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18861 fi
18862 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18863 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18864 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18865 cat >>confdefs.h <<_ACEOF
18866 #define HAVE_LIBDES425 1
18867 _ACEOF
18868
18869 LIBS="-ldes425 $LIBS"
18870
18871 else
18872
18873 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18874 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18875 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-ldes $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886
18887 /* Override any gcc2 internal prototype to avoid an error. */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 /* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18893 char des_cbc_encrypt ();
18894 int
18895 main ()
18896 {
18897 des_cbc_encrypt ();
18898 ;
18899 return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904 (eval $ac_link) 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; } &&
18918 { ac_try='test -s conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_lib_des_des_cbc_encrypt=yes
18925 else
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_cv_lib_des_des_cbc_encrypt=no
18930 fi
18931 rm -f conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18934 fi
18935 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18936 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18937 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define HAVE_LIBDES 1
18940 _ACEOF
18941
18942 LIBS="-ldes $LIBS"
18943
18944 fi
18945
18946 fi
18947
18948
18949 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18950 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18951 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lkrb4 $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962
18963 /* Override any gcc2 internal prototype to avoid an error. */
18964 #ifdef __cplusplus
18965 extern "C"
18966 #endif
18967 /* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969 char krb_get_cred ();
18970 int
18971 main ()
18972 {
18973 krb_get_cred ();
18974 ;
18975 return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18980 (eval $ac_link) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag"
18988 || test ! -s conftest.err'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest$ac_exeext'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_cv_lib_krb4_krb_get_cred=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_cv_lib_krb4_krb_get_cred=no
19006 fi
19007 rm -f conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19009 LIBS=$ac_check_lib_save_LIBS
19010 fi
19011 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19012 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19013 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19014 cat >>confdefs.h <<_ACEOF
19015 #define HAVE_LIBKRB4 1
19016 _ACEOF
19017
19018 LIBS="-lkrb4 $LIBS"
19019
19020 else
19021
19022 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19023 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19024 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19027 ac_check_lib_save_LIBS=$LIBS
19028 LIBS="-lkrb $LIBS"
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h. */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035
19036 /* Override any gcc2 internal prototype to avoid an error. */
19037 #ifdef __cplusplus
19038 extern "C"
19039 #endif
19040 /* We use char because int might match the return type of a gcc2
19041 builtin and then its argument prototype would still apply. */
19042 char krb_get_cred ();
19043 int
19044 main ()
19045 {
19046 krb_get_cred ();
19047 ;
19048 return 0;
19049 }
19050 _ACEOF
19051 rm -f conftest.$ac_objext conftest$ac_exeext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19053 (eval $ac_link) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_lib_krb_krb_get_cred=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 ac_cv_lib_krb_krb_get_cred=no
19079 fi
19080 rm -f conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19083 fi
19084 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19085 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19086 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_LIBKRB 1
19089 _ACEOF
19090
19091 LIBS="-lkrb $LIBS"
19092
19093 fi
19094
19095 fi
19096
19097 fi
19098
19099 if test "${with_kerberos5+set}" = set; then
19100
19101 for ac_header in krb5.h
19102 do
19103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 fi
19110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19112 else
19113 # Is the header compilable?
19114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h. */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19123 #include <$ac_header>
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_header_compiler=yes
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 ac_header_compiler=no
19153 fi
19154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19156 echo "${ECHO_T}$ac_header_compiler" >&6
19157
19158 # Is the header present?
19159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h. */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <$ac_header>
19168 _ACEOF
19169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } >/dev/null; then
19177 if test -s conftest.err; then
19178 ac_cpp_err=$ac_c_preproc_warn_flag
19179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19180 else
19181 ac_cpp_err=
19182 fi
19183 else
19184 ac_cpp_err=yes
19185 fi
19186 if test -z "$ac_cpp_err"; then
19187 ac_header_preproc=yes
19188 else
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192 ac_header_preproc=no
19193 fi
19194 rm -f conftest.err conftest.$ac_ext
19195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19196 echo "${ECHO_T}$ac_header_preproc" >&6
19197
19198 # So? What about this header?
19199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19200 yes:no: )
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19205 ac_header_preproc=yes
19206 ;;
19207 no:yes:* )
19208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19220 (
19221 cat <<\_ASBOX
19222 ## ------------------------------------------ ##
19223 ## Report this to the AC_PACKAGE_NAME lists. ##
19224 ## ------------------------------------------ ##
19225 _ASBOX
19226 ) |
19227 sed "s/^/$as_me: WARNING: /" >&2
19228 ;;
19229 esac
19230 echo "$as_me:$LINENO: checking for $ac_header" >&5
19231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 eval "$as_ac_Header=\$ac_header_preproc"
19236 fi
19237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19239
19240 fi
19241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244 _ACEOF
19245
19246 fi
19247
19248 done
19249
19250 else
19251
19252 for ac_header in des.h
19253 do
19254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19256 echo "$as_me:$LINENO: checking for $ac_header" >&5
19257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 fi
19261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19263 else
19264 # Is the header compilable?
19265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 $ac_includes_default
19274 #include <$ac_header>
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_header_compiler=yes
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_header_compiler=no
19304 fi
19305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19307 echo "${ECHO_T}$ac_header_compiler" >&6
19308
19309 # Is the header present?
19310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h. */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <$ac_header>
19319 _ACEOF
19320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } >/dev/null; then
19328 if test -s conftest.err; then
19329 ac_cpp_err=$ac_c_preproc_warn_flag
19330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19331 else
19332 ac_cpp_err=
19333 fi
19334 else
19335 ac_cpp_err=yes
19336 fi
19337 if test -z "$ac_cpp_err"; then
19338 ac_header_preproc=yes
19339 else
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343 ac_header_preproc=no
19344 fi
19345 rm -f conftest.err conftest.$ac_ext
19346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19347 echo "${ECHO_T}$ac_header_preproc" >&6
19348
19349 # So? What about this header?
19350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19351 yes:no: )
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19356 ac_header_preproc=yes
19357 ;;
19358 no:yes:* )
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19371 (
19372 cat <<\_ASBOX
19373 ## ------------------------------------------ ##
19374 ## Report this to the AC_PACKAGE_NAME lists. ##
19375 ## ------------------------------------------ ##
19376 _ASBOX
19377 ) |
19378 sed "s/^/$as_me: WARNING: /" >&2
19379 ;;
19380 esac
19381 echo "$as_me:$LINENO: checking for $ac_header" >&5
19382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386 eval "$as_ac_Header=\$ac_header_preproc"
19387 fi
19388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19390
19391 fi
19392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19395 _ACEOF
19396
19397 else
19398
19399 for ac_header in kerberosIV/des.h
19400 do
19401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19403 echo "$as_me:$LINENO: checking for $ac_header" >&5
19404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 fi
19408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19410 else
19411 # Is the header compilable?
19412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 $ac_includes_default
19421 #include <$ac_header>
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest.$ac_objext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_header_compiler=yes
19446 else
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 ac_header_compiler=no
19451 fi
19452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19454 echo "${ECHO_T}$ac_header_compiler" >&6
19455
19456 # Is the header present?
19457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h. */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <$ac_header>
19466 _ACEOF
19467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } >/dev/null; then
19475 if test -s conftest.err; then
19476 ac_cpp_err=$ac_c_preproc_warn_flag
19477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19478 else
19479 ac_cpp_err=
19480 fi
19481 else
19482 ac_cpp_err=yes
19483 fi
19484 if test -z "$ac_cpp_err"; then
19485 ac_header_preproc=yes
19486 else
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ac_header_preproc=no
19491 fi
19492 rm -f conftest.err conftest.$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19494 echo "${ECHO_T}$ac_header_preproc" >&6
19495
19496 # So? What about this header?
19497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19498 yes:no: )
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19503 ac_header_preproc=yes
19504 ;;
19505 no:yes:* )
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19518 (
19519 cat <<\_ASBOX
19520 ## ------------------------------------------ ##
19521 ## Report this to the AC_PACKAGE_NAME lists. ##
19522 ## ------------------------------------------ ##
19523 _ASBOX
19524 ) |
19525 sed "s/^/$as_me: WARNING: /" >&2
19526 ;;
19527 esac
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533 eval "$as_ac_Header=\$ac_header_preproc"
19534 fi
19535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19537
19538 fi
19539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542 _ACEOF
19543
19544 else
19545
19546 for ac_header in kerberos/des.h
19547 do
19548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19550 echo "$as_me:$LINENO: checking for $ac_header" >&5
19551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 fi
19555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19557 else
19558 # Is the header compilable?
19559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 $ac_includes_default
19568 #include <$ac_header>
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_header_compiler=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_header_compiler=no
19598 fi
19599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19601 echo "${ECHO_T}$ac_header_compiler" >&6
19602
19603 # Is the header present?
19604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <$ac_header>
19613 _ACEOF
19614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } >/dev/null; then
19622 if test -s conftest.err; then
19623 ac_cpp_err=$ac_c_preproc_warn_flag
19624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19625 else
19626 ac_cpp_err=
19627 fi
19628 else
19629 ac_cpp_err=yes
19630 fi
19631 if test -z "$ac_cpp_err"; then
19632 ac_header_preproc=yes
19633 else
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ac_header_preproc=no
19638 fi
19639 rm -f conftest.err conftest.$ac_ext
19640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19641 echo "${ECHO_T}$ac_header_preproc" >&6
19642
19643 # So? What about this header?
19644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19645 yes:no: )
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19650 ac_header_preproc=yes
19651 ;;
19652 no:yes:* )
19653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19665 (
19666 cat <<\_ASBOX
19667 ## ------------------------------------------ ##
19668 ## Report this to the AC_PACKAGE_NAME lists. ##
19669 ## ------------------------------------------ ##
19670 _ASBOX
19671 ) |
19672 sed "s/^/$as_me: WARNING: /" >&2
19673 ;;
19674 esac
19675 echo "$as_me:$LINENO: checking for $ac_header" >&5
19676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680 eval "$as_ac_Header=\$ac_header_preproc"
19681 fi
19682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19684
19685 fi
19686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19689 _ACEOF
19690
19691 fi
19692
19693 done
19694
19695 fi
19696
19697 done
19698
19699 fi
19700
19701 done
19702
19703
19704 for ac_header in krb.h
19705 do
19706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19708 echo "$as_me:$LINENO: checking for $ac_header" >&5
19709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 fi
19713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19715 else
19716 # Is the header compilable?
19717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 $ac_includes_default
19726 #include <$ac_header>
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_header_compiler=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_header_compiler=no
19756 fi
19757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759 echo "${ECHO_T}$ac_header_compiler" >&6
19760
19761 # Is the header present?
19762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h. */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 #include <$ac_header>
19771 _ACEOF
19772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev/null; then
19780 if test -s conftest.err; then
19781 ac_cpp_err=$ac_c_preproc_warn_flag
19782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19783 else
19784 ac_cpp_err=
19785 fi
19786 else
19787 ac_cpp_err=yes
19788 fi
19789 if test -z "$ac_cpp_err"; then
19790 ac_header_preproc=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_header_preproc=no
19796 fi
19797 rm -f conftest.err conftest.$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19799 echo "${ECHO_T}$ac_header_preproc" >&6
19800
19801 # So? What about this header?
19802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19803 yes:no: )
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19808 ac_header_preproc=yes
19809 ;;
19810 no:yes:* )
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19823 (
19824 cat <<\_ASBOX
19825 ## ------------------------------------------ ##
19826 ## Report this to the AC_PACKAGE_NAME lists. ##
19827 ## ------------------------------------------ ##
19828 _ASBOX
19829 ) |
19830 sed "s/^/$as_me: WARNING: /" >&2
19831 ;;
19832 esac
19833 echo "$as_me:$LINENO: checking for $ac_header" >&5
19834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 eval "$as_ac_Header=\$ac_header_preproc"
19839 fi
19840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19842
19843 fi
19844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19845 cat >>confdefs.h <<_ACEOF
19846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19847 _ACEOF
19848
19849 else
19850
19851 for ac_header in kerberosIV/krb.h
19852 do
19853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19855 echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 fi
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862 else
19863 # Is the header compilable?
19864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 $ac_includes_default
19873 #include <$ac_header>
19874 _ACEOF
19875 rm -f conftest.$ac_objext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902 ac_header_compiler=no
19903 fi
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6
19907
19908 # Is the header present?
19909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <$ac_header>
19918 _ACEOF
19919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } >/dev/null; then
19927 if test -s conftest.err; then
19928 ac_cpp_err=$ac_c_preproc_warn_flag
19929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19930 else
19931 ac_cpp_err=
19932 fi
19933 else
19934 ac_cpp_err=yes
19935 fi
19936 if test -z "$ac_cpp_err"; then
19937 ac_header_preproc=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942 ac_header_preproc=no
19943 fi
19944 rm -f conftest.err conftest.$ac_ext
19945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19946 echo "${ECHO_T}$ac_header_preproc" >&6
19947
19948 # So? What about this header?
19949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19950 yes:no: )
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19955 ac_header_preproc=yes
19956 ;;
19957 no:yes:* )
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19970 (
19971 cat <<\_ASBOX
19972 ## ------------------------------------------ ##
19973 ## Report this to the AC_PACKAGE_NAME lists. ##
19974 ## ------------------------------------------ ##
19975 _ASBOX
19976 ) |
19977 sed "s/^/$as_me: WARNING: /" >&2
19978 ;;
19979 esac
19980 echo "$as_me:$LINENO: checking for $ac_header" >&5
19981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 eval "$as_ac_Header=\$ac_header_preproc"
19986 fi
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19989
19990 fi
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992 cat >>confdefs.h <<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994 _ACEOF
19995
19996 else
19997
19998 for ac_header in kerberos/krb.h
19999 do
20000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002 echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 fi
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20009 else
20010 # Is the header compilable?
20011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 $ac_includes_default
20020 #include <$ac_header>
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag"
20032 || test ! -s conftest.err'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest.$ac_objext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_header_compiler=yes
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049 ac_header_compiler=no
20050 fi
20051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20053 echo "${ECHO_T}$ac_header_compiler" >&6
20054
20055 # Is the header present?
20056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 #include <$ac_header>
20065 _ACEOF
20066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } >/dev/null; then
20074 if test -s conftest.err; then
20075 ac_cpp_err=$ac_c_preproc_warn_flag
20076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20077 else
20078 ac_cpp_err=
20079 fi
20080 else
20081 ac_cpp_err=yes
20082 fi
20083 if test -z "$ac_cpp_err"; then
20084 ac_header_preproc=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_header_preproc=no
20090 fi
20091 rm -f conftest.err conftest.$ac_ext
20092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20093 echo "${ECHO_T}$ac_header_preproc" >&6
20094
20095 # So? What about this header?
20096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20097 yes:no: )
20098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20102 ac_header_preproc=yes
20103 ;;
20104 no:yes:* )
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20117 (
20118 cat <<\_ASBOX
20119 ## ------------------------------------------ ##
20120 ## Report this to the AC_PACKAGE_NAME lists. ##
20121 ## ------------------------------------------ ##
20122 _ASBOX
20123 ) |
20124 sed "s/^/$as_me: WARNING: /" >&2
20125 ;;
20126 esac
20127 echo "$as_me:$LINENO: checking for $ac_header" >&5
20128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132 eval "$as_ac_Header=\$ac_header_preproc"
20133 fi
20134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20136
20137 fi
20138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20139 cat >>confdefs.h <<_ACEOF
20140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20141 _ACEOF
20142
20143 fi
20144
20145 done
20146
20147 fi
20148
20149 done
20150
20151 fi
20152
20153 done
20154
20155 fi
20156
20157 for ac_header in com_err.h
20158 do
20159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20161 echo "$as_me:$LINENO: checking for $ac_header" >&5
20162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 fi
20166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20168 else
20169 # Is the header compilable?
20170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h. */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 $ac_includes_default
20179 #include <$ac_header>
20180 _ACEOF
20181 rm -f conftest.$ac_objext
20182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183 (eval $ac_compile) 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -z "$ac_c_werror_flag"
20191 || test ! -s conftest.err'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_header_compiler=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 ac_header_compiler=no
20209 fi
20210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20212 echo "${ECHO_T}$ac_header_compiler" >&6
20213
20214 # Is the header present?
20215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h. */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <$ac_header>
20224 _ACEOF
20225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev/null; then
20233 if test -s conftest.err; then
20234 ac_cpp_err=$ac_c_preproc_warn_flag
20235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20236 else
20237 ac_cpp_err=
20238 fi
20239 else
20240 ac_cpp_err=yes
20241 fi
20242 if test -z "$ac_cpp_err"; then
20243 ac_header_preproc=yes
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_header_preproc=no
20249 fi
20250 rm -f conftest.err conftest.$ac_ext
20251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20252 echo "${ECHO_T}$ac_header_preproc" >&6
20253
20254 # So? What about this header?
20255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20256 yes:no: )
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20261 ac_header_preproc=yes
20262 ;;
20263 no:yes:* )
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20276 (
20277 cat <<\_ASBOX
20278 ## ------------------------------------------ ##
20279 ## Report this to the AC_PACKAGE_NAME lists. ##
20280 ## ------------------------------------------ ##
20281 _ASBOX
20282 ) |
20283 sed "s/^/$as_me: WARNING: /" >&2
20284 ;;
20285 esac
20286 echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 eval "$as_ac_Header=\$ac_header_preproc"
20292 fi
20293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20295
20296 fi
20297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20298 cat >>confdefs.h <<_ACEOF
20299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20300 _ACEOF
20301
20302 fi
20303
20304 done
20305
20306 fi
20307
20308 # Solaris requires -lintl if you want strerror (which calls dgettext)
20309 # to return localized messages.
20310
20311 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20312 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20313 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316 ac_check_lib_save_LIBS=$LIBS
20317 LIBS="-lintl $LIBS"
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h. */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324
20325 /* Override any gcc2 internal prototype to avoid an error. */
20326 #ifdef __cplusplus
20327 extern "C"
20328 #endif
20329 /* We use char because int might match the return type of a gcc2
20330 builtin and then its argument prototype would still apply. */
20331 char dgettext ();
20332 int
20333 main ()
20334 {
20335 dgettext ();
20336 ;
20337 return 0;
20338 }
20339 _ACEOF
20340 rm -f conftest.$ac_objext conftest$ac_exeext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20342 (eval $ac_link) 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -z "$ac_c_werror_flag"
20350 || test ! -s conftest.err'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest$ac_exeext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_lib_intl_dgettext=yes
20363 else
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_cv_lib_intl_dgettext=no
20368 fi
20369 rm -f conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20372 fi
20373 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20374 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20375 if test $ac_cv_lib_intl_dgettext = yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define HAVE_LIBINTL 1
20378 _ACEOF
20379
20380 LIBS="-lintl $LIBS"
20381
20382 fi
20383
20384
20385 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20386 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20387 if test "${emacs_cv_localtime_cache+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 if test x$ac_cv_func_tzset = xyes; then
20391 if test "$cross_compiling" = yes; then
20392 # If we have tzset, assume the worst when cross-compiling.
20393 emacs_cv_localtime_cache=yes
20394 else
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <time.h>
20402 extern char **environ;
20403 unset_TZ ()
20404 {
20405 char **from, **to;
20406 for (to = from = environ; (*to = *from); from++)
20407 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20408 to++;
20409 }
20410 char TZ_GMT0[] = "TZ=GMT0";
20411 char TZ_PST8[] = "TZ=PST8";
20412 main()
20413 {
20414 time_t now = time ((time_t *) 0);
20415 int hour_GMT0, hour_unset;
20416 if (putenv (TZ_GMT0) != 0)
20417 exit (1);
20418 hour_GMT0 = localtime (&now)->tm_hour;
20419 unset_TZ ();
20420 hour_unset = localtime (&now)->tm_hour;
20421 if (putenv (TZ_PST8) != 0)
20422 exit (1);
20423 if (localtime (&now)->tm_hour == hour_GMT0)
20424 exit (1);
20425 unset_TZ ();
20426 if (localtime (&now)->tm_hour != hour_unset)
20427 exit (1);
20428 exit (0);
20429 }
20430 _ACEOF
20431 rm -f conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 emacs_cv_localtime_cache=no
20443 else
20444 echo "$as_me: program exited with status $ac_status" >&5
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ( exit $ac_status )
20449 emacs_cv_localtime_cache=yes
20450 fi
20451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20452 fi
20453 else
20454 # If we lack tzset, report that localtime does not cache TZ,
20455 # since we can't invalidate the cache if we don't have tzset.
20456 emacs_cv_localtime_cache=no
20457 fi
20458 fi
20459 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20460 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20461 if test $emacs_cv_localtime_cache = yes; then
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define LOCALTIME_CACHE 1
20465 _ACEOF
20466
20467 fi
20468
20469 if test "x$HAVE_TIMEVAL" = xyes; then
20470
20471 for ac_func in gettimeofday
20472 do
20473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_var+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487 #define $ac_func innocuous_$ac_func
20488
20489 /* System header to define __stub macros and hopefully few prototypes,
20490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492 <limits.h> exists even on freestanding compilers. */
20493
20494 #ifdef __STDC__
20495 # include <limits.h>
20496 #else
20497 # include <assert.h>
20498 #endif
20499
20500 #undef $ac_func
20501
20502 /* Override any gcc2 internal prototype to avoid an error. */
20503 #ifdef __cplusplus
20504 extern "C"
20505 {
20506 #endif
20507 /* We use char because int might match the return type of a gcc2
20508 builtin and then its argument prototype would still apply. */
20509 char $ac_func ();
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20514 choke me
20515 #else
20516 char (*f) () = $ac_func;
20517 #endif
20518 #ifdef __cplusplus
20519 }
20520 #endif
20521
20522 int
20523 main ()
20524 {
20525 return f != $ac_func;
20526 ;
20527 return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 eval "$as_ac_var=yes"
20553 else
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 eval "$as_ac_var=no"
20558 fi
20559 rm -f conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20561 fi
20562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20564 if test `eval echo '${'$as_ac_var'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20567 _ACEOF
20568
20569 fi
20570 done
20571
20572 if test $ac_cv_func_gettimeofday = yes; then
20573 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20574 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20575 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584
20585 #ifdef TIME_WITH_SYS_TIME
20586 #include <sys/time.h>
20587 #include <time.h>
20588 #else
20589 #ifdef HAVE_SYS_TIME_H
20590 #include <sys/time.h>
20591 #else
20592 #include <time.h>
20593 #endif
20594 #endif
20595 int
20596 main ()
20597 {
20598 struct timeval time;
20599 gettimeofday (&time, 0);
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 rm -f conftest.$ac_objext
20605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20606 (eval $ac_compile) 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag"
20614 || test ! -s conftest.err'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; } &&
20620 { ac_try='test -s conftest.$ac_objext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 emacs_cv_gettimeofday_two_arguments=yes
20627 else
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631 emacs_cv_gettimeofday_two_arguments=no
20632 fi
20633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20634 fi
20635 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20636 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20637 if test $emacs_cv_gettimeofday_two_arguments = no; then
20638
20639 cat >>confdefs.h <<\_ACEOF
20640 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20641 _ACEOF
20642
20643 fi
20644 fi
20645 fi
20646
20647 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20648 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20649 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20650 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h. */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <sys/types.h>
20660 #include <$ac_cv_struct_tm>
20661
20662
20663 int
20664 main ()
20665 {
20666 static struct tm ac_aggr;
20667 if (ac_aggr.tm_zone)
20668 return 0;
20669 ;
20670 return 0;
20671 }
20672 _ACEOF
20673 rm -f conftest.$ac_objext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try='test -z "$ac_c_werror_flag"
20683 || test ! -s conftest.err'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; } &&
20689 { ac_try='test -s conftest.$ac_objext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_member_struct_tm_tm_zone=yes
20696 else
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 #include <sys/types.h>
20707 #include <$ac_cv_struct_tm>
20708
20709
20710 int
20711 main ()
20712 {
20713 static struct tm ac_aggr;
20714 if (sizeof ac_aggr.tm_zone)
20715 return 0;
20716 ;
20717 return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722 (eval $ac_compile) 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_member_struct_tm_tm_zone=yes
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_cv_member_struct_tm_tm_zone=no
20748 fi
20749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20750 fi
20751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20752 fi
20753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20754 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20755 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_STRUCT_TM_TM_ZONE 1
20759 _ACEOF
20760
20761
20762 fi
20763
20764 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define HAVE_TM_ZONE 1
20768 _ACEOF
20769
20770 else
20771 echo "$as_me:$LINENO: checking for tzname" >&5
20772 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20773 if test "${ac_cv_var_tzname+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #include <time.h>
20783 #ifndef tzname /* For SGI. */
20784 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20785 #endif
20786
20787 int
20788 main ()
20789 {
20790 atoi(*tzname);
20791 ;
20792 return 0;
20793 }
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>conftest.er1
20798 ac_status=$?
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try='test -z "$ac_c_werror_flag"
20805 || test ! -s conftest.err'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; } &&
20811 { ac_try='test -s conftest$ac_exeext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_cv_var_tzname=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ac_cv_var_tzname=no
20823 fi
20824 rm -f conftest.err conftest.$ac_objext \
20825 conftest$ac_exeext conftest.$ac_ext
20826 fi
20827 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20828 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20829 if test $ac_cv_var_tzname = yes; then
20830
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_TZNAME 1
20833 _ACEOF
20834
20835 fi
20836 fi
20837
20838
20839 if test "$ac_cv_func_gettimeofday" = yes; then
20840 echo "$as_me:$LINENO: checking for struct timezone" >&5
20841 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20842 if test "${emacs_cv_struct_timezone+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <sys/time.h>
20852 int
20853 main ()
20854 {
20855 struct timezone tz;
20856 ;
20857 return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 if test "$cross_compiling" = yes; then
20883 emacs_cv_struct_timezone=yes
20884 else
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h. */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891
20892 #ifdef TIME_WITH_SYS_TIME
20893 #include <sys/time.h>
20894 #include <time.h>
20895 #else
20896 #ifdef HAVE_SYS_TIME_H
20897 #include <sys/time.h>
20898 #else
20899 #include <time.h>
20900 #endif
20901 #endif
20902 main () {
20903 struct timeval time;
20904 struct timezone dummy;
20905 exit (gettimeofday (&time, &dummy));
20906 }
20907 _ACEOF
20908 rm -f conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 emacs_cv_struct_timezone=yes
20920 else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ( exit $ac_status )
20926 emacs_cv_struct_timezone=no
20927 fi
20928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929 fi
20930 else
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 emacs_cv_struct_timezone=no
20935 fi
20936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20937 fi
20938 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20939 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20940 fi
20941
20942 ok_so_far=yes
20943 echo "$as_me:$LINENO: checking for socket" >&5
20944 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20945 if test "${ac_cv_func_socket+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20956 #define socket innocuous_socket
20957
20958 /* System header to define __stub macros and hopefully few prototypes,
20959 which can conflict with char socket (); below.
20960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20961 <limits.h> exists even on freestanding compilers. */
20962
20963 #ifdef __STDC__
20964 # include <limits.h>
20965 #else
20966 # include <assert.h>
20967 #endif
20968
20969 #undef socket
20970
20971 /* Override any gcc2 internal prototype to avoid an error. */
20972 #ifdef __cplusplus
20973 extern "C"
20974 {
20975 #endif
20976 /* We use char because int might match the return type of a gcc2
20977 builtin and then its argument prototype would still apply. */
20978 char socket ();
20979 /* The GNU C library defines this for functions which it implements
20980 to always fail with ENOSYS. Some functions are actually named
20981 something starting with __ and the normal name is an alias. */
20982 #if defined (__stub_socket) || defined (__stub___socket)
20983 choke me
20984 #else
20985 char (*f) () = socket;
20986 #endif
20987 #ifdef __cplusplus
20988 }
20989 #endif
20990
20991 int
20992 main ()
20993 {
20994 return f != socket;
20995 ;
20996 return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21001 (eval $ac_link) 2>conftest.er1
21002 ac_status=$?
21003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest$ac_exeext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_cv_func_socket=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026 ac_cv_func_socket=no
21027 fi
21028 rm -f conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21030 fi
21031 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21032 echo "${ECHO_T}$ac_cv_func_socket" >&6
21033 if test $ac_cv_func_socket = yes; then
21034 :
21035 else
21036 ok_so_far=no
21037 fi
21038
21039 if test $ok_so_far = yes; then
21040 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21041 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21042 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21043 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 fi
21046 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21047 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21048 else
21049 # Is the header compilable?
21050 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21051 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 #include <netinet/in.h>
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_header_compiler=yes
21084 else
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21087
21088 ac_header_compiler=no
21089 fi
21090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6
21093
21094 # Is the header present?
21095 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21096 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <netinet/in.h>
21104 _ACEOF
21105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } >/dev/null; then
21113 if test -s conftest.err; then
21114 ac_cpp_err=$ac_c_preproc_warn_flag
21115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21116 else
21117 ac_cpp_err=
21118 fi
21119 else
21120 ac_cpp_err=yes
21121 fi
21122 if test -z "$ac_cpp_err"; then
21123 ac_header_preproc=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_header_preproc=no
21129 fi
21130 rm -f conftest.err conftest.$ac_ext
21131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21132 echo "${ECHO_T}$ac_header_preproc" >&6
21133
21134 # So? What about this header?
21135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21136 yes:no: )
21137 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21138 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21140 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21141 ac_header_preproc=yes
21142 ;;
21143 no:yes:* )
21144 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21145 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21147 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21149 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21151 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21153 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21155 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21156 (
21157 cat <<\_ASBOX
21158 ## ------------------------------------------ ##
21159 ## Report this to the AC_PACKAGE_NAME lists. ##
21160 ## ------------------------------------------ ##
21161 _ASBOX
21162 ) |
21163 sed "s/^/$as_me: WARNING: /" >&2
21164 ;;
21165 esac
21166 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21167 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21168 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171 ac_cv_header_netinet_in_h=$ac_header_preproc
21172 fi
21173 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21174 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21175
21176 fi
21177 if test $ac_cv_header_netinet_in_h = yes; then
21178 :
21179 else
21180 ok_so_far=no
21181 fi
21182
21183
21184 fi
21185 if test $ok_so_far = yes; then
21186 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21187 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21188 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21189 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 fi
21192 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21193 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21194 else
21195 # Is the header compilable?
21196 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21197 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h. */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 $ac_includes_default
21205 #include <arpa/inet.h>
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_header_compiler=yes
21230 else
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 ac_header_compiler=no
21235 fi
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6
21239
21240 # Is the header present?
21241 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21242 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <arpa/inet.h>
21250 _ACEOF
21251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } >/dev/null; then
21259 if test -s conftest.err; then
21260 ac_cpp_err=$ac_c_preproc_warn_flag
21261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21262 else
21263 ac_cpp_err=
21264 fi
21265 else
21266 ac_cpp_err=yes
21267 fi
21268 if test -z "$ac_cpp_err"; then
21269 ac_header_preproc=yes
21270 else
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_header_preproc=no
21275 fi
21276 rm -f conftest.err conftest.$ac_ext
21277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278 echo "${ECHO_T}$ac_header_preproc" >&6
21279
21280 # So? What about this header?
21281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21282 yes:no: )
21283 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21284 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21286 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21287 ac_header_preproc=yes
21288 ;;
21289 no:yes:* )
21290 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21291 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21293 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21295 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21297 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21299 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21301 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21302 (
21303 cat <<\_ASBOX
21304 ## ------------------------------------------ ##
21305 ## Report this to the AC_PACKAGE_NAME lists. ##
21306 ## ------------------------------------------ ##
21307 _ASBOX
21308 ) |
21309 sed "s/^/$as_me: WARNING: /" >&2
21310 ;;
21311 esac
21312 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21313 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21314 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317 ac_cv_header_arpa_inet_h=$ac_header_preproc
21318 fi
21319 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21320 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21321
21322 fi
21323 if test $ac_cv_header_arpa_inet_h = yes; then
21324 :
21325 else
21326 ok_so_far=no
21327 fi
21328
21329
21330 fi
21331 if test $ok_so_far = yes; then
21332
21333 cat >>confdefs.h <<\_ACEOF
21334 #define HAVE_INET_SOCKETS 1
21335 _ACEOF
21336
21337 fi
21338
21339
21340 for ac_header in sys/ioctl.h
21341 do
21342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21344 echo "$as_me:$LINENO: checking for $ac_header" >&5
21345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 fi
21349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21351 else
21352 # Is the header compilable?
21353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h. */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 $ac_includes_default
21362 #include <$ac_header>
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366 (eval $ac_compile) 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest.$ac_objext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_header_compiler=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_header_compiler=no
21392 fi
21393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21395 echo "${ECHO_T}$ac_header_compiler" >&6
21396
21397 # Is the header present?
21398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h. */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 #include <$ac_header>
21407 _ACEOF
21408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } >/dev/null; then
21416 if test -s conftest.err; then
21417 ac_cpp_err=$ac_c_preproc_warn_flag
21418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21419 else
21420 ac_cpp_err=
21421 fi
21422 else
21423 ac_cpp_err=yes
21424 fi
21425 if test -z "$ac_cpp_err"; then
21426 ac_header_preproc=yes
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_header_preproc=no
21432 fi
21433 rm -f conftest.err conftest.$ac_ext
21434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21435 echo "${ECHO_T}$ac_header_preproc" >&6
21436
21437 # So? What about this header?
21438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21439 yes:no: )
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21444 ac_header_preproc=yes
21445 ;;
21446 no:yes:* )
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21459 (
21460 cat <<\_ASBOX
21461 ## ------------------------------------------ ##
21462 ## Report this to the AC_PACKAGE_NAME lists. ##
21463 ## ------------------------------------------ ##
21464 _ASBOX
21465 ) |
21466 sed "s/^/$as_me: WARNING: /" >&2
21467 ;;
21468 esac
21469 echo "$as_me:$LINENO: checking for $ac_header" >&5
21470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474 eval "$as_ac_Header=\$ac_header_preproc"
21475 fi
21476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21478
21479 fi
21480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21483 _ACEOF
21484
21485 fi
21486
21487 done
21488
21489
21490 if test -f /usr/lpp/X11/bin/smt.exp; then
21491
21492 cat >>confdefs.h <<\_ACEOF
21493 #define HAVE_AIX_SMT_EXP 1
21494 _ACEOF
21495
21496 fi
21497
21498 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21499 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21500 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21501 echo "$as_me:$LINENO: result: yes" >&5
21502 echo "${ECHO_T}yes" >&6
21503
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_DEV_PTMX 1
21506 _ACEOF
21507
21508 else
21509 echo "$as_me:$LINENO: result: no" >&5
21510 echo "${ECHO_T}no" >&6
21511 fi
21512
21513 echo "$as_me:$LINENO: checking for pid_t" >&5
21514 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21515 if test "${ac_cv_type_pid_t+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 $ac_includes_default
21525 int
21526 main ()
21527 {
21528 if ((pid_t *) 0)
21529 return 0;
21530 if (sizeof (pid_t))
21531 return 0;
21532 ;
21533 return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21538 (eval $ac_compile) 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
21545 { ac_try='test -z "$ac_c_werror_flag"
21546 || test ! -s conftest.err'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; } &&
21552 { ac_try='test -s conftest.$ac_objext'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_cv_type_pid_t=yes
21559 else
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563 ac_cv_type_pid_t=no
21564 fi
21565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21566 fi
21567 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21568 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21569 if test $ac_cv_type_pid_t = yes; then
21570 :
21571 else
21572
21573 cat >>confdefs.h <<_ACEOF
21574 #define pid_t int
21575 _ACEOF
21576
21577 fi
21578
21579
21580
21581 for ac_header in unistd.h vfork.h
21582 do
21583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21585 echo "$as_me:$LINENO: checking for $ac_header" >&5
21586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 fi
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21592 else
21593 # Is the header compilable?
21594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h. */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 $ac_includes_default
21603 #include <$ac_header>
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21607 (eval $ac_compile) 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try='test -z "$ac_c_werror_flag"
21615 || test ! -s conftest.err'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; } &&
21621 { ac_try='test -s conftest.$ac_objext'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; }; then
21627 ac_header_compiler=yes
21628 else
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632 ac_header_compiler=no
21633 fi
21634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21636 echo "${ECHO_T}$ac_header_compiler" >&6
21637
21638 # Is the header present?
21639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h. */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <$ac_header>
21648 _ACEOF
21649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21651 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } >/dev/null; then
21657 if test -s conftest.err; then
21658 ac_cpp_err=$ac_c_preproc_warn_flag
21659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21660 else
21661 ac_cpp_err=
21662 fi
21663 else
21664 ac_cpp_err=yes
21665 fi
21666 if test -z "$ac_cpp_err"; then
21667 ac_header_preproc=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 ac_header_preproc=no
21673 fi
21674 rm -f conftest.err conftest.$ac_ext
21675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21676 echo "${ECHO_T}$ac_header_preproc" >&6
21677
21678 # So? What about this header?
21679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21680 yes:no: )
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21685 ac_header_preproc=yes
21686 ;;
21687 no:yes:* )
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21700 (
21701 cat <<\_ASBOX
21702 ## ------------------------------------------ ##
21703 ## Report this to the AC_PACKAGE_NAME lists. ##
21704 ## ------------------------------------------ ##
21705 _ASBOX
21706 ) |
21707 sed "s/^/$as_me: WARNING: /" >&2
21708 ;;
21709 esac
21710 echo "$as_me:$LINENO: checking for $ac_header" >&5
21711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715 eval "$as_ac_Header=\$ac_header_preproc"
21716 fi
21717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21719
21720 fi
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724 _ACEOF
21725
21726 fi
21727
21728 done
21729
21730
21731
21732 for ac_func in fork vfork
21733 do
21734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21735 echo "$as_me:$LINENO: checking for $ac_func" >&5
21736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21737 if eval "test \"\${$as_ac_var+set}\" = set"; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21748 #define $ac_func innocuous_$ac_func
21749
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func (); below.
21752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753 <limits.h> exists even on freestanding compilers. */
21754
21755 #ifdef __STDC__
21756 # include <limits.h>
21757 #else
21758 # include <assert.h>
21759 #endif
21760
21761 #undef $ac_func
21762
21763 /* Override any gcc2 internal prototype to avoid an error. */
21764 #ifdef __cplusplus
21765 extern "C"
21766 {
21767 #endif
21768 /* We use char because int might match the return type of a gcc2
21769 builtin and then its argument prototype would still apply. */
21770 char $ac_func ();
21771 /* The GNU C library defines this for functions which it implements
21772 to always fail with ENOSYS. Some functions are actually named
21773 something starting with __ and the normal name is an alias. */
21774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21775 choke me
21776 #else
21777 char (*f) () = $ac_func;
21778 #endif
21779 #ifdef __cplusplus
21780 }
21781 #endif
21782
21783 int
21784 main ()
21785 {
21786 return f != $ac_func;
21787 ;
21788 return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 eval "$as_ac_var=yes"
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 eval "$as_ac_var=no"
21819 fi
21820 rm -f conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21822 fi
21823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21825 if test `eval echo '${'$as_ac_var'}'` = yes; then
21826 cat >>confdefs.h <<_ACEOF
21827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21828 _ACEOF
21829
21830 fi
21831 done
21832
21833 if test "x$ac_cv_func_fork" = xyes; then
21834 echo "$as_me:$LINENO: checking for working fork" >&5
21835 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21836 if test "${ac_cv_func_fork_works+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839 if test "$cross_compiling" = yes; then
21840 ac_cv_func_fork_works=cross
21841 else
21842 cat >conftest.$ac_ext <<_ACEOF
21843 /* By Ruediger Kuhlmann. */
21844 #include <sys/types.h>
21845 #if HAVE_UNISTD_H
21846 # include <unistd.h>
21847 #endif
21848 /* Some systems only have a dummy stub for fork() */
21849 int main ()
21850 {
21851 if (fork() < 0)
21852 exit (1);
21853 exit (0);
21854 }
21855 _ACEOF
21856 rm -f conftest$ac_exeext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21858 (eval $ac_link) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 ac_cv_func_fork_works=yes
21868 else
21869 echo "$as_me: program exited with status $ac_status" >&5
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 ( exit $ac_status )
21874 ac_cv_func_fork_works=no
21875 fi
21876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21877 fi
21878 fi
21879 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21880 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21881
21882 else
21883 ac_cv_func_fork_works=$ac_cv_func_fork
21884 fi
21885 if test "x$ac_cv_func_fork_works" = xcross; then
21886 case $host in
21887 *-*-amigaos* | *-*-msdosdjgpp*)
21888 # Override, as these systems have only a dummy fork() stub
21889 ac_cv_func_fork_works=no
21890 ;;
21891 *)
21892 ac_cv_func_fork_works=yes
21893 ;;
21894 esac
21895 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21896 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21897 fi
21898 ac_cv_func_vfork_works=$ac_cv_func_vfork
21899 if test "x$ac_cv_func_vfork" = xyes; then
21900 echo "$as_me:$LINENO: checking for working vfork" >&5
21901 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21902 if test "${ac_cv_func_vfork_works+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905 if test "$cross_compiling" = yes; then
21906 ac_cv_func_vfork_works=cross
21907 else
21908 cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h. */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 /* Thanks to Paul Eggert for this test. */
21915 #include <stdio.h>
21916 #include <stdlib.h>
21917 #include <sys/types.h>
21918 #include <sys/stat.h>
21919 #include <sys/wait.h>
21920 #if HAVE_UNISTD_H
21921 # include <unistd.h>
21922 #endif
21923 #if HAVE_VFORK_H
21924 # include <vfork.h>
21925 #endif
21926 /* On some sparc systems, changes by the child to local and incoming
21927 argument registers are propagated back to the parent. The compiler
21928 is told about this with #include <vfork.h>, but some compilers
21929 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21930 static variable whose address is put into a register that is
21931 clobbered by the vfork. */
21932 static void
21933 #ifdef __cplusplus
21934 sparc_address_test (int arg)
21935 # else
21936 sparc_address_test (arg) int arg;
21937 #endif
21938 {
21939 static pid_t child;
21940 if (!child) {
21941 child = vfork ();
21942 if (child < 0) {
21943 perror ("vfork");
21944 _exit(2);
21945 }
21946 if (!child) {
21947 arg = getpid();
21948 write(-1, "", 0);
21949 _exit (arg);
21950 }
21951 }
21952 }
21953
21954 int
21955 main ()
21956 {
21957 pid_t parent = getpid ();
21958 pid_t child;
21959
21960 sparc_address_test (0);
21961
21962 child = vfork ();
21963
21964 if (child == 0) {
21965 /* Here is another test for sparc vfork register problems. This
21966 test uses lots of local variables, at least as many local
21967 variables as main has allocated so far including compiler
21968 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21969 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21970 reuse the register of parent for one of the local variables,
21971 since it will think that parent can't possibly be used any more
21972 in this routine. Assigning to the local variable will thus
21973 munge parent in the parent process. */
21974 pid_t
21975 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21976 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21977 /* Convince the compiler that p..p7 are live; otherwise, it might
21978 use the same hardware register for all 8 local variables. */
21979 if (p != p1 || p != p2 || p != p3 || p != p4
21980 || p != p5 || p != p6 || p != p7)
21981 _exit(1);
21982
21983 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21984 from child file descriptors. If the child closes a descriptor
21985 before it execs or exits, this munges the parent's descriptor
21986 as well. Test for this by closing stdout in the child. */
21987 _exit(close(fileno(stdout)) != 0);
21988 } else {
21989 int status;
21990 struct stat st;
21991
21992 while (wait(&status) != child)
21993 ;
21994 exit(
21995 /* Was there some problem with vforking? */
21996 child < 0
21997
21998 /* Did the child fail? (This shouldn't happen.) */
21999 || status
22000
22001 /* Did the vfork/compiler bug occur? */
22002 || parent != getpid()
22003
22004 /* Did the file descriptor bug occur? */
22005 || fstat(fileno(stdout), &st) != 0
22006 );
22007 }
22008 }
22009 _ACEOF
22010 rm -f conftest$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012 (eval $ac_link) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_func_vfork_works=yes
22022 else
22023 echo "$as_me: program exited with status $ac_status" >&5
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027 ( exit $ac_status )
22028 ac_cv_func_vfork_works=no
22029 fi
22030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22031 fi
22032 fi
22033 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22034 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22035
22036 fi;
22037 if test "x$ac_cv_func_fork_works" = xcross; then
22038 ac_cv_func_vfork_works=$ac_cv_func_vfork
22039 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22040 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22041 fi
22042
22043 if test "x$ac_cv_func_vfork_works" = xyes; then
22044
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_WORKING_VFORK 1
22047 _ACEOF
22048
22049 else
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define vfork fork
22053 _ACEOF
22054
22055 fi
22056 if test "x$ac_cv_func_fork_works" = xyes; then
22057
22058 cat >>confdefs.h <<\_ACEOF
22059 #define HAVE_WORKING_FORK 1
22060 _ACEOF
22061
22062 fi
22063
22064
22065 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22066 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22067 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <langinfo.h>
22077 int
22078 main ()
22079 {
22080 char* cs = nl_langinfo(CODESET);
22081 ;
22082 return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -z "$ac_c_werror_flag"
22095 || test ! -s conftest.err'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; } &&
22101 { ac_try='test -s conftest$ac_exeext'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 emacs_cv_langinfo_codeset=yes
22108 else
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 emacs_cv_langinfo_codeset=no
22113 fi
22114 rm -f conftest.err conftest.$ac_objext \
22115 conftest$ac_exeext conftest.$ac_ext
22116
22117 fi
22118 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22119 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22120 if test $emacs_cv_langinfo_codeset = yes; then
22121
22122 cat >>confdefs.h <<\_ACEOF
22123 #define HAVE_LANGINFO_CODESET 1
22124 _ACEOF
22125
22126 fi
22127
22128 echo "$as_me:$LINENO: checking for size_t" >&5
22129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22130 if test "${ac_cv_type_size_t+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22132 else
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 $ac_includes_default
22140 int
22141 main ()
22142 {
22143 if ((size_t *) 0)
22144 return 0;
22145 if (sizeof (size_t))
22146 return 0;
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153 (eval $ac_compile) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest.$ac_objext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ac_cv_type_size_t=yes
22174 else
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 ac_cv_type_size_t=no
22179 fi
22180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22181 fi
22182 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22183 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22184 if test $ac_cv_type_size_t = yes; then
22185
22186 cat >>confdefs.h <<_ACEOF
22187 #define HAVE_SIZE_T 1
22188 _ACEOF
22189
22190
22191 fi
22192
22193
22194 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22195 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22196 if test "${ac_cv_type_mbstate_t+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 $ac_includes_default
22206 # include <wchar.h>
22207 int
22208 main ()
22209 {
22210 mbstate_t x; return sizeof x;
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"
22225 || test ! -s conftest.err'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } &&
22231 { ac_try='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_cv_type_mbstate_t=yes
22238 else
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 ac_cv_type_mbstate_t=no
22243 fi
22244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22245 fi
22246 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22247 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22248 if test $ac_cv_type_mbstate_t = yes; then
22249
22250 cat >>confdefs.h <<\_ACEOF
22251 #define HAVE_MBSTATE_T 1
22252 _ACEOF
22253
22254 else
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define mbstate_t int
22258 _ACEOF
22259
22260 fi
22261
22262 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22263 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22264 if test "${emacs_cv_c_restrict+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h. */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 void fred (int *restrict x);
22274 int
22275 main ()
22276 {
22277
22278 ;
22279 return 0;
22280 }
22281 _ACEOF
22282 rm -f conftest.$ac_objext
22283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22284 (eval $ac_compile) 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
22291 { ac_try='test -z "$ac_c_werror_flag"
22292 || test ! -s conftest.err'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; } &&
22298 { ac_try='test -s conftest.$ac_objext'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22304 emacs_cv_c_restrict=yes
22305 else
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h. */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 void fred (int *__restrict x);
22316 int
22317 main ()
22318 {
22319
22320 ;
22321 return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22326 (eval $ac_compile) 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_c_werror_flag"
22334 || test ! -s conftest.err'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; } &&
22340 { ac_try='test -s conftest.$ac_objext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22346 emacs_cv_c_restrict=__restrict
22347 else
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351 emacs_cv_c_restrict=no
22352 fi
22353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356 fi
22357 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22358 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22359 case "$emacs_cv_c_restrict" in
22360 yes) emacs_restrict=restrict;;
22361 no) emacs_restrict="";;
22362 *) emacs_restrict="$emacs_cv_c_restrict";;
22363 esac
22364 if test "$emacs_restrict" != __restrict; then
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define __restrict $emacs_restrict
22368 _ACEOF
22369
22370 fi
22371
22372 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22373 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22374 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h. */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 void fred (int x[__restrict]);
22384 int
22385 main ()
22386 {
22387
22388 ;
22389 return 0;
22390 }
22391 _ACEOF
22392 rm -f conftest.$ac_objext
22393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22394 (eval $ac_compile) 2>conftest.er1
22395 ac_status=$?
22396 grep -v '^ *+' conftest.er1 >conftest.err
22397 rm -f conftest.er1
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } &&
22401 { ac_try='test -z "$ac_c_werror_flag"
22402 || test ! -s conftest.err'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; } &&
22408 { ac_try='test -s conftest.$ac_objext'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 emacs_cv_c_restrict_arr=yes
22415 else
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419 emacs_cv_c_restrict_arr=no
22420 fi
22421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22422 fi
22423 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22424 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22425 if test "$emacs_cv_c_restrict_arr" = yes; then
22426
22427 cat >>confdefs.h <<\_ACEOF
22428 #define __restrict_arr __restrict
22429 _ACEOF
22430
22431 fi
22432
22433
22434
22435 # Set up the CFLAGS for real compilation, so we can substitute it.
22436 CFLAGS="$REAL_CFLAGS"
22437 CPPFLAGS="$REAL_CPPFLAGS"
22438
22439 #### Find out which version of Emacs this is.
22440 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22441 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22442 if test x"${version}" = x; then
22443 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22444 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22445 { (exit 1); exit 1; }; }
22446 fi
22447
22448 ### Specify what sort of things we'll be editing into Makefile and config.h.
22449 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485 cat >>confdefs.h <<_ACEOF
22486 #define EMACS_CONFIGURATION "${canonical}"
22487 _ACEOF
22488
22489
22490 cat >>confdefs.h <<_ACEOF
22491 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22492 _ACEOF
22493
22494
22495 cat >>confdefs.h <<_ACEOF
22496 #define config_machfile "${machfile}"
22497 _ACEOF
22498
22499
22500 cat >>confdefs.h <<_ACEOF
22501 #define config_opsysfile "${opsysfile}"
22502 _ACEOF
22503
22504
22505 cat >>confdefs.h <<_ACEOF
22506 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22507 _ACEOF
22508
22509
22510 cat >>confdefs.h <<_ACEOF
22511 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22512 _ACEOF
22513
22514
22515 cat >>confdefs.h <<_ACEOF
22516 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22517 _ACEOF
22518
22519
22520 cat >>confdefs.h <<_ACEOF
22521 #define UNEXEC_SRC ${UNEXEC_SRC}
22522 _ACEOF
22523
22524
22525 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22526
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_X_WINDOWS 1
22529 _ACEOF
22530
22531 fi
22532 if test "${USE_X_TOOLKIT}" != "none" ; then
22533
22534 cat >>confdefs.h <<\_ACEOF
22535 #define USE_X_TOOLKIT 1
22536 _ACEOF
22537
22538 fi
22539 if test "${HAVE_X11}" = "yes" ; then
22540
22541 cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_X11 1
22543 _ACEOF
22544
22545 fi
22546 if test "${HAVE_XFREE386}" = "yes" ; then
22547
22548 cat >>confdefs.h <<\_ACEOF
22549 #define HAVE_XFREE386 1
22550 _ACEOF
22551
22552 fi
22553 if test "${HAVE_MENUS}" = "yes" ; then
22554
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_MENUS 1
22557 _ACEOF
22558
22559 fi
22560 if test "${GNU_MALLOC}" = "yes" ; then
22561
22562 cat >>confdefs.h <<\_ACEOF
22563 #define GNU_MALLOC 1
22564 _ACEOF
22565
22566 fi
22567 if test "${REL_ALLOC}" = "yes" ; then
22568
22569 cat >>confdefs.h <<\_ACEOF
22570 #define REL_ALLOC 1
22571 _ACEOF
22572
22573 fi
22574
22575
22576
22577
22578
22579 #### Report on what we decided to do.
22580 #### Report GTK as a toolkit, even if it doesn't use Xt.
22581 #### It makes printing result more understandable as using GTK sets
22582 #### toolkit_scroll_bars to yes by default.
22583 if test "${HAVE_GTK}" = "yes"; then
22584 USE_X_TOOLKIT=GTK
22585 fi
22586
22587 echo "
22588 Configured for \`${canonical}'.
22589
22590 Where should the build process find the source code? ${srcdir}
22591 What operating system and machine description files should Emacs use?
22592 \`${opsysfile}' and \`${machfile}'
22593 What compiler should emacs be built with? ${CC} ${CFLAGS}
22594 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22595 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22596 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22597 What window system should Emacs use? ${window_system}
22598 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22599
22600 if test -n "${x_includes}"; then
22601 echo " Where do we find X Windows header files? ${x_includes}"
22602 else
22603 echo " Where do we find X Windows header files? Standard dirs"
22604 fi
22605 if test -n "${x_libraries}"; then
22606 echo " Where do we find X Windows libraries? ${x_libraries}"
22607 else
22608 echo " Where do we find X Windows libraries? Standard dirs"
22609 fi
22610
22611 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22612 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22613 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22614 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22615 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22616 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22617 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22618 echo
22619
22620 if test $USE_XASSERTS = yes; then
22621 echo " Compiling with asserts turned on."
22622 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22623 echo
22624 fi
22625
22626
22627
22628 # Remove any trailing slashes in these variables.
22629 test "${prefix}" != NONE &&
22630 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22631 test "${exec_prefix}" != NONE &&
22632 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22633
22634 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22635 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22636 ## from Makefile.c can correctly provide the arg `-traditional' to the
22637 ## C preprocessor.
22638
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h. */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 yes..yes
22646 _ACEOF
22647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22648 $EGREP "yes..yes" >/dev/null 2>&1; then
22649 CPP_NEED_TRADITIONAL=no
22650 else
22651 CPP_NEED_TRADITIONAL=yes
22652 fi
22653 rm -f conftest*
22654
22655
22656 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"
22657 ac_config_commands="$ac_config_commands default"
22658 cat >confcache <<\_ACEOF
22659 # This file is a shell script that caches the results of configure
22660 # tests run on this system so they can be shared between configure
22661 # scripts and configure runs, see configure's option --config-cache.
22662 # It is not useful on other systems. If it contains results you don't
22663 # want to keep, you may remove or edit it.
22664 #
22665 # config.status only pays attention to the cache file if you give it
22666 # the --recheck option to rerun configure.
22667 #
22668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22670 # following values.
22671
22672 _ACEOF
22673
22674 # The following way of writing the cache mishandles newlines in values,
22675 # but we know of no workaround that is simple, portable, and efficient.
22676 # So, don't put newlines in cache variables' values.
22677 # Ultrix sh set writes to stderr and can't be redirected directly,
22678 # and sets the high bit in the cache file unless we assign to the vars.
22679 {
22680 (set) 2>&1 |
22681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22682 *ac_space=\ *)
22683 # `set' does not quote correctly, so add quotes (double-quote
22684 # substitution turns \\\\ into \\, and sed turns \\ into \).
22685 sed -n \
22686 "s/'/'\\\\''/g;
22687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22688 ;;
22689 *)
22690 # `set' quotes correctly as required by POSIX, so do not add quotes.
22691 sed -n \
22692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22693 ;;
22694 esac;
22695 } |
22696 sed '
22697 t clear
22698 : clear
22699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22700 t end
22701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22702 : end' >>confcache
22703 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22704 if test -w $cache_file; then
22705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22706 cat confcache >$cache_file
22707 else
22708 echo "not updating unwritable cache $cache_file"
22709 fi
22710 fi
22711 rm -f confcache
22712
22713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22716
22717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22719 # trailing colons and then remove the whole line if VPATH becomes empty
22720 # (actually we leave an empty line to preserve line numbers).
22721 if test "x$srcdir" = x.; then
22722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22723 s/:*\$(srcdir):*/:/;
22724 s/:*\${srcdir}:*/:/;
22725 s/:*@srcdir@:*/:/;
22726 s/^\([^=]*=[ ]*\):*/\1/;
22727 s/:*$//;
22728 s/^[^=]*=[ ]*$//;
22729 }'
22730 fi
22731
22732 DEFS=-DHAVE_CONFIG_H
22733
22734 ac_libobjs=
22735 ac_ltlibobjs=
22736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22737 # 1. Remove the extension, and $U if already installed.
22738 ac_i=`echo "$ac_i" |
22739 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22740 # 2. Add them.
22741 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22742 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22743 done
22744 LIBOBJS=$ac_libobjs
22745
22746 LTLIBOBJS=$ac_ltlibobjs
22747
22748
22749
22750 : ${CONFIG_STATUS=./config.status}
22751 ac_clean_files_save=$ac_clean_files
22752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22755 cat >$CONFIG_STATUS <<_ACEOF
22756 #! $SHELL
22757 # Generated by $as_me.
22758 # Run this file to recreate the current configuration.
22759 # Compiler output produced by configure, useful for debugging
22760 # configure, is in config.log if it exists.
22761
22762 debug=false
22763 ac_cs_recheck=false
22764 ac_cs_silent=false
22765 SHELL=\${CONFIG_SHELL-$SHELL}
22766 _ACEOF
22767
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 ## --------------------- ##
22770 ## M4sh Initialization. ##
22771 ## --------------------- ##
22772
22773 # Be Bourne compatible
22774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22775 emulate sh
22776 NULLCMD=:
22777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22778 # is contrary to our usage. Disable this feature.
22779 alias -g '${1+"$@"}'='"$@"'
22780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22781 set -o posix
22782 fi
22783 DUALCASE=1; export DUALCASE # for MKS sh
22784
22785 # Support unset when possible.
22786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22787 as_unset=unset
22788 else
22789 as_unset=false
22790 fi
22791
22792
22793 # Work around bugs in pre-3.0 UWIN ksh.
22794 $as_unset ENV MAIL MAILPATH
22795 PS1='$ '
22796 PS2='> '
22797 PS4='+ '
22798
22799 # NLS nuisances.
22800 for as_var in \
22801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22803 LC_TELEPHONE LC_TIME
22804 do
22805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22806 eval $as_var=C; export $as_var
22807 else
22808 $as_unset $as_var
22809 fi
22810 done
22811
22812 # Required to use basename.
22813 if expr a : '\(a\)' >/dev/null 2>&1; then
22814 as_expr=expr
22815 else
22816 as_expr=false
22817 fi
22818
22819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22820 as_basename=basename
22821 else
22822 as_basename=false
22823 fi
22824
22825
22826 # Name of the executable.
22827 as_me=`$as_basename "$0" ||
22828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22829 X"$0" : 'X\(//\)$' \| \
22830 X"$0" : 'X\(/\)$' \| \
22831 . : '\(.\)' 2>/dev/null ||
22832 echo X/"$0" |
22833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22834 /^X\/\(\/\/\)$/{ s//\1/; q; }
22835 /^X\/\(\/\).*/{ s//\1/; q; }
22836 s/.*/./; q'`
22837
22838
22839 # PATH needs CR, and LINENO needs CR and PATH.
22840 # Avoid depending upon Character Ranges.
22841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22844 as_cr_digits='0123456789'
22845 as_cr_alnum=$as_cr_Letters$as_cr_digits
22846
22847 # The user is always right.
22848 if test "${PATH_SEPARATOR+set}" != set; then
22849 echo "#! /bin/sh" >conf$$.sh
22850 echo "exit 0" >>conf$$.sh
22851 chmod +x conf$$.sh
22852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22853 PATH_SEPARATOR=';'
22854 else
22855 PATH_SEPARATOR=:
22856 fi
22857 rm -f conf$$.sh
22858 fi
22859
22860
22861 as_lineno_1=$LINENO
22862 as_lineno_2=$LINENO
22863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22864 test "x$as_lineno_1" != "x$as_lineno_2" &&
22865 test "x$as_lineno_3" = "x$as_lineno_2" || {
22866 # Find who we are. Look in the path if we contain no path at all
22867 # relative or not.
22868 case $0 in
22869 *[\\/]* ) as_myself=$0 ;;
22870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22871 for as_dir in $PATH
22872 do
22873 IFS=$as_save_IFS
22874 test -z "$as_dir" && as_dir=.
22875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22876 done
22877
22878 ;;
22879 esac
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x; then
22883 as_myself=$0
22884 fi
22885 if test ! -f "$as_myself"; then
22886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22888 { (exit 1); exit 1; }; }
22889 fi
22890 case $CONFIG_SHELL in
22891 '')
22892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22894 do
22895 IFS=$as_save_IFS
22896 test -z "$as_dir" && as_dir=.
22897 for as_base in sh bash ksh sh5; do
22898 case $as_dir in
22899 /*)
22900 if ("$as_dir/$as_base" -c '
22901 as_lineno_1=$LINENO
22902 as_lineno_2=$LINENO
22903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22904 test "x$as_lineno_1" != "x$as_lineno_2" &&
22905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22908 CONFIG_SHELL=$as_dir/$as_base
22909 export CONFIG_SHELL
22910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22911 fi;;
22912 esac
22913 done
22914 done
22915 ;;
22916 esac
22917
22918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22919 # uniformly replaced by the line number. The first 'sed' inserts a
22920 # line-number line before each line; the second 'sed' does the real
22921 # work. The second script uses 'N' to pair each line-number line
22922 # with the numbered line, and appends trailing '-' during
22923 # substitution so that $LINENO is not a special case at line end.
22924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22926 sed '=' <$as_myself |
22927 sed '
22928 N
22929 s,$,-,
22930 : loop
22931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22932 t loop
22933 s,-$,,
22934 s,^['$as_cr_digits']*\n,,
22935 ' >$as_me.lineno &&
22936 chmod +x $as_me.lineno ||
22937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22939 { (exit 1); exit 1; }; }
22940
22941 # Don't try to exec as it changes $[0], causing all sort of problems
22942 # (the dirname of $[0] is not the place where we might find the
22943 # original and so on. Autoconf is especially sensible to this).
22944 . ./$as_me.lineno
22945 # Exit status is that of the last command.
22946 exit
22947 }
22948
22949
22950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22951 *c*,-n*) ECHO_N= ECHO_C='
22952 ' ECHO_T=' ' ;;
22953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22955 esac
22956
22957 if expr a : '\(a\)' >/dev/null 2>&1; then
22958 as_expr=expr
22959 else
22960 as_expr=false
22961 fi
22962
22963 rm -f conf$$ conf$$.exe conf$$.file
22964 echo >conf$$.file
22965 if ln -s conf$$.file conf$$ 2>/dev/null; then
22966 # We could just check for DJGPP; but this test a) works b) is more generic
22967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22968 if test -f conf$$.exe; then
22969 # Don't use ln at all; we don't have any links
22970 as_ln_s='cp -p'
22971 else
22972 as_ln_s='ln -s'
22973 fi
22974 elif ln conf$$.file conf$$ 2>/dev/null; then
22975 as_ln_s=ln
22976 else
22977 as_ln_s='cp -p'
22978 fi
22979 rm -f conf$$ conf$$.exe conf$$.file
22980
22981 if mkdir -p . 2>/dev/null; then
22982 as_mkdir_p=:
22983 else
22984 test -d ./-p && rmdir ./-p
22985 as_mkdir_p=false
22986 fi
22987
22988 as_executable_p="test -f"
22989
22990 # Sed expression to map a string onto a valid CPP name.
22991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22992
22993 # Sed expression to map a string onto a valid variable name.
22994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22995
22996
22997 # IFS
22998 # We need space, tab and new line, in precisely that order.
22999 as_nl='
23000 '
23001 IFS=" $as_nl"
23002
23003 # CDPATH.
23004 $as_unset CDPATH
23005
23006 exec 6>&1
23007
23008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23009 # report actual input values of CONFIG_FILES etc. instead of their
23010 # values after options handling. Logging --version etc. is OK.
23011 exec 5>>config.log
23012 {
23013 echo
23014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23015 ## Running $as_me. ##
23016 _ASBOX
23017 } >&5
23018 cat >&5 <<_CSEOF
23019
23020 This file was extended by $as_me, which was
23021 generated by GNU Autoconf 2.59. Invocation command line was
23022
23023 CONFIG_FILES = $CONFIG_FILES
23024 CONFIG_HEADERS = $CONFIG_HEADERS
23025 CONFIG_LINKS = $CONFIG_LINKS
23026 CONFIG_COMMANDS = $CONFIG_COMMANDS
23027 $ $0 $@
23028
23029 _CSEOF
23030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23031 echo >&5
23032 _ACEOF
23033
23034 # Files that config.status was made for.
23035 if test -n "$ac_config_files"; then
23036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23037 fi
23038
23039 if test -n "$ac_config_headers"; then
23040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23041 fi
23042
23043 if test -n "$ac_config_links"; then
23044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23045 fi
23046
23047 if test -n "$ac_config_commands"; then
23048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23049 fi
23050
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052
23053 ac_cs_usage="\
23054 \`$as_me' instantiates files from templates according to the
23055 current configuration.
23056
23057 Usage: $0 [OPTIONS] [FILE]...
23058
23059 -h, --help print this help, then exit
23060 -V, --version print version number, then exit
23061 -q, --quiet do not print progress messages
23062 -d, --debug don't remove temporary files
23063 --recheck update $as_me by reconfiguring in the same conditions
23064 --file=FILE[:TEMPLATE]
23065 instantiate the configuration file FILE
23066 --header=FILE[:TEMPLATE]
23067 instantiate the configuration header FILE
23068
23069 Configuration files:
23070 $config_files
23071
23072 Configuration headers:
23073 $config_headers
23074
23075 Configuration commands:
23076 $config_commands
23077
23078 Report bugs to <bug-autoconf@gnu.org>."
23079 _ACEOF
23080
23081 cat >>$CONFIG_STATUS <<_ACEOF
23082 ac_cs_version="\\
23083 config.status
23084 configured by $0, generated by GNU Autoconf 2.59,
23085 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23086
23087 Copyright (C) 2003 Free Software Foundation, Inc.
23088 This config.status script is free software; the Free Software Foundation
23089 gives unlimited permission to copy, distribute and modify it."
23090 srcdir=$srcdir
23091 INSTALL="$INSTALL"
23092 _ACEOF
23093
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23095 # If no file are specified by the user, then we need to provide default
23096 # value. By we need to know if files were specified by the user.
23097 ac_need_defaults=:
23098 while test $# != 0
23099 do
23100 case $1 in
23101 --*=*)
23102 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23103 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23104 ac_shift=:
23105 ;;
23106 -*)
23107 ac_option=$1
23108 ac_optarg=$2
23109 ac_shift=shift
23110 ;;
23111 *) # This is not an option, so the user has probably given explicit
23112 # arguments.
23113 ac_option=$1
23114 ac_need_defaults=false;;
23115 esac
23116
23117 case $ac_option in
23118 # Handling of the options.
23119 _ACEOF
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23122 ac_cs_recheck=: ;;
23123 --version | --vers* | -V )
23124 echo "$ac_cs_version"; exit 0 ;;
23125 --he | --h)
23126 # Conflict between --help and --header
23127 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23128 Try \`$0 --help' for more information." >&5
23129 echo "$as_me: error: ambiguous option: $1
23130 Try \`$0 --help' for more information." >&2;}
23131 { (exit 1); exit 1; }; };;
23132 --help | --hel | -h )
23133 echo "$ac_cs_usage"; exit 0 ;;
23134 --debug | --d* | -d )
23135 debug=: ;;
23136 --file | --fil | --fi | --f )
23137 $ac_shift
23138 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23139 ac_need_defaults=false;;
23140 --header | --heade | --head | --hea )
23141 $ac_shift
23142 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23143 ac_need_defaults=false;;
23144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23146 ac_cs_silent=: ;;
23147
23148 # This is an error.
23149 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23150 Try \`$0 --help' for more information." >&5
23151 echo "$as_me: error: unrecognized option: $1
23152 Try \`$0 --help' for more information." >&2;}
23153 { (exit 1); exit 1; }; } ;;
23154
23155 *) ac_config_targets="$ac_config_targets $1" ;;
23156
23157 esac
23158 shift
23159 done
23160
23161 ac_configure_extra_args=
23162
23163 if $ac_cs_silent; then
23164 exec 6>/dev/null
23165 ac_configure_extra_args="$ac_configure_extra_args --silent"
23166 fi
23167
23168 _ACEOF
23169 cat >>$CONFIG_STATUS <<_ACEOF
23170 if \$ac_cs_recheck; then
23171 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23172 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23173 fi
23174
23175 _ACEOF
23176
23177 cat >>$CONFIG_STATUS <<_ACEOF
23178 #
23179 # INIT-COMMANDS section.
23180 #
23181
23182 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23183
23184 _ACEOF
23185
23186
23187
23188 cat >>$CONFIG_STATUS <<\_ACEOF
23189 for ac_config_target in $ac_config_targets
23190 do
23191 case "$ac_config_target" in
23192 # Handling of arguments.
23193 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23194 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23195 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23196 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23197 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23198 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23199 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23200 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23201 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23202 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23203 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23204 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23205 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23206 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23207 { (exit 1); exit 1; }; };;
23208 esac
23209 done
23210
23211 # If the user did not use the arguments to specify the items to instantiate,
23212 # then the envvar interface is used. Set only those that are not.
23213 # We use the long form for the default assignment because of an extremely
23214 # bizarre bug on SunOS 4.1.3.
23215 if $ac_need_defaults; then
23216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23219 fi
23220
23221 # Have a temporary directory for convenience. Make it in the build tree
23222 # simply because there is no reason to put it here, and in addition,
23223 # creating and moving files from /tmp can sometimes cause problems.
23224 # Create a temporary directory, and hook for its removal unless debugging.
23225 $debug ||
23226 {
23227 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23228 trap '{ (exit 1); exit 1; }' 1 2 13 15
23229 }
23230
23231 # Create a (secure) tmp directory for tmp files.
23232
23233 {
23234 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23235 test -n "$tmp" && test -d "$tmp"
23236 } ||
23237 {
23238 tmp=./confstat$$-$RANDOM
23239 (umask 077 && mkdir $tmp)
23240 } ||
23241 {
23242 echo "$me: cannot create a temporary directory in ." >&2
23243 { (exit 1); exit 1; }
23244 }
23245
23246 _ACEOF
23247
23248 cat >>$CONFIG_STATUS <<_ACEOF
23249
23250 #
23251 # CONFIG_FILES section.
23252 #
23253
23254 # No need to generate the scripts if there are no CONFIG_FILES.
23255 # This happens for instance when ./config.status config.h
23256 if test -n "\$CONFIG_FILES"; then
23257 # Protect against being on the right side of a sed subst in config.status.
23258 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23259 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23260 s,@SHELL@,$SHELL,;t t
23261 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23262 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23263 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23264 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23265 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23266 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23267 s,@exec_prefix@,$exec_prefix,;t t
23268 s,@prefix@,$prefix,;t t
23269 s,@program_transform_name@,$program_transform_name,;t t
23270 s,@bindir@,$bindir,;t t
23271 s,@sbindir@,$sbindir,;t t
23272 s,@libexecdir@,$libexecdir,;t t
23273 s,@datadir@,$datadir,;t t
23274 s,@sysconfdir@,$sysconfdir,;t t
23275 s,@sharedstatedir@,$sharedstatedir,;t t
23276 s,@localstatedir@,$localstatedir,;t t
23277 s,@libdir@,$libdir,;t t
23278 s,@includedir@,$includedir,;t t
23279 s,@oldincludedir@,$oldincludedir,;t t
23280 s,@infodir@,$infodir,;t t
23281 s,@mandir@,$mandir,;t t
23282 s,@build_alias@,$build_alias,;t t
23283 s,@host_alias@,$host_alias,;t t
23284 s,@target_alias@,$target_alias,;t t
23285 s,@DEFS@,$DEFS,;t t
23286 s,@ECHO_C@,$ECHO_C,;t t
23287 s,@ECHO_N@,$ECHO_N,;t t
23288 s,@ECHO_T@,$ECHO_T,;t t
23289 s,@LIBS@,$LIBS,;t t
23290 s,@MAINT@,$MAINT,;t t
23291 s,@build@,$build,;t t
23292 s,@build_cpu@,$build_cpu,;t t
23293 s,@build_vendor@,$build_vendor,;t t
23294 s,@build_os@,$build_os,;t t
23295 s,@host@,$host,;t t
23296 s,@host_cpu@,$host_cpu,;t t
23297 s,@host_vendor@,$host_vendor,;t t
23298 s,@host_os@,$host_os,;t t
23299 s,@CC@,$CC,;t t
23300 s,@CFLAGS@,$CFLAGS,;t t
23301 s,@LDFLAGS@,$LDFLAGS,;t t
23302 s,@CPPFLAGS@,$CPPFLAGS,;t t
23303 s,@ac_ct_CC@,$ac_ct_CC,;t t
23304 s,@EXEEXT@,$EXEEXT,;t t
23305 s,@OBJEXT@,$OBJEXT,;t t
23306 s,@LN_S@,$LN_S,;t t
23307 s,@CPP@,$CPP,;t t
23308 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23309 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23310 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23311 s,@RANLIB@,$RANLIB,;t t
23312 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23313 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23314 s,@EGREP@,$EGREP,;t t
23315 s,@LIBSOUND@,$LIBSOUND,;t t
23316 s,@SET_MAKE@,$SET_MAKE,;t t
23317 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23318 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23319 s,@GTK_LIBS@,$GTK_LIBS,;t t
23320 s,@ALLOCA@,$ALLOCA,;t t
23321 s,@liblockfile@,$liblockfile,;t t
23322 s,@LIBOBJS@,$LIBOBJS,;t t
23323 s,@NEED_SETGID@,$NEED_SETGID,;t t
23324 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23325 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23326 s,@GETOPT_H@,$GETOPT_H,;t t
23327 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23328 s,@version@,$version,;t t
23329 s,@configuration@,$configuration,;t t
23330 s,@canonical@,$canonical,;t t
23331 s,@srcdir@,$srcdir,;t t
23332 s,@lispdir@,$lispdir,;t t
23333 s,@locallisppath@,$locallisppath,;t t
23334 s,@lisppath@,$lisppath,;t t
23335 s,@x_default_search_path@,$x_default_search_path,;t t
23336 s,@etcdir@,$etcdir,;t t
23337 s,@archlibdir@,$archlibdir,;t t
23338 s,@docdir@,$docdir,;t t
23339 s,@bitmapdir@,$bitmapdir,;t t
23340 s,@gamedir@,$gamedir,;t t
23341 s,@gameuser@,$gameuser,;t t
23342 s,@c_switch_system@,$c_switch_system,;t t
23343 s,@c_switch_machine@,$c_switch_machine,;t t
23344 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23345 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23346 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23347 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23348 s,@machfile@,$machfile,;t t
23349 s,@opsysfile@,$opsysfile,;t t
23350 s,@carbon_appdir@,$carbon_appdir,;t t
23351 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23352 CEOF
23353
23354 _ACEOF
23355
23356 cat >>$CONFIG_STATUS <<\_ACEOF
23357 # Split the substitutions into bite-sized pieces for seds with
23358 # small command number limits, like on Digital OSF/1 and HP-UX.
23359 ac_max_sed_lines=48
23360 ac_sed_frag=1 # Number of current file.
23361 ac_beg=1 # First line for current file.
23362 ac_end=$ac_max_sed_lines # Line after last line for current file.
23363 ac_more_lines=:
23364 ac_sed_cmds=
23365 while $ac_more_lines; do
23366 if test $ac_beg -gt 1; then
23367 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23368 else
23369 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23370 fi
23371 if test ! -s $tmp/subs.frag; then
23372 ac_more_lines=false
23373 else
23374 # The purpose of the label and of the branching condition is to
23375 # speed up the sed processing (if there are no `@' at all, there
23376 # is no need to browse any of the substitutions).
23377 # These are the two extra sed commands mentioned above.
23378 (echo ':t
23379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23380 if test -z "$ac_sed_cmds"; then
23381 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23382 else
23383 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23384 fi
23385 ac_sed_frag=`expr $ac_sed_frag + 1`
23386 ac_beg=$ac_end
23387 ac_end=`expr $ac_end + $ac_max_sed_lines`
23388 fi
23389 done
23390 if test -z "$ac_sed_cmds"; then
23391 ac_sed_cmds=cat
23392 fi
23393 fi # test -n "$CONFIG_FILES"
23394
23395 _ACEOF
23396 cat >>$CONFIG_STATUS <<\_ACEOF
23397 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23399 case $ac_file in
23400 - | *:- | *:-:* ) # input from stdin
23401 cat >$tmp/stdin
23402 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23404 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23406 * ) ac_file_in=$ac_file.in ;;
23407 esac
23408
23409 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23412 X"$ac_file" : 'X\(//\)[^/]' \| \
23413 X"$ac_file" : 'X\(//\)$' \| \
23414 X"$ac_file" : 'X\(/\)' \| \
23415 . : '\(.\)' 2>/dev/null ||
23416 echo X"$ac_file" |
23417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23419 /^X\(\/\/\)$/{ s//\1/; q; }
23420 /^X\(\/\).*/{ s//\1/; q; }
23421 s/.*/./; q'`
23422 { if $as_mkdir_p; then
23423 mkdir -p "$ac_dir"
23424 else
23425 as_dir="$ac_dir"
23426 as_dirs=
23427 while test ! -d "$as_dir"; do
23428 as_dirs="$as_dir $as_dirs"
23429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23431 X"$as_dir" : 'X\(//\)[^/]' \| \
23432 X"$as_dir" : 'X\(//\)$' \| \
23433 X"$as_dir" : 'X\(/\)' \| \
23434 . : '\(.\)' 2>/dev/null ||
23435 echo X"$as_dir" |
23436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23438 /^X\(\/\/\)$/{ s//\1/; q; }
23439 /^X\(\/\).*/{ s//\1/; q; }
23440 s/.*/./; q'`
23441 done
23442 test ! -n "$as_dirs" || mkdir $as_dirs
23443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23445 { (exit 1); exit 1; }; }; }
23446
23447 ac_builddir=.
23448
23449 if test "$ac_dir" != .; then
23450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23451 # A "../" for each directory in $ac_dir_suffix.
23452 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23453 else
23454 ac_dir_suffix= ac_top_builddir=
23455 fi
23456
23457 case $srcdir in
23458 .) # No --srcdir option. We are building in place.
23459 ac_srcdir=.
23460 if test -z "$ac_top_builddir"; then
23461 ac_top_srcdir=.
23462 else
23463 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23464 fi ;;
23465 [\\/]* | ?:[\\/]* ) # Absolute path.
23466 ac_srcdir=$srcdir$ac_dir_suffix;
23467 ac_top_srcdir=$srcdir ;;
23468 *) # Relative path.
23469 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23470 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23471 esac
23472
23473 # Do not use `cd foo && pwd` to compute absolute paths, because
23474 # the directories may not exist.
23475 case `pwd` in
23476 .) ac_abs_builddir="$ac_dir";;
23477 *)
23478 case "$ac_dir" in
23479 .) ac_abs_builddir=`pwd`;;
23480 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23481 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23482 esac;;
23483 esac
23484 case $ac_abs_builddir in
23485 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23486 *)
23487 case ${ac_top_builddir}. in
23488 .) ac_abs_top_builddir=$ac_abs_builddir;;
23489 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23490 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23491 esac;;
23492 esac
23493 case $ac_abs_builddir in
23494 .) ac_abs_srcdir=$ac_srcdir;;
23495 *)
23496 case $ac_srcdir in
23497 .) ac_abs_srcdir=$ac_abs_builddir;;
23498 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23499 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23500 esac;;
23501 esac
23502 case $ac_abs_builddir in
23503 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23504 *)
23505 case $ac_top_srcdir in
23506 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23507 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23508 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23509 esac;;
23510 esac
23511
23512
23513 case $INSTALL in
23514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23515 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23516 esac
23517
23518 if test x"$ac_file" != x-; then
23519 { echo "$as_me:$LINENO: creating $ac_file" >&5
23520 echo "$as_me: creating $ac_file" >&6;}
23521 rm -f "$ac_file"
23522 fi
23523 # Let's still pretend it is `configure' which instantiates (i.e., don't
23524 # use $as_me), people would be surprised to read:
23525 # /* config.h. Generated by config.status. */
23526 if test x"$ac_file" = x-; then
23527 configure_input=
23528 else
23529 configure_input="$ac_file. "
23530 fi
23531 configure_input=$configure_input"Generated from `echo $ac_file_in |
23532 sed 's,.*/,,'` by configure."
23533
23534 # First look for the input files in the build tree, otherwise in the
23535 # src tree.
23536 ac_file_inputs=`IFS=:
23537 for f in $ac_file_in; do
23538 case $f in
23539 -) echo $tmp/stdin ;;
23540 [\\/$]*)
23541 # Absolute (can't be DOS-style, as IFS=:)
23542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23543 echo "$as_me: error: cannot find input file: $f" >&2;}
23544 { (exit 1); exit 1; }; }
23545 echo "$f";;
23546 *) # Relative
23547 if test -f "$f"; then
23548 # Build tree
23549 echo "$f"
23550 elif test -f "$srcdir/$f"; then
23551 # Source tree
23552 echo "$srcdir/$f"
23553 else
23554 # /dev/null tree
23555 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23556 echo "$as_me: error: cannot find input file: $f" >&2;}
23557 { (exit 1); exit 1; }; }
23558 fi;;
23559 esac
23560 done` || { (exit 1); exit 1; }
23561 _ACEOF
23562 cat >>$CONFIG_STATUS <<_ACEOF
23563 sed "$ac_vpsub
23564 $extrasub
23565 _ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567 :t
23568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23569 s,@configure_input@,$configure_input,;t t
23570 s,@srcdir@,$ac_srcdir,;t t
23571 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23572 s,@top_srcdir@,$ac_top_srcdir,;t t
23573 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23574 s,@builddir@,$ac_builddir,;t t
23575 s,@abs_builddir@,$ac_abs_builddir,;t t
23576 s,@top_builddir@,$ac_top_builddir,;t t
23577 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23578 s,@INSTALL@,$ac_INSTALL,;t t
23579 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23580 rm -f $tmp/stdin
23581 if test x"$ac_file" != x-; then
23582 mv $tmp/out $ac_file
23583 else
23584 cat $tmp/out
23585 rm -f $tmp/out
23586 fi
23587
23588 done
23589 _ACEOF
23590 cat >>$CONFIG_STATUS <<\_ACEOF
23591
23592 #
23593 # CONFIG_HEADER section.
23594 #
23595
23596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23598 #
23599 # ac_d sets the value in "#define NAME VALUE" lines.
23600 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23601 ac_dB='[ ].*$,\1#\2'
23602 ac_dC=' '
23603 ac_dD=',;t'
23604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23605 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23606 ac_uB='$,\1#\2define\3'
23607 ac_uC=' '
23608 ac_uD=',;t'
23609
23610 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23612 case $ac_file in
23613 - | *:- | *:-:* ) # input from stdin
23614 cat >$tmp/stdin
23615 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23617 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23619 * ) ac_file_in=$ac_file.in ;;
23620 esac
23621
23622 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23623 echo "$as_me: creating $ac_file" >&6;}
23624
23625 # First look for the input files in the build tree, otherwise in the
23626 # src tree.
23627 ac_file_inputs=`IFS=:
23628 for f in $ac_file_in; do
23629 case $f in
23630 -) echo $tmp/stdin ;;
23631 [\\/$]*)
23632 # Absolute (can't be DOS-style, as IFS=:)
23633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23634 echo "$as_me: error: cannot find input file: $f" >&2;}
23635 { (exit 1); exit 1; }; }
23636 # Do quote $f, to prevent DOS paths from being IFS'd.
23637 echo "$f";;
23638 *) # Relative
23639 if test -f "$f"; then
23640 # Build tree
23641 echo "$f"
23642 elif test -f "$srcdir/$f"; then
23643 # Source tree
23644 echo "$srcdir/$f"
23645 else
23646 # /dev/null tree
23647 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23648 echo "$as_me: error: cannot find input file: $f" >&2;}
23649 { (exit 1); exit 1; }; }
23650 fi;;
23651 esac
23652 done` || { (exit 1); exit 1; }
23653 # Remove the trailing spaces.
23654 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23655
23656 _ACEOF
23657
23658 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23659 # `conftest.undefs', that substitutes the proper values into
23660 # config.h.in to produce config.h. The first handles `#define'
23661 # templates, and the second `#undef' templates.
23662 # And first: Protect against being on the right side of a sed subst in
23663 # config.status. Protect against being in an unquoted here document
23664 # in config.status.
23665 rm -f conftest.defines conftest.undefs
23666 # Using a here document instead of a string reduces the quoting nightmare.
23667 # Putting comments in sed scripts is not portable.
23668 #
23669 # `end' is used to avoid that the second main sed command (meant for
23670 # 0-ary CPP macros) applies to n-ary macro definitions.
23671 # See the Autoconf documentation for `clear'.
23672 cat >confdef2sed.sed <<\_ACEOF
23673 s/[\\&,]/\\&/g
23674 s,[\\$`],\\&,g
23675 t clear
23676 : clear
23677 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23678 t end
23679 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23680 : end
23681 _ACEOF
23682 # If some macros were called several times there might be several times
23683 # the same #defines, which is useless. Nevertheless, we may not want to
23684 # sort them, since we want the *last* AC-DEFINE to be honored.
23685 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23686 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23687 rm -f confdef2sed.sed
23688
23689 # This sed command replaces #undef with comments. This is necessary, for
23690 # example, in the case of _POSIX_SOURCE, which is predefined and required
23691 # on some systems where configure will not decide to define it.
23692 cat >>conftest.undefs <<\_ACEOF
23693 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23694 _ACEOF
23695
23696 # Break up conftest.defines because some shells have a limit on the size
23697 # of here documents, and old seds have small limits too (100 cmds).
23698 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23699 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23700 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23701 echo ' :' >>$CONFIG_STATUS
23702 rm -f conftest.tail
23703 while grep . conftest.defines >/dev/null
23704 do
23705 # Write a limited-size here document to $tmp/defines.sed.
23706 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23707 # Speed up: don't consider the non `#define' lines.
23708 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23709 # Work around the forget-to-reset-the-flag bug.
23710 echo 't clr' >>$CONFIG_STATUS
23711 echo ': clr' >>$CONFIG_STATUS
23712 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23713 echo 'CEOF
23714 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23715 rm -f $tmp/in
23716 mv $tmp/out $tmp/in
23717 ' >>$CONFIG_STATUS
23718 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23719 rm -f conftest.defines
23720 mv conftest.tail conftest.defines
23721 done
23722 rm -f conftest.defines
23723 echo ' fi # grep' >>$CONFIG_STATUS
23724 echo >>$CONFIG_STATUS
23725
23726 # Break up conftest.undefs because some shells have a limit on the size
23727 # of here documents, and old seds have small limits too (100 cmds).
23728 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23729 rm -f conftest.tail
23730 while grep . conftest.undefs >/dev/null
23731 do
23732 # Write a limited-size here document to $tmp/undefs.sed.
23733 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23734 # Speed up: don't consider the non `#undef'
23735 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23736 # Work around the forget-to-reset-the-flag bug.
23737 echo 't clr' >>$CONFIG_STATUS
23738 echo ': clr' >>$CONFIG_STATUS
23739 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23740 echo 'CEOF
23741 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23742 rm -f $tmp/in
23743 mv $tmp/out $tmp/in
23744 ' >>$CONFIG_STATUS
23745 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23746 rm -f conftest.undefs
23747 mv conftest.tail conftest.undefs
23748 done
23749 rm -f conftest.undefs
23750
23751 cat >>$CONFIG_STATUS <<\_ACEOF
23752 # Let's still pretend it is `configure' which instantiates (i.e., don't
23753 # use $as_me), people would be surprised to read:
23754 # /* config.h. Generated by config.status. */
23755 if test x"$ac_file" = x-; then
23756 echo "/* Generated by configure. */" >$tmp/config.h
23757 else
23758 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23759 fi
23760 cat $tmp/in >>$tmp/config.h
23761 rm -f $tmp/in
23762 if test x"$ac_file" != x-; then
23763 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23764 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23765 echo "$as_me: $ac_file is unchanged" >&6;}
23766 else
23767 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23769 X"$ac_file" : 'X\(//\)[^/]' \| \
23770 X"$ac_file" : 'X\(//\)$' \| \
23771 X"$ac_file" : 'X\(/\)' \| \
23772 . : '\(.\)' 2>/dev/null ||
23773 echo X"$ac_file" |
23774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23776 /^X\(\/\/\)$/{ s//\1/; q; }
23777 /^X\(\/\).*/{ s//\1/; q; }
23778 s/.*/./; q'`
23779 { if $as_mkdir_p; then
23780 mkdir -p "$ac_dir"
23781 else
23782 as_dir="$ac_dir"
23783 as_dirs=
23784 while test ! -d "$as_dir"; do
23785 as_dirs="$as_dir $as_dirs"
23786 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23788 X"$as_dir" : 'X\(//\)[^/]' \| \
23789 X"$as_dir" : 'X\(//\)$' \| \
23790 X"$as_dir" : 'X\(/\)' \| \
23791 . : '\(.\)' 2>/dev/null ||
23792 echo X"$as_dir" |
23793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23795 /^X\(\/\/\)$/{ s//\1/; q; }
23796 /^X\(\/\).*/{ s//\1/; q; }
23797 s/.*/./; q'`
23798 done
23799 test ! -n "$as_dirs" || mkdir $as_dirs
23800 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23802 { (exit 1); exit 1; }; }; }
23803
23804 rm -f $ac_file
23805 mv $tmp/config.h $ac_file
23806 fi
23807 else
23808 cat $tmp/config.h
23809 rm -f $tmp/config.h
23810 fi
23811 done
23812 _ACEOF
23813 cat >>$CONFIG_STATUS <<\_ACEOF
23814
23815 #
23816 # CONFIG_COMMANDS section.
23817 #
23818 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23819 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23820 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23821 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23822 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23823 X"$ac_dest" : 'X\(//\)[^/]' \| \
23824 X"$ac_dest" : 'X\(//\)$' \| \
23825 X"$ac_dest" : 'X\(/\)' \| \
23826 . : '\(.\)' 2>/dev/null ||
23827 echo X"$ac_dest" |
23828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23830 /^X\(\/\/\)$/{ s//\1/; q; }
23831 /^X\(\/\).*/{ s//\1/; q; }
23832 s/.*/./; q'`
23833 { if $as_mkdir_p; then
23834 mkdir -p "$ac_dir"
23835 else
23836 as_dir="$ac_dir"
23837 as_dirs=
23838 while test ! -d "$as_dir"; do
23839 as_dirs="$as_dir $as_dirs"
23840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23842 X"$as_dir" : 'X\(//\)[^/]' \| \
23843 X"$as_dir" : 'X\(//\)$' \| \
23844 X"$as_dir" : 'X\(/\)' \| \
23845 . : '\(.\)' 2>/dev/null ||
23846 echo X"$as_dir" |
23847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23849 /^X\(\/\/\)$/{ s//\1/; q; }
23850 /^X\(\/\).*/{ s//\1/; q; }
23851 s/.*/./; q'`
23852 done
23853 test ! -n "$as_dirs" || mkdir $as_dirs
23854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23855 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23856 { (exit 1); exit 1; }; }; }
23857
23858 ac_builddir=.
23859
23860 if test "$ac_dir" != .; then
23861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23862 # A "../" for each directory in $ac_dir_suffix.
23863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23864 else
23865 ac_dir_suffix= ac_top_builddir=
23866 fi
23867
23868 case $srcdir in
23869 .) # No --srcdir option. We are building in place.
23870 ac_srcdir=.
23871 if test -z "$ac_top_builddir"; then
23872 ac_top_srcdir=.
23873 else
23874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23875 fi ;;
23876 [\\/]* | ?:[\\/]* ) # Absolute path.
23877 ac_srcdir=$srcdir$ac_dir_suffix;
23878 ac_top_srcdir=$srcdir ;;
23879 *) # Relative path.
23880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23882 esac
23883
23884 # Do not use `cd foo && pwd` to compute absolute paths, because
23885 # the directories may not exist.
23886 case `pwd` in
23887 .) ac_abs_builddir="$ac_dir";;
23888 *)
23889 case "$ac_dir" in
23890 .) ac_abs_builddir=`pwd`;;
23891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23893 esac;;
23894 esac
23895 case $ac_abs_builddir in
23896 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23897 *)
23898 case ${ac_top_builddir}. in
23899 .) ac_abs_top_builddir=$ac_abs_builddir;;
23900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23902 esac;;
23903 esac
23904 case $ac_abs_builddir in
23905 .) ac_abs_srcdir=$ac_srcdir;;
23906 *)
23907 case $ac_srcdir in
23908 .) ac_abs_srcdir=$ac_abs_builddir;;
23909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23911 esac;;
23912 esac
23913 case $ac_abs_builddir in
23914 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23915 *)
23916 case $ac_top_srcdir in
23917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23920 esac;;
23921 esac
23922
23923
23924 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23925 echo "$as_me: executing $ac_dest commands" >&6;}
23926 case $ac_dest in
23927 default )
23928
23929 ### Make the necessary directories, if they don't exist.
23930 for dir in etc lisp ; do
23931 test -d ${dir} || mkdir ${dir}
23932 done
23933
23934 # Build src/Makefile from ${srcdir}/src/Makefile.c
23935 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23936 # This must be done after src/config.h is built, since we rely on that file.
23937
23938 # Now get this: Some word that is part of the ${srcdir} directory name
23939 # or the ${configuration} value might, just might, happen to be an
23940 # identifier like `sun4' or `i386' or something, and be predefined by
23941 # the C preprocessor to some helpful value like 1, or maybe the empty
23942 # string. Needless to say consequent macro substitutions are less
23943 # than conducive to the makefile finding the correct directory.
23944 undefs="`echo $top_srcdir $configuration $canonical |
23945 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23946 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23947 `"
23948
23949 echo creating src/epaths.h
23950 ${MAKE-make} epaths-force
23951
23952 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23953 # `..' to `. .' unless invoked with -traditional
23954
23955 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23956 CPPFLAGS="$CPPFLAGS -traditional"
23957 fi
23958
23959 echo creating lib-src/Makefile
23960 ( cd lib-src
23961 rm -f junk.c junk1.c junk2.c
23962 sed -e '/start of cpp stuff/q' \
23963 < Makefile.c > junk1.c
23964 sed -e '1,/start of cpp stuff/d'\
23965 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23966 < Makefile.c > junk.c
23967 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23968 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23969 cat junk1.c junk2.c > Makefile.new
23970 rm -f junk.c junk1.c junk2.c
23971 chmod 444 Makefile.new
23972 mv -f Makefile.new Makefile
23973 )
23974
23975 echo creating src/Makefile
23976 ( cd src
23977 rm -f junk.c junk1.c junk2.c
23978 sed -e '/start of cpp stuff/q' \
23979 < Makefile.c > junk1.c
23980 sed -e '1,/start of cpp stuff/d'\
23981 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23982 < Makefile.c > junk.c
23983 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23984 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23985 cat junk1.c junk2.c > Makefile.new
23986 rm -f junk.c junk1.c junk2.c
23987 chmod 444 Makefile.new
23988 mv -f Makefile.new Makefile
23989 )
23990
23991 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23992 echo creating src/.gdbinit
23993 echo source $srcdir/src/.gdbinit > src/.gdbinit
23994 fi
23995
23996 # This is how we know whether to re-run configure in certain cases.
23997 touch src/config.stamp
23998
23999 ;;
24000 esac
24001 done
24002 _ACEOF
24003
24004 cat >>$CONFIG_STATUS <<\_ACEOF
24005
24006 { (exit 0); exit 0; }
24007 _ACEOF
24008 chmod +x $CONFIG_STATUS
24009 ac_clean_files=$ac_clean_files_save
24010
24011
24012 # configure is writing to config.log, and then calls config.status.
24013 # config.status does its own redirection, appending to config.log.
24014 # Unfortunately, on DOS this fails, as config.log is still kept open
24015 # by configure, so config.status won't be able to write to it; its
24016 # output is simply discarded. So we exec the FD to /dev/null,
24017 # effectively closing config.log, so it can be properly (re)opened and
24018 # appended to by config.status. When coming back to configure, we
24019 # need to make the FD available again.
24020 if test "$no_create" != yes; then
24021 ac_cs_success=:
24022 ac_config_status_args=
24023 test "$silent" = yes &&
24024 ac_config_status_args="$ac_config_status_args --quiet"
24025 exec 5>/dev/null
24026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24027 exec 5>>config.log
24028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24029 # would make configure fail if this is the last instruction.
24030 $ac_cs_success || { (exit 1); exit 1; }
24031 fi
24032
24033