]> code.delx.au - gnu-emacs/blob - configure
(viper-emacs-state-cursor-color): Fix typo in docstring.
[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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE 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'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1723 ;;
1724
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1729
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1733
1734 fi
1735
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1752 ;;
1753
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 x86_64-*-openbsd*) machine=amdx86-64 ;;
1761 m68k-*-openbsd*) machine=hp9000s300 ;;
1762 mipsel-*-openbsd*) machine=pmax ;;
1763 ns32k-*-openbsd*) machine=ns32000 ;;
1764 sparc-*-openbsd*) machine=sparc ;;
1765 vax-*-openbsd*) machine=vax ;;
1766 esac
1767 ;;
1768
1769 ## LynxOS ports
1770 *-*-lynxos* )
1771 opsys=lynxos
1772 case "${canonical}" in
1773 i[3456]86-*-lynxos*) machine=intel386 ;;
1774 powerpc-*-lynxos*) machine=powerpc ;;
1775 esac
1776 ;;
1777
1778 ## Acorn RISCiX:
1779 arm-acorn-riscix1.1* )
1780 machine=acorn opsys=riscix1-1
1781 ;;
1782 arm-acorn-riscix1.2* | arm-acorn-riscix )
1783 ## This name is riscix12 instead of riscix1.2
1784 ## to avoid a file name conflict on MSDOS.
1785 machine=acorn opsys=riscix12
1786 ;;
1787
1788 ## BSDI ports
1789 *-*-bsdi* )
1790 opsys=bsdi
1791 case "${canonical}" in
1792 i[345]86-*-bsdi*) machine=intel386 ;;
1793 sparc-*-bsdi*) machine=sparc ;;
1794 powerpc-*-bsdi*) machine=macppc ;;
1795 esac
1796 case "${canonical}" in
1797 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1798 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1799 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1800 *-*-bsdi3* ) opsys=bsdos3 ;;
1801 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1802 esac
1803 ;;
1804
1805 ## Alliant machines
1806 ## Strictly speaking, we need the version of the alliant operating
1807 ## system to choose the right machine file, but currently the
1808 ## configuration name doesn't tell us enough to choose the right
1809 ## one; we need to give alliants their own operating system name to
1810 ## do this right. When someone cares, they can help us.
1811 fx80-alliant-* )
1812 machine=alliant4 opsys=bsd4-2
1813 ;;
1814 i860-alliant-* )
1815 machine=alliant-2800 opsys=bsd4-3
1816 ;;
1817
1818 ## Alpha (DEC) machines.
1819 alpha*-dec-osf* )
1820 machine=alpha opsys=osf1
1821 # This is needed to find X11R6.1 libraries for certain tests.
1822 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1824 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1825 # due to non-traditional preprocessing with the current compiler
1826 # defaults. OSF 4 can also have that compiler version, and there
1827 # seems always to have been a usable /usr/bin/cpp.
1828 NON_GNU_CPP=/usr/bin/cpp
1829 case "${canonical}" in
1830 alpha*-dec-osf[5-9]*)
1831 opsys=osf5-0 ;;
1832 esac
1833 ;;
1834
1835 alpha*-*-linux-gnu* )
1836 machine=alpha opsys=gnu-linux
1837 ;;
1838
1839 arm*-*-linux-gnu* )
1840 machine=arm opsys=gnu-linux
1841 ;;
1842
1843 ## Altos 3068
1844 m68*-altos-sysv* )
1845 machine=altos opsys=usg5-2
1846 ;;
1847
1848 ## Amdahl UTS
1849 580-amdahl-sysv* )
1850 machine=amdahl opsys=usg5-2-2
1851 ;;
1852
1853 ## Apollo, Domain/OS
1854 m68*-apollo-* )
1855 machine=apollo opsys=bsd4-3
1856 ;;
1857
1858 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 we32k-att-sysv* )
1860 machine=att3b opsys=usg5-2-2
1861 ;;
1862
1863 ## AT&T 3b1 - The Mighty Unix PC!
1864 m68*-att-sysv* )
1865 machine=7300 opsys=usg5-2-2
1866 ;;
1867
1868 ## Bull dpx20
1869 rs6000-bull-bosx* )
1870 machine=ibmrs6000 opsys=aix3-2
1871 ;;
1872
1873 ## Bull dpx2
1874 m68*-bull-sysv3* )
1875 machine=dpx2 opsys=usg5-3
1876 ;;
1877
1878 ## Bull sps7
1879 m68*-bull-sysv2* )
1880 machine=sps7 opsys=usg5-2
1881 ;;
1882
1883 ## CCI 5/32, 6/32 -- see "Tahoe".
1884
1885 ## Celerity
1886 ## I don't know what configuration name to use for this; config.sub
1887 ## doesn't seem to know anything about it. Hey, Celerity users, get
1888 ## in touch with us!
1889 celerity-celerity-bsd* )
1890 machine=celerity opsys=bsd4-2
1891 ;;
1892
1893 ## Clipper
1894 ## What operating systems does this chip run that Emacs has been
1895 ## tested on?
1896 clipper-* )
1897 machine=clipper
1898 ## We'll use the catch-all code at the bottom to guess the
1899 ## operating system.
1900 ;;
1901
1902 ## Compaq Nonstop
1903 mips-compaq-nonstopux* )
1904 machine=nonstopux opsys=nonstopux
1905 ;;
1906
1907 ## Convex
1908 *-convex-bsd* | *-convex-convexos* )
1909 machine=convex opsys=bsd4-3
1910 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1911 NON_GNU_CPP="cc -E -P"
1912 ;;
1913
1914 ## Cubix QBx/386
1915 i[3456]86-cubix-sysv* )
1916 machine=intel386 opsys=usg5-3
1917 ;;
1918
1919 ## Cydra 5
1920 cydra*-cydrome-sysv* )
1921 machine=cydra5 opsys=usg5-3
1922 ;;
1923
1924 ## Data General AViiON Machines
1925 ## DG changed naming conventions with the release of 5.4.4.10, they
1926 ## dropped the initial 5.4 but left the intervening R. Because of the
1927 ## R this shouldn't conflict with older versions of the OS (which I
1928 ## think were named like dgux4.*). In addition, DG new AViiONs series
1929 ## uses either Motorola M88k or Intel Pentium CPUs.
1930 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1931 machine=aviion opsys=dgux4
1932 ;;
1933 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1934 ## This name is dgux5-4-3 instead of dgux5-4r3
1935 ## to avoid a file name conflict on MSDOS.
1936 machine=aviion opsys=dgux5-4-3
1937 ;;
1938 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1939 machine=aviion opsys=dgux5-4r2
1940 ;;
1941 m88k-dg-dgux* )
1942 machine=aviion opsys=dgux
1943 ;;
1944
1945 ## Data General AViiON Intel (x86) Machines
1946 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1947 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1948 i[345]86-dg-dguxR4* )
1949 machine=aviion-intel opsys=dgux4
1950 ;;
1951
1952 ## DECstations
1953 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1954 machine=pmax opsys=bsd4-2
1955 ;;
1956 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1957 machine=pmax opsys=bsd4-3
1958 ;;
1959 mips-dec-ultrix* )
1960 machine=pmax opsys=ultrix4-3
1961 ;;
1962 mips-dec-osf* )
1963 machine=pmax opsys=osf1
1964 ;;
1965 mips-dec-mach_bsd4.3* )
1966 machine=pmax opsys=mach-bsd4-3
1967 ;;
1968
1969 ## Motorola Delta machines
1970 m68k-motorola-sysv* | m68000-motorola-sysv* )
1971 machine=delta opsys=usg5-3
1972 if test -z "`type gnucc | grep 'not found'`"
1973 then
1974 if test -s /etc/167config
1975 then CC="gnucc -m68040"
1976 else CC="gnucc -m68881"
1977 fi
1978 else
1979 if test -z "`type gcc | grep 'not found'`"
1980 then CC=gcc
1981 else CC=cc
1982 fi
1983 fi
1984 ;;
1985 m88k-motorola-sysv4* )
1986 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1987 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1988 # I hope there are not other 4.0 versions for this machine
1989 # which really need usg5-4 instead.
1990 machine=delta88k opsys=usg5-4-2
1991 ;;
1992 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1993 machine=delta88k opsys=usg5-3
1994 ;;
1995
1996 ## Dual machines
1997 m68*-dual-sysv* )
1998 machine=dual opsys=usg5-2
1999 ;;
2000 m68*-dual-uniplus* )
2001 machine=dual opsys=unipl5-2
2002 ;;
2003
2004 ## Elxsi 6400
2005 elxsi-elxsi-sysv* )
2006 machine=elxsi opsys=usg5-2
2007 ;;
2008
2009 ## Encore machines
2010 ns16k-encore-bsd* )
2011 machine=ns16000 opsys=umax
2012 ;;
2013
2014 ## The GEC 63 - apparently, this port isn't really finished yet.
2015 # I'm sure we finished off the last of the machines, though. -- fx
2016
2017 ## Gould Power Node and NP1
2018 pn-gould-bsd4.2* )
2019 machine=gould opsys=bsd4-2
2020 ;;
2021 pn-gould-bsd4.3* )
2022 machine=gould opsys=bsd4-3
2023 ;;
2024 np1-gould-bsd* )
2025 machine=gould-np1 opsys=bsd4-3
2026 ;;
2027
2028 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2029 ## as far as Emacs is concerned).
2030 m88k-harris-cxux* )
2031 # Build needs to be different on 7.0 and later releases
2032 case "`uname -r`" in
2033 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2034 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2035 esac
2036 NON_GNU_CPP="/lib/cpp"
2037 ;;
2038 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 m68k-harris-cxux* )
2040 machine=nh3000 opsys=cxux
2041 ;;
2042 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2043 powerpc-harris-powerunix )
2044 machine=nh6000 opsys=powerunix
2045 NON_GNU_CPP="cc -Xo -E -P"
2046 ;;
2047 ## SR2001/SR2201 running HI-UX/MPP
2048 hppa1.1-hitachi-hiuxmpp* )
2049 machine=sr2k opsys=hiuxmpp
2050 ;;
2051 hppa1.1-hitachi-hiuxwe2* )
2052 machine=sr2k opsys=hiuxwe2
2053 ;;
2054 ## Honeywell XPS100
2055 xps*-honeywell-sysv* )
2056 machine=xps100 opsys=usg5-2
2057 ;;
2058
2059 ## HP 9000 series 200 or 300
2060 m68*-hp-bsd* )
2061 machine=hp9000s300 opsys=bsd4-3
2062 ;;
2063 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 m68*-hp-hpux* )
2065 case "`uname -r`" in
2066 ## Someone's system reports A.B8.05 for this.
2067 ## I wonder what other possibilities there are.
2068 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2070 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2071 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2072 *) machine=hp9000s300 opsys=hpux ;;
2073 esac
2074 ;;
2075
2076 ## HP 9000 series 700 and 800, running HP/UX
2077 hppa*-hp-hpux7* )
2078 machine=hp800 opsys=hpux
2079 ;;
2080 hppa*-hp-hpux8* )
2081 machine=hp800 opsys=hpux8
2082 ;;
2083 hppa*-hp-hpux9shr* )
2084 machine=hp800 opsys=hpux9shr
2085 ;;
2086 hppa*-hp-hpux9* )
2087 machine=hp800 opsys=hpux9
2088 ;;
2089 hppa*-hp-hpux10.2* )
2090 machine=hp800 opsys=hpux10-20
2091 ;;
2092 hppa*-hp-hpux10* )
2093 machine=hp800 opsys=hpux10
2094 ;;
2095 hppa*-hp-hpux1[1-9]* )
2096 machine=hp800 opsys=hpux11
2097 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2098 ;;
2099
2100 hppa*-*-linux-gnu* )
2101 machine=hp800 opsys=gnu-linux
2102 ;;
2103
2104 ## HP 9000 series 700 and 800, running HP/UX
2105 hppa*-hp-hpux* )
2106 ## Cross-compilation? Nah!
2107 case "`uname -r`" in
2108 ## Someone's system reports A.B8.05 for this.
2109 ## I wonder what other possibilities there are.
2110 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2111 *.08.* ) machine=hp800 opsys=hpux8 ;;
2112 *.09.* ) machine=hp800 opsys=hpux9 ;;
2113 *) machine=hp800 opsys=hpux10 ;;
2114 esac
2115 ;;
2116 hppa*-*-nextstep* )
2117 machine=hp800 opsys=nextstep
2118 ;;
2119
2120 ## Orion machines
2121 orion-orion-bsd* )
2122 machine=orion opsys=bsd4-2
2123 ;;
2124 clipper-orion-bsd* )
2125 machine=orion105 opsys=bsd4-2
2126 ;;
2127
2128 ## IBM machines
2129 i[3456]86-ibm-aix1.1* )
2130 machine=ibmps2-aix opsys=usg5-2-2
2131 ;;
2132 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2133 machine=ibmps2-aix opsys=usg5-3
2134 ;;
2135 i370-ibm-aix*)
2136 machine=ibm370aix opsys=usg5-3
2137 ;;
2138 s390-*-linux-gnu* )
2139 machine=ibms390 opsys=gnu-linux
2140 ;;
2141 s390x-*-linux-gnu* )
2142 machine=ibms390x opsys=gnu-linux
2143 ;;
2144 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2145 machine=ibmrs6000 opsys=aix3-1
2146 ;;
2147 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2148 machine=ibmrs6000 opsys=aix3-2-5
2149 ;;
2150 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2151 machine=ibmrs6000 opsys=aix4-1
2152 ;;
2153 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2154 machine=ibmrs6000 opsys=aix4-2
2155 ;;
2156 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2157 machine=ibmrs6000 opsys=aix4-2
2158 ;;
2159 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2160 machine=ibmrs6000 opsys=aix4
2161 ;;
2162 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2163 machine=ibmrs6000 opsys=aix4-1
2164 ;;
2165 rs6000-ibm-aix* | powerpc-ibm-aix* )
2166 machine=ibmrs6000 opsys=aix3-2
2167 ;;
2168 romp-ibm-bsd4.3* )
2169 machine=ibmrt opsys=bsd4-3
2170 ;;
2171 romp-ibm-bsd4.2* )
2172 machine=ibmrt opsys=bsd4-2
2173 ;;
2174 romp-ibm-aos4.3* )
2175 machine=ibmrt opsys=bsd4-3
2176 ;;
2177 romp-ibm-aos4.2* )
2178 machine=ibmrt opsys=bsd4-2
2179 ;;
2180 romp-ibm-aos* )
2181 machine=ibmrt opsys=bsd4-3
2182 ;;
2183 romp-ibm-bsd* )
2184 machine=ibmrt opsys=bsd4-3
2185 ;;
2186 romp-ibm-aix* )
2187 machine=ibmrt-aix opsys=usg5-2-2
2188 ;;
2189
2190 ## Integrated Solutions `Optimum V'
2191 m68*-isi-bsd4.2* )
2192 machine=isi-ov opsys=bsd4-2
2193 ;;
2194 m68*-isi-bsd4.3* )
2195 machine=isi-ov opsys=bsd4-3
2196 ;;
2197
2198 ## Intel 386 machines where we do care about the manufacturer
2199 i[3456]86-intsys-sysv* )
2200 machine=is386 opsys=usg5-2-2
2201 ;;
2202
2203 ## Prime EXL
2204 i[3456]86-prime-sysv* )
2205 machine=i386 opsys=usg5-3
2206 ;;
2207
2208 ## Sequent Symmetry running Dynix
2209 i[3456]86-sequent-bsd* )
2210 machine=symmetry opsys=bsd4-3
2211 ;;
2212
2213 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2214 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2215 machine=sequent-ptx opsys=ptx4
2216 NON_GNU_CPP=/lib/cpp
2217 ;;
2218
2219 ## Sequent Symmetry running DYNIX/ptx
2220 ## Use the old cpp rather than the newer ANSI one.
2221 i[3456]86-sequent-ptx* )
2222 machine=sequent-ptx opsys=ptx
2223 NON_GNU_CPP="/lib/cpp"
2224 ;;
2225
2226 ## ncr machine running svr4.3.
2227 i[3456]86-ncr-sysv4.3 )
2228 machine=ncr386 opsys=usg5-4-3
2229 ;;
2230
2231 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2232 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2233 i[3456]86-ncr-sysv* )
2234 machine=ncr386 opsys=usg5-4-2
2235 ;;
2236
2237 ## Intel Paragon OSF/1
2238 i860-intel-osf1* )
2239 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2240 ;;
2241
2242 ## Intel 860
2243 i860-*-sysv4* )
2244 machine=i860 opsys=usg5-4
2245 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2246 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2247 ;;
2248
2249 ## Macintosh PowerPC
2250 powerpc*-*-linux-gnu* )
2251 machine=macppc opsys=gnu-linux
2252 ;;
2253
2254 ## Masscomp machines
2255 m68*-masscomp-rtu* )
2256 machine=masscomp opsys=rtu
2257 ;;
2258
2259 ## Megatest machines
2260 m68*-megatest-bsd* )
2261 machine=mega68 opsys=bsd4-2
2262 ;;
2263
2264 ## Workstations sold by MIPS
2265 ## This is not necessarily all workstations using the MIPS processor -
2266 ## Irises are produced by SGI, and DECstations by DEC.
2267
2268 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2269 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2270 ## it gives for choosing between the alternatives seems to be "Use
2271 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2272 ## the BSD world." I'll assume that these are instructions for
2273 ## handling two odd situations, and that every other situation
2274 ## should use mips.h and usg5-2-2, they being listed first.
2275 mips-mips-usg* )
2276 machine=mips4
2277 ## Fall through to the general code at the bottom to decide on the OS.
2278 ;;
2279 mips-mips-riscos4* )
2280 machine=mips4 opsys=bsd4-3
2281 NON_GNU_CC="cc -systype bsd43"
2282 NON_GNU_CPP="cc -systype bsd43 -E"
2283 ;;
2284 mips-mips-riscos5* )
2285 machine=mips4 opsys=riscos5
2286 NON_GNU_CC="cc -systype bsd43"
2287 NON_GNU_CPP="cc -systype bsd43 -E"
2288 ;;
2289 mips-mips-bsd* )
2290 machine=mips opsys=bsd4-3
2291 ;;
2292 mips-mips-* )
2293 machine=mips opsys=usg5-2-2
2294 ;;
2295
2296 ## NeXT
2297 m68*-next-* | m68k-*-nextstep* )
2298 machine=m68k opsys=nextstep
2299 ;;
2300
2301 ## The complete machine from National Semiconductor
2302 ns32k-ns-genix* )
2303 machine=ns32000 opsys=usg5-2
2304 ;;
2305
2306 ## NCR machines
2307 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2308 machine=tower32 opsys=usg5-2-2
2309 ;;
2310 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2311 machine=tower32v3 opsys=usg5-3
2312 ;;
2313
2314 ## NEC EWS4800
2315 mips-nec-sysv4*)
2316 machine=ews4800 opsys=ux4800
2317 ;;
2318
2319 ## Nixdorf Targon 31
2320 m68*-nixdorf-sysv* )
2321 machine=targon31 opsys=usg5-2-2
2322 ;;
2323
2324 ## Nu (TI or LMI)
2325 m68*-nu-sysv* )
2326 machine=nu opsys=usg5-2
2327 ;;
2328
2329 ## Plexus
2330 m68*-plexus-sysv* )
2331 machine=plexus opsys=usg5-2
2332 ;;
2333
2334 ## Pyramid machines
2335 ## I don't really have any idea what sort of processor the Pyramid has,
2336 ## so I'm assuming it is its own architecture.
2337 pyramid-pyramid-bsd* )
2338 machine=pyramid opsys=bsd4-2
2339 ;;
2340
2341 ## Sequent Balance
2342 ns32k-sequent-bsd4.2* )
2343 machine=sequent opsys=bsd4-2
2344 ;;
2345 ns32k-sequent-bsd4.3* )
2346 machine=sequent opsys=bsd4-3
2347 ;;
2348
2349 ## Siemens Nixdorf
2350 mips-siemens-sysv* | mips-sni-sysv*)
2351 machine=mips-siemens opsys=usg5-4
2352 NON_GNU_CC=/usr/ccs/bin/cc
2353 NON_GNU_CPP=/usr/ccs/lib/cpp
2354 ;;
2355
2356 ## Silicon Graphics machines
2357 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 m68*-sgi-iris3.5* )
2359 machine=irist opsys=iris3-5
2360 ;;
2361 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2362 machine=irist opsys=iris3-6
2363 ;;
2364 ## Iris 4D
2365 mips-sgi-irix3* )
2366 machine=iris4d opsys=irix3-3
2367 ;;
2368 mips-sgi-irix4* )
2369 machine=iris4d opsys=irix4-0
2370 ;;
2371 mips-sgi-irix6.5 )
2372 machine=iris4d opsys=irix6-5
2373 # Without defining _LANGUAGE_C, things get masked out in the headers
2374 # so that, for instance, grepping for `free' in stdlib.h fails and
2375 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2376 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2377 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2378 ;;
2379 mips-sgi-irix6* )
2380 machine=iris4d opsys=irix6-0
2381 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2382 # but presumably it does no harm.
2383 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2384 # -32 probably isn't necessary in later v.6s -- anyone know which?
2385 NON_GCC_TEST_OPTIONS=-32
2386 ;;
2387 mips-sgi-irix5.[01]* )
2388 machine=iris4d opsys=irix5-0
2389 ;;
2390 mips-sgi-irix5* | mips-sgi-irix* )
2391 machine=iris4d opsys=irix5-2
2392 ;;
2393
2394 ## SONY machines
2395 m68*-sony-bsd4.2* )
2396 machine=news opsys=bsd4-2
2397 ;;
2398 m68*-sony-bsd4.3* )
2399 machine=news opsys=bsd4-3
2400 ;;
2401 m68*-sony-newsos3* | m68*-sony-news3*)
2402 machine=news opsys=bsd4-3
2403 ;;
2404 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2405 machine=news-risc opsys=bsd4-3
2406 ;;
2407 mips-sony-newsos6* )
2408 machine=news-r6 opsys=newsos6
2409 ;;
2410 mips-sony-news* )
2411 machine=news-risc opsys=newsos5
2412 ;;
2413
2414 ## Stride
2415 m68*-stride-sysv* )
2416 machine=stride opsys=usg5-2
2417 ;;
2418
2419 ## Suns
2420 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2421 machine=sparc opsys=gnu-linux
2422 ;;
2423
2424 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2425 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2426 | rs6000-*-solaris2*)
2427 case "${canonical}" in
2428 m68*-sunos1* ) machine=sun1 ;;
2429 m68*-sunos2* ) machine=sun2 ;;
2430 m68* ) machine=sun3 ;;
2431 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2432 i[3456]86-*-* ) machine=intel386 ;;
2433 powerpcle* ) machine=powerpcle ;;
2434 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2435 sparc* ) machine=sparc ;;
2436 * ) unported=yes ;;
2437 esac
2438 case "${canonical}" in
2439 ## The Sun386 didn't get past 4.0.
2440 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2441 *-sunos4.0* ) opsys=sunos4-0 ;;
2442 *-sunos4.1.[3-9]*noshare )
2443 ## This name is sunos413 instead of sunos4-1-3
2444 ## to avoid a file name conflict on MSDOS.
2445 opsys=sunos413
2446 NON_GNU_CPP=/usr/lib/cpp
2447 NON_GCC_TEST_OPTIONS=-Bstatic
2448 GCC_TEST_OPTIONS=-static
2449 ;;
2450 *-sunos4.1.[3-9]* | *-sunos4shr*)
2451 opsys=sunos4shr
2452 NON_GNU_CPP=/usr/lib/cpp
2453 ;;
2454 *-sunos4* | *-sunos )
2455 opsys=sunos4-1
2456 NON_GCC_TEST_OPTIONS=-Bstatic
2457 GCC_TEST_OPTIONS=-static
2458 ;;
2459 *-sunos5.3* | *-solaris2.3* )
2460 opsys=sol2-3
2461 NON_GNU_CPP=/usr/ccs/lib/cpp
2462 ;;
2463 *-sunos5.4* | *-solaris2.4* )
2464 opsys=sol2-4
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 RANLIB="ar -ts"
2467 ;;
2468 *-sunos5.5* | *-solaris2.5* )
2469 opsys=sol2-5
2470 NON_GNU_CPP=/usr/ccs/lib/cpp
2471 RANLIB="ar -ts"
2472 ;;
2473 *-sunos5.6* | *-solaris2.6* )
2474 opsys=sol2-6
2475 NON_GNU_CPP=/usr/ccs/lib/cpp
2476 RANLIB="ar -ts"
2477 ;;
2478 *-sunos5* | *-solaris* )
2479 opsys=sol2-6
2480 NON_GNU_CPP=/usr/ccs/lib/cpp
2481 ;;
2482 * ) opsys=bsd4-2 ;;
2483 esac
2484 ## Watch out for a compiler that we know will not work.
2485 case "${canonical}" in
2486 *-solaris* | *-sunos5* )
2487 if [ "x$CC" = x/usr/ucb/cc ]; then
2488 ## /usr/ucb/cc doesn't work;
2489 ## we should find some other compiler that does work.
2490 unset CC
2491 fi
2492 ;;
2493 *) ;;
2494 esac
2495 ;;
2496 sparc-*-nextstep* )
2497 machine=sparc opsys=nextstep
2498 ;;
2499
2500 ## Tadpole 68k
2501 m68*-tadpole-sysv* )
2502 machine=tad68k opsys=usg5-3
2503 ;;
2504
2505 ## Tahoe machines
2506 tahoe-tahoe-bsd4.2* )
2507 machine=tahoe opsys=bsd4-2
2508 ;;
2509 tahoe-tahoe-bsd4.3* )
2510 machine=tahoe opsys=bsd4-3
2511 ;;
2512
2513 ## Tandem Integrity S2
2514 mips-tandem-sysv* )
2515 machine=tandem-s2 opsys=usg5-3
2516 ;;
2517
2518 ## Tektronix XD88
2519 m88k-tektronix-sysv3* )
2520 machine=tekxd88 opsys=usg5-3
2521 ;;
2522
2523 ## Tektronix 16000 box (6130?)
2524 ns16k-tektronix-bsd* )
2525 machine=ns16000 opsys=bsd4-2
2526 ;;
2527 ## Tektronix 4300
2528 ## src/m/tek4300.h hints that this is a m68k machine.
2529 m68*-tektronix-bsd* )
2530 machine=tek4300 opsys=bsd4-3
2531 ;;
2532
2533 ## Titan P2 or P3
2534 ## We seem to have lost the machine-description file titan.h!
2535 titan-titan-sysv* )
2536 machine=titan opsys=usg5-3
2537 ;;
2538
2539 ## Ustation E30 (SS5E)
2540 m68*-unisys-uniplus* )
2541 machine=ustation opsystem=unipl5-2
2542 ;;
2543
2544 ## Vaxen.
2545 vax-dec-* )
2546 machine=vax
2547 case "${canonical}" in
2548 *-bsd4.1* ) opsys=bsd4-1 ;;
2549 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2550 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2551 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2552 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2553 *-vms* ) opsys=vms ;;
2554 * ) unported=yes
2555 esac
2556 ;;
2557
2558 ## Whitechapel MG1
2559 ns16k-whitechapel-* )
2560 machine=mg1
2561 ## We don't know what sort of OS runs on these; we'll let the
2562 ## operating system guessing code below try.
2563 ;;
2564
2565 ## Wicat
2566 m68*-wicat-sysv* )
2567 machine=wicat opsys=usg5-2
2568 ;;
2569
2570 ## IA-64
2571 ia64*-*-linux* )
2572 machine=ia64 opsys=gnu-linux
2573 ;;
2574
2575 ## Intel 386 machines where we don't care about the manufacturer
2576 i[3456]86-*-* )
2577 machine=intel386
2578 case "${canonical}" in
2579 *-cygwin ) opsys=cygwin ;;
2580 *-darwin* ) opsys=darwin
2581 CPP="${CC-cc} -E -no-cpp-precomp"
2582 ;;
2583 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2584 *-isc2.2* ) opsys=isc2-2 ;;
2585 *-isc4.0* ) opsys=isc4-0 ;;
2586 *-isc4.* ) opsys=isc4-1
2587 GCC_TEST_OPTIONS=-posix
2588 NON_GCC_TEST_OPTIONS=-Xp
2589 ;;
2590 *-isc* ) opsys=isc3-0 ;;
2591 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2592 *-esix* ) opsys=esix ;;
2593 *-xenix* ) opsys=xenix ;;
2594 *-linux-gnu* ) opsys=gnu-linux ;;
2595 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2596 *-sco3.2v5* ) opsys=sco5
2597 NON_GNU_CPP=/lib/cpp
2598 # Prevent -belf from being passed to $CPP.
2599 # /lib/cpp does not accept it.
2600 OVERRIDE_CPPFLAGS=" "
2601 ;;
2602 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2604 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2605 *-386bsd* ) opsys=386bsd ;;
2606 *-nextstep* ) opsys=nextstep ;;
2607 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2608 esac
2609 ;;
2610
2611 ## m68k Linux-based GNU system
2612 m68k-*-linux-gnu* )
2613 machine=m68k opsys=gnu-linux
2614 ;;
2615
2616 ## Mips Linux-based GNU system
2617 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2618 machine=mips opsys=gnu-linux
2619 ;;
2620
2621 ## UXP/DS
2622 sparc-fujitsu-sysv4* )
2623 machine=sparc opsys=uxpds
2624 NON_GNU_CPP=/usr/ccs/lib/cpp
2625 RANLIB="ar -ts"
2626 ;;
2627
2628 ## UXP/V
2629 f301-fujitsu-uxpv4.1)
2630 machine=f301 opsys=uxpv
2631 ;;
2632
2633 ## Darwin / Mac OS X
2634 powerpc-apple-darwin* )
2635 machine=powermac opsys=darwin
2636 # Define CPP as follows to make autoconf work correctly.
2637 CPP="${CC-cc} -E -no-cpp-precomp"
2638 # Use fink packages if available.
2639 if test -d /sw/include && test -d /sw/lib; then
2640 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2641 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2642 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2643 fi
2644 ;;
2645
2646 ## AMD x86-64 Linux-based GNU system
2647 x86_64-*-linux-gnu* )
2648 machine=amdx86-64 opsys=gnu-linux
2649 ;;
2650
2651 * )
2652 unported=yes
2653 ;;
2654 esac
2655
2656 ### If the code above didn't choose an operating system, just choose
2657 ### an operating system based on the configuration name. You really
2658 ### only want to use this when you have no idea what the right
2659 ### operating system is; if you know what operating systems a machine
2660 ### runs, it's cleaner to make it explicit in the case statement
2661 ### above.
2662 if test x"${opsys}" = x; then
2663 case "${canonical}" in
2664 *-gnu* ) opsys=gnu ;;
2665 *-bsd4.[01] ) opsys=bsd4-1 ;;
2666 *-bsd4.2 ) opsys=bsd4-2 ;;
2667 *-bsd4.3 ) opsys=bsd4-3 ;;
2668 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2669 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2670 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2671 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2672 *-sysv4.2uw* ) opsys=unixware ;;
2673 *-sysv5uw* ) opsys=unixware ;;
2674 *-sysv5OpenUNIX* ) opsys=unixware ;;
2675 *-sysv4.1* | *-sysvr4.1* )
2676 NON_GNU_CPP=/usr/lib/cpp
2677 opsys=usg5-4 ;;
2678 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2679 if [ x$NON_GNU_CPP = x ]; then
2680 if [ -f /usr/ccs/lib/cpp ]; then
2681 NON_GNU_CPP=/usr/ccs/lib/cpp
2682 else
2683 NON_GNU_CPP=/lib/cpp
2684 fi
2685 fi
2686 opsys=usg5-4-2 ;;
2687 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2688 * )
2689 unported=yes
2690 ;;
2691 esac
2692 fi
2693
2694
2695
2696 if test $unported = yes; then
2697 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&5
2699 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2700 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2701 { (exit 1); exit 1; }; }
2702 fi
2703
2704 machfile="m/${machine}.h"
2705 opsysfile="s/${opsys}.h"
2706
2707
2708 #### Choose a compiler.
2709 test -n "$CC" && cc_specified=yes
2710
2711 # Save the value of CFLAGS that the user specified.
2712 SPECIFIED_CFLAGS="$CFLAGS"
2713
2714 case ${with_gcc} in
2715 "yes" ) CC="gcc" GCC=yes ;;
2716 "no" ) : ${CC=cc} ;;
2717 * )
2718 esac
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758 fi
2759
2760 fi
2761 if test -z "$ac_cv_prog_CC"; then
2762 ac_ct_CC=$CC
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_ac_ct_CC="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784 done
2785 done
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 fi
2797
2798 CC=$ac_ct_CC
2799 else
2800 CC="$ac_cv_prog_CC"
2801 fi
2802
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}cc; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_CC="${ac_tool_prefix}cc"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833 echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6
2835 else
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2838 fi
2839
2840 fi
2841 if test -z "$ac_cv_prog_CC"; then
2842 ac_ct_CC=$CC
2843 # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_CC="cc"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 echo "${ECHO_T}$ac_ct_CC" >&6
2873 else
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2876 fi
2877
2878 CC=$ac_ct_CC
2879 else
2880 CC="$ac_cv_prog_CC"
2881 fi
2882
2883 fi
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 ac_prog_rejected=no
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected=yes
2905 continue
2906 fi
2907 ac_cv_prog_CC="cc"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy $ac_cv_prog_CC
2917 shift
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2922 shift
2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 fi
2925 fi
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 echo "$as_me:$LINENO: result: $CC" >&5
2931 echo "${ECHO_T}$CC" >&6
2932 else
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2935 fi
2936
2937 fi
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971 echo "${ECHO_T}$CC" >&6
2972 else
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977 test -n "$CC" && break
2978 done
2979 fi
2980 if test -z "$CC"; then
2981 ac_ct_CC=$CC
2982 for ac_prog in cl
2983 do
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019 test -n "$ac_ct_CC" && break
3020 done
3021
3022 CC=$ac_ct_CC
3023 fi
3024
3025 fi
3026
3027
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO:" \
3036 "checking for C compiler version" >&5
3037 ac_compiler=`set X $ac_compile; echo $2`
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3039 (eval $ac_compiler --version </dev/null >&5) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3044 (eval $ac_compiler -v </dev/null >&5) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3049 (eval $ac_compiler -V </dev/null >&5) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3053
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060
3061 int
3062 main ()
3063 {
3064
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 ac_clean_files_save=$ac_clean_files
3070 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3071 # Try to create an executable without -o first, disregard a.out.
3072 # It will help us diagnose broken compilers, and finding out an intuition
3073 # of exeext.
3074 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3075 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3076 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3078 (eval $ac_link_default) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # Find the output, starting from the most likely. This scheme is
3083 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3084 # resort.
3085
3086 # Be careful to initialize this variable, since it used to be cached.
3087 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 ac_cv_exeext=
3089 # b.out is created by i960 compilers.
3090 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3091 do
3092 test -f "$ac_file" || continue
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3095 ;;
3096 conftest.$ac_ext )
3097 # This is the source file.
3098 ;;
3099 [ab].out )
3100 # We found the default executable, but exeext='' is most
3101 # certainly right.
3102 break;;
3103 *.* )
3104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 # FIXME: I believe we export ac_cv_exeext for Libtool,
3106 # but it would be cool to find out if it's true. Does anybody
3107 # maintain Libtool? --akim.
3108 export ac_cv_exeext
3109 break;;
3110 * )
3111 break;;
3112 esac
3113 done
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: C compiler cannot create executables
3121 See \`config.log' for more details." >&2;}
3122 { (exit 77); exit 77; }; }
3123 fi
3124
3125 ac_exeext=$ac_cv_exeext
3126 echo "$as_me:$LINENO: result: $ac_file" >&5
3127 echo "${ECHO_T}$ac_file" >&6
3128
3129 # Check the compiler produces executables we can run. If not, either
3130 # the compiler is broken, or we cross compile.
3131 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3132 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3133 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3134 # If not cross compiling, check that we can run a simple program.
3135 if test "$cross_compiling" != yes; then
3136 if { ac_try='./$ac_file'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 cross_compiling=no
3143 else
3144 if test "$cross_compiling" = maybe; then
3145 cross_compiling=yes
3146 else
3147 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3148 If you meant to cross compile, use \`--host'.
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155 fi
3156 fi
3157 echo "$as_me:$LINENO: result: yes" >&5
3158 echo "${ECHO_T}yes" >&6
3159
3160 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3161 ac_clean_files=$ac_clean_files_save
3162 # Check the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3165 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3166 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3167 echo "${ECHO_T}$cross_compiling" >&6
3168
3169 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3170 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3172 (eval $ac_link) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; then
3176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3178 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 # `rm'.
3180 for ac_file in conftest.exe conftest conftest.*; do
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 export ac_cv_exeext
3186 break;;
3187 * ) break;;
3188 esac
3189 done
3190 else
3191 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3196 fi
3197
3198 rm -f conftest$ac_cv_exeext
3199 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3200 echo "${ECHO_T}$ac_cv_exeext" >&6
3201
3202 rm -f conftest.$ac_ext
3203 EXEEXT=$ac_cv_exeext
3204 ac_exeext=$EXEEXT
3205 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3206 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3207 if test "${ac_cv_objext+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216
3217 int
3218 main ()
3219 {
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.o conftest.obj
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3235 break;;
3236 esac
3237 done
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3247 fi
3248
3249 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 fi
3251 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3252 echo "${ECHO_T}$ac_cv_objext" >&6
3253 OBJEXT=$ac_cv_objext
3254 ac_objext=$OBJEXT
3255 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270 #ifndef __GNUC__
3271 choke me
3272 #endif
3273
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_compiler_gnu=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 ac_compiler_gnu=no
3305 fi
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 CFLAGS="-g"
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_prog_cc_g=yes
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 ac_cv_prog_cc_g=no
3363 fi
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 fi
3366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3372 CFLAGS="-g -O2"
3373 else
3374 CFLAGS="-g"
3375 fi
3376 else
3377 if test "$GCC" = yes; then
3378 CFLAGS="-O2"
3379 else
3380 CFLAGS=
3381 fi
3382 fi
3383 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3384 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3385 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_cv_prog_cc_stdc=no
3389 ac_save_CC=$CC
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <stdarg.h>
3397 #include <stdio.h>
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3404 char **p;
3405 int i;
3406 {
3407 return p[i];
3408 }
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3410 {
3411 char *s;
3412 va_list v;
3413 va_start (v,p);
3414 s = g (p, va_arg (v,int));
3415 va_end (v);
3416 return s;
3417 }
3418
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std1 is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std1. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 int argc;
3433 char **argv;
3434 int
3435 main ()
3436 {
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 # Don't try gcc -ansi; that turns off useful extensions and
3443 # breaks some systems' header files.
3444 # AIX -qlanglvl=ansi
3445 # Ultrix and OSF/1 -std1
3446 # HP-UX 10.20 and later -Ae
3447 # HP-UX older versions -Aa -D_HPUX_SOURCE
3448 # SVR4 -Xc -D__EXTENSIONS__
3449 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 do
3451 CC="$ac_save_CC $ac_arg"
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_prog_cc_stdc=$ac_arg
3474 break
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 fi
3480 rm -f conftest.err conftest.$ac_objext
3481 done
3482 rm -f conftest.$ac_ext conftest.$ac_objext
3483 CC=$ac_save_CC
3484
3485 fi
3486
3487 case "x$ac_cv_prog_cc_stdc" in
3488 x|xno)
3489 echo "$as_me:$LINENO: result: none needed" >&5
3490 echo "${ECHO_T}none needed" >&6 ;;
3491 *)
3492 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3493 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3494 CC="$CC $ac_cv_prog_cc_stdc" ;;
3495 esac
3496
3497 # Some people use a C++ compiler to compile C. Since we use `exit',
3498 # in C++ we need to declare it. In case someone uses the same compiler
3499 # for both compiling C and C++ we need to have the C++ compiler decide
3500 # the declaration of exit, since it's the most demanding environment.
3501 cat >conftest.$ac_ext <<_ACEOF
3502 #ifndef __cplusplus
3503 choke me
3504 #endif
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 for ac_declaration in \
3528 '' \
3529 'extern "C" void std::exit (int) throw (); using std::exit;' \
3530 'extern "C" void std::exit (int); using std::exit;' \
3531 'extern "C" void exit (int) throw ();' \
3532 'extern "C" void exit (int);' \
3533 'void exit (int);'
3534 do
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 $ac_declaration
3542 #include <stdlib.h>
3543 int
3544 main ()
3545 {
3546 exit (42);
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 :
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 continue
3578 fi
3579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 $ac_declaration
3587 int
3588 main ()
3589 {
3590 exit (42);
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag" || 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
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3684 # On Suns, sometimes $CPP names a directory.
3685 if test -n "$CPP" && test -d "$CPP"; then
3686 CPP=
3687 fi
3688 if test -z "$CPP"; then
3689 if test "${ac_cv_prog_CPP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 # Double quotes because CPP needs to be expanded
3693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3694 do
3695 ac_preproc_ok=false
3696 for ac_c_preproc_warn_flag in '' yes
3697 do
3698 # Use a header file that comes with gcc, so configuring glibc
3699 # with a fresh cross-compiler works.
3700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3701 # <limits.h> exists even on freestanding compilers.
3702 # On the NeXT, cc -E runs the code through the compiler's parser,
3703 # not just through cpp. "Syntax error" is here to catch this case.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #ifdef __STDC__
3711 # include <limits.h>
3712 #else
3713 # include <assert.h>
3714 #endif
3715 Syntax error
3716 _ACEOF
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null; then
3725 if test -s conftest.err; then
3726 ac_cpp_err=$ac_c_preproc_warn_flag
3727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3728 else
3729 ac_cpp_err=
3730 fi
3731 else
3732 ac_cpp_err=yes
3733 fi
3734 if test -z "$ac_cpp_err"; then
3735 :
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 # Broken: fails on valid input.
3741 continue
3742 fi
3743 rm -f conftest.err conftest.$ac_ext
3744
3745 # OK, works on sane cases. Now check whether non-existent headers
3746 # can be detected and how.
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3754 _ACEOF
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag
3765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3766 else
3767 ac_cpp_err=
3768 fi
3769 else
3770 ac_cpp_err=yes
3771 fi
3772 if test -z "$ac_cpp_err"; then
3773 # Broken: success on invalid input.
3774 continue
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 # Passes both tests.
3780 ac_preproc_ok=:
3781 break
3782 fi
3783 rm -f conftest.err conftest.$ac_ext
3784
3785 done
3786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3787 rm -f conftest.err conftest.$ac_ext
3788 if $ac_preproc_ok; then
3789 break
3790 fi
3791
3792 done
3793 ac_cv_prog_CPP=$CPP
3794
3795 fi
3796 CPP=$ac_cv_prog_CPP
3797 else
3798 ac_cv_prog_CPP=$CPP
3799 fi
3800 echo "$as_me:$LINENO: result: $CPP" >&5
3801 echo "${ECHO_T}$CPP" >&6
3802 ac_preproc_ok=false
3803 for ac_c_preproc_warn_flag in '' yes
3804 do
3805 # Use a header file that comes with gcc, so configuring glibc
3806 # with a fresh cross-compiler works.
3807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 # <limits.h> exists even on freestanding compilers.
3809 # On the NeXT, cc -E runs the code through the compiler's parser,
3810 # not just through cpp. "Syntax error" is here to catch this case.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #ifdef __STDC__
3818 # include <limits.h>
3819 #else
3820 # include <assert.h>
3821 #endif
3822 Syntax error
3823 _ACEOF
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null; then
3832 if test -s conftest.err; then
3833 ac_cpp_err=$ac_c_preproc_warn_flag
3834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3835 else
3836 ac_cpp_err=
3837 fi
3838 else
3839 ac_cpp_err=yes
3840 fi
3841 if test -z "$ac_cpp_err"; then
3842 :
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 # Broken: fails on valid input.
3848 continue
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 # OK, works on sane cases. Now check whether non-existent headers
3853 # can be detected and how.
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 #include <ac_nonexistent.h>
3861 _ACEOF
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null; then
3870 if test -s conftest.err; then
3871 ac_cpp_err=$ac_c_preproc_warn_flag
3872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873 else
3874 ac_cpp_err=
3875 fi
3876 else
3877 ac_cpp_err=yes
3878 fi
3879 if test -z "$ac_cpp_err"; then
3880 # Broken: success on invalid input.
3881 continue
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 # Passes both tests.
3887 ac_preproc_ok=:
3888 break
3889 fi
3890 rm -f conftest.err conftest.$ac_ext
3891
3892 done
3893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3894 rm -f conftest.err conftest.$ac_ext
3895 if $ac_preproc_ok; then
3896 :
3897 else
3898 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&5
3900 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3901 See \`config.log' for more details." >&2;}
3902 { (exit 1); exit 1; }; }
3903 fi
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911
3912 echo "$as_me:$LINENO: checking for egrep" >&5
3913 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_egrep+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3918 then ac_cv_prog_egrep='grep -E'
3919 else ac_cv_prog_egrep='egrep'
3920 fi
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3924 EGREP=$ac_cv_prog_egrep
3925
3926
3927
3928 echo "$as_me:$LINENO: checking for AIX" >&5
3929 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #ifdef _AIX
3937 yes
3938 #endif
3939
3940 _ACEOF
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 $EGREP "yes" >/dev/null 2>&1; then
3943 echo "$as_me:$LINENO: result: yes" >&5
3944 echo "${ECHO_T}yes" >&6
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _ALL_SOURCE 1
3947 _ACEOF
3948
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953 rm -f conftest*
3954
3955
3956
3957 cat >>confdefs.h <<\_ACEOF
3958 #define _GNU_SOURCE 1
3959 _ACEOF
3960
3961
3962
3963 ### Use -Wno-pointer-sign if the compiler supports it
3964 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3965 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3966 SAVE_CFLAGS="$CFLAGS"
3967 CFLAGS="$CFLAGS -Wno-pointer-sign"
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 has_option=yes
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 has_option=no
4010 fi
4011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4012 if test $has_option = yes; then
4013 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4014 fi
4015 echo "$as_me:$LINENO: result: $has_option" >&5
4016 echo "${ECHO_T}$has_option" >&6
4017 CFLAGS="$SAVE_CFLAGS"
4018 unset has_option
4019 unset SAVE_CFLAGS
4020
4021 #### Some other nice autoconf tests.
4022
4023 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4024 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4025 LN_S=$as_ln_s
4026 if test "$LN_S" = "ln -s"; then
4027 echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4029 else
4030 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4031 echo "${ECHO_T}no, using $LN_S" >&6
4032 fi
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4041 # On Suns, sometimes $CPP names a directory.
4042 if test -n "$CPP" && test -d "$CPP"; then
4043 CPP=
4044 fi
4045 if test -z "$CPP"; then
4046 if test "${ac_cv_prog_CPP+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 # Double quotes because CPP needs to be expanded
4050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 do
4052 ac_preproc_ok=false
4053 for ac_c_preproc_warn_flag in '' yes
4054 do
4055 # Use a header file that comes with gcc, so configuring glibc
4056 # with a fresh cross-compiler works.
4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058 # <limits.h> exists even on freestanding compilers.
4059 # On the NeXT, cc -E runs the code through the compiler's parser,
4060 # not just through cpp. "Syntax error" is here to catch this case.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #ifdef __STDC__
4068 # include <limits.h>
4069 #else
4070 # include <assert.h>
4071 #endif
4072 Syntax error
4073 _ACEOF
4074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev/null; then
4082 if test -s conftest.err; then
4083 ac_cpp_err=$ac_c_preproc_warn_flag
4084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4085 else
4086 ac_cpp_err=
4087 fi
4088 else
4089 ac_cpp_err=yes
4090 fi
4091 if test -z "$ac_cpp_err"; then
4092 :
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 # Broken: fails on valid input.
4098 continue
4099 fi
4100 rm -f conftest.err conftest.$ac_ext
4101
4102 # OK, works on sane cases. Now check whether non-existent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null; then
4120 if test -s conftest.err; then
4121 ac_cpp_err=$ac_c_preproc_warn_flag
4122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4123 else
4124 ac_cpp_err=
4125 fi
4126 else
4127 ac_cpp_err=yes
4128 fi
4129 if test -z "$ac_cpp_err"; then
4130 # Broken: success on invalid input.
4131 continue
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 # Passes both tests.
4137 ac_preproc_ok=:
4138 break
4139 fi
4140 rm -f conftest.err conftest.$ac_ext
4141
4142 done
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then
4146 break
4147 fi
4148
4149 done
4150 ac_cv_prog_CPP=$CPP
4151
4152 fi
4153 CPP=$ac_cv_prog_CPP
4154 else
4155 ac_cv_prog_CPP=$CPP
4156 fi
4157 echo "$as_me:$LINENO: result: $CPP" >&5
4158 echo "${ECHO_T}$CPP" >&6
4159 ac_preproc_ok=false
4160 for ac_c_preproc_warn_flag in '' yes
4161 do
4162 # Use a header file that comes with gcc, so configuring glibc
4163 # with a fresh cross-compiler works.
4164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 # <limits.h> exists even on freestanding compilers.
4166 # On the NeXT, cc -E runs the code through the compiler's parser,
4167 # not just through cpp. "Syntax error" is here to catch this case.
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 #ifdef __STDC__
4175 # include <limits.h>
4176 #else
4177 # include <assert.h>
4178 #endif
4179 Syntax error
4180 _ACEOF
4181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null; then
4189 if test -s conftest.err; then
4190 ac_cpp_err=$ac_c_preproc_warn_flag
4191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4192 else
4193 ac_cpp_err=
4194 fi
4195 else
4196 ac_cpp_err=yes
4197 fi
4198 if test -z "$ac_cpp_err"; then
4199 :
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 # Broken: fails on valid input.
4205 continue
4206 fi
4207 rm -f conftest.err conftest.$ac_ext
4208
4209 # OK, works on sane cases. Now check whether non-existent headers
4210 # can be detected and how.
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <ac_nonexistent.h>
4218 _ACEOF
4219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } >/dev/null; then
4227 if test -s conftest.err; then
4228 ac_cpp_err=$ac_c_preproc_warn_flag
4229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4230 else
4231 ac_cpp_err=
4232 fi
4233 else
4234 ac_cpp_err=yes
4235 fi
4236 if test -z "$ac_cpp_err"; then
4237 # Broken: success on invalid input.
4238 continue
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4246 fi
4247 rm -f conftest.err conftest.$ac_ext
4248
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then
4253 :
4254 else
4255 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details." >&5
4257 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." >&2;}
4259 { (exit 1); exit 1; }; }
4260 fi
4261
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 # Find a good install program. We prefer a C program (faster),
4269 # so one script is as good as another. But avoid the broken or
4270 # incompatible versions:
4271 # SysV /etc/install, /usr/sbin/install
4272 # SunOS /usr/etc/install
4273 # IRIX /sbin/install
4274 # AIX /bin/install
4275 # AmigaOS /C/install, which installs bootblocks on floppy discs
4276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4279 # OS/2's system install, which has a completely different semantic
4280 # ./install, which can be erroneously created by make from ./install.sh.
4281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4283 if test -z "$INSTALL"; then
4284 if test "${ac_cv_path_install+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 # Account for people who put trailing slashes in PATH elements.
4293 case $as_dir/ in
4294 ./ | .// | /cC/* | \
4295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4297 /usr/ucb/* ) ;;
4298 *)
4299 # OSF1 and SCO ODT 3.0 have their own names for install.
4300 # Don't use installbsd from OSF since it installs stuff as root
4301 # by default.
4302 for ac_prog in ginstall scoinst install; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4305 if test $ac_prog = install &&
4306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4307 # AIX install. It has an incompatible calling convention.
4308 :
4309 elif test $ac_prog = install &&
4310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4311 # program-specific install script used by HP pwplus--don't use.
4312 :
4313 else
4314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4315 break 3
4316 fi
4317 fi
4318 done
4319 done
4320 ;;
4321 esac
4322 done
4323
4324
4325 fi
4326 if test "${ac_cv_path_install+set}" = set; then
4327 INSTALL=$ac_cv_path_install
4328 else
4329 # As a last resort, use the slow shell script. We don't cache a
4330 # path for INSTALL within a source directory, because that will
4331 # break other packages using the cache if that directory is
4332 # removed, or if the path is relative.
4333 INSTALL=$ac_install_sh
4334 fi
4335 fi
4336 echo "$as_me:$LINENO: result: $INSTALL" >&5
4337 echo "${ECHO_T}$INSTALL" >&6
4338
4339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4340 # It thinks the first close brace ends the variable substitution.
4341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4342
4343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4344
4345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4346
4347 if test "x$RANLIB" = x; then
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_prog_RANLIB+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 if test -n "$RANLIB"; then
4357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372
4373 fi
4374 fi
4375 RANLIB=$ac_cv_prog_RANLIB
4376 if test -n "$RANLIB"; then
4377 echo "$as_me:$LINENO: result: $RANLIB" >&5
4378 echo "${ECHO_T}$RANLIB" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383
4384 fi
4385 if test -z "$ac_cv_prog_RANLIB"; then
4386 ac_ct_RANLIB=$RANLIB
4387 # Extract the first word of "ranlib", so it can be a program name with args.
4388 set dummy ranlib; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -n "$ac_ct_RANLIB"; then
4395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_ac_ct_RANLIB="ranlib"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410
4411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4412 fi
4413 fi
4414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4415 if test -n "$ac_ct_RANLIB"; then
4416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 fi
4422
4423 RANLIB=$ac_ct_RANLIB
4424 else
4425 RANLIB="$ac_cv_prog_RANLIB"
4426 fi
4427
4428 fi
4429 # Extract the first word of "install-info", so it can be a program name with args.
4430 set dummy install-info; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 case $INSTALL_INFO in
4437 [\\/]* | ?:[\\/]*)
4438 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4439 ;;
4440 *)
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454
4455 ;;
4456 esac
4457 fi
4458 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4459
4460 if test -n "$INSTALL_INFO"; then
4461 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4462 echo "${ECHO_T}$INSTALL_INFO" >&6
4463 else
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4466 fi
4467
4468 # Extract the first word of "install-info", so it can be a program name with args.
4469 set dummy install-info; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 case $INSTALL_INFO in
4476 [\\/]* | ?:[\\/]*)
4477 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4478 ;;
4479 *)
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in /usr/sbin
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493
4494 ;;
4495 esac
4496 fi
4497 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4498
4499 if test -n "$INSTALL_INFO"; then
4500 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4501 echo "${ECHO_T}$INSTALL_INFO" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507 # Extract the first word of "install-info", so it can be a program name with args.
4508 set dummy install-info; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 case $INSTALL_INFO in
4515 [\\/]* | ?:[\\/]*)
4516 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4517 ;;
4518 *)
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in /sbin
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532
4533 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4534 ;;
4535 esac
4536 fi
4537 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4538
4539 if test -n "$INSTALL_INFO"; then
4540 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4541 echo "${ECHO_T}$INSTALL_INFO" >&6
4542 else
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547 # Extract the first word of "gzip", so it can be a program name with args.
4548 set dummy gzip; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 case $GZIP_PROG in
4555 [\\/]* | ?:[\\/]*)
4556 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4557 ;;
4558 *)
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570 done
4571 done
4572
4573 ;;
4574 esac
4575 fi
4576 GZIP_PROG=$ac_cv_path_GZIP_PROG
4577
4578 if test -n "$GZIP_PROG"; then
4579 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4580 echo "${ECHO_T}$GZIP_PROG" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4584 fi
4585
4586
4587
4588 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4589 then
4590 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4591 fi
4592
4593 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4594 then
4595 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4596 fi
4597
4598
4599 late_LDFLAGS=$LDFLAGS
4600 if test "$GCC" = yes; then
4601 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4602 else
4603 LDFLAGS="$LDFLAGS -znocombreloc"
4604 fi
4605
4606 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4607 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4608 cat >conftest.$ac_ext <<_ACEOF
4609 main(){return 0;}
4610 _ACEOF
4611 rm -f conftest.$ac_objext conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest$ac_exeext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 echo "$as_me:$LINENO: result: yes" >&5
4633 echo "${ECHO_T}yes" >&6
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 LDFLAGS=$late_LDFLAGS
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642 rm -f conftest.err conftest.$ac_objext \
4643 conftest$ac_exeext conftest.$ac_ext
4644
4645 #### Extract some information from the operating system and machine files.
4646
4647 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4648 - which libraries the lib-src programs will want, and
4649 - whether the GNU malloc routines are usable..." >&5
4650 echo "$as_me: checking the machine- and system-dependent files to find out
4651 - which libraries the lib-src programs will want, and
4652 - whether the GNU malloc routines are usable..." >&6;}
4653
4654 ### First figure out CFLAGS (which we use for running the compiler here)
4655 ### and REAL_CFLAGS (which we use for real compilation).
4656 ### The two are the same except on a few systems, where they are made
4657 ### different to work around various lossages. For example,
4658 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4659 ### as implying static linking.
4660
4661 ### If the CFLAGS env var is specified, we use that value
4662 ### instead of the default.
4663
4664 ### It's not important that this name contain the PID; you can't run
4665 ### two configures in the same directory and have anything work
4666 ### anyway.
4667 tempcname="conftest.c"
4668
4669 echo '
4670 #include "'${srcdir}'/src/'${opsysfile}'"
4671 #include "'${srcdir}'/src/'${machfile}'"
4672 #ifndef LIBS_MACHINE
4673 #define LIBS_MACHINE
4674 #endif
4675 #ifndef LIBS_SYSTEM
4676 #define LIBS_SYSTEM
4677 #endif
4678 #ifndef C_SWITCH_SYSTEM
4679 #define C_SWITCH_SYSTEM
4680 #endif
4681 #ifndef C_SWITCH_MACHINE
4682 #define C_SWITCH_MACHINE
4683 #endif
4684 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4685 configure___ c_switch_system=C_SWITCH_SYSTEM
4686 configure___ c_switch_machine=C_SWITCH_MACHINE
4687
4688 #ifndef LIB_X11_LIB
4689 #define LIB_X11_LIB -lX11
4690 #endif
4691
4692 #ifndef LIBX11_MACHINE
4693 #define LIBX11_MACHINE
4694 #endif
4695
4696 #ifndef LIBX11_SYSTEM
4697 #define LIBX11_SYSTEM
4698 #endif
4699 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4700
4701 #ifdef UNEXEC
4702 configure___ unexec=UNEXEC
4703 #else
4704 configure___ unexec=unexec.o
4705 #endif
4706
4707 #ifdef SYSTEM_MALLOC
4708 configure___ system_malloc=yes
4709 #else
4710 configure___ system_malloc=no
4711 #endif
4712
4713 #ifdef USE_MMAP_FOR_BUFFERS
4714 configure___ use_mmap_for_buffers=yes
4715 #else
4716 configure___ use_mmap_for_buffers=no
4717 #endif
4718
4719 #ifndef C_DEBUG_SWITCH
4720 #define C_DEBUG_SWITCH -g
4721 #endif
4722
4723 #ifndef C_OPTIMIZE_SWITCH
4724 #ifdef __GNUC__
4725 #define C_OPTIMIZE_SWITCH -O2
4726 #else
4727 #define C_OPTIMIZE_SWITCH -O
4728 #endif
4729 #endif
4730
4731 #ifndef C_WARNINGS_SWITCH
4732 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4733 #endif
4734
4735 #ifndef LD_SWITCH_MACHINE
4736 #define LD_SWITCH_MACHINE
4737 #endif
4738
4739 #ifndef LD_SWITCH_SYSTEM
4740 #define LD_SWITCH_SYSTEM
4741 #endif
4742
4743 #ifndef LD_SWITCH_X_SITE_AUX
4744 #define LD_SWITCH_X_SITE_AUX
4745 #endif
4746
4747 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4748 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4749
4750 #ifdef THIS_IS_CONFIGURE
4751
4752 /* Get the CFLAGS for tests in configure. */
4753 #ifdef __GNUC__
4754 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4755 #else
4756 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4757 #endif
4758
4759 #else /* not THIS_IS_CONFIGURE */
4760
4761 /* Get the CFLAGS for real compilation. */
4762 #ifdef __GNUC__
4763 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4764 #else
4765 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4766 #endif
4767
4768 #endif /* not THIS_IS_CONFIGURE */
4769 ' > ${tempcname}
4770
4771 # The value of CPP is a quoted variable reference, so we need to do this
4772 # to get its actual value...
4773 CPP=`eval "echo $CPP"`
4774 eval `${CPP} -Isrc ${tempcname} \
4775 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4776 if test "x$SPECIFIED_CFLAGS" = x; then
4777 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4778 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 else
4780 REAL_CFLAGS="$CFLAGS"
4781 fi
4782 rm ${tempcname}
4783
4784 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4785
4786 ### Make sure subsequent tests use flags consistent with the build flags.
4787
4788 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4789 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4790 else
4791 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4792 fi
4793
4794
4795
4796 # Check whether --enable-largefile or --disable-largefile was given.
4797 if test "${enable_largefile+set}" = set; then
4798 enableval="$enable_largefile"
4799
4800 fi;
4801 if test "$enable_largefile" != no; then
4802
4803 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4804 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4805 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 ac_cv_sys_largefile_CC=no
4809 if test "$GCC" != yes; then
4810 ac_save_CC=$CC
4811 while :; do
4812 # IRIX 6.2 and later do not support large files by default,
4813 # so use the C compiler's -n32 option if that helps.
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <sys/types.h>
4821 /* Check that off_t can represent 2**63 - 1 correctly.
4822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4823 since some C++ compilers masquerading as C compilers
4824 incorrectly reject 9223372036854775807. */
4825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4827 && LARGE_OFF_T % 2147483647 == 1)
4828 ? 1 : -1];
4829 int
4830 main ()
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 break
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 fi
4864 rm -f conftest.err conftest.$ac_objext
4865 CC="$CC -n32"
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_sys_largefile_CC=' -n32'; break
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 fi
4893 rm -f conftest.err conftest.$ac_objext
4894 break
4895 done
4896 CC=$ac_save_CC
4897 rm -f conftest.$ac_ext
4898 fi
4899 fi
4900 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4901 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4902 if test "$ac_cv_sys_largefile_CC" != no; then
4903 CC=$CC$ac_cv_sys_largefile_CC
4904 fi
4905
4906 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4907 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 while :; do
4912 ac_cv_sys_file_offset_bits=no
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4927 ? 1 : -1];
4928 int
4929 main ()
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 break
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 fi
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #define _FILE_OFFSET_BITS 64
4971 #include <sys/types.h>
4972 /* Check that off_t can represent 2**63 - 1 correctly.
4973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4974 since some C++ compilers masquerading as C compilers
4975 incorrectly reject 9223372036854775807. */
4976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4978 && LARGE_OFF_T % 2147483647 == 1)
4979 ? 1 : -1];
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_sys_file_offset_bits=64; break
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 fi
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 break
5017 done
5018 fi
5019 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5020 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5021 if test "$ac_cv_sys_file_offset_bits" != no; then
5022
5023 cat >>confdefs.h <<_ACEOF
5024 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5025 _ACEOF
5026
5027 fi
5028 rm -f conftest*
5029 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5030 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5031 if test "${ac_cv_sys_large_files+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 while :; do
5035 ac_cv_sys_large_files=no
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5050 ? 1 : -1];
5051 int
5052 main ()
5053 {
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 break
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 fi
5086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _LARGE_FILES 1
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5102 ? 1 : -1];
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_sys_large_files=1; break
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 fi
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139 break
5140 done
5141 fi
5142 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5143 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5144 if test "$ac_cv_sys_large_files" != no; then
5145
5146 cat >>confdefs.h <<_ACEOF
5147 #define _LARGE_FILES $ac_cv_sys_large_files
5148 _ACEOF
5149
5150 fi
5151 rm -f conftest*
5152 fi
5153
5154
5155
5156
5157
5158
5159 if test "${with_sound}" != "no"; then
5160 # Sound support for GNU/Linux and the free BSDs.
5161 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5163 if test "${ac_cv_header_stdc+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <stdlib.h>
5173 #include <stdarg.h>
5174 #include <string.h>
5175 #include <float.h>
5176
5177 int
5178 main ()
5179 {
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5188 ac_status=$?
5189 grep -v '^ *+' conftest.er1 >conftest.err
5190 rm -f conftest.er1
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_header_stdc=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 ac_cv_header_stdc=no
5212 fi
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214
5215 if test $ac_cv_header_stdc = yes; then
5216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <string.h>
5224
5225 _ACEOF
5226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5227 $EGREP "memchr" >/dev/null 2>&1; then
5228 :
5229 else
5230 ac_cv_header_stdc=no
5231 fi
5232 rm -f conftest*
5233
5234 fi
5235
5236 if test $ac_cv_header_stdc = yes; then
5237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245
5246 _ACEOF
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248 $EGREP "free" >/dev/null 2>&1; then
5249 :
5250 else
5251 ac_cv_header_stdc=no
5252 fi
5253 rm -f conftest*
5254
5255 fi
5256
5257 if test $ac_cv_header_stdc = yes; then
5258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5259 if test "$cross_compiling" = yes; then
5260 :
5261 else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #include <ctype.h>
5269 #if ((' ' & 0x0FF) == 0x020)
5270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5272 #else
5273 # define ISLOWER(c) \
5274 (('a' <= (c) && (c) <= 'i') \
5275 || ('j' <= (c) && (c) <= 'r') \
5276 || ('s' <= (c) && (c) <= 'z'))
5277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5278 #endif
5279
5280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5281 int
5282 main ()
5283 {
5284 int i;
5285 for (i = 0; i < 256; i++)
5286 if (XOR (islower (i), ISLOWER (i))
5287 || toupper (i) != TOUPPER (i))
5288 exit(2);
5289 exit (0);
5290 }
5291 _ACEOF
5292 rm -f conftest$ac_exeext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 :
5304 else
5305 echo "$as_me: program exited with status $ac_status" >&5
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ( exit $ac_status )
5310 ac_cv_header_stdc=no
5311 fi
5312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5313 fi
5314 fi
5315 fi
5316 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5318 if test $ac_cv_header_stdc = yes; then
5319
5320 cat >>confdefs.h <<\_ACEOF
5321 #define STDC_HEADERS 1
5322 _ACEOF
5323
5324 fi
5325
5326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5337 inttypes.h stdint.h unistd.h
5338 do
5339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5340 echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 $ac_includes_default
5352
5353 #include <$ac_header>
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 eval "$as_ac_Header=yes"
5377 else
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 eval "$as_ac_Header=no"
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5390 _ACEOF
5391
5392 fi
5393
5394 done
5395
5396
5397
5398
5399
5400 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5401 do
5402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 fi
5409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5411 else
5412 # Is the header compilable?
5413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 $ac_includes_default
5422 #include <$ac_header>
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_header_compiler=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 ac_header_compiler=no
5451 fi
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5454 echo "${ECHO_T}$ac_header_compiler" >&6
5455
5456 # Is the header present?
5457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <$ac_header>
5466 _ACEOF
5467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } >/dev/null; then
5475 if test -s conftest.err; then
5476 ac_cpp_err=$ac_c_preproc_warn_flag
5477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5478 else
5479 ac_cpp_err=
5480 fi
5481 else
5482 ac_cpp_err=yes
5483 fi
5484 if test -z "$ac_cpp_err"; then
5485 ac_header_preproc=yes
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5489
5490 ac_header_preproc=no
5491 fi
5492 rm -f conftest.err conftest.$ac_ext
5493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5494 echo "${ECHO_T}$ac_header_preproc" >&6
5495
5496 # So? What about this header?
5497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5498 yes:no: )
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5503 ac_header_preproc=yes
5504 ;;
5505 no:yes:* )
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5518 (
5519 cat <<\_ASBOX
5520 ## ------------------------------------------ ##
5521 ## Report this to the AC_PACKAGE_NAME lists. ##
5522 ## ------------------------------------------ ##
5523 _ASBOX
5524 ) |
5525 sed "s/^/$as_me: WARNING: /" >&2
5526 ;;
5527 esac
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 eval "$as_ac_Header=\$ac_header_preproc"
5534 fi
5535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5537
5538 fi
5539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5540 cat >>confdefs.h <<_ACEOF
5541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5542 _ACEOF
5543
5544 fi
5545
5546 done
5547
5548 # Emulation library used on NetBSD.
5549 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5550 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5551 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 ac_check_lib_save_LIBS=$LIBS
5555 LIBS="-lossaudio $LIBS"
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 #ifdef __cplusplus
5565 extern "C"
5566 #endif
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5569 char _oss_ioctl ();
5570 int
5571 main ()
5572 {
5573 _oss_ioctl ();
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_lib_ossaudio__oss_ioctl=yes
5600 else
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ac_cv_lib_ossaudio__oss_ioctl=no
5605 fi
5606 rm -f conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5611 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5612 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5613 LIBSOUND=-lossaudio
5614 else
5615 LIBSOUND=
5616 fi
5617
5618
5619
5620 ALSA_REQUIRED=1.0.0
5621 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5622 if test "X${with_pkg_config_prog}" != X; then
5623 PKG_CONFIG="${with_pkg_config_prog}"
5624 fi
5625
5626 succeeded=no
5627
5628 if test -z "$PKG_CONFIG"; then
5629 # Extract the first word of "pkg-config", so it can be a program name with args.
5630 set dummy pkg-config; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 case $PKG_CONFIG in
5637 [\\/]* | ?:[\\/]*)
5638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5639 ;;
5640 *)
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654
5655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5656 ;;
5657 esac
5658 fi
5659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5660
5661 if test -n "$PKG_CONFIG"; then
5662 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5663 echo "${ECHO_T}$PKG_CONFIG" >&6
5664 else
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5667 fi
5668
5669 fi
5670
5671 if test "$PKG_CONFIG" = "no" ; then
5672 HAVE_ALSA=no
5673 else
5674 PKG_CONFIG_MIN_VERSION=0.9.0
5675 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5676 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5677 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5678
5679 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681 echo "${ECHO_T}yes" >&6
5682 succeeded=yes
5683
5684 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5685 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5686 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5687 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5688 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5689
5690 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5691 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5692 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5693 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5694 echo "${ECHO_T}$ALSA_LIBS" >&6
5695 else
5696 echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5698 ALSA_CFLAGS=""
5699 ALSA_LIBS=""
5700 ## If we have a custom action on failure, don't print errors, but
5701 ## do set a variable so people can do so.
5702 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5703
5704 fi
5705
5706
5707
5708 else
5709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5711 fi
5712 fi
5713
5714 if test $succeeded = yes; then
5715 HAVE_ALSA=yes
5716 else
5717 HAVE_ALSA=no
5718 fi
5719
5720 if test $HAVE_ALSA = yes; then
5721 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5722 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5723
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_ALSA 1
5726 _ACEOF
5727
5728 fi
5729
5730 fi
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5758 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5759 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5760 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5761 sys/utsname.h pwd.h
5762 do
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5765 echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 fi
5770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5772 else
5773 # Is the header compilable?
5774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5783 #include <$ac_header>
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 ac_header_compiler=no
5812 fi
5813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5816
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <$ac_header>
5827 _ACEOF
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5839 else
5840 ac_cpp_err=
5841 fi
5842 else
5843 ac_cpp_err=yes
5844 fi
5845 if test -z "$ac_cpp_err"; then
5846 ac_header_preproc=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_header_preproc=no
5852 fi
5853 rm -f conftest.err conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6
5856
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5859 yes:no: )
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc=yes
5865 ;;
5866 no:yes:* )
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5879 (
5880 cat <<\_ASBOX
5881 ## ------------------------------------------ ##
5882 ## Report this to the AC_PACKAGE_NAME lists. ##
5883 ## ------------------------------------------ ##
5884 _ASBOX
5885 ) |
5886 sed "s/^/$as_me: WARNING: /" >&2
5887 ;;
5888 esac
5889 echo "$as_me:$LINENO: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 eval "$as_ac_Header=\$ac_header_preproc"
5895 fi
5896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5898
5899 fi
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5904
5905 fi
5906
5907 done
5908
5909
5910 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5911 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <sys/personality.h>
5919 int
5920 main ()
5921 {
5922 personality (PER_LINUX32)
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 emacs_cv_personality_linux32=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 emacs_cv_personality_linux32=no
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5957 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5958
5959 if test $emacs_cv_personality_linux32 = yes; then
5960
5961 cat >>confdefs.h <<\_ACEOF
5962 #define HAVE_PERSONALITY_LINUX32 1
5963 _ACEOF
5964
5965 fi
5966
5967
5968 for ac_header in term.h
5969 do
5970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971 echo "$as_me:$LINENO: checking for $ac_header" >&5
5972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5983 _ACEOF
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5995 else
5996 ac_cpp_err=
5997 fi
5998 else
5999 ac_cpp_err=yes
6000 fi
6001 if test -z "$ac_cpp_err"; then
6002 eval "$as_ac_Header=yes"
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 eval "$as_ac_Header=no"
6008 fi
6009 rm -f conftest.err conftest.$ac_ext
6010 fi
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 _ACEOF
6017
6018 fi
6019
6020 done
6021
6022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024 if test "${ac_cv_header_stdc+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <stdlib.h>
6034 #include <stdarg.h>
6035 #include <string.h>
6036 #include <float.h>
6037
6038 int
6039 main ()
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_header_stdc=yes
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_cv_header_stdc=no
6073 fi
6074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075
6076 if test $ac_cv_header_stdc = yes; then
6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <string.h>
6085
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "memchr" >/dev/null 2>&1; then
6089 :
6090 else
6091 ac_cv_header_stdc=no
6092 fi
6093 rm -f conftest*
6094
6095 fi
6096
6097 if test $ac_cv_header_stdc = yes; then
6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <stdlib.h>
6106
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "free" >/dev/null 2>&1; then
6110 :
6111 else
6112 ac_cv_header_stdc=no
6113 fi
6114 rm -f conftest*
6115
6116 fi
6117
6118 if test $ac_cv_header_stdc = yes; then
6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6120 if test "$cross_compiling" = yes; then
6121 :
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <ctype.h>
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 #else
6134 # define ISLOWER(c) \
6135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139 #endif
6140
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6142 int
6143 main ()
6144 {
6145 int i;
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
6148 || toupper (i) != TOUPPER (i))
6149 exit(2);
6150 exit (0);
6151 }
6152 _ACEOF
6153 rm -f conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 :
6165 else
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ( exit $ac_status )
6171 ac_cv_header_stdc=no
6172 fi
6173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 fi
6176 fi
6177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6179 if test $ac_cv_header_stdc = yes; then
6180
6181 cat >>confdefs.h <<\_ACEOF
6182 #define STDC_HEADERS 1
6183 _ACEOF
6184
6185 fi
6186
6187 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6188 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6189 if test "${ac_cv_header_time+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 <sys/types.h>
6199 #include <sys/time.h>
6200 #include <time.h>
6201
6202 int
6203 main ()
6204 {
6205 if ((struct tm *) 0)
6206 return 0;
6207 ;
6208 return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_header_time=yes
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ac_cv_header_time=no
6238 fi
6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6240 fi
6241 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6242 echo "${ECHO_T}$ac_cv_header_time" >&6
6243 if test $ac_cv_header_time = yes; then
6244
6245 cat >>confdefs.h <<\_ACEOF
6246 #define TIME_WITH_SYS_TIME 1
6247 _ACEOF
6248
6249 fi
6250
6251 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6252 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6253 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 #ifndef sys_siglist
6267 char *p = (char *) sys_siglist;
6268 #endif
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_have_decl_sys_siglist=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_have_decl_sys_siglist=no
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6305 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6306 if test $ac_cv_have_decl_sys_siglist = yes; then
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define HAVE_DECL_SYS_SIGLIST 1
6310 _ACEOF
6311
6312
6313 else
6314 cat >>confdefs.h <<_ACEOF
6315 #define HAVE_DECL_SYS_SIGLIST 0
6316 _ACEOF
6317
6318
6319 fi
6320
6321
6322 if test $ac_cv_have_decl_sys_siglist != yes; then
6323 # For Tru64, at least:
6324 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6325 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6326 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 $ac_includes_default
6336 int
6337 main ()
6338 {
6339 #ifndef __sys_siglist
6340 char *p = (char *) __sys_siglist;
6341 #endif
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_have_decl___sys_siglist=yes
6369 else
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_cv_have_decl___sys_siglist=no
6374 fi
6375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6378 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6379 if test $ac_cv_have_decl___sys_siglist = yes; then
6380
6381 cat >>confdefs.h <<_ACEOF
6382 #define HAVE_DECL___SYS_SIGLIST 1
6383 _ACEOF
6384
6385
6386 else
6387 cat >>confdefs.h <<_ACEOF
6388 #define HAVE_DECL___SYS_SIGLIST 0
6389 _ACEOF
6390
6391
6392 fi
6393
6394
6395 if test $ac_cv_have_decl___sys_siglist = yes; then
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define sys_siglist __sys_siglist
6399 _ACEOF
6400
6401 fi
6402 fi
6403 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6404 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6405 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <sys/types.h>
6415 #include <sys/wait.h>
6416 #ifndef WEXITSTATUS
6417 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6418 #endif
6419 #ifndef WIFEXITED
6420 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6421 #endif
6422
6423 int
6424 main ()
6425 {
6426 int s;
6427 wait (&s);
6428 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_header_sys_wait_h=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_cv_header_sys_wait_h=no
6460 fi
6461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 fi
6463 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6464 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6465 if test $ac_cv_header_sys_wait_h = yes; then
6466
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_SYS_WAIT_H 1
6469 _ACEOF
6470
6471 fi
6472
6473
6474 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6475 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6476 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 #ifdef TIME_WITH_SYS_TIME
6486 #include <sys/time.h>
6487 #include <time.h>
6488 #else
6489 #ifdef HAVE_SYS_TIME_H
6490 #include <sys/time.h>
6491 #else
6492 #include <time.h>
6493 #endif
6494 #endif
6495 #ifdef HAVE_UTIME_H
6496 #include <utime.h>
6497 #endif
6498 int
6499 main ()
6500 {
6501 static struct utimbuf x; x.actime = x.modtime;
6502 ;
6503 return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 emacs_cv_struct_utimbuf=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 emacs_cv_struct_utimbuf=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6537 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6538 if test $emacs_cv_struct_utimbuf = yes; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_STRUCT_UTIMBUF 1
6542 _ACEOF
6543
6544 fi
6545
6546 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6547 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6548 if test "${ac_cv_type_signal+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6558 #include <signal.h>
6559 #ifdef signal
6560 # undef signal
6561 #endif
6562 #ifdef __cplusplus
6563 extern "C" void (*signal (int, void (*)(int)))(int);
6564 #else
6565 void (*signal ()) ();
6566 #endif
6567
6568 int
6569 main ()
6570 {
6571 int i;
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest.$ac_objext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_type_signal=void
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_type_signal=int
6603 fi
6604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6605 fi
6606 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6607 echo "${ECHO_T}$ac_cv_type_signal" >&6
6608
6609 cat >>confdefs.h <<_ACEOF
6610 #define RETSIGTYPE $ac_cv_type_signal
6611 _ACEOF
6612
6613
6614
6615 echo "$as_me:$LINENO: checking for speed_t" >&5
6616 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6617 if test "${emacs_cv_speed_t+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <termios.h>
6627 int
6628 main ()
6629 {
6630 speed_t x = 1;
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637 (eval $ac_compile) 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 emacs_cv_speed_t=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 emacs_cv_speed_t=no
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6666 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6667 if test $emacs_cv_speed_t = yes; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_SPEED_T 1
6671 _ACEOF
6672
6673 fi
6674
6675 echo "$as_me:$LINENO: checking for struct timeval" >&5
6676 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6677 if test "${emacs_cv_struct_timeval+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #ifdef TIME_WITH_SYS_TIME
6687 #include <sys/time.h>
6688 #include <time.h>
6689 #else
6690 #ifdef HAVE_SYS_TIME_H
6691 #include <sys/time.h>
6692 #else
6693 #include <time.h>
6694 #endif
6695 #endif
6696 int
6697 main ()
6698 {
6699 static struct timeval x; x.tv_sec = x.tv_usec;
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 emacs_cv_struct_timeval=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 emacs_cv_struct_timeval=no
6731 fi
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 fi
6734 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6735 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6736 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6737 if test $emacs_cv_struct_timeval = yes; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_TIMEVAL 1
6741 _ACEOF
6742
6743 fi
6744
6745 echo "$as_me:$LINENO: checking for struct exception" >&5
6746 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6747 if test "${emacs_cv_struct_exception+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <math.h>
6757 int
6758 main ()
6759 {
6760 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6761 ;
6762 return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest.$ac_objext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 emacs_cv_struct_exception=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 emacs_cv_struct_exception=no
6792 fi
6793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6796 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6797 HAVE_EXCEPTION=$emacs_cv_struct_exception
6798 if test $emacs_cv_struct_exception != yes; then
6799
6800 cat >>confdefs.h <<\_ACEOF
6801 #define NO_MATHERR 1
6802 _ACEOF
6803
6804 fi
6805
6806
6807 for ac_header in sys/socket.h
6808 do
6809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6811 echo "$as_me:$LINENO: checking for $ac_header" >&5
6812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 fi
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818 else
6819 # Is the header compilable?
6820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 $ac_includes_default
6829 #include <$ac_header>
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_header_compiler=yes
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_header_compiler=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 echo "${ECHO_T}$ac_header_compiler" >&6
6862
6863 # Is the header present?
6864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 #include <$ac_header>
6873 _ACEOF
6874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } >/dev/null; then
6882 if test -s conftest.err; then
6883 ac_cpp_err=$ac_c_preproc_warn_flag
6884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6885 else
6886 ac_cpp_err=
6887 fi
6888 else
6889 ac_cpp_err=yes
6890 fi
6891 if test -z "$ac_cpp_err"; then
6892 ac_header_preproc=yes
6893 else
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 ac_header_preproc=no
6898 fi
6899 rm -f conftest.err conftest.$ac_ext
6900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 echo "${ECHO_T}$ac_header_preproc" >&6
6902
6903 # So? What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905 yes:no: )
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6910 ac_header_preproc=yes
6911 ;;
6912 no:yes:* )
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925 (
6926 cat <<\_ASBOX
6927 ## ------------------------------------------ ##
6928 ## Report this to the AC_PACKAGE_NAME lists. ##
6929 ## ------------------------------------------ ##
6930 _ASBOX
6931 ) |
6932 sed "s/^/$as_me: WARNING: /" >&2
6933 ;;
6934 esac
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 eval "$as_ac_Header=\$ac_header_preproc"
6941 fi
6942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6944
6945 fi
6946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6949 _ACEOF
6950
6951 fi
6952
6953 done
6954
6955
6956 for ac_header in net/if.h
6957 do
6958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6959 echo "$as_me:$LINENO: checking for $ac_header" >&5
6960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6971 #if HAVE_SYS_SOCKET_H
6972 #include <sys/socket.h>
6973 #endif
6974
6975 #include <$ac_header>
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 eval "$as_ac_Header=yes"
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 eval "$as_ac_Header=no"
7004 fi
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015
7016 done
7017
7018
7019 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7020 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7021 if test "${ac_cv_struct_tm+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7031 #include <time.h>
7032
7033 int
7034 main ()
7035 {
7036 struct tm *tp; tp->tm_sec;
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_struct_tm=time.h
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_struct_tm=sys/time.h
7068 fi
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7072 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7073 if test $ac_cv_struct_tm = sys/time.h; then
7074
7075 cat >>confdefs.h <<\_ACEOF
7076 #define TM_IN_SYS_TIME 1
7077 _ACEOF
7078
7079 fi
7080
7081 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7082 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7083 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 #include <sys/types.h>
7093 #include <$ac_cv_struct_tm>
7094
7095
7096 int
7097 main ()
7098 {
7099 static struct tm ac_aggr;
7100 if (ac_aggr.tm_zone)
7101 return 0;
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7108 (eval $ac_compile) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_member_struct_tm_tm_zone=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7139 #include <$ac_cv_struct_tm>
7140
7141
7142 int
7143 main ()
7144 {
7145 static struct tm ac_aggr;
7146 if (sizeof ac_aggr.tm_zone)
7147 return 0;
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>conftest.er1
7155 ac_status=$?
7156 grep -v '^ *+' conftest.er1 >conftest.err
7157 rm -f conftest.er1
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_cv_member_struct_tm_tm_zone=yes
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 ac_cv_member_struct_tm_tm_zone=no
7179 fi
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181 fi
7182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7185 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7186 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define HAVE_STRUCT_TM_TM_ZONE 1
7190 _ACEOF
7191
7192
7193 fi
7194
7195 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7196
7197 cat >>confdefs.h <<\_ACEOF
7198 #define HAVE_TM_ZONE 1
7199 _ACEOF
7200
7201 else
7202 echo "$as_me:$LINENO: checking for tzname" >&5
7203 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7204 if test "${ac_cv_var_tzname+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <time.h>
7214 #ifndef tzname /* For SGI. */
7215 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7216 #endif
7217
7218 int
7219 main ()
7220 {
7221 atoi(*tzname);
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_var_tzname=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_cv_var_tzname=no
7253 fi
7254 rm -f conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 fi
7257 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7258 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7259 if test $ac_cv_var_tzname = yes; then
7260
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_TZNAME 1
7263 _ACEOF
7264
7265 fi
7266 fi
7267
7268 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7269 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7270 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 #include <time.h>
7280
7281 int
7282 main ()
7283 {
7284 static struct tm ac_aggr;
7285 if (ac_aggr.tm_gmtoff)
7286 return 0;
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; } &&
7306 { ac_try='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_cv_member_struct_tm_tm_gmtoff=yes
7313 else
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 #include <time.h>
7324
7325 int
7326 main ()
7327 {
7328 static struct tm ac_aggr;
7329 if (sizeof ac_aggr.tm_gmtoff)
7330 return 0;
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_member_struct_tm_tm_gmtoff=yes
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_member_struct_tm_tm_gmtoff=no
7362 fi
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7368 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7369 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_TM_GMTOFF 1
7373 _ACEOF
7374
7375 fi
7376
7377 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7378 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7379 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 #if HAVE_SYS_SOCKET_H
7390 #include <sys/socket.h>
7391 #endif
7392 #if HAVE_NET_IF_H
7393 #include <net/if.h>
7394 #endif
7395
7396 int
7397 main ()
7398 {
7399 static struct ifreq ac_aggr;
7400 if (ac_aggr.ifr_flags)
7401 return 0;
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest.$ac_objext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_member_struct_ifreq_ifr_flags=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 #if HAVE_SYS_SOCKET_H
7440 #include <sys/socket.h>
7441 #endif
7442 #if HAVE_NET_IF_H
7443 #include <net/if.h>
7444 #endif
7445
7446 int
7447 main ()
7448 {
7449 static struct ifreq ac_aggr;
7450 if (sizeof ac_aggr.ifr_flags)
7451 return 0;
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458 (eval $ac_compile) 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 ac_cv_member_struct_ifreq_ifr_flags=yes
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 ac_cv_member_struct_ifreq_ifr_flags=no
7483 fi
7484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7489 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7490 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7491
7492 cat >>confdefs.h <<_ACEOF
7493 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7494 _ACEOF
7495
7496
7497 fi
7498 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7499 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7500 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #if HAVE_SYS_SOCKET_H
7511 #include <sys/socket.h>
7512 #endif
7513 #if HAVE_NET_IF_H
7514 #include <net/if.h>
7515 #endif
7516
7517 int
7518 main ()
7519 {
7520 static struct ifreq ac_aggr;
7521 if (ac_aggr.ifr_hwaddr)
7522 return 0;
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7548 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #if HAVE_SYS_SOCKET_H
7561 #include <sys/socket.h>
7562 #endif
7563 #if HAVE_NET_IF_H
7564 #include <net/if.h>
7565 #endif
7566
7567 int
7568 main ()
7569 {
7570 static struct ifreq ac_aggr;
7571 if (sizeof ac_aggr.ifr_hwaddr)
7572 return 0;
7573 ;
7574 return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest.$ac_objext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7604 fi
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 fi
7607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7610 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7611 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7612
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7615 _ACEOF
7616
7617
7618 fi
7619 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7620 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7621 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7633 #endif
7634 #if HAVE_NET_IF_H
7635 #include <net/if.h>
7636 #endif
7637
7638 int
7639 main ()
7640 {
7641 static struct ifreq ac_aggr;
7642 if (ac_aggr.ifr_netmask)
7643 return 0;
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_member_struct_ifreq_ifr_netmask=yes
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 $ac_includes_default
7681 #if HAVE_SYS_SOCKET_H
7682 #include <sys/socket.h>
7683 #endif
7684 #if HAVE_NET_IF_H
7685 #include <net/if.h>
7686 #endif
7687
7688 int
7689 main ()
7690 {
7691 static struct ifreq ac_aggr;
7692 if (sizeof ac_aggr.ifr_netmask)
7693 return 0;
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_cv_member_struct_ifreq_ifr_netmask=yes
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724 ac_cv_member_struct_ifreq_ifr_netmask=no
7725 fi
7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729 fi
7730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7732 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7733
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7736 _ACEOF
7737
7738
7739 fi
7740 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7741 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7742 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 #if HAVE_SYS_SOCKET_H
7753 #include <sys/socket.h>
7754 #endif
7755 #if HAVE_NET_IF_H
7756 #include <net/if.h>
7757 #endif
7758
7759 int
7760 main ()
7761 {
7762 static struct ifreq ac_aggr;
7763 if (ac_aggr.ifr_broadaddr)
7764 return 0;
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #if HAVE_SYS_SOCKET_H
7803 #include <sys/socket.h>
7804 #endif
7805 #if HAVE_NET_IF_H
7806 #include <net/if.h>
7807 #endif
7808
7809 int
7810 main ()
7811 {
7812 static struct ifreq ac_aggr;
7813 if (sizeof ac_aggr.ifr_broadaddr)
7814 return 0;
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest.$ac_objext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7841 else
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7846 fi
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7852 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7853 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7854
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7857 _ACEOF
7858
7859
7860 fi
7861 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7862 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7863 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 $ac_includes_default
7873 #if HAVE_SYS_SOCKET_H
7874 #include <sys/socket.h>
7875 #endif
7876 #if HAVE_NET_IF_H
7877 #include <net/if.h>
7878 #endif
7879
7880 int
7881 main ()
7882 {
7883 static struct ifreq ac_aggr;
7884 if (ac_aggr.ifr_addr)
7885 return 0;
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_member_struct_ifreq_ifr_addr=yes
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 #if HAVE_SYS_SOCKET_H
7924 #include <sys/socket.h>
7925 #endif
7926 #if HAVE_NET_IF_H
7927 #include <net/if.h>
7928 #endif
7929
7930 int
7931 main ()
7932 {
7933 static struct ifreq ac_aggr;
7934 if (sizeof ac_aggr.ifr_addr)
7935 return 0;
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_member_struct_ifreq_ifr_addr=yes
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ac_cv_member_struct_ifreq_ifr_addr=no
7967 fi
7968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7973 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7974 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7975
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7978 _ACEOF
7979
7980
7981 fi
7982
7983
7984
7985 echo "$as_me:$LINENO: checking for function prototypes" >&5
7986 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7987 if test "$ac_cv_prog_cc_stdc" != no; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6
7990
7991 cat >>confdefs.h <<\_ACEOF
7992 #define PROTOTYPES 1
7993 _ACEOF
7994
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define __PROTOTYPES 1
7998 _ACEOF
7999
8000 else
8001 echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6
8003 fi
8004
8005 echo "$as_me:$LINENO: checking for working volatile" >&5
8006 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8007 if test "${ac_cv_c_volatile+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016
8017 int
8018 main ()
8019 {
8020
8021 volatile int x;
8022 int * volatile y;
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_c_volatile=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_cv_c_volatile=no
8054 fi
8055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8058 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8059 if test $ac_cv_c_volatile = no; then
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define volatile
8063 _ACEOF
8064
8065 fi
8066
8067 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8068 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8069 if test "${ac_cv_c_const+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078
8079 int
8080 main ()
8081 {
8082 /* FIXME: Include the comments suggested by Paul. */
8083 #ifndef __cplusplus
8084 /* Ultrix mips cc rejects this. */
8085 typedef int charset[2];
8086 const charset x;
8087 /* SunOS 4.1.1 cc rejects this. */
8088 char const *const *ccp;
8089 char **p;
8090 /* NEC SVR4.0.2 mips cc rejects this. */
8091 struct point {int x, y;};
8092 static struct point const zero = {0,0};
8093 /* AIX XL C 1.02.0.0 rejects this.
8094 It does not let you subtract one const X* pointer from another in
8095 an arm of an if-expression whose if-part is not a constant
8096 expression */
8097 const char *g = "string";
8098 ccp = &g + (g ? g-g : 0);
8099 /* HPUX 7.0 cc rejects these. */
8100 ++ccp;
8101 p = (char**) ccp;
8102 ccp = (char const *const *) p;
8103 { /* SCO 3.2v4 cc rejects this. */
8104 char *t;
8105 char const *s = 0 ? (char *) 0 : (char const *) 0;
8106
8107 *t++ = 0;
8108 }
8109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8110 int x[] = {25, 17};
8111 const int *foo = &x[0];
8112 ++foo;
8113 }
8114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8115 typedef const int *iptr;
8116 iptr p = 0;
8117 ++p;
8118 }
8119 { /* AIX XL C 1.02.0.0 rejects this saying
8120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8121 struct s { int j; const int *ap[3]; };
8122 struct s *b; b->j = 5;
8123 }
8124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8125 const int foo = 10;
8126 }
8127 #endif
8128
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; } &&
8148 { ac_try='test -s conftest.$ac_objext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_c_const=yes
8155 else
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_cv_c_const=no
8160 fi
8161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8164 echo "${ECHO_T}$ac_cv_c_const" >&6
8165 if test $ac_cv_c_const = no; then
8166
8167 cat >>confdefs.h <<\_ACEOF
8168 #define const
8169 _ACEOF
8170
8171 fi
8172
8173 echo "$as_me:$LINENO: checking for void * support" >&5
8174 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8175 if test "${emacs_cv_void_star+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h. */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184
8185 int
8186 main ()
8187 {
8188 void * foo;
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 emacs_cv_void_star=yes
8215 else
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 emacs_cv_void_star=no
8220 fi
8221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8224 echo "${ECHO_T}$emacs_cv_void_star" >&6
8225 if test $emacs_cv_void_star = yes; then
8226 cat >>confdefs.h <<\_ACEOF
8227 #define POINTER_TYPE void
8228 _ACEOF
8229
8230 else
8231 cat >>confdefs.h <<\_ACEOF
8232 #define POINTER_TYPE char
8233 _ACEOF
8234
8235 fi
8236
8237
8238
8239
8240
8241 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8243 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 cat >conftest.make <<\_ACEOF
8248 all:
8249 @echo 'ac_maketemp="$(MAKE)"'
8250 _ACEOF
8251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8253 if test -n "$ac_maketemp"; then
8254 eval ac_cv_prog_make_${ac_make}_set=yes
8255 else
8256 eval ac_cv_prog_make_${ac_make}_set=no
8257 fi
8258 rm -f conftest.make
8259 fi
8260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8261 echo "$as_me:$LINENO: result: yes" >&5
8262 echo "${ECHO_T}yes" >&6
8263 SET_MAKE=
8264 else
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8267 SET_MAKE="MAKE=${MAKE-make}"
8268 fi
8269
8270
8271 echo "$as_me:$LINENO: checking for long file names" >&5
8272 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8273 if test "${ac_cv_sys_long_file_names+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 ac_cv_sys_long_file_names=yes
8277 # Test for long file names in all the places we know might matter:
8278 # . the current directory, where building will happen
8279 # $prefix/lib where we will be installing things
8280 # $exec_prefix/lib likewise
8281 # eval it to expand exec_prefix.
8282 # $TMPDIR if set, where it might want to write temporary files
8283 # if $TMPDIR is not set:
8284 # /tmp where it might want to write temporary files
8285 # /var/tmp likewise
8286 # /usr/tmp likewise
8287 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8288 ac_tmpdirs=$TMPDIR
8289 else
8290 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8291 fi
8292 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8293 test -d $ac_dir || continue
8294 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8295 ac_xdir=$ac_dir/cf$$
8296 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8297 ac_tf1=$ac_xdir/conftest9012345
8298 ac_tf2=$ac_xdir/conftest9012346
8299 (echo 1 >$ac_tf1) 2>/dev/null
8300 (echo 2 >$ac_tf2) 2>/dev/null
8301 ac_val=`cat $ac_tf1 2>/dev/null`
8302 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8303 ac_cv_sys_long_file_names=no
8304 rm -rf $ac_xdir 2>/dev/null
8305 break
8306 fi
8307 rm -rf $ac_xdir 2>/dev/null
8308 done
8309 fi
8310 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8311 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8312 if test $ac_cv_sys_long_file_names = yes; then
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_LONG_FILE_NAMES 1
8316 _ACEOF
8317
8318 fi
8319
8320
8321 #### Choose a window system.
8322
8323 echo "$as_me:$LINENO: checking for X" >&5
8324 echo $ECHO_N "checking for X... $ECHO_C" >&6
8325
8326 ac_path_x_has_been_run=yes
8327
8328 # Check whether --with-x or --without-x was given.
8329 if test "${with_x+set}" = set; then
8330 withval="$with_x"
8331
8332 fi;
8333 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8334 if test "x$with_x" = xno; then
8335 # The user explicitly disabled X.
8336 have_x=disabled
8337 else
8338 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8339 # Both variables are already set.
8340 have_x=yes
8341 else
8342 if test "${ac_cv_have_x+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 # One or both of the vars are not set, and there is no cached value.
8346 ac_x_includes=no ac_x_libraries=no
8347 rm -fr conftest.dir
8348 if mkdir conftest.dir; then
8349 cd conftest.dir
8350 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8351 cat >Imakefile <<'_ACEOF'
8352 acfindx:
8353 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8354 _ACEOF
8355 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8356 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8357 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8358 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8359 for ac_extension in a so sl; do
8360 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8361 test -f $ac_im_libdir/libX11.$ac_extension; then
8362 ac_im_usrlibdir=$ac_im_libdir; break
8363 fi
8364 done
8365 # Screen out bogus values from the imake configuration. They are
8366 # bogus both because they are the default anyway, and because
8367 # using them would break gcc on systems where it needs fixed includes.
8368 case $ac_im_incroot in
8369 /usr/include) ;;
8370 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8371 esac
8372 case $ac_im_usrlibdir in
8373 /usr/lib | /lib) ;;
8374 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8375 esac
8376 fi
8377 cd ..
8378 rm -fr conftest.dir
8379 fi
8380
8381 # Standard set of common directories for X headers.
8382 # Check X11 before X11Rn because it is often a symlink to the current release.
8383 ac_x_header_dirs='
8384 /usr/X11/include
8385 /usr/X11R6/include
8386 /usr/X11R5/include
8387 /usr/X11R4/include
8388
8389 /usr/include/X11
8390 /usr/include/X11R6
8391 /usr/include/X11R5
8392 /usr/include/X11R4
8393
8394 /usr/local/X11/include
8395 /usr/local/X11R6/include
8396 /usr/local/X11R5/include
8397 /usr/local/X11R4/include
8398
8399 /usr/local/include/X11
8400 /usr/local/include/X11R6
8401 /usr/local/include/X11R5
8402 /usr/local/include/X11R4
8403
8404 /usr/X386/include
8405 /usr/x386/include
8406 /usr/XFree86/include/X11
8407
8408 /usr/include
8409 /usr/local/include
8410 /usr/unsupported/include
8411 /usr/athena/include
8412 /usr/local/x11r5/include
8413 /usr/lpp/Xamples/include
8414
8415 /usr/openwin/include
8416 /usr/openwin/share/include'
8417
8418 if test "$ac_x_includes" = no; then
8419 # Guess where to find include files, by looking for a specified header file.
8420 # First, try using that file with no special directory specified.
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <X11/Intrinsic.h>
8428 _ACEOF
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
8443 else
8444 ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447 # We can compile using X headers with no special include directory.
8448 ac_x_includes=
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 for ac_dir in $ac_x_header_dirs; do
8454 if test -r "$ac_dir/X11/Intrinsic.h"; then
8455 ac_x_includes=$ac_dir
8456 break
8457 fi
8458 done
8459 fi
8460 rm -f conftest.err conftest.$ac_ext
8461 fi # $ac_x_includes = no
8462
8463 if test "$ac_x_libraries" = no; then
8464 # Check for the libraries.
8465 # See if we find them without any special options.
8466 # Don't add to $LIBS permanently.
8467 ac_save_LIBS=$LIBS
8468 LIBS="-lXt $LIBS"
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 #include <X11/Intrinsic.h>
8476 int
8477 main ()
8478 {
8479 XtMalloc (0)
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 LIBS=$ac_save_LIBS
8506 # We can link X programs with no special library path.
8507 ac_x_libraries=
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 LIBS=$ac_save_LIBS
8513 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8514 do
8515 # Don't even attempt the hair of trying to link an X program!
8516 for ac_extension in a so sl; do
8517 if test -r $ac_dir/libXt.$ac_extension; then
8518 ac_x_libraries=$ac_dir
8519 break 2
8520 fi
8521 done
8522 done
8523 fi
8524 rm -f conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8526 fi # $ac_x_libraries = no
8527
8528 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8529 # Didn't find X anywhere. Cache the known absence of X.
8530 ac_cv_have_x="have_x=no"
8531 else
8532 # Record where we found X for the cache.
8533 ac_cv_have_x="have_x=yes \
8534 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8535 fi
8536 fi
8537
8538 fi
8539 eval "$ac_cv_have_x"
8540 fi # $with_x != no
8541
8542 if test "$have_x" != yes; then
8543 echo "$as_me:$LINENO: result: $have_x" >&5
8544 echo "${ECHO_T}$have_x" >&6
8545 no_x=yes
8546 else
8547 # If each of the values was on the command line, it overrides each guess.
8548 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8549 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8550 # Update the cache value to reflect the command line values.
8551 ac_cv_have_x="have_x=yes \
8552 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8553 # It might be that x_includes is empty (headers are found in the
8554 # standard search path. Then output the corresponding message
8555 ac_out_x_includes=$x_includes
8556 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8557 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8558 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8559 fi
8560
8561 if test "$no_x" = yes; then
8562 window_system=none
8563 else
8564 window_system=x11
8565 fi
8566
8567 if test "${x_libraries}" != NONE; then
8568 if test -n "${x_libraries}"; then
8569 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8570 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8571 fi
8572 x_default_search_path=""
8573 x_search_path=${x_libraries}
8574 if test -z "${x_search_path}"; then
8575 x_search_path=/usr/lib
8576 fi
8577 for x_library in `echo ${x_search_path}: | \
8578 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8579 x_search_path="\
8580 ${x_library}/X11/%L/%T/%N%C%S:\
8581 ${x_library}/X11/%l/%T/%N%C%S:\
8582 ${x_library}/X11/%T/%N%C%S:\
8583 ${x_library}/X11/%L/%T/%N%S:\
8584 ${x_library}/X11/%l/%T/%N%S:\
8585 ${x_library}/X11/%T/%N%S"
8586 if test x"${x_default_search_path}" = x; then
8587 x_default_search_path=${x_search_path}
8588 else
8589 x_default_search_path="${x_search_path}:${x_default_search_path}"
8590 fi
8591 done
8592 fi
8593 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8594 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8595 fi
8596
8597 if test x"${x_includes}" = x; then
8598 bitmapdir=/usr/include/X11/bitmaps
8599 else
8600 # accumulate include directories that have X11 bitmap subdirectories
8601 bmd_acc="dummyval"
8602 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8603 if test -d "${bmd}/X11/bitmaps"; then
8604 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8605 fi
8606 if test -d "${bmd}/bitmaps"; then
8607 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8608 fi
8609 done
8610 if test ${bmd_acc} != "dummyval"; then
8611 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8612 fi
8613 fi
8614
8615 HAVE_CARBON=no
8616 if test "${with_carbon}" != no; then
8617 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8618 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8619 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8620 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8624 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8625 else
8626 # Is the header compilable?
8627 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8628 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <Carbon/Carbon.h>
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest.$ac_objext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_header_compiler=yes
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 ac_header_compiler=no
8665 fi
8666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6
8669
8670 # Is the header present?
8671 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8672 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <Carbon/Carbon.h>
8680 _ACEOF
8681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } >/dev/null; then
8689 if test -s conftest.err; then
8690 ac_cpp_err=$ac_c_preproc_warn_flag
8691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8692 else
8693 ac_cpp_err=
8694 fi
8695 else
8696 ac_cpp_err=yes
8697 fi
8698 if test -z "$ac_cpp_err"; then
8699 ac_header_preproc=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_header_preproc=no
8705 fi
8706 rm -f conftest.err conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8709
8710 # So? What about this header?
8711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712 yes:no: )
8713 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8716 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8717 ac_header_preproc=yes
8718 ;;
8719 no:yes:* )
8720 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8721 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8723 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8725 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8727 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8729 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8731 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8732 (
8733 cat <<\_ASBOX
8734 ## ------------------------------------------ ##
8735 ## Report this to the AC_PACKAGE_NAME lists. ##
8736 ## ------------------------------------------ ##
8737 _ASBOX
8738 ) |
8739 sed "s/^/$as_me: WARNING: /" >&2
8740 ;;
8741 esac
8742 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8743 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8750 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8751
8752 fi
8753 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8754 HAVE_CARBON=yes
8755 fi
8756
8757
8758 fi
8759 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8760 if test "${with_carbon+set}" != set \
8761 && test "${carbon_appdir_x+set}" != set; then
8762 HAVE_CARBON=no
8763 fi
8764 fi
8765 if test "${HAVE_CARBON}" = yes; then
8766 window_system=mac
8767 fi
8768
8769 case "${window_system}" in
8770 x11 )
8771 HAVE_X_WINDOWS=yes
8772 HAVE_X11=yes
8773 case "${with_x_toolkit}" in
8774 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8775 motif ) USE_X_TOOLKIT=MOTIF ;;
8776 gtk ) with_gtk=yes
8777 USE_X_TOOLKIT=none ;;
8778 no ) USE_X_TOOLKIT=none ;;
8779 * ) USE_X_TOOLKIT=maybe ;;
8780 esac
8781 ;;
8782 mac | none )
8783 HAVE_X_WINDOWS=no
8784 HAVE_X11=no
8785 USE_X_TOOLKIT=none
8786 ;;
8787 esac
8788
8789 ### If we're using X11, we should use the X menu package.
8790 HAVE_MENUS=no
8791 case ${HAVE_X11} in
8792 yes ) HAVE_MENUS=yes ;;
8793 esac
8794
8795 if test "${opsys}" = "hpux9"; then
8796 case "${x_libraries}" in
8797 *X11R4* )
8798 opsysfile="s/hpux9-x11r4.h"
8799 ;;
8800 esac
8801 fi
8802
8803 if test "${opsys}" = "hpux9shr"; then
8804 case "${x_libraries}" in
8805 *X11R4* )
8806 opsysfile="s/hpux9shxr4.h"
8807 ;;
8808 esac
8809 fi
8810
8811 ### Compute the unexec source name from the object name.
8812 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8813
8814 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8815 # Assume not, until told otherwise.
8816 GNU_MALLOC=yes
8817 doug_lea_malloc=yes
8818 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8819 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8820 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831 #define malloc_get_state innocuous_malloc_get_state
8832
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char malloc_get_state (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8837
8838 #ifdef __STDC__
8839 # include <limits.h>
8840 #else
8841 # include <assert.h>
8842 #endif
8843
8844 #undef malloc_get_state
8845
8846 /* Override any gcc2 internal prototype to avoid an error. */
8847 #ifdef __cplusplus
8848 extern "C"
8849 {
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char malloc_get_state ();
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8858 choke me
8859 #else
8860 char (*f) () = malloc_get_state;
8861 #endif
8862 #ifdef __cplusplus
8863 }
8864 #endif
8865
8866 int
8867 main ()
8868 {
8869 return f != malloc_get_state;
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 ac_cv_func_malloc_get_state=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_cv_func_malloc_get_state=no
8901 fi
8902 rm -f conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 fi
8905 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8906 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8907 if test $ac_cv_func_malloc_get_state = yes; then
8908 :
8909 else
8910 doug_lea_malloc=no
8911 fi
8912
8913 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8914 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8915 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8926 #define malloc_set_state innocuous_malloc_set_state
8927
8928 /* System header to define __stub macros and hopefully few prototypes,
8929 which can conflict with char malloc_set_state (); below.
8930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8931 <limits.h> exists even on freestanding compilers. */
8932
8933 #ifdef __STDC__
8934 # include <limits.h>
8935 #else
8936 # include <assert.h>
8937 #endif
8938
8939 #undef malloc_set_state
8940
8941 /* Override any gcc2 internal prototype to avoid an error. */
8942 #ifdef __cplusplus
8943 extern "C"
8944 {
8945 #endif
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8948 char malloc_set_state ();
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8953 choke me
8954 #else
8955 char (*f) () = malloc_set_state;
8956 #endif
8957 #ifdef __cplusplus
8958 }
8959 #endif
8960
8961 int
8962 main ()
8963 {
8964 return f != malloc_set_state;
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_func_malloc_set_state=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 ac_cv_func_malloc_set_state=no
8996 fi
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 fi
9000 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9001 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9002 if test $ac_cv_func_malloc_set_state = yes; then
9003 :
9004 else
9005 doug_lea_malloc=no
9006 fi
9007
9008 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9009 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9010 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 extern void (* __after_morecore_hook)();
9020 int
9021 main ()
9022 {
9023 __after_morecore_hook = 0
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 emacs_cv_var___after_morecore_hook=yes
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 emacs_cv_var___after_morecore_hook=no
9055 fi
9056 rm -f conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 fi
9059 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9060 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9061 if test $emacs_cv_var___after_morecore_hook = no; then
9062 doug_lea_malloc=no
9063 fi
9064 if test "${system_malloc}" = "yes"; then
9065 GNU_MALLOC=no
9066 GNU_MALLOC_reason="
9067 (The GNU allocators don't work with this system configuration.)"
9068 fi
9069 if test "$doug_lea_malloc" = "yes" ; then
9070 if test "$GNU_MALLOC" = yes ; then
9071 GNU_MALLOC_reason="
9072 (Using Doug Lea's new malloc from the GNU C Library.)"
9073 fi
9074
9075 cat >>confdefs.h <<\_ACEOF
9076 #define DOUG_LEA_MALLOC 1
9077 _ACEOF
9078
9079 fi
9080
9081 if test x"${REL_ALLOC}" = x; then
9082 REL_ALLOC=${GNU_MALLOC}
9083 fi
9084
9085
9086
9087
9088 for ac_header in stdlib.h unistd.h
9089 do
9090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092 echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 fi
9097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099 else
9100 # Is the header compilable?
9101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 $ac_includes_default
9110 #include <$ac_header>
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 (eval $ac_compile) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_header_compiler=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_header_compiler=no
9139 fi
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9142 echo "${ECHO_T}$ac_header_compiler" >&6
9143
9144 # Is the header present?
9145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 #include <$ac_header>
9154 _ACEOF
9155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } >/dev/null; then
9163 if test -s conftest.err; then
9164 ac_cpp_err=$ac_c_preproc_warn_flag
9165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9166 else
9167 ac_cpp_err=
9168 fi
9169 else
9170 ac_cpp_err=yes
9171 fi
9172 if test -z "$ac_cpp_err"; then
9173 ac_header_preproc=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 ac_header_preproc=no
9179 fi
9180 rm -f conftest.err conftest.$ac_ext
9181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182 echo "${ECHO_T}$ac_header_preproc" >&6
9183
9184 # So? What about this header?
9185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9186 yes:no: )
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191 ac_header_preproc=yes
9192 ;;
9193 no:yes:* )
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9206 (
9207 cat <<\_ASBOX
9208 ## ------------------------------------------ ##
9209 ## Report this to the AC_PACKAGE_NAME lists. ##
9210 ## ------------------------------------------ ##
9211 _ASBOX
9212 ) |
9213 sed "s/^/$as_me: WARNING: /" >&2
9214 ;;
9215 esac
9216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 eval "$as_ac_Header=\$ac_header_preproc"
9222 fi
9223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9225
9226 fi
9227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9228 cat >>confdefs.h <<_ACEOF
9229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9230 _ACEOF
9231
9232 fi
9233
9234 done
9235
9236
9237 for ac_func in getpagesize
9238 do
9239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9240 echo "$as_me:$LINENO: checking for $ac_func" >&5
9241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9242 if eval "test \"\${$as_ac_var+set}\" = set"; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9253 #define $ac_func innocuous_$ac_func
9254
9255 /* System header to define __stub macros and hopefully few prototypes,
9256 which can conflict with char $ac_func (); below.
9257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9258 <limits.h> exists even on freestanding compilers. */
9259
9260 #ifdef __STDC__
9261 # include <limits.h>
9262 #else
9263 # include <assert.h>
9264 #endif
9265
9266 #undef $ac_func
9267
9268 /* Override any gcc2 internal prototype to avoid an error. */
9269 #ifdef __cplusplus
9270 extern "C"
9271 {
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275 char $ac_func ();
9276 /* The GNU C library defines this for functions which it implements
9277 to always fail with ENOSYS. Some functions are actually named
9278 something starting with __ and the normal name is an alias. */
9279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9280 choke me
9281 #else
9282 char (*f) () = $ac_func;
9283 #endif
9284 #ifdef __cplusplus
9285 }
9286 #endif
9287
9288 int
9289 main ()
9290 {
9291 return f != $ac_func;
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9321
9322 eval "$as_ac_var=no"
9323 fi
9324 rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326 fi
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 _ACEOF
9333
9334 fi
9335 done
9336
9337 echo "$as_me:$LINENO: checking for working mmap" >&5
9338 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9339 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 if test "$cross_compiling" = yes; then
9343 ac_cv_func_mmap_fixed_mapped=no
9344 else
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 $ac_includes_default
9352 /* malloc might have been renamed as rpl_malloc. */
9353 #undef malloc
9354
9355 /* Thanks to Mike Haertel and Jim Avera for this test.
9356 Here is a matrix of mmap possibilities:
9357 mmap private not fixed
9358 mmap private fixed at somewhere currently unmapped
9359 mmap private fixed at somewhere already mapped
9360 mmap shared not fixed
9361 mmap shared fixed at somewhere currently unmapped
9362 mmap shared fixed at somewhere already mapped
9363 For private mappings, we should verify that changes cannot be read()
9364 back from the file, nor mmap's back from the file at a different
9365 address. (There have been systems where private was not correctly
9366 implemented like the infamous i386 svr4.0, and systems where the
9367 VM page cache was not coherent with the file system buffer cache
9368 like early versions of FreeBSD and possibly contemporary NetBSD.)
9369 For shared mappings, we should conversely verify that changes get
9370 propagated back to all the places they're supposed to be.
9371
9372 Grep wants private fixed already mapped.
9373 The main things grep needs to know about mmap are:
9374 * does it exist and is it safe to write into the mmap'd area
9375 * how to use it (BSD variants) */
9376
9377 #include <fcntl.h>
9378 #include <sys/mman.h>
9379
9380 #if !STDC_HEADERS && !HAVE_STDLIB_H
9381 char *malloc ();
9382 #endif
9383
9384 /* This mess was copied from the GNU getpagesize.h. */
9385 #if !HAVE_GETPAGESIZE
9386 /* Assume that all systems that can run configure have sys/param.h. */
9387 # if !HAVE_SYS_PARAM_H
9388 # define HAVE_SYS_PARAM_H 1
9389 # endif
9390
9391 # ifdef _SC_PAGESIZE
9392 # define getpagesize() sysconf(_SC_PAGESIZE)
9393 # else /* no _SC_PAGESIZE */
9394 # if HAVE_SYS_PARAM_H
9395 # include <sys/param.h>
9396 # ifdef EXEC_PAGESIZE
9397 # define getpagesize() EXEC_PAGESIZE
9398 # else /* no EXEC_PAGESIZE */
9399 # ifdef NBPG
9400 # define getpagesize() NBPG * CLSIZE
9401 # ifndef CLSIZE
9402 # define CLSIZE 1
9403 # endif /* no CLSIZE */
9404 # else /* no NBPG */
9405 # ifdef NBPC
9406 # define getpagesize() NBPC
9407 # else /* no NBPC */
9408 # ifdef PAGESIZE
9409 # define getpagesize() PAGESIZE
9410 # endif /* PAGESIZE */
9411 # endif /* no NBPC */
9412 # endif /* no NBPG */
9413 # endif /* no EXEC_PAGESIZE */
9414 # else /* no HAVE_SYS_PARAM_H */
9415 # define getpagesize() 8192 /* punt totally */
9416 # endif /* no HAVE_SYS_PARAM_H */
9417 # endif /* no _SC_PAGESIZE */
9418
9419 #endif /* no HAVE_GETPAGESIZE */
9420
9421 int
9422 main ()
9423 {
9424 char *data, *data2, *data3;
9425 int i, pagesize;
9426 int fd;
9427
9428 pagesize = getpagesize ();
9429
9430 /* First, make a file with some known garbage in it. */
9431 data = (char *) malloc (pagesize);
9432 if (!data)
9433 exit (1);
9434 for (i = 0; i < pagesize; ++i)
9435 *(data + i) = rand ();
9436 umask (0);
9437 fd = creat ("conftest.mmap", 0600);
9438 if (fd < 0)
9439 exit (1);
9440 if (write (fd, data, pagesize) != pagesize)
9441 exit (1);
9442 close (fd);
9443
9444 /* Next, try to mmap the file at a fixed address which already has
9445 something else allocated at it. If we can, also make sure that
9446 we see the same garbage. */
9447 fd = open ("conftest.mmap", O_RDWR);
9448 if (fd < 0)
9449 exit (1);
9450 data2 = (char *) malloc (2 * pagesize);
9451 if (!data2)
9452 exit (1);
9453 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9454 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9455 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9456 exit (1);
9457 for (i = 0; i < pagesize; ++i)
9458 if (*(data + i) != *(data2 + i))
9459 exit (1);
9460
9461 /* Finally, make sure that changes to the mapped area do not
9462 percolate back to the file as seen by read(). (This is a bug on
9463 some variants of i386 svr4.0.) */
9464 for (i = 0; i < pagesize; ++i)
9465 *(data2 + i) = *(data2 + i) + 1;
9466 data3 = (char *) malloc (pagesize);
9467 if (!data3)
9468 exit (1);
9469 if (read (fd, data3, pagesize) != pagesize)
9470 exit (1);
9471 for (i = 0; i < pagesize; ++i)
9472 if (*(data + i) != *(data3 + i))
9473 exit (1);
9474 close (fd);
9475 exit (0);
9476 }
9477 _ACEOF
9478 rm -f conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_func_mmap_fixed_mapped=yes
9490 else
9491 echo "$as_me: program exited with status $ac_status" >&5
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ( exit $ac_status )
9496 ac_cv_func_mmap_fixed_mapped=no
9497 fi
9498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 fi
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9504
9505 cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_MMAP 1
9507 _ACEOF
9508
9509 fi
9510 rm -f conftest.mmap
9511
9512 if test $use_mmap_for_buffers = yes; then
9513 REL_ALLOC=no
9514 fi
9515
9516 LIBS="$libsrc_libs $LIBS"
9517
9518
9519 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9520 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 ac_check_lib_save_LIBS=$LIBS
9525 LIBS="-ldnet $LIBS"
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532
9533 /* Override any gcc2 internal prototype to avoid an error. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9539 char dnet_ntoa ();
9540 int
9541 main ()
9542 {
9543 dnet_ntoa ();
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_lib_dnet_dnet_ntoa=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ac_cv_lib_dnet_dnet_ntoa=no
9575 fi
9576 rm -f conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9581 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9582 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 #define HAVE_LIBDNET 1
9585 _ACEOF
9586
9587 LIBS="-ldnet $LIBS"
9588
9589 fi
9590
9591
9592 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9593 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9594 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lXbsd $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605
9606
9607 int
9608 main ()
9609 {
9610 main ();
9611 ;
9612 return 0;
9613 }
9614 _ACEOF
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 ac_cv_lib_Xbsd_main=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 ac_cv_lib_Xbsd_main=no
9642 fi
9643 rm -f conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9645 LIBS=$ac_check_lib_save_LIBS
9646 fi
9647 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9648 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9649 if test $ac_cv_lib_Xbsd_main = yes; then
9650 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9651 fi
9652
9653
9654
9655 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9656 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9657 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lpthreads $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668
9669 /* Override any gcc2 internal prototype to avoid an error. */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9675 char cma_open ();
9676 int
9677 main ()
9678 {
9679 cma_open ();
9680 ;
9681 return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_pthreads_cma_open=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_cv_lib_pthreads_cma_open=no
9711 fi
9712 rm -f conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9715 fi
9716 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9717 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9718 if test $ac_cv_lib_pthreads_cma_open = yes; then
9719 cat >>confdefs.h <<_ACEOF
9720 #define HAVE_LIBPTHREADS 1
9721 _ACEOF
9722
9723 LIBS="-lpthreads $LIBS"
9724
9725 fi
9726
9727
9728 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9729 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9730 if test -d /usr/X386/include; then
9731 HAVE_XFREE386=yes
9732 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9733 else
9734 HAVE_XFREE386=no
9735 fi
9736 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9737 echo "${ECHO_T}$HAVE_XFREE386" >&6
9738
9739
9740 case ${host_os} in
9741 aix*)
9742 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9743 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9744 if test "${gdb_cv_bigtoc+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747
9748 case $GCC in
9749 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9750 *) gdb_cv_bigtoc=-bbigtoc ;;
9751 esac
9752
9753 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760
9761 int
9762 main ()
9763 {
9764 int i;
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 (eval $ac_try) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 :
9791 else
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 gdb_cv_bigtoc=
9796 fi
9797 rm -f conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799
9800 fi
9801 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9802 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9803 ;;
9804 esac
9805
9806 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9807 # used for the tests that follow. We set them back to REAL_CFLAGS and
9808 # REAL_CPPFLAGS later on.
9809
9810 REAL_CPPFLAGS="$CPPFLAGS"
9811
9812 if test "${HAVE_X11}" = "yes"; then
9813 DEFS="$C_SWITCH_X_SITE $DEFS"
9814 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9815 LIBS="$LIBX $LIBS"
9816 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9817 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9818
9819 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9820 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9821 # but it's more convenient here to set LD_RUN_PATH
9822 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9823 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9824 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9825 export LD_RUN_PATH
9826 fi
9827
9828 if test "${opsys}" = "gnu-linux"; then
9829 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9830 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837
9838 int
9839 main ()
9840 {
9841 XOpenDisplay ("foo");
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 xlinux_first_failure=no
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 xlinux_first_failure=yes
9873 fi
9874 rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 if test "${xlinux_first_failure}" = "yes"; then
9877 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9878 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9879 OLD_CPPFLAGS="$CPPFLAGS"
9880 OLD_LIBS="$LIBS"
9881 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9882 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9883 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9884 LIBS="$LIBS -b i486-linuxaout"
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891
9892 int
9893 main ()
9894 {
9895 XOpenDisplay ("foo");
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 xlinux_second_failure=no
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 xlinux_second_failure=yes
9927 fi
9928 rm -f conftest.err conftest.$ac_objext \
9929 conftest$ac_exeext conftest.$ac_ext
9930 if test "${xlinux_second_failure}" = "yes"; then
9931 # If we get the same failure with -b, there is no use adding -b.
9932 # So take it out. This plays safe.
9933 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9934 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9935 CPPFLAGS="$OLD_CPPFLAGS"
9936 LIBS="$OLD_LIBS"
9937 echo "$as_me:$LINENO: result: no" >&5
9938 echo "${ECHO_T}no" >&6
9939 else
9940 echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6
9942 fi
9943 else
9944 echo "$as_me:$LINENO: result: no" >&5
9945 echo "${ECHO_T}no" >&6
9946 fi
9947 fi
9948
9949 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9950 # header files included from there.
9951 echo "$as_me:$LINENO: checking for Xkb" >&5
9952 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <X11/Xlib.h>
9960 #include <X11/XKBlib.h>
9961 int
9962 main ()
9963 {
9964 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9965 ;
9966 return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 emacs_xkb=yes
9991 else
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 emacs_xkb=no
9996 fi
9997 rm -f conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10000 echo "${ECHO_T}$emacs_xkb" >&6
10001 if test $emacs_xkb = yes; then
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_XKBGETKEYBOARD 1
10005 _ACEOF
10006
10007 fi
10008
10009
10010
10011
10012
10013 for ac_func in XrmSetDatabase XScreenResourceString \
10014 XScreenNumberOfScreen XSetWMProtocols
10015 do
10016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10017 echo "$as_me:$LINENO: checking for $ac_func" >&5
10018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10019 if eval "test \"\${$as_ac_var+set}\" = set"; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define $ac_func innocuous_$ac_func
10031
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char $ac_func (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10036
10037 #ifdef __STDC__
10038 # include <limits.h>
10039 #else
10040 # include <assert.h>
10041 #endif
10042
10043 #undef $ac_func
10044
10045 /* Override any gcc2 internal prototype to avoid an error. */
10046 #ifdef __cplusplus
10047 extern "C"
10048 {
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char $ac_func ();
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10057 choke me
10058 #else
10059 char (*f) () = $ac_func;
10060 #endif
10061 #ifdef __cplusplus
10062 }
10063 #endif
10064
10065 int
10066 main ()
10067 {
10068 return f != $ac_func;
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 eval "$as_ac_var=yes"
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 eval "$as_ac_var=no"
10100 fi
10101 rm -f conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 fi
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10106 if test `eval echo '${'$as_ac_var'}'` = yes; then
10107 cat >>confdefs.h <<_ACEOF
10108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10109 _ACEOF
10110
10111 fi
10112 done
10113
10114 fi
10115
10116 if test "${window_system}" = "x11"; then
10117 echo "$as_me:$LINENO: checking X11 version 6" >&5
10118 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10119 if test "${emacs_cv_x11_version_6+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <X11/Xlib.h>
10129 int
10130 main ()
10131 {
10132 #if XlibSpecificationRelease < 6
10133 fail;
10134 #endif
10135
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 emacs_cv_x11_version_6=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 emacs_cv_x11_version_6=no
10167 fi
10168 rm -f conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 fi
10171
10172 if test $emacs_cv_x11_version_6 = yes; then
10173 echo "$as_me:$LINENO: result: 6 or newer" >&5
10174 echo "${ECHO_T}6 or newer" >&6
10175
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_X11R6 1
10178 _ACEOF
10179
10180 else
10181 echo "$as_me:$LINENO: result: before 6" >&5
10182 echo "${ECHO_T}before 6" >&6
10183 fi
10184 fi
10185
10186 if test "${window_system}" = "x11"; then
10187 echo "$as_me:$LINENO: checking X11 version 5" >&5
10188 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10189 if test "${emacs_cv_x11_version_5+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10199 int
10200 main ()
10201 {
10202 #if XlibSpecificationRelease < 5
10203 fail;
10204 #endif
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 emacs_cv_x11_version_5=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 emacs_cv_x11_version_5=no
10237 fi
10238 rm -f conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 fi
10241
10242 if test $emacs_cv_x11_version_5 = yes; then
10243 echo "$as_me:$LINENO: result: 5 or newer" >&5
10244 echo "${ECHO_T}5 or newer" >&6
10245 HAVE_X11R5=yes
10246
10247 cat >>confdefs.h <<\_ACEOF
10248 #define HAVE_X11R5 1
10249 _ACEOF
10250
10251 else
10252 HAVE_X11R5=no
10253 echo "$as_me:$LINENO: result: before 5" >&5
10254 echo "${ECHO_T}before 5" >&6
10255 fi
10256 fi
10257
10258 HAVE_GTK=no
10259 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10260 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10261 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10262 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10263 { (exit 1); exit 1; }; };
10264 fi
10265 GLIB_REQUIRED=2.4
10266 GTK_REQUIRED=2.4
10267 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10268
10269 if test "X${with_pkg_config_prog}" != X; then
10270 PKG_CONFIG="${with_pkg_config_prog}"
10271 fi
10272
10273 succeeded=no
10274
10275 if test -z "$PKG_CONFIG"; then
10276 # Extract the first word of "pkg-config", so it can be a program name with args.
10277 set dummy pkg-config; ac_word=$2
10278 echo "$as_me:$LINENO: checking for $ac_word" >&5
10279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10280 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 case $PKG_CONFIG in
10284 [\\/]* | ?:[\\/]*)
10285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10286 ;;
10287 *)
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299 done
10300 done
10301
10302 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10303 ;;
10304 esac
10305 fi
10306 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10307
10308 if test -n "$PKG_CONFIG"; then
10309 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10310 echo "${ECHO_T}$PKG_CONFIG" >&6
10311 else
10312 echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10314 fi
10315
10316 fi
10317
10318 if test "$PKG_CONFIG" = "no" ; then
10319 { { echo "$as_me:$LINENO: error:
10320 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10321 echo "$as_me: error:
10322 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10323 { (exit 1); exit 1; }; }
10324 else
10325 PKG_CONFIG_MIN_VERSION=0.9.0
10326 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10327 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10328 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10329
10330 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332 echo "${ECHO_T}yes" >&6
10333 succeeded=yes
10334
10335 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10336 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10337 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10338 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10339 echo "${ECHO_T}$GTK_CFLAGS" >&6
10340
10341 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10342 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10343 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10344 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10345 echo "${ECHO_T}$GTK_LIBS" >&6
10346 else
10347 echo "$as_me:$LINENO: result: no" >&5
10348 echo "${ECHO_T}no" >&6
10349 GTK_CFLAGS=""
10350 GTK_LIBS=""
10351 ## If we have a custom action on failure, don't print errors, but
10352 ## do set a variable so people can do so.
10353 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10354 echo $GTK_PKG_ERRORS
10355 fi
10356
10357
10358
10359 else
10360 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10361 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10362 fi
10363 fi
10364
10365 if test $succeeded = yes; then
10366 :
10367 else
10368 { { 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
10369 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;}
10370 { (exit 1); exit 1; }; }
10371 fi
10372
10373
10374
10375 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10376 CFLAGS="$CFLAGS $GTK_CFLAGS"
10377 LIBS="$GTK_LIBS $LIBS"
10378 HAVE_GTK=yes
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_GTK 1
10382 _ACEOF
10383
10384 USE_X_TOOLKIT=none
10385
10386 if test "$with_toolkit_scroll_bars" != no; then
10387 with_toolkit_scroll_bars=yes
10388 fi
10389
10390 HAVE_GTK_MULTIDISPLAY=no
10391
10392 for ac_func in gdk_display_open
10393 do
10394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10395 echo "$as_me:$LINENO: checking for $ac_func" >&5
10396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10397 if eval "test \"\${$as_ac_var+set}\" = set"; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10408 #define $ac_func innocuous_$ac_func
10409
10410 /* System header to define __stub macros and hopefully few prototypes,
10411 which can conflict with char $ac_func (); below.
10412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10413 <limits.h> exists even on freestanding compilers. */
10414
10415 #ifdef __STDC__
10416 # include <limits.h>
10417 #else
10418 # include <assert.h>
10419 #endif
10420
10421 #undef $ac_func
10422
10423 /* Override any gcc2 internal prototype to avoid an error. */
10424 #ifdef __cplusplus
10425 extern "C"
10426 {
10427 #endif
10428 /* We use char because int might match the return type of a gcc2
10429 builtin and then its argument prototype would still apply. */
10430 char $ac_func ();
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10435 choke me
10436 #else
10437 char (*f) () = $ac_func;
10438 #endif
10439 #ifdef __cplusplus
10440 }
10441 #endif
10442
10443 int
10444 main ()
10445 {
10446 return f != $ac_func;
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 eval "$as_ac_var=yes"
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 eval "$as_ac_var=no"
10478 fi
10479 rm -f conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 fi
10482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10484 if test `eval echo '${'$as_ac_var'}'` = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 _ACEOF
10488 HAVE_GTK_MULTIDISPLAY=yes
10489 fi
10490 done
10491
10492 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10493
10494 cat >>confdefs.h <<\_ACEOF
10495 #define HAVE_GTK_MULTIDISPLAY 1
10496 _ACEOF
10497
10498 fi
10499 HAVE_GTK_FILE_SELECTION=no
10500
10501 for ac_func in gtk_file_selection_new
10502 do
10503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_func" >&5
10505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_var+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10517 #define $ac_func innocuous_$ac_func
10518
10519 /* System header to define __stub macros and hopefully few prototypes,
10520 which can conflict with char $ac_func (); below.
10521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10522 <limits.h> exists even on freestanding compilers. */
10523
10524 #ifdef __STDC__
10525 # include <limits.h>
10526 #else
10527 # include <assert.h>
10528 #endif
10529
10530 #undef $ac_func
10531
10532 /* Override any gcc2 internal prototype to avoid an error. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 {
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10539 char $ac_func ();
10540 /* The GNU C library defines this for functions which it implements
10541 to always fail with ENOSYS. Some functions are actually named
10542 something starting with __ and the normal name is an alias. */
10543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10544 choke me
10545 #else
10546 char (*f) () = $ac_func;
10547 #endif
10548 #ifdef __cplusplus
10549 }
10550 #endif
10551
10552 int
10553 main ()
10554 {
10555 return f != $ac_func;
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 eval "$as_ac_var=no"
10587 fi
10588 rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 fi
10591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596 _ACEOF
10597 HAVE_GTK_FILE_SELECTION=yes
10598 fi
10599 done
10600
10601
10602 HAVE_GTK_FILE_CHOOSER=no
10603
10604 for ac_func in gtk_file_chooser_dialog_new
10605 do
10606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10607 echo "$as_me:$LINENO: checking for $ac_func" >&5
10608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10609 if eval "test \"\${$as_ac_var+set}\" = set"; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10620 #define $ac_func innocuous_$ac_func
10621
10622 /* System header to define __stub macros and hopefully few prototypes,
10623 which can conflict with char $ac_func (); below.
10624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625 <limits.h> exists even on freestanding compilers. */
10626
10627 #ifdef __STDC__
10628 # include <limits.h>
10629 #else
10630 # include <assert.h>
10631 #endif
10632
10633 #undef $ac_func
10634
10635 /* Override any gcc2 internal prototype to avoid an error. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 {
10639 #endif
10640 /* We use char because int might match the return type of a gcc2
10641 builtin and then its argument prototype would still apply. */
10642 char $ac_func ();
10643 /* The GNU C library defines this for functions which it implements
10644 to always fail with ENOSYS. Some functions are actually named
10645 something starting with __ and the normal name is an alias. */
10646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10647 choke me
10648 #else
10649 char (*f) () = $ac_func;
10650 #endif
10651 #ifdef __cplusplus
10652 }
10653 #endif
10654
10655 int
10656 main ()
10657 {
10658 return f != $ac_func;
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 eval "$as_ac_var=yes"
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 eval "$as_ac_var=no"
10690 fi
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 fi
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10696 if test `eval echo '${'$as_ac_var'}'` = yes; then
10697 cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10699 _ACEOF
10700 HAVE_GTK_FILE_CHOOSER=yes
10701 fi
10702 done
10703
10704
10705 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10706 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10707
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_GTK_FILE_BOTH 1
10710 _ACEOF
10711
10712 fi
10713
10714 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10715 HAVE_GTK_AND_PTHREAD=no
10716
10717 for ac_header in pthread.h
10718 do
10719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10721 echo "$as_me:$LINENO: checking for $ac_header" >&5
10722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 fi
10726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10728 else
10729 # Is the header compilable?
10730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 $ac_includes_default
10739 #include <$ac_header>
10740 _ACEOF
10741 rm -f conftest.$ac_objext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; } &&
10756 { ac_try='test -s conftest.$ac_objext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_header_compiler=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_header_compiler=no
10768 fi
10769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10771 echo "${ECHO_T}$ac_header_compiler" >&6
10772
10773 # Is the header present?
10774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <$ac_header>
10783 _ACEOF
10784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } >/dev/null; then
10792 if test -s conftest.err; then
10793 ac_cpp_err=$ac_c_preproc_warn_flag
10794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 else
10796 ac_cpp_err=
10797 fi
10798 else
10799 ac_cpp_err=yes
10800 fi
10801 if test -z "$ac_cpp_err"; then
10802 ac_header_preproc=yes
10803 else
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 ac_header_preproc=no
10808 fi
10809 rm -f conftest.err conftest.$ac_ext
10810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6
10812
10813 # So? What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815 yes:no: )
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820 ac_header_preproc=yes
10821 ;;
10822 no:yes:* )
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835 (
10836 cat <<\_ASBOX
10837 ## ------------------------------------------ ##
10838 ## Report this to the AC_PACKAGE_NAME lists. ##
10839 ## ------------------------------------------ ##
10840 _ASBOX
10841 ) |
10842 sed "s/^/$as_me: WARNING: /" >&2
10843 ;;
10844 esac
10845 echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850 eval "$as_ac_Header=\$ac_header_preproc"
10851 fi
10852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854
10855 fi
10856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10859 _ACEOF
10860
10861 fi
10862
10863 done
10864
10865 if test "$ac_cv_header_pthread_h"; then
10866 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10867 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10868 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lpthread $LIBS"
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879
10880 /* Override any gcc2 internal prototype to avoid an error. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char pthread_self ();
10887 int
10888 main ()
10889 {
10890 pthread_self ();
10891 ;
10892 return 0;
10893 }
10894 _ACEOF
10895 rm -f conftest.$ac_objext conftest$ac_exeext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_pthread_pthread_self=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 ac_cv_lib_pthread_pthread_self=no
10922 fi
10923 rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10928 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10929 if test $ac_cv_lib_pthread_pthread_self = yes; then
10930 HAVE_GTK_AND_PTHREAD=yes
10931 fi
10932
10933 fi
10934 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10935 GTK_LIBS="$GTK_LIBS -lpthread"
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_GTK_AND_PTHREAD 1
10939 _ACEOF
10940
10941 fi
10942 fi
10943 fi
10944
10945 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10946 if test x"${HAVE_X11R5}" = xyes; then
10947 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10948 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10949 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958
10959 #include <X11/Intrinsic.h>
10960 #include <X11/Xaw/Simple.h>
10961 int
10962 main ()
10963 {
10964
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 emacs_cv_x11_version_5_with_xaw=yes
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 emacs_cv_x11_version_5_with_xaw=no
10996 fi
10997 rm -f conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 fi
11000
11001 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11002 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11003 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11004 USE_X_TOOLKIT=LUCID
11005 else
11006 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11007 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11008 USE_X_TOOLKIT=none
11009 fi
11010 else
11011 USE_X_TOOLKIT=none
11012 fi
11013 fi
11014
11015 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11016
11017 if test "${USE_X_TOOLKIT}" != "none"; then
11018 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11019 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11020 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <X11/Intrinsic.h>
11030 int
11031 main ()
11032 {
11033 #if XtSpecificationRelease < 6
11034 fail;
11035 #endif
11036
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 emacs_cv_x11_toolkit_version_6=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 emacs_cv_x11_toolkit_version_6=no
11068 fi
11069 rm -f conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 fi
11072
11073 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11074 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11075 echo "$as_me:$LINENO: result: 6 or newer" >&5
11076 echo "${ECHO_T}6 or newer" >&6
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_X11XTR6 1
11080 _ACEOF
11081
11082 else
11083 echo "$as_me:$LINENO: result: before 6" >&5
11084 echo "${ECHO_T}before 6" >&6
11085 fi
11086
11087 OLDLIBS="$LIBS"
11088 if test x$HAVE_X11XTR6 = xyes; then
11089 LIBS="-lXt -lSM -lICE $LIBS"
11090 else
11091 LIBS="-lXt $LIBS"
11092 fi
11093
11094 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11095 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11096 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lXmu $LIBS"
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107
11108 /* Override any gcc2 internal prototype to avoid an error. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char XmuConvertStandardSelection ();
11115 int
11116 main ()
11117 {
11118 XmuConvertStandardSelection ();
11119 ;
11120 return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11150 fi
11151 rm -f conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
11153 LIBS=$ac_check_lib_save_LIBS
11154 fi
11155 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11156 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11157 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11158 cat >>confdefs.h <<_ACEOF
11159 #define HAVE_LIBXMU 1
11160 _ACEOF
11161
11162 LIBS="-lXmu $LIBS"
11163
11164 fi
11165
11166 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11167 fi
11168
11169 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11170 if test "${HAVE_X11}" = "yes"; then
11171 if test "${USE_X_TOOLKIT}" != "none"; then
11172
11173 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11174 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11175 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-lXext $LIBS"
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char XShapeQueryExtension ();
11194 int
11195 main ()
11196 {
11197 XShapeQueryExtension ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; } &&
11217 { ac_try='test -s conftest$ac_exeext'
11218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_cv_lib_Xext_XShapeQueryExtension=yes
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228 ac_cv_lib_Xext_XShapeQueryExtension=no
11229 fi
11230 rm -f conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11233 fi
11234 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11235 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11236 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11237 cat >>confdefs.h <<_ACEOF
11238 #define HAVE_LIBXEXT 1
11239 _ACEOF
11240
11241 LIBS="-lXext $LIBS"
11242
11243 fi
11244
11245 fi
11246 fi
11247
11248 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11249 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11250 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11251 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <Xm/Xm.h>
11261 int
11262 main ()
11263 {
11264 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11265 int x = 5;
11266 #else
11267 Motif version prior to 2.1.
11268 #endif
11269 ;
11270 return 0;
11271 }
11272 _ACEOF
11273 rm -f conftest.$ac_objext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11275 (eval $ac_compile) 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 emacs_cv_motif_version_2_1=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 emacs_cv_motif_version_2_1=no
11300 fi
11301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11302 fi
11303 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11304 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11305 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11306 if test $emacs_cv_motif_version_2_1 = yes; then
11307 HAVE_LIBXP=no
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_MOTIF_2_1 1
11311 _ACEOF
11312
11313 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11314 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11315 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 ac_check_lib_save_LIBS=$LIBS
11319 LIBS="-lXp $LIBS"
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326
11327 /* Override any gcc2 internal prototype to avoid an error. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char XpCreateContext ();
11334 int
11335 main ()
11336 {
11337 XpCreateContext ();
11338 ;
11339 return 0;
11340 }
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_lib_Xp_XpCreateContext=yes
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11367
11368 ac_cv_lib_Xp_XpCreateContext=no
11369 fi
11370 rm -f conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11375 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11376 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11377 HAVE_LIBXP=yes
11378 fi
11379
11380 if test ${HAVE_LIBXP} = yes; then
11381
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_LIBXP 1
11384 _ACEOF
11385
11386 fi
11387 else
11388 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11389 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11390 if test "${emacs_cv_lesstif+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 # We put this in CFLAGS temporarily to precede other -I options
11394 # that might be in CFLAGS temporarily.
11395 # We put this in CPPFLAGS where it precedes the other -I options.
11396 OLD_CPPFLAGS=$CPPFLAGS
11397 OLD_CFLAGS=$CFLAGS
11398 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11399 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11407 int
11408 main ()
11409 {
11410 int x = 5;
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest.$ac_objext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 emacs_cv_lesstif=yes
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 emacs_cv_lesstif=no
11442 fi
11443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11444 fi
11445 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11446 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11447 if test $emacs_cv_lesstif = yes; then
11448 # Make sure this -I option remains in CPPFLAGS after it is set
11449 # back to REAL_CPPFLAGS.
11450 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11451 # have those other -I options anyway. Ultimately, having this
11452 # directory ultimately in CPPFLAGS will be enough.
11453 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11454 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11455 else
11456 CFLAGS=$OLD_CFLAGS
11457 CPPFLAGS=$OLD_CPPFLAGS
11458 fi
11459 fi
11460 fi
11461
11462 ### Is -lXaw3d available?
11463 HAVE_XAW3D=no
11464 if test "${HAVE_X11}" = "yes"; then
11465 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11466 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11467 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11468 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <X11/Xaw3d/Scrollbar.h>
11478 _ACEOF
11479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } >/dev/null; then
11487 if test -s conftest.err; then
11488 ac_cpp_err=$ac_c_preproc_warn_flag
11489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11490 else
11491 ac_cpp_err=
11492 fi
11493 else
11494 ac_cpp_err=yes
11495 fi
11496 if test -z "$ac_cpp_err"; then
11497 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11503 fi
11504 rm -f conftest.err conftest.$ac_ext
11505 fi
11506 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11507 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11508 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11509 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11510 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11511 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514 ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-lXaw3d $LIBS"
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522
11523 /* Override any gcc2 internal prototype to avoid an error. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11529 char XawScrollbarSetThumb ();
11530 int
11531 main ()
11532 {
11533 XawScrollbarSetThumb ();
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 rm -f conftest.$ac_objext conftest$ac_exeext
11539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11540 (eval $ac_link) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest$ac_exeext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11565 fi
11566 rm -f conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11571 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11572 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11573 HAVE_XAW3D=yes
11574 fi
11575
11576 fi
11577
11578
11579 if test "${HAVE_XAW3D}" = "yes"; then
11580
11581 cat >>confdefs.h <<\_ACEOF
11582 #define HAVE_XAW3D 1
11583 _ACEOF
11584
11585 fi
11586 fi
11587 fi
11588
11589
11590
11591 USE_TOOLKIT_SCROLL_BARS=no
11592 if test "${with_toolkit_scroll_bars}" != "no"; then
11593 if test "${USE_X_TOOLKIT}" != "none"; then
11594 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11595 cat >>confdefs.h <<\_ACEOF
11596 #define USE_TOOLKIT_SCROLL_BARS 1
11597 _ACEOF
11598
11599 HAVE_XAW3D=no
11600 USE_TOOLKIT_SCROLL_BARS=yes
11601 elif test "${HAVE_XAW3D}" = "yes"; then
11602 cat >>confdefs.h <<\_ACEOF
11603 #define USE_TOOLKIT_SCROLL_BARS 1
11604 _ACEOF
11605
11606 USE_TOOLKIT_SCROLL_BARS=yes
11607 fi
11608 elif test "${HAVE_GTK}" = "yes"; then
11609 cat >>confdefs.h <<\_ACEOF
11610 #define USE_TOOLKIT_SCROLL_BARS 1
11611 _ACEOF
11612
11613 USE_TOOLKIT_SCROLL_BARS=yes
11614 elif test "${HAVE_CARBON}" = "yes"; then
11615 cat >>confdefs.h <<\_ACEOF
11616 #define USE_TOOLKIT_SCROLL_BARS 1
11617 _ACEOF
11618
11619 USE_TOOLKIT_SCROLL_BARS=yes
11620 fi
11621 fi
11622
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629
11630 #include <X11/Xlib.h>
11631 #include <X11/Xresource.h>
11632 int
11633 main ()
11634 {
11635 XIMProc callback;
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 HAVE_XIM=yes
11662
11663 cat >>confdefs.h <<\_ACEOF
11664 #define HAVE_XIM 1
11665 _ACEOF
11666
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 HAVE_XIM=no
11672 fi
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674
11675
11676 if test "${with_xim}" != "no"; then
11677
11678 cat >>confdefs.h <<\_ACEOF
11679 #define USE_XIM 1
11680 _ACEOF
11681
11682 fi
11683
11684
11685 if test "${HAVE_XIM}" != "no"; then
11686 late_CFLAGS=$CFLAGS
11687 if test "$GCC" = yes; then
11688 CFLAGS="$CFLAGS --pedantic-errors"
11689 fi
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696
11697 #include <X11/Xlib.h>
11698 #include <X11/Xresource.h>
11699 int
11700 main ()
11701 {
11702 Display *display;
11703 XrmDatabase db;
11704 char *res_name;
11705 char *res_class;
11706 XIMProc callback;
11707 XPointer *client_data;
11708 #ifndef __GNUC__
11709 /* If we're not using GCC, it's probably not XFree86, and this is
11710 probably right, but we can't use something like --pedantic-errors. */
11711 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11712 char*, XIMProc, XPointer*);
11713 #endif
11714 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11715 client_data);
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11722 (eval $ac_compile) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 emacs_cv_arg6_star=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 fi
11747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11748
11749 if test "$emacs_cv_arg6_star" = yes; then
11750 cat >>confdefs.h <<\_ACEOF
11751 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11752 _ACEOF
11753
11754 else
11755 cat >>confdefs.h <<\_ACEOF
11756 #define XRegisterIMInstantiateCallback_arg6 XPointer
11757 _ACEOF
11758
11759 fi
11760 CFLAGS=$late_CFLAGS
11761 fi
11762
11763 ### Use -lXpm if available, unless `--with-xpm=no'.
11764 HAVE_XPM=no
11765 if test "${HAVE_X11}" = "yes"; then
11766 if test "${with_xpm}" != "no"; then
11767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11768 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11769 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11770 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11774 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11775 else
11776 # Is the header compilable?
11777 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11778 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 $ac_includes_default
11786 #include <X11/xpm.h>
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_header_compiler=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818 echo "${ECHO_T}$ac_header_compiler" >&6
11819
11820 # Is the header present?
11821 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11822 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <X11/xpm.h>
11830 _ACEOF
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 else
11843 ac_cpp_err=
11844 fi
11845 else
11846 ac_cpp_err=yes
11847 fi
11848 if test -z "$ac_cpp_err"; then
11849 ac_header_preproc=yes
11850 else
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 ac_header_preproc=no
11855 fi
11856 rm -f conftest.err conftest.$ac_ext
11857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6
11859
11860 # So? What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 yes:no: )
11863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11868 ;;
11869 no:yes:* )
11870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11882 (
11883 cat <<\_ASBOX
11884 ## ------------------------------------------ ##
11885 ## Report this to the AC_PACKAGE_NAME lists. ##
11886 ## ------------------------------------------ ##
11887 _ASBOX
11888 ) |
11889 sed "s/^/$as_me: WARNING: /" >&2
11890 ;;
11891 esac
11892 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11893 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11894 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897 ac_cv_header_X11_xpm_h=$ac_header_preproc
11898 fi
11899 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11900 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11901
11902 fi
11903 if test $ac_cv_header_X11_xpm_h = yes; then
11904 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11905 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11906 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lXpm -lX11 $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char XpmReadFileToPixmap ();
11925 int
11926 main ()
11927 {
11928 XpmReadFileToPixmap ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11955 else
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11960 fi
11961 rm -f conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11966 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11967 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11968 HAVE_XPM=yes
11969 fi
11970
11971 fi
11972
11973
11974 if test "${HAVE_XPM}" = "yes"; then
11975 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11976 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 #include "X11/xpm.h"
11984 #ifndef XpmReturnAllocPixels
11985 no_return_alloc_pixels
11986 #endif
11987
11988 _ACEOF
11989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11990 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11991 HAVE_XPM=no
11992 else
11993 HAVE_XPM=yes
11994 fi
11995 rm -f conftest*
11996
11997
11998 if test "${HAVE_XPM}" = "yes"; then
11999 echo "$as_me:$LINENO: result: yes" >&5
12000 echo "${ECHO_T}yes" >&6
12001 else
12002 echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6
12004 fi
12005 fi
12006 fi
12007
12008 if test "${HAVE_XPM}" = "yes"; then
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_XPM 1
12012 _ACEOF
12013
12014 fi
12015 fi
12016
12017 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12018 HAVE_JPEG=no
12019 if test "${HAVE_X11}" = "yes"; then
12020 if test "${with_jpeg}" != "no"; then
12021 if test "${ac_cv_header_jerror_h+set}" = set; then
12022 echo "$as_me:$LINENO: checking for jerror.h" >&5
12023 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12024 if test "${ac_cv_header_jerror_h+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 fi
12027 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12028 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12029 else
12030 # Is the header compilable?
12031 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12032 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #include <jerror.h>
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_header_compiler=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_header_compiler=no
12069 fi
12070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12072 echo "${ECHO_T}$ac_header_compiler" >&6
12073
12074 # Is the header present?
12075 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12076 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <jerror.h>
12084 _ACEOF
12085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } >/dev/null; then
12093 if test -s conftest.err; then
12094 ac_cpp_err=$ac_c_preproc_warn_flag
12095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12096 else
12097 ac_cpp_err=
12098 fi
12099 else
12100 ac_cpp_err=yes
12101 fi
12102 if test -z "$ac_cpp_err"; then
12103 ac_header_preproc=yes
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 ac_header_preproc=no
12109 fi
12110 rm -f conftest.err conftest.$ac_ext
12111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6
12113
12114 # So? What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12116 yes:no: )
12117 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12121 ac_header_preproc=yes
12122 ;;
12123 no:yes:* )
12124 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12136 (
12137 cat <<\_ASBOX
12138 ## ------------------------------------------ ##
12139 ## Report this to the AC_PACKAGE_NAME lists. ##
12140 ## ------------------------------------------ ##
12141 _ASBOX
12142 ) |
12143 sed "s/^/$as_me: WARNING: /" >&2
12144 ;;
12145 esac
12146 echo "$as_me:$LINENO: checking for jerror.h" >&5
12147 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12148 if test "${ac_cv_header_jerror_h+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151 ac_cv_header_jerror_h=$ac_header_preproc
12152 fi
12153 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12154 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12155
12156 fi
12157 if test $ac_cv_header_jerror_h = yes; then
12158 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12159 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12160 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-ljpeg $LIBS"
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12178 char jpeg_destroy_compress ();
12179 int
12180 main ()
12181 {
12182 jpeg_destroy_compress ();
12183 ;
12184 return 0;
12185 }
12186 _ACEOF
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12189 (eval $ac_link) 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); } &&
12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12214 fi
12215 rm -f conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12218 fi
12219 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12220 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12221 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12222 HAVE_JPEG=yes
12223 fi
12224
12225 fi
12226
12227
12228 fi
12229
12230
12231 if test "${HAVE_JPEG}" = "yes"; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_JPEG 1
12234 _ACEOF
12235
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <jpeglib.h>
12243 version=JPEG_LIB_VERSION
12244
12245 _ACEOF
12246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12247 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12248 cat >>confdefs.h <<\_ACEOF
12249 #define HAVE_JPEG 1
12250 _ACEOF
12251
12252 else
12253 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12254 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12255 HAVE_JPEG=no
12256 fi
12257 rm -f conftest*
12258
12259 fi
12260 fi
12261
12262 ### Use -lpng if available, unless `--with-png=no'.
12263 HAVE_PNG=no
12264 if test "${HAVE_X11}" = "yes"; then
12265 if test "${with_png}" != "no"; then
12266 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12267 # in /usr/include/libpng.
12268
12269
12270 for ac_header in png.h libpng/png.h
12271 do
12272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12274 echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 fi
12279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12281 else
12282 # Is the header compilable?
12283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 $ac_includes_default
12292 #include <$ac_header>
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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_header_compiler=yes
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_header_compiler=no
12321 fi
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6
12325
12326 # Is the header present?
12327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <$ac_header>
12336 _ACEOF
12337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev/null; then
12345 if test -s conftest.err; then
12346 ac_cpp_err=$ac_c_preproc_warn_flag
12347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12348 else
12349 ac_cpp_err=
12350 fi
12351 else
12352 ac_cpp_err=yes
12353 fi
12354 if test -z "$ac_cpp_err"; then
12355 ac_header_preproc=yes
12356 else
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360 ac_header_preproc=no
12361 fi
12362 rm -f conftest.err conftest.$ac_ext
12363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 echo "${ECHO_T}$ac_header_preproc" >&6
12365
12366 # So? What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12368 yes:no: )
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373 ac_header_preproc=yes
12374 ;;
12375 no:yes:* )
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12388 (
12389 cat <<\_ASBOX
12390 ## ------------------------------------------ ##
12391 ## Report this to the AC_PACKAGE_NAME lists. ##
12392 ## ------------------------------------------ ##
12393 _ASBOX
12394 ) |
12395 sed "s/^/$as_me: WARNING: /" >&2
12396 ;;
12397 esac
12398 echo "$as_me:$LINENO: checking for $ac_header" >&5
12399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 eval "$as_ac_Header=\$ac_header_preproc"
12404 fi
12405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12407
12408 fi
12409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12410 cat >>confdefs.h <<_ACEOF
12411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12412 _ACEOF
12413
12414 fi
12415
12416 done
12417
12418 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12419 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12420 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12421 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 ac_check_lib_save_LIBS=$LIBS
12425 LIBS="-lpng -lz -lm $LIBS"
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432
12433 /* Override any gcc2 internal prototype to avoid an error. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12439 char png_get_channels ();
12440 int
12441 main ()
12442 {
12443 png_get_channels ();
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_lib_png_png_get_channels=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_cv_lib_png_png_get_channels=no
12475 fi
12476 rm -f conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12479 fi
12480 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12481 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12482 if test $ac_cv_lib_png_png_get_channels = yes; then
12483 HAVE_PNG=yes
12484 fi
12485
12486 fi
12487 fi
12488
12489 if test "${HAVE_PNG}" = "yes"; then
12490
12491 cat >>confdefs.h <<\_ACEOF
12492 #define HAVE_PNG 1
12493 _ACEOF
12494
12495 fi
12496 fi
12497
12498 ### Use -ltiff if available, unless `--with-tiff=no'.
12499 HAVE_TIFF=no
12500 if test "${HAVE_X11}" = "yes"; then
12501 if test "${with_tiff}" != "no"; then
12502 if test "${ac_cv_header_tiffio_h+set}" = set; then
12503 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12504 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12505 if test "${ac_cv_header_tiffio_h+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 fi
12508 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12509 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12510 else
12511 # Is the header compilable?
12512 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12513 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h. */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 $ac_includes_default
12521 #include <tiffio.h>
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_header_compiler=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_header_compiler=no
12550 fi
12551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12553 echo "${ECHO_T}$ac_header_compiler" >&6
12554
12555 # Is the header present?
12556 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12557 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #include <tiffio.h>
12565 _ACEOF
12566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } >/dev/null; then
12574 if test -s conftest.err; then
12575 ac_cpp_err=$ac_c_preproc_warn_flag
12576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12577 else
12578 ac_cpp_err=
12579 fi
12580 else
12581 ac_cpp_err=yes
12582 fi
12583 if test -z "$ac_cpp_err"; then
12584 ac_header_preproc=yes
12585 else
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ac_header_preproc=no
12590 fi
12591 rm -f conftest.err conftest.$ac_ext
12592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12593 echo "${ECHO_T}$ac_header_preproc" >&6
12594
12595 # So? What about this header?
12596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12597 yes:no: )
12598 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12599 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12601 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12602 ac_header_preproc=yes
12603 ;;
12604 no:yes:* )
12605 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12606 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12608 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12610 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12612 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12614 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12616 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12617 (
12618 cat <<\_ASBOX
12619 ## ------------------------------------------ ##
12620 ## Report this to the AC_PACKAGE_NAME lists. ##
12621 ## ------------------------------------------ ##
12622 _ASBOX
12623 ) |
12624 sed "s/^/$as_me: WARNING: /" >&2
12625 ;;
12626 esac
12627 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12628 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12629 if test "${ac_cv_header_tiffio_h+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 ac_cv_header_tiffio_h=$ac_header_preproc
12633 fi
12634 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12635 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12636
12637 fi
12638 if test $ac_cv_header_tiffio_h = yes; then
12639 tifflibs="-lz -lm"
12640 # At least one tiff package requires the jpeg library.
12641 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12642 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12643 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12644 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-ltiff $tifflibs $LIBS"
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655
12656 /* Override any gcc2 internal prototype to avoid an error. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 /* We use char because int might match the return type of a gcc2
12661 builtin and then its argument prototype would still apply. */
12662 char TIFFGetVersion ();
12663 int
12664 main ()
12665 {
12666 TIFFGetVersion ();
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_lib_tiff_TIFFGetVersion=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 ac_cv_lib_tiff_TIFFGetVersion=no
12698 fi
12699 rm -f conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12704 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12705 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12706 HAVE_TIFF=yes
12707 fi
12708
12709 fi
12710
12711
12712 fi
12713
12714 if test "${HAVE_TIFF}" = "yes"; then
12715
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_TIFF 1
12718 _ACEOF
12719
12720 fi
12721 fi
12722
12723 ### Use -lgif if available, unless `--with-gif=no'.
12724 HAVE_GIF=no
12725 if test "${HAVE_X11}" = "yes"; then
12726 if test "${with_gif}" != "no"; then
12727 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12728 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12729 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12730 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 fi
12733 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12734 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12735 else
12736 # Is the header compilable?
12737 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12738 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 $ac_includes_default
12746 #include <gif_lib.h>
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_header_compiler=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_header_compiler=no
12775 fi
12776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778 echo "${ECHO_T}$ac_header_compiler" >&6
12779
12780 # Is the header present?
12781 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12782 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 #include <gif_lib.h>
12790 _ACEOF
12791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null; then
12799 if test -s conftest.err; then
12800 ac_cpp_err=$ac_c_preproc_warn_flag
12801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802 else
12803 ac_cpp_err=
12804 fi
12805 else
12806 ac_cpp_err=yes
12807 fi
12808 if test -z "$ac_cpp_err"; then
12809 ac_header_preproc=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_header_preproc=no
12815 fi
12816 rm -f conftest.err conftest.$ac_ext
12817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818 echo "${ECHO_T}$ac_header_preproc" >&6
12819
12820 # So? What about this header?
12821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 yes:no: )
12823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12824 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12826 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc=yes
12828 ;;
12829 no:yes:* )
12830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12831 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12833 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12835 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12837 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12839 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12841 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12842 (
12843 cat <<\_ASBOX
12844 ## ------------------------------------------ ##
12845 ## Report this to the AC_PACKAGE_NAME lists. ##
12846 ## ------------------------------------------ ##
12847 _ASBOX
12848 ) |
12849 sed "s/^/$as_me: WARNING: /" >&2
12850 ;;
12851 esac
12852 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12853 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 ac_cv_header_gif_lib_h=$ac_header_preproc
12858 fi
12859 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12861
12862 fi
12863 if test $ac_cv_header_gif_lib_h = yes; then
12864 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12865 # Earlier versions can crash Emacs.
12866 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12867 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12868 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871 ac_check_lib_save_LIBS=$LIBS
12872 LIBS="-lungif $LIBS"
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879
12880 /* Override any gcc2 internal prototype to avoid an error. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12886 char EGifPutExtensionLast ();
12887 int
12888 main ()
12889 {
12890 EGifPutExtensionLast ();
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest$ac_exeext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 ac_cv_lib_ungif_EGifPutExtensionLast=no
12922 fi
12923 rm -f conftest.err conftest.$ac_objext \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12926 fi
12927 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12928 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12929 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12930 HAVE_GIF=yes
12931 fi
12932
12933 fi
12934
12935
12936 fi
12937
12938 if test "${HAVE_GIF}" = "yes"; then
12939
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_GIF 1
12942 _ACEOF
12943
12944 fi
12945 fi
12946
12947 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12948 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12949 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12950 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 fi
12953 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12954 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12955 else
12956 # Is the header compilable?
12957 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12958 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <malloc/malloc.h>
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler=yes
12990 else
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_header_compiler=no
12995 fi
12996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998 echo "${ECHO_T}$ac_header_compiler" >&6
12999
13000 # Is the header present?
13001 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13002 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <malloc/malloc.h>
13010 _ACEOF
13011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null; then
13019 if test -s conftest.err; then
13020 ac_cpp_err=$ac_c_preproc_warn_flag
13021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13022 else
13023 ac_cpp_err=
13024 fi
13025 else
13026 ac_cpp_err=yes
13027 fi
13028 if test -z "$ac_cpp_err"; then
13029 ac_header_preproc=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035 fi
13036 rm -f conftest.err conftest.$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038 echo "${ECHO_T}$ac_header_preproc" >&6
13039
13040 # So? What about this header?
13041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
13043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13044 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13046 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
13048 ;;
13049 no:yes:* )
13050 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13055 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13057 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13061 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13062 (
13063 cat <<\_ASBOX
13064 ## ------------------------------------------ ##
13065 ## Report this to the AC_PACKAGE_NAME lists. ##
13066 ## ------------------------------------------ ##
13067 _ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
13070 ;;
13071 esac
13072 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13073 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13078 fi
13079 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13080 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13081
13082 fi
13083 if test $ac_cv_header_malloc_malloc_h = yes; then
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_MALLOC_MALLOC_H 1
13087 _ACEOF
13088
13089 fi
13090
13091
13092
13093 ### Use Mac OS X Carbon API to implement GUI.
13094 if test "${HAVE_CARBON}" = "yes"; then
13095
13096 cat >>confdefs.h <<\_ACEOF
13097 #define HAVE_CARBON 1
13098 _ACEOF
13099
13100 ## Specify the install directory
13101 carbon_appdir=
13102 if test "${carbon_appdir_x}" != ""; then
13103 case ${carbon_appdir_x} in
13104 y | ye | yes) carbon_appdir=/Applications ;;
13105 * ) carbon_appdir=${carbon_appdir_x} ;;
13106 esac
13107 fi
13108 # We also have mouse menus.
13109 HAVE_MENUS=yes
13110
13111 tmp_CFLAGS="$CFLAGS"
13112 CFLAGS="$CFLAGS -framework Carbon"
13113 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13114 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13115 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13126 #define CancelMenuTracking innocuous_CancelMenuTracking
13127
13128 /* System header to define __stub macros and hopefully few prototypes,
13129 which can conflict with char CancelMenuTracking (); below.
13130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13131 <limits.h> exists even on freestanding compilers. */
13132
13133 #ifdef __STDC__
13134 # include <limits.h>
13135 #else
13136 # include <assert.h>
13137 #endif
13138
13139 #undef CancelMenuTracking
13140
13141 /* Override any gcc2 internal prototype to avoid an error. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 {
13145 #endif
13146 /* We use char because int might match the return type of a gcc2
13147 builtin and then its argument prototype would still apply. */
13148 char CancelMenuTracking ();
13149 /* The GNU C library defines this for functions which it implements
13150 to always fail with ENOSYS. Some functions are actually named
13151 something starting with __ and the normal name is an alias. */
13152 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13153 choke me
13154 #else
13155 char (*f) () = CancelMenuTracking;
13156 #endif
13157 #ifdef __cplusplus
13158 }
13159 #endif
13160
13161 int
13162 main ()
13163 {
13164 return f != CancelMenuTracking;
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_func_CancelMenuTracking=yes
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 ac_cv_func_CancelMenuTracking=no
13196 fi
13197 rm -f conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 fi
13200 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13201 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13202 if test $ac_cv_func_CancelMenuTracking = yes; then
13203 have_cmt=yes
13204 else
13205 have_cmt=no
13206 fi
13207
13208 if test "$have_cmt" = yes; then
13209
13210 cat >>confdefs.h <<\_ACEOF
13211 #define HAVE_CANCELMENUTRACKING 1
13212 _ACEOF
13213
13214 fi
13215 CFLAGS="$tmp_CFLAGS"
13216 fi
13217
13218 ### Use session management (-lSM -lICE) if available
13219 HAVE_X_SM=no
13220 if test "${HAVE_X11}" = "yes"; then
13221 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13222 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13223 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13224 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 fi
13227 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13228 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13229 else
13230 # Is the header compilable?
13231 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13232 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 $ac_includes_default
13240 #include <X11/SM/SMlib.h>
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>conftest.er1
13245 ac_status=$?
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler=yes
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_header_compiler=no
13269 fi
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13273
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13276 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 #include <X11/SM/SMlib.h>
13284 _ACEOF
13285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev/null; then
13293 if test -s conftest.err; then
13294 ac_cpp_err=$ac_c_preproc_warn_flag
13295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13296 else
13297 ac_cpp_err=
13298 fi
13299 else
13300 ac_cpp_err=yes
13301 fi
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ac_header_preproc=no
13309 fi
13310 rm -f conftest.err conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13313
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13316 yes:no: )
13317 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13320 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13321 ac_header_preproc=yes
13322 ;;
13323 no:yes:* )
13324 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13329 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13331 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13333 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13335 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13336 (
13337 cat <<\_ASBOX
13338 ## ------------------------------------------ ##
13339 ## Report this to the AC_PACKAGE_NAME lists. ##
13340 ## ------------------------------------------ ##
13341 _ASBOX
13342 ) |
13343 sed "s/^/$as_me: WARNING: /" >&2
13344 ;;
13345 esac
13346 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13347 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13348 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13352 fi
13353 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13355
13356 fi
13357 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13358 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13359 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13360 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363 ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-lSM -lICE $LIBS"
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371
13372 /* Override any gcc2 internal prototype to avoid an error. */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13378 char SmcOpenConnection ();
13379 int
13380 main ()
13381 {
13382 SmcOpenConnection ();
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_SM_SmcOpenConnection=yes
13409 else
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_cv_lib_SM_SmcOpenConnection=no
13414 fi
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13418 fi
13419 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13420 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13421 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13422 HAVE_X_SM=yes
13423 fi
13424
13425 fi
13426
13427
13428
13429 if test "${HAVE_X_SM}" = "yes"; then
13430
13431 cat >>confdefs.h <<\_ACEOF
13432 #define HAVE_X_SM 1
13433 _ACEOF
13434
13435 case "$LIBS" in
13436 *-lSM*) ;;
13437 *) LIBS="-lSM -lICE $LIBS" ;;
13438 esac
13439 fi
13440 fi
13441
13442 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13443 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13444 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13445 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <netdb.h>
13455 int
13456 main ()
13457 {
13458 return h_errno;
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest$ac_exeext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 emacs_cv_netdb_declares_h_errno=yes
13485 else
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 emacs_cv_netdb_declares_h_errno=no
13490 fi
13491 rm -f conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 fi
13494 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13495 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13496 if test $emacs_cv_netdb_declares_h_errno = yes; then
13497
13498 cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_H_ERRNO 1
13500 _ACEOF
13501
13502 fi
13503
13504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13505 # for constant arguments. Useless!
13506 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13507 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13508 if test "${ac_cv_working_alloca_h+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include <alloca.h>
13518 int
13519 main ()
13520 {
13521 char *p = (char *) alloca (2 * sizeof (int));
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" || test ! -s conftest.err'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_working_alloca_h=yes
13548 else
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 ac_cv_working_alloca_h=no
13553 fi
13554 rm -f conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 fi
13557 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13559 if test $ac_cv_working_alloca_h = yes; then
13560
13561 cat >>confdefs.h <<\_ACEOF
13562 #define HAVE_ALLOCA_H 1
13563 _ACEOF
13564
13565 fi
13566
13567 echo "$as_me:$LINENO: checking for alloca" >&5
13568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13569 if test "${ac_cv_func_alloca_works+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #ifdef __GNUC__
13579 # define alloca __builtin_alloca
13580 #else
13581 # ifdef _MSC_VER
13582 # include <malloc.h>
13583 # define alloca _alloca
13584 # else
13585 # if HAVE_ALLOCA_H
13586 # include <alloca.h>
13587 # else
13588 # ifdef _AIX
13589 #pragma alloca
13590 # else
13591 # ifndef alloca /* predefined by HP cc +Olibcalls */
13592 char *alloca ();
13593 # endif
13594 # endif
13595 # endif
13596 # endif
13597 #endif
13598
13599 int
13600 main ()
13601 {
13602 char *p = (char *) alloca (1);
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; } &&
13622 { ac_try='test -s conftest$ac_exeext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_cv_func_alloca_works=yes
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633 ac_cv_func_alloca_works=no
13634 fi
13635 rm -f conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 fi
13638 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13639 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13640
13641 if test $ac_cv_func_alloca_works = yes; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_ALLOCA 1
13645 _ACEOF
13646
13647 else
13648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13649 # that cause trouble. Some versions do not even contain alloca or
13650 # contain a buggy version. If you still want to use their alloca,
13651 # use ar to extract alloca.o from them instead of compiling alloca.c.
13652
13653 ALLOCA=alloca.$ac_objext
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define C_ALLOCA 1
13657 _ACEOF
13658
13659
13660 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13661 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13662 if test "${ac_cv_os_cray+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #if defined(CRAY) && ! defined(CRAY2)
13672 webecray
13673 #else
13674 wenotbecray
13675 #endif
13676
13677 _ACEOF
13678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13679 $EGREP "webecray" >/dev/null 2>&1; then
13680 ac_cv_os_cray=yes
13681 else
13682 ac_cv_os_cray=no
13683 fi
13684 rm -f conftest*
13685
13686 fi
13687 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13688 echo "${ECHO_T}$ac_cv_os_cray" >&6
13689 if test $ac_cv_os_cray = yes; then
13690 for ac_func in _getb67 GETB67 getb67; do
13691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13692 echo "$as_me:$LINENO: checking for $ac_func" >&5
13693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13694 if eval "test \"\${$as_ac_var+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13705 #define $ac_func innocuous_$ac_func
13706
13707 /* System header to define __stub macros and hopefully few prototypes,
13708 which can conflict with char $ac_func (); below.
13709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710 <limits.h> exists even on freestanding compilers. */
13711
13712 #ifdef __STDC__
13713 # include <limits.h>
13714 #else
13715 # include <assert.h>
13716 #endif
13717
13718 #undef $ac_func
13719
13720 /* Override any gcc2 internal prototype to avoid an error. */
13721 #ifdef __cplusplus
13722 extern "C"
13723 {
13724 #endif
13725 /* We use char because int might match the return type of a gcc2
13726 builtin and then its argument prototype would still apply. */
13727 char $ac_func ();
13728 /* The GNU C library defines this for functions which it implements
13729 to always fail with ENOSYS. Some functions are actually named
13730 something starting with __ and the normal name is an alias. */
13731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13732 choke me
13733 #else
13734 char (*f) () = $ac_func;
13735 #endif
13736 #ifdef __cplusplus
13737 }
13738 #endif
13739
13740 int
13741 main ()
13742 {
13743 return f != $ac_func;
13744 ;
13745 return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750 (eval $ac_link) 2>conftest.er1
13751 ac_status=$?
13752 grep -v '^ *+' conftest.er1 >conftest.err
13753 rm -f conftest.er1
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest$ac_exeext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 eval "$as_ac_var=yes"
13770 else
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 eval "$as_ac_var=no"
13775 fi
13776 rm -f conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 fi
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13781 if test `eval echo '${'$as_ac_var'}'` = yes; then
13782
13783 cat >>confdefs.h <<_ACEOF
13784 #define CRAY_STACKSEG_END $ac_func
13785 _ACEOF
13786
13787 break
13788 fi
13789
13790 done
13791 fi
13792
13793 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13794 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13795 if test "${ac_cv_c_stack_direction+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 if test "$cross_compiling" = yes; then
13799 ac_cv_c_stack_direction=0
13800 else
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 int
13808 find_stack_direction ()
13809 {
13810 static char *addr = 0;
13811 auto char dummy;
13812 if (addr == 0)
13813 {
13814 addr = &dummy;
13815 return find_stack_direction ();
13816 }
13817 else
13818 return (&dummy > addr) ? 1 : -1;
13819 }
13820
13821 int
13822 main ()
13823 {
13824 exit (find_stack_direction () < 0);
13825 }
13826 _ACEOF
13827 rm -f conftest$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_c_stack_direction=1
13839 else
13840 echo "$as_me: program exited with status $ac_status" >&5
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844 ( exit $ac_status )
13845 ac_cv_c_stack_direction=-1
13846 fi
13847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 fi
13850 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13851 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define STACK_DIRECTION $ac_cv_c_stack_direction
13855 _ACEOF
13856
13857
13858 fi
13859
13860
13861 # fmod, logb, and frexp are found in -lm on most systems.
13862 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13863
13864 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13865 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13866 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lm $LIBS"
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877
13878 /* Override any gcc2 internal prototype to avoid an error. */
13879 #ifdef __cplusplus
13880 extern "C"
13881 #endif
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13884 char sqrt ();
13885 int
13886 main ()
13887 {
13888 sqrt ();
13889 ;
13890 return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_lib_m_sqrt=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919 ac_cv_lib_m_sqrt=no
13920 fi
13921 rm -f conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13924 fi
13925 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13926 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13927 if test $ac_cv_lib_m_sqrt = yes; then
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_LIBM 1
13930 _ACEOF
13931
13932 LIBS="-lm $LIBS"
13933
13934 fi
13935
13936
13937 # Check for mail-locking functions in a "mail" library. Probably this should
13938 # have the same check as for liblockfile below.
13939
13940 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13941 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13942 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945 ac_check_lib_save_LIBS=$LIBS
13946 LIBS="-lmail $LIBS"
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953
13954 /* Override any gcc2 internal prototype to avoid an error. */
13955 #ifdef __cplusplus
13956 extern "C"
13957 #endif
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960 char maillock ();
13961 int
13962 main ()
13963 {
13964 maillock ();
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_lib_mail_maillock=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_cv_lib_mail_maillock=no
13996 fi
13997 rm -f conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS=$ac_check_lib_save_LIBS
14000 fi
14001 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14002 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14003 if test $ac_cv_lib_mail_maillock = yes; then
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_LIBMAIL 1
14006 _ACEOF
14007
14008 LIBS="-lmail $LIBS"
14009
14010 fi
14011
14012
14013 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14014 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14015 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-llockfile $LIBS"
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026
14027 /* Override any gcc2 internal prototype to avoid an error. */
14028 #ifdef __cplusplus
14029 extern "C"
14030 #endif
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char maillock ();
14034 int
14035 main ()
14036 {
14037 maillock ();
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_lib_lockfile_maillock=yes
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 ac_cv_lib_lockfile_maillock=no
14069 fi
14070 rm -f conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 LIBS=$ac_check_lib_save_LIBS
14073 fi
14074 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14075 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14076 if test $ac_cv_lib_lockfile_maillock = yes; then
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_LIBLOCKFILE 1
14079 _ACEOF
14080
14081 LIBS="-llockfile $LIBS"
14082
14083 fi
14084
14085 # If we have the shared liblockfile, assume we must use it for mail
14086 # locking (e.g. Debian). If we couldn't link against liblockfile
14087 # (no liblockfile.a installed), ensure that we don't need to.
14088 if test "$ac_cv_lib_lockfile_maillock" = no; then
14089 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14090 set dummy liblockfile.so; ac_word=$2
14091 echo "$as_me:$LINENO: checking for $ac_word" >&5
14092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14093 if test "${ac_cv_prog_liblockfile+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096 if test -n "$liblockfile"; then
14097 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14098 else
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14101 for as_dir in $as_dummy
14102 do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_prog_liblockfile="yes"
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111 done
14112 done
14113
14114 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14115 fi
14116 fi
14117 liblockfile=$ac_cv_prog_liblockfile
14118 if test -n "$liblockfile"; then
14119 echo "$as_me:$LINENO: result: $liblockfile" >&5
14120 echo "${ECHO_T}$liblockfile" >&6
14121 else
14122 echo "$as_me:$LINENO: result: no" >&5
14123 echo "${ECHO_T}no" >&6
14124 fi
14125
14126 if test $ac_cv_prog_liblockfile = yes; then
14127 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14128 This probably means that movemail could lose mail.
14129 There may be a \`development' package to install containing liblockfile." >&5
14130 echo "$as_me: error: Shared liblockfile found but can't link against it.
14131 This probably means that movemail could lose mail.
14132 There may be a \`development' package to install containing liblockfile." >&2;}
14133 { (exit 1); exit 1; }; }
14134 else :
14135 fi
14136 fi
14137
14138 for ac_func in touchlock
14139 do
14140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14141 echo "$as_me:$LINENO: checking for $ac_func" >&5
14142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_var+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h. */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14154 #define $ac_func innocuous_$ac_func
14155
14156 /* System header to define __stub macros and hopefully few prototypes,
14157 which can conflict with char $ac_func (); below.
14158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14159 <limits.h> exists even on freestanding compilers. */
14160
14161 #ifdef __STDC__
14162 # include <limits.h>
14163 #else
14164 # include <assert.h>
14165 #endif
14166
14167 #undef $ac_func
14168
14169 /* Override any gcc2 internal prototype to avoid an error. */
14170 #ifdef __cplusplus
14171 extern "C"
14172 {
14173 #endif
14174 /* We use char because int might match the return type of a gcc2
14175 builtin and then its argument prototype would still apply. */
14176 char $ac_func ();
14177 /* The GNU C library defines this for functions which it implements
14178 to always fail with ENOSYS. Some functions are actually named
14179 something starting with __ and the normal name is an alias. */
14180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14181 choke me
14182 #else
14183 char (*f) () = $ac_func;
14184 #endif
14185 #ifdef __cplusplus
14186 }
14187 #endif
14188
14189 int
14190 main ()
14191 {
14192 return f != $ac_func;
14193 ;
14194 return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 eval "$as_ac_var=no"
14224 fi
14225 rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 fi
14236 done
14237
14238
14239 for ac_header in maillock.h
14240 do
14241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 fi
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14250 else
14251 # Is the header compilable?
14252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 $ac_includes_default
14261 #include <$ac_header>
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_header_compiler=yes
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_header_compiler=no
14290 fi
14291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14293 echo "${ECHO_T}$ac_header_compiler" >&6
14294
14295 # Is the header present?
14296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <$ac_header>
14305 _ACEOF
14306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } >/dev/null; then
14314 if test -s conftest.err; then
14315 ac_cpp_err=$ac_c_preproc_warn_flag
14316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14317 else
14318 ac_cpp_err=
14319 fi
14320 else
14321 ac_cpp_err=yes
14322 fi
14323 if test -z "$ac_cpp_err"; then
14324 ac_header_preproc=yes
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_header_preproc=no
14330 fi
14331 rm -f conftest.err conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14333 echo "${ECHO_T}$ac_header_preproc" >&6
14334
14335 # So? What about this header?
14336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14337 yes:no: )
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14342 ac_header_preproc=yes
14343 ;;
14344 no:yes:* )
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14357 (
14358 cat <<\_ASBOX
14359 ## ------------------------------------------ ##
14360 ## Report this to the AC_PACKAGE_NAME lists. ##
14361 ## ------------------------------------------ ##
14362 _ASBOX
14363 ) |
14364 sed "s/^/$as_me: WARNING: /" >&2
14365 ;;
14366 esac
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 eval "$as_ac_Header=\$ac_header_preproc"
14373 fi
14374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14376
14377 fi
14378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14379 cat >>confdefs.h <<_ACEOF
14380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14381 _ACEOF
14382
14383 fi
14384
14385 done
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456 for ac_func in gethostname getdomainname dup2 \
14457 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14458 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14459 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14460 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14461 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14462 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14463 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14464 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14465 do
14466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_var+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14480 #define $ac_func innocuous_$ac_func
14481
14482 /* System header to define __stub macros and hopefully few prototypes,
14483 which can conflict with char $ac_func (); below.
14484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485 <limits.h> exists even on freestanding compilers. */
14486
14487 #ifdef __STDC__
14488 # include <limits.h>
14489 #else
14490 # include <assert.h>
14491 #endif
14492
14493 #undef $ac_func
14494
14495 /* Override any gcc2 internal prototype to avoid an error. */
14496 #ifdef __cplusplus
14497 extern "C"
14498 {
14499 #endif
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14502 char $ac_func ();
14503 /* The GNU C library defines this for functions which it implements
14504 to always fail with ENOSYS. Some functions are actually named
14505 something starting with __ and the normal name is an alias. */
14506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14507 choke me
14508 #else
14509 char (*f) () = $ac_func;
14510 #endif
14511 #ifdef __cplusplus
14512 }
14513 #endif
14514
14515 int
14516 main ()
14517 {
14518 return f != $ac_func;
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 eval "$as_ac_var=yes"
14545 else
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 eval "$as_ac_var=no"
14550 fi
14551 rm -f conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14553 fi
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 _ACEOF
14560
14561 fi
14562 done
14563
14564
14565
14566 for ac_header in sys/un.h
14567 do
14568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14570 echo "$as_me:$LINENO: checking for $ac_header" >&5
14571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 fi
14575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14577 else
14578 # Is the header compilable?
14579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <$ac_header>
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_header_compiler=yes
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 ac_header_compiler=no
14617 fi
14618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620 echo "${ECHO_T}$ac_header_compiler" >&6
14621
14622 # Is the header present?
14623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <$ac_header>
14632 _ACEOF
14633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev/null; then
14641 if test -s conftest.err; then
14642 ac_cpp_err=$ac_c_preproc_warn_flag
14643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14644 else
14645 ac_cpp_err=
14646 fi
14647 else
14648 ac_cpp_err=yes
14649 fi
14650 if test -z "$ac_cpp_err"; then
14651 ac_header_preproc=yes
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_header_preproc=no
14657 fi
14658 rm -f conftest.err conftest.$ac_ext
14659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14660 echo "${ECHO_T}$ac_header_preproc" >&6
14661
14662 # So? What about this header?
14663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14664 yes:no: )
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14669 ac_header_preproc=yes
14670 ;;
14671 no:yes:* )
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14684 (
14685 cat <<\_ASBOX
14686 ## ------------------------------------------ ##
14687 ## Report this to the AC_PACKAGE_NAME lists. ##
14688 ## ------------------------------------------ ##
14689 _ASBOX
14690 ) |
14691 sed "s/^/$as_me: WARNING: /" >&2
14692 ;;
14693 esac
14694 echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 eval "$as_ac_Header=\$ac_header_preproc"
14700 fi
14701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14703
14704 fi
14705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14708 _ACEOF
14709
14710 fi
14711
14712 done
14713
14714
14715
14716
14717
14718 for ac_header in stdlib.h sys/time.h unistd.h
14719 do
14720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 fi
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729 else
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <$ac_header>
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_header_compiler=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_compiler=no
14769 fi
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772 echo "${ECHO_T}$ac_header_compiler" >&6
14773
14774 # Is the header present?
14775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 #include <$ac_header>
14784 _ACEOF
14785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev/null; then
14793 if test -s conftest.err; then
14794 ac_cpp_err=$ac_c_preproc_warn_flag
14795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14796 else
14797 ac_cpp_err=
14798 fi
14799 else
14800 ac_cpp_err=yes
14801 fi
14802 if test -z "$ac_cpp_err"; then
14803 ac_header_preproc=yes
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_header_preproc=no
14809 fi
14810 rm -f conftest.err conftest.$ac_ext
14811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14812 echo "${ECHO_T}$ac_header_preproc" >&6
14813
14814 # So? What about this header?
14815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14816 yes:no: )
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14821 ac_header_preproc=yes
14822 ;;
14823 no:yes:* )
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14836 (
14837 cat <<\_ASBOX
14838 ## ------------------------------------------ ##
14839 ## Report this to the AC_PACKAGE_NAME lists. ##
14840 ## ------------------------------------------ ##
14841 _ASBOX
14842 ) |
14843 sed "s/^/$as_me: WARNING: /" >&2
14844 ;;
14845 esac
14846 echo "$as_me:$LINENO: checking for $ac_header" >&5
14847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 eval "$as_ac_Header=\$ac_header_preproc"
14852 fi
14853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14855
14856 fi
14857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14860 _ACEOF
14861
14862 fi
14863
14864 done
14865
14866
14867 for ac_func in alarm
14868 do
14869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14870 echo "$as_me:$LINENO: checking for $ac_func" >&5
14871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_var+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14883 #define $ac_func innocuous_$ac_func
14884
14885 /* System header to define __stub macros and hopefully few prototypes,
14886 which can conflict with char $ac_func (); below.
14887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14888 <limits.h> exists even on freestanding compilers. */
14889
14890 #ifdef __STDC__
14891 # include <limits.h>
14892 #else
14893 # include <assert.h>
14894 #endif
14895
14896 #undef $ac_func
14897
14898 /* Override any gcc2 internal prototype to avoid an error. */
14899 #ifdef __cplusplus
14900 extern "C"
14901 {
14902 #endif
14903 /* We use char because int might match the return type of a gcc2
14904 builtin and then its argument prototype would still apply. */
14905 char $ac_func ();
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14910 choke me
14911 #else
14912 char (*f) () = $ac_func;
14913 #endif
14914 #ifdef __cplusplus
14915 }
14916 #endif
14917
14918 int
14919 main ()
14920 {
14921 return f != $ac_func;
14922 ;
14923 return 0;
14924 }
14925 _ACEOF
14926 rm -f conftest.$ac_objext conftest$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928 (eval $ac_link) 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 eval "$as_ac_var=yes"
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14951
14952 eval "$as_ac_var=no"
14953 fi
14954 rm -f conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 fi
14957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14959 if test `eval echo '${'$as_ac_var'}'` = yes; then
14960 cat >>confdefs.h <<_ACEOF
14961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962 _ACEOF
14963
14964 fi
14965 done
14966
14967 echo "$as_me:$LINENO: checking for working mktime" >&5
14968 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14969 if test "${ac_cv_func_working_mktime+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972 if test "$cross_compiling" = yes; then
14973 ac_cv_func_working_mktime=no
14974 else
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* Test program from Paul Eggert and Tony Leneis. */
14982 #if TIME_WITH_SYS_TIME
14983 # include <sys/time.h>
14984 # include <time.h>
14985 #else
14986 # if HAVE_SYS_TIME_H
14987 # include <sys/time.h>
14988 # else
14989 # include <time.h>
14990 # endif
14991 #endif
14992
14993 #if HAVE_STDLIB_H
14994 # include <stdlib.h>
14995 #endif
14996
14997 #if HAVE_UNISTD_H
14998 # include <unistd.h>
14999 #endif
15000
15001 #if !HAVE_ALARM
15002 # define alarm(X) /* empty */
15003 #endif
15004
15005 /* Work around redefinition to rpl_putenv by other config tests. */
15006 #undef putenv
15007
15008 static time_t time_t_max;
15009 static time_t time_t_min;
15010
15011 /* Values we'll use to set the TZ environment variable. */
15012 static char *tz_strings[] = {
15013 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15014 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15015 };
15016 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15017
15018 /* Fail if mktime fails to convert a date in the spring-forward gap.
15019 Based on a problem report from Andreas Jaeger. */
15020 static void
15021 spring_forward_gap ()
15022 {
15023 /* glibc (up to about 1998-10-07) failed this test. */
15024 struct tm tm;
15025
15026 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15027 instead of "TZ=America/Vancouver" in order to detect the bug even
15028 on systems that don't support the Olson extension, or don't have the
15029 full zoneinfo tables installed. */
15030 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15031
15032 tm.tm_year = 98;
15033 tm.tm_mon = 3;
15034 tm.tm_mday = 5;
15035 tm.tm_hour = 2;
15036 tm.tm_min = 0;
15037 tm.tm_sec = 0;
15038 tm.tm_isdst = -1;
15039 if (mktime (&tm) == (time_t)-1)
15040 exit (1);
15041 }
15042
15043 static void
15044 mktime_test1 (now)
15045 time_t now;
15046 {
15047 struct tm *lt;
15048 if ((lt = localtime (&now)) && mktime (lt) != now)
15049 exit (1);
15050 }
15051
15052 static void
15053 mktime_test (now)
15054 time_t now;
15055 {
15056 mktime_test1 (now);
15057 mktime_test1 ((time_t) (time_t_max - now));
15058 mktime_test1 ((time_t) (time_t_min + now));
15059 }
15060
15061 static void
15062 irix_6_4_bug ()
15063 {
15064 /* Based on code from Ariel Faigon. */
15065 struct tm tm;
15066 tm.tm_year = 96;
15067 tm.tm_mon = 3;
15068 tm.tm_mday = 0;
15069 tm.tm_hour = 0;
15070 tm.tm_min = 0;
15071 tm.tm_sec = 0;
15072 tm.tm_isdst = -1;
15073 mktime (&tm);
15074 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15075 exit (1);
15076 }
15077
15078 static void
15079 bigtime_test (j)
15080 int j;
15081 {
15082 struct tm tm;
15083 time_t now;
15084 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15085 now = mktime (&tm);
15086 if (now != (time_t) -1)
15087 {
15088 struct tm *lt = localtime (&now);
15089 if (! (lt
15090 && lt->tm_year == tm.tm_year
15091 && lt->tm_mon == tm.tm_mon
15092 && lt->tm_mday == tm.tm_mday
15093 && lt->tm_hour == tm.tm_hour
15094 && lt->tm_min == tm.tm_min
15095 && lt->tm_sec == tm.tm_sec
15096 && lt->tm_yday == tm.tm_yday
15097 && lt->tm_wday == tm.tm_wday
15098 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15099 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15100 exit (1);
15101 }
15102 }
15103
15104 int
15105 main ()
15106 {
15107 time_t t, delta;
15108 int i, j;
15109
15110 /* This test makes some buggy mktime implementations loop.
15111 Give up after 60 seconds; a mktime slower than that
15112 isn't worth using anyway. */
15113 alarm (60);
15114
15115 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15116 continue;
15117 time_t_max--;
15118 if ((time_t) -1 < 0)
15119 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15120 continue;
15121 delta = time_t_max / 997; /* a suitable prime number */
15122 for (i = 0; i < N_STRINGS; i++)
15123 {
15124 if (tz_strings[i])
15125 putenv (tz_strings[i]);
15126
15127 for (t = 0; t <= time_t_max - delta; t += delta)
15128 mktime_test (t);
15129 mktime_test ((time_t) 1);
15130 mktime_test ((time_t) (60 * 60));
15131 mktime_test ((time_t) (60 * 60 * 24));
15132
15133 for (j = 1; 0 < j; j *= 2)
15134 bigtime_test (j);
15135 bigtime_test (j - 1);
15136 }
15137 irix_6_4_bug ();
15138 spring_forward_gap ();
15139 exit (0);
15140 }
15141 _ACEOF
15142 rm -f conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_cv_func_working_mktime=yes
15154 else
15155 echo "$as_me: program exited with status $ac_status" >&5
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 ( exit $ac_status )
15160 ac_cv_func_working_mktime=no
15161 fi
15162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15163 fi
15164 fi
15165 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15166 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15167 if test $ac_cv_func_working_mktime = no; then
15168 case $LIBOBJS in
15169 "mktime.$ac_objext" | \
15170 *" mktime.$ac_objext" | \
15171 "mktime.$ac_objext "* | \
15172 *" mktime.$ac_objext "* ) ;;
15173 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15174 esac
15175
15176 fi
15177
15178 if test "$ac_cv_func_working_mktime" = no; then
15179
15180 cat >>confdefs.h <<\_ACEOF
15181 #define BROKEN_MKTIME 1
15182 _ACEOF
15183
15184 fi
15185
15186 ac_have_func=no # yes means we've found a way to get the load average.
15187
15188 # Make sure getloadavg.c is where it belongs, at configure-time.
15189 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15190 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15191 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15192 { (exit 1); exit 1; }; }
15193
15194 ac_save_LIBS=$LIBS
15195
15196 # Check for getloadavg, but be sure not to touch the cache variable.
15197 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15198 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15199 if test "${ac_cv_func_getloadavg+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15210 #define getloadavg innocuous_getloadavg
15211
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char getloadavg (); below.
15214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15215 <limits.h> exists even on freestanding compilers. */
15216
15217 #ifdef __STDC__
15218 # include <limits.h>
15219 #else
15220 # include <assert.h>
15221 #endif
15222
15223 #undef getloadavg
15224
15225 /* Override any gcc2 internal prototype to avoid an error. */
15226 #ifdef __cplusplus
15227 extern "C"
15228 {
15229 #endif
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15232 char getloadavg ();
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15237 choke me
15238 #else
15239 char (*f) () = getloadavg;
15240 #endif
15241 #ifdef __cplusplus
15242 }
15243 #endif
15244
15245 int
15246 main ()
15247 {
15248 return f != getloadavg;
15249 ;
15250 return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15255 (eval $ac_link) 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try='test -s conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_func_getloadavg=yes
15275 else
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_cv_func_getloadavg=no
15280 fi
15281 rm -f conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
15283 fi
15284 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15285 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15286 if test $ac_cv_func_getloadavg = yes; then
15287 exit 0
15288 else
15289 exit 1
15290 fi
15291 ) && ac_have_func=yes
15292
15293 # On HPUX9, an unprivileged user can get load averages through this function.
15294
15295 for ac_func in pstat_getdynamic
15296 do
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311 #define $ac_func innocuous_$ac_func
15312
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15317
15318 #ifdef __STDC__
15319 # include <limits.h>
15320 #else
15321 # include <assert.h>
15322 #endif
15323
15324 #undef $ac_func
15325
15326 /* Override any gcc2 internal prototype to avoid an error. */
15327 #ifdef __cplusplus
15328 extern "C"
15329 {
15330 #endif
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15333 char $ac_func ();
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15338 choke me
15339 #else
15340 char (*f) () = $ac_func;
15341 #endif
15342 #ifdef __cplusplus
15343 }
15344 #endif
15345
15346 int
15347 main ()
15348 {
15349 return f != $ac_func;
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 eval "$as_ac_var=yes"
15376 else
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 eval "$as_ac_var=no"
15381 fi
15382 rm -f conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 fi
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 _ACEOF
15391
15392 fi
15393 done
15394
15395
15396 # Solaris has libkstat which does not require root.
15397
15398 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15399 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15400 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403 ac_check_lib_save_LIBS=$LIBS
15404 LIBS="-lkstat $LIBS"
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411
15412 /* Override any gcc2 internal prototype to avoid an error. */
15413 #ifdef __cplusplus
15414 extern "C"
15415 #endif
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15418 char kstat_open ();
15419 int
15420 main ()
15421 {
15422 kstat_open ();
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_cv_lib_kstat_kstat_open=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_cv_lib_kstat_kstat_open=no
15454 fi
15455 rm -f conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457 LIBS=$ac_check_lib_save_LIBS
15458 fi
15459 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15460 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15461 if test $ac_cv_lib_kstat_kstat_open = yes; then
15462 cat >>confdefs.h <<_ACEOF
15463 #define HAVE_LIBKSTAT 1
15464 _ACEOF
15465
15466 LIBS="-lkstat $LIBS"
15467
15468 fi
15469
15470 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15471
15472 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15473 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15474 # to get the right answer into the cache.
15475 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15476 if test $ac_have_func = no; then
15477 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15478 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15479 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lelf $LIBS"
15484 cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h. */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15490
15491 /* Override any gcc2 internal prototype to avoid an error. */
15492 #ifdef __cplusplus
15493 extern "C"
15494 #endif
15495 /* We use char because int might match the return type of a gcc2
15496 builtin and then its argument prototype would still apply. */
15497 char elf_begin ();
15498 int
15499 main ()
15500 {
15501 elf_begin ();
15502 ;
15503 return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_elf_elf_begin=yes
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_cv_lib_elf_elf_begin=no
15533 fi
15534 rm -f conftest.err conftest.$ac_objext \
15535 conftest$ac_exeext conftest.$ac_ext
15536 LIBS=$ac_check_lib_save_LIBS
15537 fi
15538 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15539 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15540 if test $ac_cv_lib_elf_elf_begin = yes; then
15541 LIBS="-lelf $LIBS"
15542 fi
15543
15544 fi
15545 if test $ac_have_func = no; then
15546 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15547 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15548 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551 ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lkvm $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559
15560 /* Override any gcc2 internal prototype to avoid an error. */
15561 #ifdef __cplusplus
15562 extern "C"
15563 #endif
15564 /* We use char because int might match the return type of a gcc2
15565 builtin and then its argument prototype would still apply. */
15566 char kvm_open ();
15567 int
15568 main ()
15569 {
15570 kvm_open ();
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest$ac_exeext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_cv_lib_kvm_kvm_open=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_lib_kvm_kvm_open=no
15602 fi
15603 rm -f conftest.err conftest.$ac_objext \
15604 conftest$ac_exeext conftest.$ac_ext
15605 LIBS=$ac_check_lib_save_LIBS
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15608 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15609 if test $ac_cv_lib_kvm_kvm_open = yes; then
15610 LIBS="-lkvm $LIBS"
15611 fi
15612
15613 # Check for the 4.4BSD definition of getloadavg.
15614 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15615 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15616 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lutil $LIBS"
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627
15628 /* Override any gcc2 internal prototype to avoid an error. */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15634 char getloadavg ();
15635 int
15636 main ()
15637 {
15638 getloadavg ();
15639 ;
15640 return 0;
15641 }
15642 _ACEOF
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest$ac_exeext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_lib_util_getloadavg=yes
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669 ac_cv_lib_util_getloadavg=no
15670 fi
15671 rm -f conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15676 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15677 if test $ac_cv_lib_util_getloadavg = yes; then
15678 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15679 fi
15680
15681 fi
15682
15683 if test $ac_have_func = no; then
15684 # There is a commonly available library for RS/6000 AIX.
15685 # Since it is not a standard part of AIX, it might be installed locally.
15686 ac_getloadavg_LIBS=$LIBS
15687 LIBS="-L/usr/local/lib $LIBS"
15688 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15689 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15690 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693 ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lgetloadavg $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701
15702 /* Override any gcc2 internal prototype to avoid an error. */
15703 #ifdef __cplusplus
15704 extern "C"
15705 #endif
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char getloadavg ();
15709 int
15710 main ()
15711 {
15712 getloadavg ();
15713 ;
15714 return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest$ac_exeext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_lib_getloadavg_getloadavg=yes
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_cv_lib_getloadavg_getloadavg=no
15744 fi
15745 rm -f conftest.err conftest.$ac_objext \
15746 conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15748 fi
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15750 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15751 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15752 LIBS="-lgetloadavg $LIBS"
15753 else
15754 LIBS=$ac_getloadavg_LIBS
15755 fi
15756
15757 fi
15758
15759 # Make sure it is really in the library, if we think we found it,
15760 # otherwise set up the replacement function.
15761
15762 for ac_func in getloadavg
15763 do
15764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15765 echo "$as_me:$LINENO: checking for $ac_func" >&5
15766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15767 if eval "test \"\${$as_ac_var+set}\" = set"; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770 cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h. */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15778 #define $ac_func innocuous_$ac_func
15779
15780 /* System header to define __stub macros and hopefully few prototypes,
15781 which can conflict with char $ac_func (); below.
15782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15783 <limits.h> exists even on freestanding compilers. */
15784
15785 #ifdef __STDC__
15786 # include <limits.h>
15787 #else
15788 # include <assert.h>
15789 #endif
15790
15791 #undef $ac_func
15792
15793 /* Override any gcc2 internal prototype to avoid an error. */
15794 #ifdef __cplusplus
15795 extern "C"
15796 {
15797 #endif
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15800 char $ac_func ();
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15805 choke me
15806 #else
15807 char (*f) () = $ac_func;
15808 #endif
15809 #ifdef __cplusplus
15810 }
15811 #endif
15812
15813 int
15814 main ()
15815 {
15816 return f != $ac_func;
15817 ;
15818 return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 eval "$as_ac_var=yes"
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15846
15847 eval "$as_ac_var=no"
15848 fi
15849 rm -f conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851 fi
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15854 if test `eval echo '${'$as_ac_var'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15857 _ACEOF
15858
15859 else
15860 case $LIBOBJS in
15861 "getloadavg.$ac_objext" | \
15862 *" getloadavg.$ac_objext" | \
15863 "getloadavg.$ac_objext "* | \
15864 *" getloadavg.$ac_objext "* ) ;;
15865 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15866 esac
15867
15868
15869 cat >>confdefs.h <<\_ACEOF
15870 #define C_GETLOADAVG 1
15871 _ACEOF
15872
15873 # Figure out what our getloadavg.c needs.
15874 ac_have_func=no
15875 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15876 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15877 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15878 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 fi
15881 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15882 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15883 else
15884 # Is the header compilable?
15885 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15886 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <sys/dg_sys_info.h>
15895 _ACEOF
15896 rm -f conftest.$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_header_compiler=yes
15918 else
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 ac_header_compiler=no
15923 fi
15924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 echo "${ECHO_T}$ac_header_compiler" >&6
15927
15928 # Is the header present?
15929 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15930 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <sys/dg_sys_info.h>
15938 _ACEOF
15939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } >/dev/null; then
15947 if test -s conftest.err; then
15948 ac_cpp_err=$ac_c_preproc_warn_flag
15949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15950 else
15951 ac_cpp_err=
15952 fi
15953 else
15954 ac_cpp_err=yes
15955 fi
15956 if test -z "$ac_cpp_err"; then
15957 ac_header_preproc=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 ac_header_preproc=no
15963 fi
15964 rm -f conftest.err conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6
15967
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15970 yes:no: )
15971 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15974 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc=yes
15976 ;;
15977 no:yes:* )
15978 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15983 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15985 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15987 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15989 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15990 (
15991 cat <<\_ASBOX
15992 ## ------------------------------------------ ##
15993 ## Report this to the AC_PACKAGE_NAME lists. ##
15994 ## ------------------------------------------ ##
15995 _ASBOX
15996 ) |
15997 sed "s/^/$as_me: WARNING: /" >&2
15998 ;;
15999 esac
16000 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16001 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16002 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16006 fi
16007 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16008 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16009
16010 fi
16011 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16012 ac_have_func=yes
16013
16014 cat >>confdefs.h <<\_ACEOF
16015 #define DGUX 1
16016 _ACEOF
16017
16018
16019 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16020 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16021 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 ac_check_lib_save_LIBS=$LIBS
16025 LIBS="-ldgc $LIBS"
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032
16033 /* Override any gcc2 internal prototype to avoid an error. */
16034 #ifdef __cplusplus
16035 extern "C"
16036 #endif
16037 /* We use char because int might match the return type of a gcc2
16038 builtin and then its argument prototype would still apply. */
16039 char dg_sys_info ();
16040 int
16041 main ()
16042 {
16043 dg_sys_info ();
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16050 (eval $ac_link) 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest$ac_exeext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_lib_dgc_dg_sys_info=yes
16070 else
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_cv_lib_dgc_dg_sys_info=no
16075 fi
16076 rm -f conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16078 LIBS=$ac_check_lib_save_LIBS
16079 fi
16080 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16081 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16082 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084 #define HAVE_LIBDGC 1
16085 _ACEOF
16086
16087 LIBS="-ldgc $LIBS"
16088
16089 fi
16090
16091 fi
16092
16093
16094
16095 if test "${ac_cv_header_locale_h+set}" = set; then
16096 echo "$as_me:$LINENO: checking for locale.h" >&5
16097 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16098 if test "${ac_cv_header_locale_h+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 fi
16101 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16102 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16103 else
16104 # Is the header compilable?
16105 echo "$as_me:$LINENO: checking locale.h usability" >&5
16106 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 $ac_includes_default
16114 #include <locale.h>
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
16125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_header_compiler=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 ac_header_compiler=no
16143 fi
16144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6
16147
16148 # Is the header present?
16149 echo "$as_me:$LINENO: checking locale.h presence" >&5
16150 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <locale.h>
16158 _ACEOF
16159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } >/dev/null; then
16167 if test -s conftest.err; then
16168 ac_cpp_err=$ac_c_preproc_warn_flag
16169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16170 else
16171 ac_cpp_err=
16172 fi
16173 else
16174 ac_cpp_err=yes
16175 fi
16176 if test -z "$ac_cpp_err"; then
16177 ac_header_preproc=yes
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16181
16182 ac_header_preproc=no
16183 fi
16184 rm -f conftest.err conftest.$ac_ext
16185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6
16187
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
16191 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16196 ;;
16197 no:yes:* )
16198 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16210 (
16211 cat <<\_ASBOX
16212 ## ------------------------------------------ ##
16213 ## Report this to the AC_PACKAGE_NAME lists. ##
16214 ## ------------------------------------------ ##
16215 _ASBOX
16216 ) |
16217 sed "s/^/$as_me: WARNING: /" >&2
16218 ;;
16219 esac
16220 echo "$as_me:$LINENO: checking for locale.h" >&5
16221 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16222 if test "${ac_cv_header_locale_h+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 ac_cv_header_locale_h=$ac_header_preproc
16226 fi
16227 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16228 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16229
16230 fi
16231
16232
16233
16234 for ac_func in setlocale
16235 do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define $ac_func innocuous_$ac_func
16251
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16256
16257 #ifdef __STDC__
16258 # include <limits.h>
16259 #else
16260 # include <assert.h>
16261 #endif
16262
16263 #undef $ac_func
16264
16265 /* Override any gcc2 internal prototype to avoid an error. */
16266 #ifdef __cplusplus
16267 extern "C"
16268 {
16269 #endif
16270 /* We use char because int might match the return type of a gcc2
16271 builtin and then its argument prototype would still apply. */
16272 char $ac_func ();
16273 /* The GNU C library defines this for functions which it implements
16274 to always fail with ENOSYS. Some functions are actually named
16275 something starting with __ and the normal name is an alias. */
16276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16277 choke me
16278 #else
16279 char (*f) () = $ac_func;
16280 #endif
16281 #ifdef __cplusplus
16282 }
16283 #endif
16284
16285 int
16286 main ()
16287 {
16288 return f != $ac_func;
16289 ;
16290 return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16295 (eval $ac_link) 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest$ac_exeext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 eval "$as_ac_var=yes"
16315 else
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 eval "$as_ac_var=no"
16320 fi
16321 rm -f conftest.err conftest.$ac_objext \
16322 conftest$ac_exeext conftest.$ac_ext
16323 fi
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16326 if test `eval echo '${'$as_ac_var'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16329 _ACEOF
16330
16331 fi
16332 done
16333
16334
16335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16337 # Irix 4.0.5F has the header but not the library.
16338 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16339 ac_have_func=yes
16340
16341 cat >>confdefs.h <<\_ACEOF
16342 #define SVR4 1
16343 _ACEOF
16344
16345 fi
16346
16347 if test $ac_have_func = no; then
16348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16349 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16350 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 fi
16354 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16355 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16356 else
16357 # Is the header compilable?
16358 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16359 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <inq_stats/cpustats.h>
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest.$ac_objext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler=yes
16391 else
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 ac_header_compiler=no
16396 fi
16397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6
16400
16401 # Is the header present?
16402 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16403 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <inq_stats/cpustats.h>
16411 _ACEOF
16412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } >/dev/null; then
16420 if test -s conftest.err; then
16421 ac_cpp_err=$ac_c_preproc_warn_flag
16422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16423 else
16424 ac_cpp_err=
16425 fi
16426 else
16427 ac_cpp_err=yes
16428 fi
16429 if test -z "$ac_cpp_err"; then
16430 ac_header_preproc=yes
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_header_preproc=no
16436 fi
16437 rm -f conftest.err conftest.$ac_ext
16438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16439 echo "${ECHO_T}$ac_header_preproc" >&6
16440
16441 # So? What about this header?
16442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16443 yes:no: )
16444 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16445 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16447 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16448 ac_header_preproc=yes
16449 ;;
16450 no:yes:* )
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16452 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16454 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16456 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16458 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16460 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16462 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16463 (
16464 cat <<\_ASBOX
16465 ## ------------------------------------------ ##
16466 ## Report this to the AC_PACKAGE_NAME lists. ##
16467 ## ------------------------------------------ ##
16468 _ASBOX
16469 ) |
16470 sed "s/^/$as_me: WARNING: /" >&2
16471 ;;
16472 esac
16473 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16474 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16475 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16479 fi
16480 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16482
16483 fi
16484 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16485 ac_have_func=yes
16486
16487 cat >>confdefs.h <<\_ACEOF
16488 #define UMAX 1
16489 _ACEOF
16490
16491
16492 cat >>confdefs.h <<\_ACEOF
16493 #define UMAX4_3 1
16494 _ACEOF
16495
16496 fi
16497
16498
16499 fi
16500
16501 if test $ac_have_func = no; then
16502 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16503 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16504 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16505 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 fi
16508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16509 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16510 else
16511 # Is the header compilable?
16512 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16513 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 $ac_includes_default
16521 #include <sys/cpustats.h>
16522 _ACEOF
16523 rm -f conftest.$ac_objext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_header_compiler=yes
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_header_compiler=no
16550 fi
16551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16553 echo "${ECHO_T}$ac_header_compiler" >&6
16554
16555 # Is the header present?
16556 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16557 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 #include <sys/cpustats.h>
16565 _ACEOF
16566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } >/dev/null; then
16574 if test -s conftest.err; then
16575 ac_cpp_err=$ac_c_preproc_warn_flag
16576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16577 else
16578 ac_cpp_err=
16579 fi
16580 else
16581 ac_cpp_err=yes
16582 fi
16583 if test -z "$ac_cpp_err"; then
16584 ac_header_preproc=yes
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ac_header_preproc=no
16590 fi
16591 rm -f conftest.err conftest.$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6
16594
16595 # So? What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16597 yes:no: )
16598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16602 ac_header_preproc=yes
16603 ;;
16604 no:yes:* )
16605 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16617 (
16618 cat <<\_ASBOX
16619 ## ------------------------------------------ ##
16620 ## Report this to the AC_PACKAGE_NAME lists. ##
16621 ## ------------------------------------------ ##
16622 _ASBOX
16623 ) |
16624 sed "s/^/$as_me: WARNING: /" >&2
16625 ;;
16626 esac
16627 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16628 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16629 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16636
16637 fi
16638 if test $ac_cv_header_sys_cpustats_h = yes; then
16639 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16640 #define UMAX 1
16641 _ACEOF
16642
16643 fi
16644
16645
16646 fi
16647
16648 if test $ac_have_func = no; then
16649
16650 for ac_header in mach/mach.h
16651 do
16652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16654 echo "$as_me:$LINENO: checking for $ac_header" >&5
16655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 fi
16659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16661 else
16662 # Is the header compilable?
16663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16672 #include <$ac_header>
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_header_compiler=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_header_compiler=no
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 echo "${ECHO_T}$ac_header_compiler" >&6
16705
16706 # Is the header present?
16707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <$ac_header>
16716 _ACEOF
16717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } >/dev/null; then
16725 if test -s conftest.err; then
16726 ac_cpp_err=$ac_c_preproc_warn_flag
16727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16728 else
16729 ac_cpp_err=
16730 fi
16731 else
16732 ac_cpp_err=yes
16733 fi
16734 if test -z "$ac_cpp_err"; then
16735 ac_header_preproc=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_header_preproc=no
16741 fi
16742 rm -f conftest.err conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16744 echo "${ECHO_T}$ac_header_preproc" >&6
16745
16746 # So? What about this header?
16747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16748 yes:no: )
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16753 ac_header_preproc=yes
16754 ;;
16755 no:yes:* )
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16768 (
16769 cat <<\_ASBOX
16770 ## ------------------------------------------ ##
16771 ## Report this to the AC_PACKAGE_NAME lists. ##
16772 ## ------------------------------------------ ##
16773 _ASBOX
16774 ) |
16775 sed "s/^/$as_me: WARNING: /" >&2
16776 ;;
16777 esac
16778 echo "$as_me:$LINENO: checking for $ac_header" >&5
16779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783 eval "$as_ac_Header=\$ac_header_preproc"
16784 fi
16785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16787
16788 fi
16789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16792 _ACEOF
16793
16794 fi
16795
16796 done
16797
16798 fi
16799
16800
16801 for ac_header in nlist.h
16802 do
16803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805 echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 fi
16810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16812 else
16813 # Is the header compilable?
16814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16823 #include <$ac_header>
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827 (eval $ac_compile) 2>conftest.er1
16828 ac_status=$?
16829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_header_compiler=yes
16847 else
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851 ac_header_compiler=no
16852 fi
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855 echo "${ECHO_T}$ac_header_compiler" >&6
16856
16857 # Is the header present?
16858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #include <$ac_header>
16867 _ACEOF
16868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } >/dev/null; then
16876 if test -s conftest.err; then
16877 ac_cpp_err=$ac_c_preproc_warn_flag
16878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16879 else
16880 ac_cpp_err=
16881 fi
16882 else
16883 ac_cpp_err=yes
16884 fi
16885 if test -z "$ac_cpp_err"; then
16886 ac_header_preproc=yes
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_header_preproc=no
16892 fi
16893 rm -f conftest.err conftest.$ac_ext
16894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16895 echo "${ECHO_T}$ac_header_preproc" >&6
16896
16897 # So? What about this header?
16898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16899 yes:no: )
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16904 ac_header_preproc=yes
16905 ;;
16906 no:yes:* )
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16919 (
16920 cat <<\_ASBOX
16921 ## ------------------------------------------ ##
16922 ## Report this to the AC_PACKAGE_NAME lists. ##
16923 ## ------------------------------------------ ##
16924 _ASBOX
16925 ) |
16926 sed "s/^/$as_me: WARNING: /" >&2
16927 ;;
16928 esac
16929 echo "$as_me:$LINENO: checking for $ac_header" >&5
16930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 eval "$as_ac_Header=\$ac_header_preproc"
16935 fi
16936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16938
16939 fi
16940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16941 cat >>confdefs.h <<_ACEOF
16942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16943 _ACEOF
16944 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16945 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16946 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949 cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h. */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 #include <nlist.h>
16956
16957 int
16958 main ()
16959 {
16960 static struct nlist ac_aggr;
16961 if (ac_aggr.n_un.n_name)
16962 return 0;
16963 ;
16964 return 0;
16965 }
16966 _ACEOF
16967 rm -f conftest.$ac_objext
16968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16969 (eval $ac_compile) 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; } &&
16982 { ac_try='test -s conftest.$ac_objext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 ac_cv_member_struct_nlist_n_un_n_name=yes
16989 else
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <nlist.h>
17000
17001 int
17002 main ()
17003 {
17004 static struct nlist ac_aggr;
17005 if (sizeof ac_aggr.n_un.n_name)
17006 return 0;
17007 ;
17008 return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_member_struct_nlist_n_un_n_name=yes
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_cv_member_struct_nlist_n_un_n_name=no
17038 fi
17039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17040 fi
17041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17044 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17045 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17046
17047 cat >>confdefs.h <<_ACEOF
17048 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17049 _ACEOF
17050
17051
17052 cat >>confdefs.h <<\_ACEOF
17053 #define NLIST_NAME_UNION 1
17054 _ACEOF
17055
17056 fi
17057
17058
17059 fi
17060
17061 done
17062
17063 fi
17064 done
17065
17066
17067 # Some definitions of getloadavg require that the program be installed setgid.
17068 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17069 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17070 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17080 #ifdef LDAV_PRIVILEGED
17081 Yowza Am I SETGID yet
17082 #endif
17083 _ACEOF
17084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17085 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17086 ac_cv_func_getloadavg_setgid=yes
17087 else
17088 ac_cv_func_getloadavg_setgid=no
17089 fi
17090 rm -f conftest*
17091
17092 fi
17093 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17094 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17095 if test $ac_cv_func_getloadavg_setgid = yes; then
17096 NEED_SETGID=true
17097
17098 cat >>confdefs.h <<\_ACEOF
17099 #define GETLOADAVG_PRIVILEGED 1
17100 _ACEOF
17101
17102 else
17103 NEED_SETGID=false
17104 fi
17105
17106 if test $ac_cv_func_getloadavg_setgid = yes; then
17107 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17108 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17109 if test "${ac_cv_group_kmem+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17113 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17114 # If we got an error (system does not support symlinks), try without -L.
17115 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17116 ac_cv_group_kmem=`echo $ac_ls_output \
17117 | sed -ne 's/[ ][ ]*/ /g;
17118 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17119 / /s/.* //;p;'`
17120
17121 fi
17122 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17123 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17124 KMEM_GROUP=$ac_cv_group_kmem
17125 fi
17126 if test "x$ac_save_LIBS" = x; then
17127 GETLOADAVG_LIBS=$LIBS
17128 else
17129 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17130 fi
17131 LIBS=$ac_save_LIBS
17132
17133
17134
17135 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17136 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17137 if test "${ac_cv_sys_largefile_source+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140 while :; do
17141 ac_cv_sys_largefile_source=no
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include <stdio.h>
17149 int
17150 main ()
17151 {
17152 return !fseeko;
17153 ;
17154 return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 break
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 fi
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #define _LARGEFILE_SOURCE 1
17192 #include <stdio.h>
17193 int
17194 main ()
17195 {
17196 return !fseeko;
17197 ;
17198 return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_cv_sys_largefile_source=1; break
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227 fi
17228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17229 break
17230 done
17231 fi
17232 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17233 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17234 if test "$ac_cv_sys_largefile_source" != no; then
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17238 _ACEOF
17239
17240 fi
17241 rm -f conftest*
17242
17243 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17244 # in glibc 2.1.3, but that breaks too many other things.
17245 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17246 echo "$as_me:$LINENO: checking for fseeko" >&5
17247 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17248 if test "${ac_cv_func_fseeko+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251 cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <stdio.h>
17258 int
17259 main ()
17260 {
17261 return fseeko && fseeko (stdin, 0, 0);
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_func_fseeko=yes
17288 else
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292 ac_cv_func_fseeko=no
17293 fi
17294 rm -f conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296 fi
17297 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17298 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17299 if test $ac_cv_func_fseeko = yes; then
17300
17301 cat >>confdefs.h <<\_ACEOF
17302 #define HAVE_FSEEKO 1
17303 _ACEOF
17304
17305 fi
17306
17307
17308 # Configure getopt.
17309 # getopt.m4 serial 10
17310
17311 # The getopt module assume you want GNU getopt, with getopt_long etc,
17312 # rather than vanilla POSIX getopt. This means your your code should
17313 # always include <getopt.h> for the getopt prototypes.
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325 # Prerequisites of lib/getopt*.
17326
17327
17328
17329
17330 GETOPT_H=
17331
17332 for ac_header in getopt.h
17333 do
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336 echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 fi
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17343 else
17344 # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h. */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 $ac_includes_default
17354 #include <$ac_header>
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_header_compiler=yes
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_header_compiler=no
17383 fi
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17386 echo "${ECHO_T}$ac_header_compiler" >&6
17387
17388 # Is the header present?
17389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 #include <$ac_header>
17398 _ACEOF
17399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } >/dev/null; then
17407 if test -s conftest.err; then
17408 ac_cpp_err=$ac_c_preproc_warn_flag
17409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17410 else
17411 ac_cpp_err=
17412 fi
17413 else
17414 ac_cpp_err=yes
17415 fi
17416 if test -z "$ac_cpp_err"; then
17417 ac_header_preproc=yes
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 ac_header_preproc=no
17423 fi
17424 rm -f conftest.err conftest.$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17427
17428 # So? What about this header?
17429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17430 yes:no: )
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17435 ac_header_preproc=yes
17436 ;;
17437 no:yes:* )
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17450 (
17451 cat <<\_ASBOX
17452 ## ------------------------------------------ ##
17453 ## Report this to the AC_PACKAGE_NAME lists. ##
17454 ## ------------------------------------------ ##
17455 _ASBOX
17456 ) |
17457 sed "s/^/$as_me: WARNING: /" >&2
17458 ;;
17459 esac
17460 echo "$as_me:$LINENO: checking for $ac_header" >&5
17461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465 eval "$as_ac_Header=\$ac_header_preproc"
17466 fi
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17469
17470 fi
17471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17472 cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17474 _ACEOF
17475
17476 else
17477 GETOPT_H=getopt.h
17478 fi
17479
17480 done
17481
17482 if test -z "$GETOPT_H"; then
17483
17484 for ac_func in getopt_long_only
17485 do
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17501
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17506
17507 #ifdef __STDC__
17508 # include <limits.h>
17509 #else
17510 # include <assert.h>
17511 #endif
17512
17513 #undef $ac_func
17514
17515 /* Override any gcc2 internal prototype to avoid an error. */
17516 #ifdef __cplusplus
17517 extern "C"
17518 {
17519 #endif
17520 /* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
17522 char $ac_func ();
17523 /* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17527 choke me
17528 #else
17529 char (*f) () = $ac_func;
17530 #endif
17531 #ifdef __cplusplus
17532 }
17533 #endif
17534
17535 int
17536 main ()
17537 {
17538 return f != $ac_func;
17539 ;
17540 return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569 eval "$as_ac_var=no"
17570 fi
17571 rm -f conftest.err conftest.$ac_objext \
17572 conftest$ac_exeext conftest.$ac_ext
17573 fi
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 _ACEOF
17580
17581 else
17582 GETOPT_H=getopt.h
17583 fi
17584 done
17585
17586 fi
17587
17588 if test -z "$GETOPT_H"; then
17589 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17590 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17591 if test "${ac_cv_have_decl_optreset+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <getopt.h>
17601
17602 int
17603 main ()
17604 {
17605 #ifndef optreset
17606 char *p = (char *) optreset;
17607 #endif
17608
17609 ;
17610 return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_have_decl_optreset=yes
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 ac_cv_have_decl_optreset=no
17640 fi
17641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17642 fi
17643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17644 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17645 if test $ac_cv_have_decl_optreset = yes; then
17646 GETOPT_H=getopt.h
17647 fi
17648
17649 fi
17650
17651 if test -z "$GETOPT_H"; then
17652 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17653 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17654 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657 if test "$cross_compiling" = yes; then
17658 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17659 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17660 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <getopt.h>
17670
17671 int
17672 main ()
17673 {
17674 #ifndef getopt_clip
17675 char *p = (char *) getopt_clip;
17676 #endif
17677
17678 ;
17679 return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17684 (eval $ac_compile) 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
17691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_have_decl_getopt_clip=yes
17704 else
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_cv_have_decl_getopt_clip=no
17709 fi
17710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17711 fi
17712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17713 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17714 if test $ac_cv_have_decl_getopt_clip = yes; then
17715 gl_cv_func_gnu_getopt=no
17716 else
17717 gl_cv_func_gnu_getopt=yes
17718 fi
17719
17720 else
17721 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h. */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 #include <getopt.h>
17728 int
17729 main ()
17730 {
17731
17732 char *myargv[3];
17733 myargv[0] = "conftest";
17734 myargv[1] = "-+";
17735 myargv[2] = 0;
17736 return getopt (2, myargv, "+a") != '?';
17737
17738 ;
17739 return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 gl_cv_func_gnu_getopt=yes
17754 else
17755 echo "$as_me: program exited with status $ac_status" >&5
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 ( exit $ac_status )
17760 gl_cv_func_gnu_getopt=no
17761 fi
17762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17763 fi
17764 fi
17765 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17766 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17767 if test "$gl_cv_func_gnu_getopt" = "no"; then
17768 GETOPT_H=getopt.h
17769 fi
17770 fi
17771
17772
17773
17774 if test -n "$GETOPT_H"; then
17775
17776
17777 GETOPT_H=getopt.h
17778
17779 cat >>confdefs.h <<\_ACEOF
17780 #define __GETOPT_PREFIX rpl_
17781 _ACEOF
17782
17783
17784
17785 :
17786 GETOPTOBJS='getopt.o getopt1.o'
17787
17788 fi
17789
17790
17791
17792
17793 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17794 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17795 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 # Use it with a single arg.
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17806 int
17807 main ()
17808 {
17809 getpgrp (0);
17810 ;
17811 return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_func_getpgrp_void=no
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_cv_func_getpgrp_void=yes
17841 fi
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17843
17844 fi
17845 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17846 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17847 if test $ac_cv_func_getpgrp_void = yes; then
17848
17849 cat >>confdefs.h <<\_ACEOF
17850 #define GETPGRP_VOID 1
17851 _ACEOF
17852
17853 fi
17854
17855
17856
17857 for ac_func in strftime
17858 do
17859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17860 echo "$as_me:$LINENO: checking for $ac_func" >&5
17861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17862 if eval "test \"\${$as_ac_var+set}\" = set"; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873 #define $ac_func innocuous_$ac_func
17874
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
17879
17880 #ifdef __STDC__
17881 # include <limits.h>
17882 #else
17883 # include <assert.h>
17884 #endif
17885
17886 #undef $ac_func
17887
17888 /* Override any gcc2 internal prototype to avoid an error. */
17889 #ifdef __cplusplus
17890 extern "C"
17891 {
17892 #endif
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17895 char $ac_func ();
17896 /* The GNU C library defines this for functions which it implements
17897 to always fail with ENOSYS. Some functions are actually named
17898 something starting with __ and the normal name is an alias. */
17899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17900 choke me
17901 #else
17902 char (*f) () = $ac_func;
17903 #endif
17904 #ifdef __cplusplus
17905 }
17906 #endif
17907
17908 int
17909 main ()
17910 {
17911 return f != $ac_func;
17912 ;
17913 return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918 (eval $ac_link) 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try='test -s conftest$ac_exeext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 eval "$as_ac_var=yes"
17938 else
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 eval "$as_ac_var=no"
17943 fi
17944 rm -f conftest.err conftest.$ac_objext \
17945 conftest$ac_exeext conftest.$ac_ext
17946 fi
17947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 _ACEOF
17953
17954 else
17955 # strftime is in -lintl on SCO UNIX.
17956 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17957 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17958 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961 ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-lintl $LIBS"
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h. */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969
17970 /* Override any gcc2 internal prototype to avoid an error. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 /* We use char because int might match the return type of a gcc2
17975 builtin and then its argument prototype would still apply. */
17976 char strftime ();
17977 int
17978 main ()
17979 {
17980 strftime ();
17981 ;
17982 return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_intl_strftime=yes
18007 else
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_cv_lib_intl_strftime=no
18012 fi
18013 rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18016 fi
18017 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18018 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18019 if test $ac_cv_lib_intl_strftime = yes; then
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_STRFTIME 1
18022 _ACEOF
18023
18024 LIBS="-lintl $LIBS"
18025 fi
18026
18027 fi
18028 done
18029
18030
18031 # UNIX98 PTYs.
18032
18033 for ac_func in grantpt
18034 do
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18050
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18055
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18061
18062 #undef $ac_func
18063
18064 /* Override any gcc2 internal prototype to avoid an error. */
18065 #ifdef __cplusplus
18066 extern "C"
18067 {
18068 #endif
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18071 char $ac_func ();
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18076 choke me
18077 #else
18078 char (*f) () = $ac_func;
18079 #endif
18080 #ifdef __cplusplus
18081 }
18082 #endif
18083
18084 int
18085 main ()
18086 {
18087 return f != $ac_func;
18088 ;
18089 return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 eval "$as_ac_var=yes"
18114 else
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 eval "$as_ac_var=no"
18119 fi
18120 rm -f conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18122 fi
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126 cat >>confdefs.h <<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18128 _ACEOF
18129
18130 fi
18131 done
18132
18133
18134 # PTY-related GNU extensions.
18135
18136 for ac_func in getpt
18137 do
18138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18139 echo "$as_me:$LINENO: checking for $ac_func" >&5
18140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18141 if eval "test \"\${$as_ac_var+set}\" = set"; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18152 #define $ac_func innocuous_$ac_func
18153
18154 /* System header to define __stub macros and hopefully few prototypes,
18155 which can conflict with char $ac_func (); below.
18156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18157 <limits.h> exists even on freestanding compilers. */
18158
18159 #ifdef __STDC__
18160 # include <limits.h>
18161 #else
18162 # include <assert.h>
18163 #endif
18164
18165 #undef $ac_func
18166
18167 /* Override any gcc2 internal prototype to avoid an error. */
18168 #ifdef __cplusplus
18169 extern "C"
18170 {
18171 #endif
18172 /* We use char because int might match the return type of a gcc2
18173 builtin and then its argument prototype would still apply. */
18174 char $ac_func ();
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18179 choke me
18180 #else
18181 char (*f) () = $ac_func;
18182 #endif
18183 #ifdef __cplusplus
18184 }
18185 #endif
18186
18187 int
18188 main ()
18189 {
18190 return f != $ac_func;
18191 ;
18192 return 0;
18193 }
18194 _ACEOF
18195 rm -f conftest.$ac_objext conftest$ac_exeext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18197 (eval $ac_link) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 eval "$as_ac_var=yes"
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 eval "$as_ac_var=no"
18222 fi
18223 rm -f conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18228 if test `eval echo '${'$as_ac_var'}'` = yes; then
18229 cat >>confdefs.h <<_ACEOF
18230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18231 _ACEOF
18232
18233 fi
18234 done
18235
18236
18237 # Check this now, so that we will NOT find the above functions in ncurses.
18238 # That is because we have not set up to link ncurses in lib-src.
18239 # It's better to believe a function is not available
18240 # than to expect to find it in ncurses.
18241
18242 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18243 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18244 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-lncurses $LIBS"
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255
18256 /* Override any gcc2 internal prototype to avoid an error. */
18257 #ifdef __cplusplus
18258 extern "C"
18259 #endif
18260 /* We use char because int might match the return type of a gcc2
18261 builtin and then its argument prototype would still apply. */
18262 char tparm ();
18263 int
18264 main ()
18265 {
18266 tparm ();
18267 ;
18268 return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_ncurses_tparm=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 ac_cv_lib_ncurses_tparm=no
18298 fi
18299 rm -f conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18302 fi
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18304 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18305 if test $ac_cv_lib_ncurses_tparm = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define HAVE_LIBNCURSES 1
18308 _ACEOF
18309
18310 LIBS="-lncurses $LIBS"
18311
18312 fi
18313
18314
18315 # Do we need the Hesiod library to provide the support routines?
18316 if test "$with_hesiod" = yes ; then
18317 # Don't set $LIBS here -- see comments above.
18318 resolv=no
18319 echo "$as_me:$LINENO: checking for res_send" >&5
18320 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18321 if test "${ac_cv_func_res_send+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18332 #define res_send innocuous_res_send
18333
18334 /* System header to define __stub macros and hopefully few prototypes,
18335 which can conflict with char res_send (); below.
18336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18337 <limits.h> exists even on freestanding compilers. */
18338
18339 #ifdef __STDC__
18340 # include <limits.h>
18341 #else
18342 # include <assert.h>
18343 #endif
18344
18345 #undef res_send
18346
18347 /* Override any gcc2 internal prototype to avoid an error. */
18348 #ifdef __cplusplus
18349 extern "C"
18350 {
18351 #endif
18352 /* We use char because int might match the return type of a gcc2
18353 builtin and then its argument prototype would still apply. */
18354 char res_send ();
18355 /* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358 #if defined (__stub_res_send) || defined (__stub___res_send)
18359 choke me
18360 #else
18361 char (*f) () = res_send;
18362 #endif
18363 #ifdef __cplusplus
18364 }
18365 #endif
18366
18367 int
18368 main ()
18369 {
18370 return f != res_send;
18371 ;
18372 return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext conftest$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_func_res_send=yes
18397 else
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401 ac_cv_func_res_send=no
18402 fi
18403 rm -f conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 fi
18406 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18407 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18408 if test $ac_cv_func_res_send = yes; then
18409 :
18410 else
18411 echo "$as_me:$LINENO: checking for __res_send" >&5
18412 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18413 if test "${ac_cv_func___res_send+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h. */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define __res_send innocuous___res_send
18425
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char __res_send (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18430
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436
18437 #undef __res_send
18438
18439 /* Override any gcc2 internal prototype to avoid an error. */
18440 #ifdef __cplusplus
18441 extern "C"
18442 {
18443 #endif
18444 /* We use char because int might match the return type of a gcc2
18445 builtin and then its argument prototype would still apply. */
18446 char __res_send ();
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined (__stub___res_send) || defined (__stub_____res_send)
18451 choke me
18452 #else
18453 char (*f) () = __res_send;
18454 #endif
18455 #ifdef __cplusplus
18456 }
18457 #endif
18458
18459 int
18460 main ()
18461 {
18462 return f != __res_send;
18463 ;
18464 return 0;
18465 }
18466 _ACEOF
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469 (eval $ac_link) 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_func___res_send=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 ac_cv_func___res_send=no
18494 fi
18495 rm -f conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497 fi
18498 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18499 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18500 if test $ac_cv_func___res_send = yes; then
18501 :
18502 else
18503 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18504 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18505 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-lresolv $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 res_send ();
18524 int
18525 main ()
18526 {
18527 res_send ();
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" || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_lib_resolv_res_send=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558 ac_cv_lib_resolv_res_send=no
18559 fi
18560 rm -f conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18563 fi
18564 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18565 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18566 if test $ac_cv_lib_resolv_res_send = yes; then
18567 resolv=yes
18568 else
18569 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18570 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18571 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574 ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lresolv $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582
18583 /* Override any gcc2 internal prototype to avoid an error. */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 /* We use char because int might match the return type of a gcc2
18588 builtin and then its argument prototype would still apply. */
18589 char __res_send ();
18590 int
18591 main ()
18592 {
18593 __res_send ();
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18600 (eval $ac_link) 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_lib_resolv___res_send=yes
18620 else
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ac_cv_lib_resolv___res_send=no
18625 fi
18626 rm -f conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18629 fi
18630 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18631 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18632 if test $ac_cv_lib_resolv___res_send = yes; then
18633 resolv=yes
18634 fi
18635
18636 fi
18637
18638 fi
18639
18640 fi
18641
18642 if test "$resolv" = yes ; then
18643 RESOLVLIB=-lresolv
18644
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_LIBRESOLV 1
18647 _ACEOF
18648
18649 else
18650 RESOLVLIB=
18651 fi
18652 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18653 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18654 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define hes_getmailhost innocuous_hes_getmailhost
18666
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char hes_getmailhost (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18671
18672 #ifdef __STDC__
18673 # include <limits.h>
18674 #else
18675 # include <assert.h>
18676 #endif
18677
18678 #undef hes_getmailhost
18679
18680 /* Override any gcc2 internal prototype to avoid an error. */
18681 #ifdef __cplusplus
18682 extern "C"
18683 {
18684 #endif
18685 /* We use char because int might match the return type of a gcc2
18686 builtin and then its argument prototype would still apply. */
18687 char hes_getmailhost ();
18688 /* The GNU C library defines this for functions which it implements
18689 to always fail with ENOSYS. Some functions are actually named
18690 something starting with __ and the normal name is an alias. */
18691 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18692 choke me
18693 #else
18694 char (*f) () = hes_getmailhost;
18695 #endif
18696 #ifdef __cplusplus
18697 }
18698 #endif
18699
18700 int
18701 main ()
18702 {
18703 return f != hes_getmailhost;
18704 ;
18705 return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710 (eval $ac_link) 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_func_hes_getmailhost=yes
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_func_hes_getmailhost=no
18735 fi
18736 rm -f conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 fi
18739 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18740 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18741 if test $ac_cv_func_hes_getmailhost = yes; then
18742 :
18743 else
18744 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18745 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18746 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749 ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-lhesiod $RESOLVLIB $LIBS"
18751 cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h. */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757
18758 /* Override any gcc2 internal prototype to avoid an error. */
18759 #ifdef __cplusplus
18760 extern "C"
18761 #endif
18762 /* We use char because int might match the return type of a gcc2
18763 builtin and then its argument prototype would still apply. */
18764 char hes_getmailhost ();
18765 int
18766 main ()
18767 {
18768 hes_getmailhost ();
18769 ;
18770 return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18775 (eval $ac_link) 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_lib_hesiod_hes_getmailhost=yes
18795 else
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_cv_lib_hesiod_hes_getmailhost=no
18800 fi
18801 rm -f conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18804 fi
18805 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18806 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18807 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_LIBHESIOD 1
18811 _ACEOF
18812
18813 else
18814 :
18815 fi
18816
18817 fi
18818
18819 fi
18820
18821 # These tell us which Kerberos-related libraries to use.
18822 if test "${with_kerberos+set}" = set; then
18823
18824 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18825 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18826 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829 ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lcom_err $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837
18838 /* Override any gcc2 internal prototype to avoid an error. */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18844 char com_err ();
18845 int
18846 main ()
18847 {
18848 com_err ();
18849 ;
18850 return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest$ac_exeext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 ac_cv_lib_com_err_com_err=yes
18875 else
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879 ac_cv_lib_com_err_com_err=no
18880 fi
18881 rm -f conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18884 fi
18885 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18886 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18887 if test $ac_cv_lib_com_err_com_err = yes; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define HAVE_LIBCOM_ERR 1
18890 _ACEOF
18891
18892 LIBS="-lcom_err $LIBS"
18893
18894 fi
18895
18896
18897 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18898 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18899 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 ac_check_lib_save_LIBS=$LIBS
18903 LIBS="-lk5crypto $LIBS"
18904 cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h. */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910
18911 /* Override any gcc2 internal prototype to avoid an error. */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 /* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18917 char mit_des_cbc_encrypt ();
18918 int
18919 main ()
18920 {
18921 mit_des_cbc_encrypt ();
18922 ;
18923 return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext conftest$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>conftest.er1
18929 ac_status=$?
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest$ac_exeext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18948 else
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18953 fi
18954 rm -f conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext conftest.$ac_ext
18956 LIBS=$ac_check_lib_save_LIBS
18957 fi
18958 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18959 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18960 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962 #define HAVE_LIBK5CRYPTO 1
18963 _ACEOF
18964
18965 LIBS="-lk5crypto $LIBS"
18966
18967 fi
18968
18969
18970 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18971 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18972 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 ac_check_lib_save_LIBS=$LIBS
18976 LIBS="-lcrypto $LIBS"
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983
18984 /* Override any gcc2 internal prototype to avoid an error. */
18985 #ifdef __cplusplus
18986 extern "C"
18987 #endif
18988 /* We use char because int might match the return type of a gcc2
18989 builtin and then its argument prototype would still apply. */
18990 char mit_des_cbc_encrypt ();
18991 int
18992 main ()
18993 {
18994 mit_des_cbc_encrypt ();
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest$ac_exeext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19026 fi
19027 rm -f conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext conftest.$ac_ext
19029 LIBS=$ac_check_lib_save_LIBS
19030 fi
19031 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19032 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19033 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19034 cat >>confdefs.h <<_ACEOF
19035 #define HAVE_LIBCRYPTO 1
19036 _ACEOF
19037
19038 LIBS="-lcrypto $LIBS"
19039
19040 fi
19041
19042
19043 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19044 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19045 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048 ac_check_lib_save_LIBS=$LIBS
19049 LIBS="-lkrb5 $LIBS"
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h. */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056
19057 /* Override any gcc2 internal prototype to avoid an error. */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 /* We use char because int might match the return type of a gcc2
19062 builtin and then its argument prototype would still apply. */
19063 char krb5_init_context ();
19064 int
19065 main ()
19066 {
19067 krb5_init_context ();
19068 ;
19069 return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19074 (eval $ac_link) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try='test -s conftest$ac_exeext'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_cv_lib_krb5_krb5_init_context=yes
19094 else
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098 ac_cv_lib_krb5_krb5_init_context=no
19099 fi
19100 rm -f conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19102 LIBS=$ac_check_lib_save_LIBS
19103 fi
19104 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19105 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19106 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19107 cat >>confdefs.h <<_ACEOF
19108 #define HAVE_LIBKRB5 1
19109 _ACEOF
19110
19111 LIBS="-lkrb5 $LIBS"
19112
19113 fi
19114
19115 if test "${with_kerberos5+set}" != set; then
19116
19117 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19118 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19119 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122 ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-ldes425 $LIBS"
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130
19131 /* Override any gcc2 internal prototype to avoid an error. */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 /* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137 char des_cbc_encrypt ();
19138 int
19139 main ()
19140 {
19141 des_cbc_encrypt ();
19142 ;
19143 return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148 (eval $ac_link) 2>conftest.er1
19149 ac_status=$?
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
19155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_lib_des425_des_cbc_encrypt=yes
19168 else
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ac_cv_lib_des425_des_cbc_encrypt=no
19173 fi
19174 rm -f conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19177 fi
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19179 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19180 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19181 cat >>confdefs.h <<_ACEOF
19182 #define HAVE_LIBDES425 1
19183 _ACEOF
19184
19185 LIBS="-ldes425 $LIBS"
19186
19187 else
19188
19189 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19190 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19191 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194 ac_check_lib_save_LIBS=$LIBS
19195 LIBS="-ldes $LIBS"
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202
19203 /* Override any gcc2 internal prototype to avoid an error. */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 /* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19209 char des_cbc_encrypt ();
19210 int
19211 main ()
19212 {
19213 des_cbc_encrypt ();
19214 ;
19215 return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>conftest.er1
19221 ac_status=$?
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_des_des_cbc_encrypt=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_lib_des_des_cbc_encrypt=no
19245 fi
19246 rm -f conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19251 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19252 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define HAVE_LIBDES 1
19255 _ACEOF
19256
19257 LIBS="-ldes $LIBS"
19258
19259 fi
19260
19261 fi
19262
19263
19264 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19265 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19266 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269 ac_check_lib_save_LIBS=$LIBS
19270 LIBS="-lkrb4 $LIBS"
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277
19278 /* Override any gcc2 internal prototype to avoid an error. */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 /* We use char because int might match the return type of a gcc2
19283 builtin and then its argument prototype would still apply. */
19284 char krb_get_cred ();
19285 int
19286 main ()
19287 {
19288 krb_get_cred ();
19289 ;
19290 return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_lib_krb4_krb_get_cred=yes
19315 else
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319 ac_cv_lib_krb4_krb_get_cred=no
19320 fi
19321 rm -f conftest.err conftest.$ac_objext \
19322 conftest$ac_exeext conftest.$ac_ext
19323 LIBS=$ac_check_lib_save_LIBS
19324 fi
19325 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19326 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19327 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19328 cat >>confdefs.h <<_ACEOF
19329 #define HAVE_LIBKRB4 1
19330 _ACEOF
19331
19332 LIBS="-lkrb4 $LIBS"
19333
19334 else
19335
19336 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19337 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19338 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341 ac_check_lib_save_LIBS=$LIBS
19342 LIBS="-lkrb $LIBS"
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349
19350 /* Override any gcc2 internal prototype to avoid an error. */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 /* We use char because int might match the return type of a gcc2
19355 builtin and then its argument prototype would still apply. */
19356 char krb_get_cred ();
19357 int
19358 main ()
19359 {
19360 krb_get_cred ();
19361 ;
19362 return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367 (eval $ac_link) 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
19374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest$ac_exeext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_lib_krb_krb_get_cred=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_lib_krb_krb_get_cred=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19396 fi
19397 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19398 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19399 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19400 cat >>confdefs.h <<_ACEOF
19401 #define HAVE_LIBKRB 1
19402 _ACEOF
19403
19404 LIBS="-lkrb $LIBS"
19405
19406 fi
19407
19408 fi
19409
19410 fi
19411
19412 if test "${with_kerberos5+set}" = set; then
19413
19414 for ac_header in krb5.h
19415 do
19416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19418 echo "$as_me:$LINENO: checking for $ac_header" >&5
19419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 fi
19423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19425 else
19426 # Is the header compilable?
19427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 $ac_includes_default
19436 #include <$ac_header>
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest.$ac_objext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 ac_header_compiler=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 ac_header_compiler=no
19465 fi
19466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19468 echo "${ECHO_T}$ac_header_compiler" >&6
19469
19470 # Is the header present?
19471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 #include <$ac_header>
19480 _ACEOF
19481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19483 ac_status=$?
19484 grep -v '^ *+' conftest.er1 >conftest.err
19485 rm -f conftest.er1
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } >/dev/null; then
19489 if test -s conftest.err; then
19490 ac_cpp_err=$ac_c_preproc_warn_flag
19491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19492 else
19493 ac_cpp_err=
19494 fi
19495 else
19496 ac_cpp_err=yes
19497 fi
19498 if test -z "$ac_cpp_err"; then
19499 ac_header_preproc=yes
19500 else
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504 ac_header_preproc=no
19505 fi
19506 rm -f conftest.err conftest.$ac_ext
19507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19508 echo "${ECHO_T}$ac_header_preproc" >&6
19509
19510 # So? What about this header?
19511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19512 yes:no: )
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19517 ac_header_preproc=yes
19518 ;;
19519 no:yes:* )
19520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19532 (
19533 cat <<\_ASBOX
19534 ## ------------------------------------------ ##
19535 ## Report this to the AC_PACKAGE_NAME lists. ##
19536 ## ------------------------------------------ ##
19537 _ASBOX
19538 ) |
19539 sed "s/^/$as_me: WARNING: /" >&2
19540 ;;
19541 esac
19542 echo "$as_me:$LINENO: checking for $ac_header" >&5
19543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547 eval "$as_ac_Header=\$ac_header_preproc"
19548 fi
19549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19551
19552 fi
19553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19554 cat >>confdefs.h <<_ACEOF
19555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19556 _ACEOF
19557
19558 fi
19559
19560 done
19561
19562 else
19563
19564 for ac_header in des.h
19565 do
19566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568 echo "$as_me:$LINENO: checking for $ac_header" >&5
19569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 fi
19573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19575 else
19576 # Is the header compilable?
19577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <$ac_header>
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_header_compiler=yes
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 ac_header_compiler=no
19615 fi
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19618 echo "${ECHO_T}$ac_header_compiler" >&6
19619
19620 # Is the header present?
19621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <$ac_header>
19630 _ACEOF
19631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } >/dev/null; then
19639 if test -s conftest.err; then
19640 ac_cpp_err=$ac_c_preproc_warn_flag
19641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19642 else
19643 ac_cpp_err=
19644 fi
19645 else
19646 ac_cpp_err=yes
19647 fi
19648 if test -z "$ac_cpp_err"; then
19649 ac_header_preproc=yes
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 ac_header_preproc=no
19655 fi
19656 rm -f conftest.err conftest.$ac_ext
19657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658 echo "${ECHO_T}$ac_header_preproc" >&6
19659
19660 # So? What about this header?
19661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19662 yes:no: )
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19667 ac_header_preproc=yes
19668 ;;
19669 no:yes:* )
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19682 (
19683 cat <<\_ASBOX
19684 ## ------------------------------------------ ##
19685 ## Report this to the AC_PACKAGE_NAME lists. ##
19686 ## ------------------------------------------ ##
19687 _ASBOX
19688 ) |
19689 sed "s/^/$as_me: WARNING: /" >&2
19690 ;;
19691 esac
19692 echo "$as_me:$LINENO: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 eval "$as_ac_Header=\$ac_header_preproc"
19698 fi
19699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19701
19702 fi
19703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 _ACEOF
19707
19708 else
19709
19710 for ac_header in kerberosIV/des.h
19711 do
19712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo "$as_me:$LINENO: checking for $ac_header" >&5
19715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 fi
19719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19721 else
19722 # Is the header compilable?
19723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 $ac_includes_default
19732 #include <$ac_header>
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736 (eval $ac_compile) 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_header_compiler=yes
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_header_compiler=no
19761 fi
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764 echo "${ECHO_T}$ac_header_compiler" >&6
19765
19766 # Is the header present?
19767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <$ac_header>
19776 _ACEOF
19777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19779 ac_status=$?
19780 grep -v '^ *+' conftest.er1 >conftest.err
19781 rm -f conftest.er1
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } >/dev/null; then
19785 if test -s conftest.err; then
19786 ac_cpp_err=$ac_c_preproc_warn_flag
19787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19788 else
19789 ac_cpp_err=
19790 fi
19791 else
19792 ac_cpp_err=yes
19793 fi
19794 if test -z "$ac_cpp_err"; then
19795 ac_header_preproc=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ac_header_preproc=no
19801 fi
19802 rm -f conftest.err conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6
19805
19806 # So? What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19808 yes:no: )
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19813 ac_header_preproc=yes
19814 ;;
19815 no:yes:* )
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19828 (
19829 cat <<\_ASBOX
19830 ## ------------------------------------------ ##
19831 ## Report this to the AC_PACKAGE_NAME lists. ##
19832 ## ------------------------------------------ ##
19833 _ASBOX
19834 ) |
19835 sed "s/^/$as_me: WARNING: /" >&2
19836 ;;
19837 esac
19838 echo "$as_me:$LINENO: checking for $ac_header" >&5
19839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 eval "$as_ac_Header=\$ac_header_preproc"
19844 fi
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847
19848 fi
19849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850 cat >>confdefs.h <<_ACEOF
19851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852 _ACEOF
19853
19854 else
19855
19856 for ac_header in kerberos/des.h
19857 do
19858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19860 echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 fi
19865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19867 else
19868 # Is the header compilable?
19869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h. */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 $ac_includes_default
19878 #include <$ac_header>
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19882 (eval $ac_compile) 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_header_compiler=yes
19902 else
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 ac_header_compiler=no
19907 fi
19908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19910 echo "${ECHO_T}$ac_header_compiler" >&6
19911
19912 # Is the header present?
19913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <$ac_header>
19922 _ACEOF
19923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19925 ac_status=$?
19926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } >/dev/null; then
19931 if test -s conftest.err; then
19932 ac_cpp_err=$ac_c_preproc_warn_flag
19933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19934 else
19935 ac_cpp_err=
19936 fi
19937 else
19938 ac_cpp_err=yes
19939 fi
19940 if test -z "$ac_cpp_err"; then
19941 ac_header_preproc=yes
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ac_header_preproc=no
19947 fi
19948 rm -f conftest.err conftest.$ac_ext
19949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19950 echo "${ECHO_T}$ac_header_preproc" >&6
19951
19952 # So? What about this header?
19953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19954 yes:no: )
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19959 ac_header_preproc=yes
19960 ;;
19961 no:yes:* )
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19974 (
19975 cat <<\_ASBOX
19976 ## ------------------------------------------ ##
19977 ## Report this to the AC_PACKAGE_NAME lists. ##
19978 ## ------------------------------------------ ##
19979 _ASBOX
19980 ) |
19981 sed "s/^/$as_me: WARNING: /" >&2
19982 ;;
19983 esac
19984 echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989 eval "$as_ac_Header=\$ac_header_preproc"
19990 fi
19991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19993
19994 fi
19995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19996 cat >>confdefs.h <<_ACEOF
19997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19998 _ACEOF
19999
20000 fi
20001
20002 done
20003
20004 fi
20005
20006 done
20007
20008 fi
20009
20010 done
20011
20012
20013 for ac_header in krb.h
20014 do
20015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20017 echo "$as_me:$LINENO: checking for $ac_header" >&5
20018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 fi
20022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20024 else
20025 # Is the header compilable?
20026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h. */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 $ac_includes_default
20035 #include <$ac_header>
20036 _ACEOF
20037 rm -f conftest.$ac_objext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20039 (eval $ac_compile) 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_header_compiler=yes
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_header_compiler=no
20064 fi
20065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20067 echo "${ECHO_T}$ac_header_compiler" >&6
20068
20069 # Is the header present?
20070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <$ac_header>
20079 _ACEOF
20080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20082 ac_status=$?
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } >/dev/null; then
20088 if test -s conftest.err; then
20089 ac_cpp_err=$ac_c_preproc_warn_flag
20090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20091 else
20092 ac_cpp_err=
20093 fi
20094 else
20095 ac_cpp_err=yes
20096 fi
20097 if test -z "$ac_cpp_err"; then
20098 ac_header_preproc=yes
20099 else
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103 ac_header_preproc=no
20104 fi
20105 rm -f conftest.err conftest.$ac_ext
20106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20107 echo "${ECHO_T}$ac_header_preproc" >&6
20108
20109 # So? What about this header?
20110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20111 yes:no: )
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20116 ac_header_preproc=yes
20117 ;;
20118 no:yes:* )
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20131 (
20132 cat <<\_ASBOX
20133 ## ------------------------------------------ ##
20134 ## Report this to the AC_PACKAGE_NAME lists. ##
20135 ## ------------------------------------------ ##
20136 _ASBOX
20137 ) |
20138 sed "s/^/$as_me: WARNING: /" >&2
20139 ;;
20140 esac
20141 echo "$as_me:$LINENO: checking for $ac_header" >&5
20142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 eval "$as_ac_Header=\$ac_header_preproc"
20147 fi
20148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20150
20151 fi
20152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20153 cat >>confdefs.h <<_ACEOF
20154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20155 _ACEOF
20156
20157 else
20158
20159 for ac_header in kerberosIV/krb.h
20160 do
20161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo "$as_me:$LINENO: checking for $ac_header" >&5
20164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 fi
20168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20170 else
20171 # Is the header compilable?
20172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20181 #include <$ac_header>
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_header_compiler=yes
20205 else
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_header_compiler=no
20210 fi
20211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20213 echo "${ECHO_T}$ac_header_compiler" >&6
20214
20215 # Is the header present?
20216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <$ac_header>
20225 _ACEOF
20226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } >/dev/null; then
20234 if test -s conftest.err; then
20235 ac_cpp_err=$ac_c_preproc_warn_flag
20236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20237 else
20238 ac_cpp_err=
20239 fi
20240 else
20241 ac_cpp_err=yes
20242 fi
20243 if test -z "$ac_cpp_err"; then
20244 ac_header_preproc=yes
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_header_preproc=no
20250 fi
20251 rm -f conftest.err conftest.$ac_ext
20252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20253 echo "${ECHO_T}$ac_header_preproc" >&6
20254
20255 # So? What about this header?
20256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20257 yes:no: )
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20262 ac_header_preproc=yes
20263 ;;
20264 no:yes:* )
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20277 (
20278 cat <<\_ASBOX
20279 ## ------------------------------------------ ##
20280 ## Report this to the AC_PACKAGE_NAME lists. ##
20281 ## ------------------------------------------ ##
20282 _ASBOX
20283 ) |
20284 sed "s/^/$as_me: WARNING: /" >&2
20285 ;;
20286 esac
20287 echo "$as_me:$LINENO: checking for $ac_header" >&5
20288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 eval "$as_ac_Header=\$ac_header_preproc"
20293 fi
20294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20296
20297 fi
20298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20301 _ACEOF
20302
20303 else
20304
20305 for ac_header in kerberos/krb.h
20306 do
20307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20309 echo "$as_me:$LINENO: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 fi
20314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20316 else
20317 # Is the header compilable?
20318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20327 #include <$ac_header>
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
20338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest.$ac_objext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_header_compiler=yes
20351 else
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ac_header_compiler=no
20356 fi
20357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20359 echo "${ECHO_T}$ac_header_compiler" >&6
20360
20361 # Is the header present?
20362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <$ac_header>
20371 _ACEOF
20372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev/null; then
20380 if test -s conftest.err; then
20381 ac_cpp_err=$ac_c_preproc_warn_flag
20382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20383 else
20384 ac_cpp_err=
20385 fi
20386 else
20387 ac_cpp_err=yes
20388 fi
20389 if test -z "$ac_cpp_err"; then
20390 ac_header_preproc=yes
20391 else
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_header_preproc=no
20396 fi
20397 rm -f conftest.err conftest.$ac_ext
20398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399 echo "${ECHO_T}$ac_header_preproc" >&6
20400
20401 # So? What about this header?
20402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403 yes:no: )
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20408 ac_header_preproc=yes
20409 ;;
20410 no:yes:* )
20411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20423 (
20424 cat <<\_ASBOX
20425 ## ------------------------------------------ ##
20426 ## Report this to the AC_PACKAGE_NAME lists. ##
20427 ## ------------------------------------------ ##
20428 _ASBOX
20429 ) |
20430 sed "s/^/$as_me: WARNING: /" >&2
20431 ;;
20432 esac
20433 echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 eval "$as_ac_Header=\$ac_header_preproc"
20439 fi
20440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20442
20443 fi
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20447 _ACEOF
20448
20449 fi
20450
20451 done
20452
20453 fi
20454
20455 done
20456
20457 fi
20458
20459 done
20460
20461 fi
20462
20463 for ac_header in com_err.h
20464 do
20465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467 echo "$as_me:$LINENO: checking for $ac_header" >&5
20468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 fi
20472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20474 else
20475 # Is the header compilable?
20476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 $ac_includes_default
20485 #include <$ac_header>
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489 (eval $ac_compile) 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_header_compiler=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_header_compiler=no
20514 fi
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20517 echo "${ECHO_T}$ac_header_compiler" >&6
20518
20519 # Is the header present?
20520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <$ac_header>
20529 _ACEOF
20530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } >/dev/null; then
20538 if test -s conftest.err; then
20539 ac_cpp_err=$ac_c_preproc_warn_flag
20540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20541 else
20542 ac_cpp_err=
20543 fi
20544 else
20545 ac_cpp_err=yes
20546 fi
20547 if test -z "$ac_cpp_err"; then
20548 ac_header_preproc=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 ac_header_preproc=no
20554 fi
20555 rm -f conftest.err conftest.$ac_ext
20556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20557 echo "${ECHO_T}$ac_header_preproc" >&6
20558
20559 # So? What about this header?
20560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20561 yes:no: )
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20566 ac_header_preproc=yes
20567 ;;
20568 no:yes:* )
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20581 (
20582 cat <<\_ASBOX
20583 ## ------------------------------------------ ##
20584 ## Report this to the AC_PACKAGE_NAME lists. ##
20585 ## ------------------------------------------ ##
20586 _ASBOX
20587 ) |
20588 sed "s/^/$as_me: WARNING: /" >&2
20589 ;;
20590 esac
20591 echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 eval "$as_ac_Header=\$ac_header_preproc"
20597 fi
20598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20600
20601 fi
20602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20603 cat >>confdefs.h <<_ACEOF
20604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20605 _ACEOF
20606
20607 fi
20608
20609 done
20610
20611 fi
20612
20613 # Solaris requires -lintl if you want strerror (which calls dgettext)
20614 # to return localized messages.
20615
20616 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20617 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20618 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621 ac_check_lib_save_LIBS=$LIBS
20622 LIBS="-lintl $LIBS"
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629
20630 /* Override any gcc2 internal prototype to avoid an error. */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20636 char dgettext ();
20637 int
20638 main ()
20639 {
20640 dgettext ();
20641 ;
20642 return 0;
20643 }
20644 _ACEOF
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>conftest.er1
20648 ac_status=$?
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_lib_intl_dgettext=yes
20667 else
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_lib_intl_dgettext=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20678 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20679 if test $ac_cv_lib_intl_dgettext = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBINTL 1
20682 _ACEOF
20683
20684 LIBS="-lintl $LIBS"
20685
20686 fi
20687
20688
20689 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20690 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20691 if test "${emacs_cv_localtime_cache+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 if test x$ac_cv_func_tzset = xyes; then
20695 if test "$cross_compiling" = yes; then
20696 # If we have tzset, assume the worst when cross-compiling.
20697 emacs_cv_localtime_cache=yes
20698 else
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <time.h>
20706 extern char **environ;
20707 unset_TZ ()
20708 {
20709 char **from, **to;
20710 for (to = from = environ; (*to = *from); from++)
20711 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20712 to++;
20713 }
20714 char TZ_GMT0[] = "TZ=GMT0";
20715 char TZ_PST8[] = "TZ=PST8";
20716 main()
20717 {
20718 time_t now = time ((time_t *) 0);
20719 int hour_GMT0, hour_unset;
20720 if (putenv (TZ_GMT0) != 0)
20721 exit (1);
20722 hour_GMT0 = localtime (&now)->tm_hour;
20723 unset_TZ ();
20724 hour_unset = localtime (&now)->tm_hour;
20725 if (putenv (TZ_PST8) != 0)
20726 exit (1);
20727 if (localtime (&now)->tm_hour == hour_GMT0)
20728 exit (1);
20729 unset_TZ ();
20730 if (localtime (&now)->tm_hour != hour_unset)
20731 exit (1);
20732 exit (0);
20733 }
20734 _ACEOF
20735 rm -f conftest$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737 (eval $ac_link) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 emacs_cv_localtime_cache=no
20747 else
20748 echo "$as_me: program exited with status $ac_status" >&5
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 ( exit $ac_status )
20753 emacs_cv_localtime_cache=yes
20754 fi
20755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20756 fi
20757 else
20758 # If we lack tzset, report that localtime does not cache TZ,
20759 # since we can't invalidate the cache if we don't have tzset.
20760 emacs_cv_localtime_cache=no
20761 fi
20762 fi
20763 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20764 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20765 if test $emacs_cv_localtime_cache = yes; then
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define LOCALTIME_CACHE 1
20769 _ACEOF
20770
20771 fi
20772
20773 if test "x$HAVE_TIMEVAL" = xyes; then
20774
20775 for ac_func in gettimeofday
20776 do
20777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20778 echo "$as_me:$LINENO: checking for $ac_func" >&5
20779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20780 if eval "test \"\${$as_ac_var+set}\" = set"; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20791 #define $ac_func innocuous_$ac_func
20792
20793 /* System header to define __stub macros and hopefully few prototypes,
20794 which can conflict with char $ac_func (); below.
20795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20796 <limits.h> exists even on freestanding compilers. */
20797
20798 #ifdef __STDC__
20799 # include <limits.h>
20800 #else
20801 # include <assert.h>
20802 #endif
20803
20804 #undef $ac_func
20805
20806 /* Override any gcc2 internal prototype to avoid an error. */
20807 #ifdef __cplusplus
20808 extern "C"
20809 {
20810 #endif
20811 /* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20813 char $ac_func ();
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20818 choke me
20819 #else
20820 char (*f) () = $ac_func;
20821 #endif
20822 #ifdef __cplusplus
20823 }
20824 #endif
20825
20826 int
20827 main ()
20828 {
20829 return f != $ac_func;
20830 ;
20831 return 0;
20832 }
20833 _ACEOF
20834 rm -f conftest.$ac_objext conftest$ac_exeext
20835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20836 (eval $ac_link) 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest$ac_exeext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 eval "$as_ac_var=yes"
20856 else
20857 echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20859
20860 eval "$as_ac_var=no"
20861 fi
20862 rm -f conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20864 fi
20865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20867 if test `eval echo '${'$as_ac_var'}'` = yes; then
20868 cat >>confdefs.h <<_ACEOF
20869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20870 _ACEOF
20871
20872 fi
20873 done
20874
20875 if test $ac_cv_func_gettimeofday = yes; then
20876 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20877 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20878 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887
20888 #ifdef TIME_WITH_SYS_TIME
20889 #include <sys/time.h>
20890 #include <time.h>
20891 #else
20892 #ifdef HAVE_SYS_TIME_H
20893 #include <sys/time.h>
20894 #else
20895 #include <time.h>
20896 #endif
20897 #endif
20898 int
20899 main ()
20900 {
20901 struct timeval time;
20902 gettimeofday (&time, 0);
20903 ;
20904 return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909 (eval $ac_compile) 2>conftest.er1
20910 ac_status=$?
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
20916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 emacs_cv_gettimeofday_two_arguments=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 emacs_cv_gettimeofday_two_arguments=no
20934 fi
20935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 fi
20937 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20938 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20939 if test $emacs_cv_gettimeofday_two_arguments = no; then
20940
20941 cat >>confdefs.h <<\_ACEOF
20942 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20943 _ACEOF
20944
20945 fi
20946 fi
20947 fi
20948
20949 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20950 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20951 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20952 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/types.h>
20962 #include <$ac_cv_struct_tm>
20963
20964
20965 int
20966 main ()
20967 {
20968 static struct tm ac_aggr;
20969 if (ac_aggr.tm_zone)
20970 return 0;
20971 ;
20972 return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_member_struct_tm_tm_zone=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <sys/types.h>
21008 #include <$ac_cv_struct_tm>
21009
21010
21011 int
21012 main ()
21013 {
21014 static struct tm ac_aggr;
21015 if (sizeof ac_aggr.tm_zone)
21016 return 0;
21017 ;
21018 return 0;
21019 }
21020 _ACEOF
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_member_struct_tm_tm_zone=yes
21043 else
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_member_struct_tm_tm_zone=no
21048 fi
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 fi
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21054 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21055 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_STRUCT_TM_TM_ZONE 1
21059 _ACEOF
21060
21061
21062 fi
21063
21064 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21065
21066 cat >>confdefs.h <<\_ACEOF
21067 #define HAVE_TM_ZONE 1
21068 _ACEOF
21069
21070 else
21071 echo "$as_me:$LINENO: checking for tzname" >&5
21072 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21073 if test "${ac_cv_var_tzname+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h. */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 #include <time.h>
21083 #ifndef tzname /* For SGI. */
21084 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21085 #endif
21086
21087 int
21088 main ()
21089 {
21090 atoi(*tzname);
21091 ;
21092 return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest$ac_exeext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_var_tzname=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 ac_cv_var_tzname=no
21122 fi
21123 rm -f conftest.err conftest.$ac_objext \
21124 conftest$ac_exeext conftest.$ac_ext
21125 fi
21126 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21127 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21128 if test $ac_cv_var_tzname = yes; then
21129
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_TZNAME 1
21132 _ACEOF
21133
21134 fi
21135 fi
21136
21137
21138 if test "$ac_cv_func_gettimeofday" = yes; then
21139 echo "$as_me:$LINENO: checking for struct timezone" >&5
21140 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21141 if test "${emacs_cv_struct_timezone+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144 cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h. */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 #include <sys/time.h>
21151 int
21152 main ()
21153 {
21154 struct timezone tz;
21155 ;
21156 return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 if test "$cross_compiling" = yes; then
21181 emacs_cv_struct_timezone=yes
21182 else
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189
21190 #ifdef TIME_WITH_SYS_TIME
21191 #include <sys/time.h>
21192 #include <time.h>
21193 #else
21194 #ifdef HAVE_SYS_TIME_H
21195 #include <sys/time.h>
21196 #else
21197 #include <time.h>
21198 #endif
21199 #endif
21200 main () {
21201 struct timeval time;
21202 struct timezone dummy;
21203 exit (gettimeofday (&time, &dummy));
21204 }
21205 _ACEOF
21206 rm -f conftest$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208 (eval $ac_link) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 emacs_cv_struct_timezone=yes
21218 else
21219 echo "$as_me: program exited with status $ac_status" >&5
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223 ( exit $ac_status )
21224 emacs_cv_struct_timezone=no
21225 fi
21226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232 emacs_cv_struct_timezone=no
21233 fi
21234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21235 fi
21236 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21237 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21238 fi
21239
21240 ok_so_far=yes
21241 echo "$as_me:$LINENO: checking for socket" >&5
21242 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21243 if test "${ac_cv_func_socket+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21254 #define socket innocuous_socket
21255
21256 /* System header to define __stub macros and hopefully few prototypes,
21257 which can conflict with char socket (); below.
21258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21259 <limits.h> exists even on freestanding compilers. */
21260
21261 #ifdef __STDC__
21262 # include <limits.h>
21263 #else
21264 # include <assert.h>
21265 #endif
21266
21267 #undef socket
21268
21269 /* Override any gcc2 internal prototype to avoid an error. */
21270 #ifdef __cplusplus
21271 extern "C"
21272 {
21273 #endif
21274 /* We use char because int might match the return type of a gcc2
21275 builtin and then its argument prototype would still apply. */
21276 char socket ();
21277 /* The GNU C library defines this for functions which it implements
21278 to always fail with ENOSYS. Some functions are actually named
21279 something starting with __ and the normal name is an alias. */
21280 #if defined (__stub_socket) || defined (__stub___socket)
21281 choke me
21282 #else
21283 char (*f) () = socket;
21284 #endif
21285 #ifdef __cplusplus
21286 }
21287 #endif
21288
21289 int
21290 main ()
21291 {
21292 return f != socket;
21293 ;
21294 return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21309 ac_status=$?
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; } &&
21312 { ac_try='test -s conftest$ac_exeext'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_func_socket=yes
21319 else
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323 ac_cv_func_socket=no
21324 fi
21325 rm -f conftest.err conftest.$ac_objext \
21326 conftest$ac_exeext conftest.$ac_ext
21327 fi
21328 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21329 echo "${ECHO_T}$ac_cv_func_socket" >&6
21330 if test $ac_cv_func_socket = yes; then
21331 :
21332 else
21333 ok_so_far=no
21334 fi
21335
21336 if test $ok_so_far = yes; then
21337 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21338 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21339 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21340 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 fi
21343 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21344 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21345 else
21346 # Is the header compilable?
21347 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21348 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 $ac_includes_default
21356 #include <netinet/in.h>
21357 _ACEOF
21358 rm -f conftest.$ac_objext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_header_compiler=yes
21380 else
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 ac_header_compiler=no
21385 fi
21386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6
21389
21390 # Is the header present?
21391 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21392 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21393 cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h. */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <netinet/in.h>
21400 _ACEOF
21401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21403 ac_status=$?
21404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } >/dev/null; then
21409 if test -s conftest.err; then
21410 ac_cpp_err=$ac_c_preproc_warn_flag
21411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21412 else
21413 ac_cpp_err=
21414 fi
21415 else
21416 ac_cpp_err=yes
21417 fi
21418 if test -z "$ac_cpp_err"; then
21419 ac_header_preproc=yes
21420 else
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424 ac_header_preproc=no
21425 fi
21426 rm -f conftest.err conftest.$ac_ext
21427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21428 echo "${ECHO_T}$ac_header_preproc" >&6
21429
21430 # So? What about this header?
21431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 yes:no: )
21433 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21434 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21436 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21437 ac_header_preproc=yes
21438 ;;
21439 no:yes:* )
21440 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21441 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21443 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21445 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21447 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21449 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21451 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21452 (
21453 cat <<\_ASBOX
21454 ## ------------------------------------------ ##
21455 ## Report this to the AC_PACKAGE_NAME lists. ##
21456 ## ------------------------------------------ ##
21457 _ASBOX
21458 ) |
21459 sed "s/^/$as_me: WARNING: /" >&2
21460 ;;
21461 esac
21462 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21463 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21464 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 else
21467 ac_cv_header_netinet_in_h=$ac_header_preproc
21468 fi
21469 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21470 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21471
21472 fi
21473 if test $ac_cv_header_netinet_in_h = yes; then
21474 :
21475 else
21476 ok_so_far=no
21477 fi
21478
21479
21480 fi
21481 if test $ok_so_far = yes; then
21482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21483 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21484 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21485 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 fi
21488 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21489 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21490 else
21491 # Is the header compilable?
21492 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21493 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h. */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21501 #include <arpa/inet.h>
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21505 (eval $ac_compile) 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 ac_header_compiler=yes
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 ac_header_compiler=no
21530 fi
21531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21533 echo "${ECHO_T}$ac_header_compiler" >&6
21534
21535 # Is the header present?
21536 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21537 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 #include <arpa/inet.h>
21545 _ACEOF
21546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } >/dev/null; then
21554 if test -s conftest.err; then
21555 ac_cpp_err=$ac_c_preproc_warn_flag
21556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21557 else
21558 ac_cpp_err=
21559 fi
21560 else
21561 ac_cpp_err=yes
21562 fi
21563 if test -z "$ac_cpp_err"; then
21564 ac_header_preproc=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21568
21569 ac_header_preproc=no
21570 fi
21571 rm -f conftest.err conftest.$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21573 echo "${ECHO_T}$ac_header_preproc" >&6
21574
21575 # So? What about this header?
21576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21577 yes:no: )
21578 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21579 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21581 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21582 ac_header_preproc=yes
21583 ;;
21584 no:yes:* )
21585 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21586 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21588 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21590 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21592 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21594 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21596 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21597 (
21598 cat <<\_ASBOX
21599 ## ------------------------------------------ ##
21600 ## Report this to the AC_PACKAGE_NAME lists. ##
21601 ## ------------------------------------------ ##
21602 _ASBOX
21603 ) |
21604 sed "s/^/$as_me: WARNING: /" >&2
21605 ;;
21606 esac
21607 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21608 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21609 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 ac_cv_header_arpa_inet_h=$ac_header_preproc
21613 fi
21614 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21615 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21616
21617 fi
21618 if test $ac_cv_header_arpa_inet_h = yes; then
21619 :
21620 else
21621 ok_so_far=no
21622 fi
21623
21624
21625 fi
21626 if test $ok_so_far = yes; then
21627
21628 cat >>confdefs.h <<\_ACEOF
21629 #define HAVE_INET_SOCKETS 1
21630 _ACEOF
21631
21632 fi
21633
21634
21635 for ac_header in sys/ioctl.h
21636 do
21637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21639 echo "$as_me:$LINENO: checking for $ac_header" >&5
21640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 fi
21644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21646 else
21647 # Is the header compilable?
21648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21657 #include <$ac_header>
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
21668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_header_compiler=yes
21681 else
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_header_compiler=no
21686 fi
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21689 echo "${ECHO_T}$ac_header_compiler" >&6
21690
21691 # Is the header present?
21692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <$ac_header>
21701 _ACEOF
21702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } >/dev/null; then
21710 if test -s conftest.err; then
21711 ac_cpp_err=$ac_c_preproc_warn_flag
21712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21713 else
21714 ac_cpp_err=
21715 fi
21716 else
21717 ac_cpp_err=yes
21718 fi
21719 if test -z "$ac_cpp_err"; then
21720 ac_header_preproc=yes
21721 else
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725 ac_header_preproc=no
21726 fi
21727 rm -f conftest.err conftest.$ac_ext
21728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21729 echo "${ECHO_T}$ac_header_preproc" >&6
21730
21731 # So? What about this header?
21732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21733 yes:no: )
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21738 ac_header_preproc=yes
21739 ;;
21740 no:yes:* )
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21753 (
21754 cat <<\_ASBOX
21755 ## ------------------------------------------ ##
21756 ## Report this to the AC_PACKAGE_NAME lists. ##
21757 ## ------------------------------------------ ##
21758 _ASBOX
21759 ) |
21760 sed "s/^/$as_me: WARNING: /" >&2
21761 ;;
21762 esac
21763 echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768 eval "$as_ac_Header=\$ac_header_preproc"
21769 fi
21770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21772
21773 fi
21774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21775 cat >>confdefs.h <<_ACEOF
21776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21777 _ACEOF
21778
21779 fi
21780
21781 done
21782
21783
21784 if test -f /usr/lpp/X11/bin/smt.exp; then
21785
21786 cat >>confdefs.h <<\_ACEOF
21787 #define HAVE_AIX_SMT_EXP 1
21788 _ACEOF
21789
21790 fi
21791
21792 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21793 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21794 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21795 echo "$as_me:$LINENO: result: yes" >&5
21796 echo "${ECHO_T}yes" >&6
21797
21798 cat >>confdefs.h <<\_ACEOF
21799 #define HAVE_DEV_PTMX 1
21800 _ACEOF
21801
21802 else
21803 echo "$as_me:$LINENO: result: no" >&5
21804 echo "${ECHO_T}no" >&6
21805 fi
21806
21807 echo "$as_me:$LINENO: checking for pid_t" >&5
21808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21809 if test "${ac_cv_type_pid_t+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h. */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 $ac_includes_default
21819 int
21820 main ()
21821 {
21822 if ((pid_t *) 0)
21823 return 0;
21824 if (sizeof (pid_t))
21825 return 0;
21826 ;
21827 return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21832 (eval $ac_compile) 2>conftest.er1
21833 ac_status=$?
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_type_pid_t=yes
21852 else
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_cv_type_pid_t=no
21857 fi
21858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21859 fi
21860 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21862 if test $ac_cv_type_pid_t = yes; then
21863 :
21864 else
21865
21866 cat >>confdefs.h <<_ACEOF
21867 #define pid_t int
21868 _ACEOF
21869
21870 fi
21871
21872
21873
21874 for ac_header in unistd.h vfork.h
21875 do
21876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21878 echo "$as_me:$LINENO: checking for $ac_header" >&5
21879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 fi
21883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21885 else
21886 # Is the header compilable?
21887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <$ac_header>
21897 _ACEOF
21898 rm -f conftest.$ac_objext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21900 (eval $ac_compile) 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest.$ac_objext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_header_compiler=yes
21920 else
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_header_compiler=no
21925 fi
21926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6
21929
21930 # Is the header present?
21931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <$ac_header>
21940 _ACEOF
21941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } >/dev/null; then
21949 if test -s conftest.err; then
21950 ac_cpp_err=$ac_c_preproc_warn_flag
21951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21952 else
21953 ac_cpp_err=
21954 fi
21955 else
21956 ac_cpp_err=yes
21957 fi
21958 if test -z "$ac_cpp_err"; then
21959 ac_header_preproc=yes
21960 else
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964 ac_header_preproc=no
21965 fi
21966 rm -f conftest.err conftest.$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6
21969
21970 # So? What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21972 yes:no: )
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21977 ac_header_preproc=yes
21978 ;;
21979 no:yes:* )
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21992 (
21993 cat <<\_ASBOX
21994 ## ------------------------------------------ ##
21995 ## Report this to the AC_PACKAGE_NAME lists. ##
21996 ## ------------------------------------------ ##
21997 _ASBOX
21998 ) |
21999 sed "s/^/$as_me: WARNING: /" >&2
22000 ;;
22001 esac
22002 echo "$as_me:$LINENO: checking for $ac_header" >&5
22003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007 eval "$as_ac_Header=\$ac_header_preproc"
22008 fi
22009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22011
22012 fi
22013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22016 _ACEOF
22017
22018 fi
22019
22020 done
22021
22022
22023
22024 for ac_func in fork vfork
22025 do
22026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22027 echo "$as_me:$LINENO: checking for $ac_func" >&5
22028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_var+set}\" = set"; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h. */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22040 #define $ac_func innocuous_$ac_func
22041
22042 /* System header to define __stub macros and hopefully few prototypes,
22043 which can conflict with char $ac_func (); below.
22044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22045 <limits.h> exists even on freestanding compilers. */
22046
22047 #ifdef __STDC__
22048 # include <limits.h>
22049 #else
22050 # include <assert.h>
22051 #endif
22052
22053 #undef $ac_func
22054
22055 /* Override any gcc2 internal prototype to avoid an error. */
22056 #ifdef __cplusplus
22057 extern "C"
22058 {
22059 #endif
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22062 char $ac_func ();
22063 /* The GNU C library defines this for functions which it implements
22064 to always fail with ENOSYS. Some functions are actually named
22065 something starting with __ and the normal name is an alias. */
22066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22067 choke me
22068 #else
22069 char (*f) () = $ac_func;
22070 #endif
22071 #ifdef __cplusplus
22072 }
22073 #endif
22074
22075 int
22076 main ()
22077 {
22078 return f != $ac_func;
22079 ;
22080 return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest$ac_exeext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 eval "$as_ac_var=yes"
22105 else
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109 eval "$as_ac_var=no"
22110 fi
22111 rm -f conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22113 fi
22114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22116 if test `eval echo '${'$as_ac_var'}'` = yes; then
22117 cat >>confdefs.h <<_ACEOF
22118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22119 _ACEOF
22120
22121 fi
22122 done
22123
22124 if test "x$ac_cv_func_fork" = xyes; then
22125 echo "$as_me:$LINENO: checking for working fork" >&5
22126 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22127 if test "${ac_cv_func_fork_works+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 else
22130 if test "$cross_compiling" = yes; then
22131 ac_cv_func_fork_works=cross
22132 else
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* By Ruediger Kuhlmann. */
22135 #include <sys/types.h>
22136 #if HAVE_UNISTD_H
22137 # include <unistd.h>
22138 #endif
22139 /* Some systems only have a dummy stub for fork() */
22140 int main ()
22141 {
22142 if (fork() < 0)
22143 exit (1);
22144 exit (0);
22145 }
22146 _ACEOF
22147 rm -f conftest$ac_exeext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22149 (eval $ac_link) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_func_fork_works=yes
22159 else
22160 echo "$as_me: program exited with status $ac_status" >&5
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22163
22164 ( exit $ac_status )
22165 ac_cv_func_fork_works=no
22166 fi
22167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22168 fi
22169 fi
22170 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22171 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22172
22173 else
22174 ac_cv_func_fork_works=$ac_cv_func_fork
22175 fi
22176 if test "x$ac_cv_func_fork_works" = xcross; then
22177 case $host in
22178 *-*-amigaos* | *-*-msdosdjgpp*)
22179 # Override, as these systems have only a dummy fork() stub
22180 ac_cv_func_fork_works=no
22181 ;;
22182 *)
22183 ac_cv_func_fork_works=yes
22184 ;;
22185 esac
22186 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22187 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22188 fi
22189 ac_cv_func_vfork_works=$ac_cv_func_vfork
22190 if test "x$ac_cv_func_vfork" = xyes; then
22191 echo "$as_me:$LINENO: checking for working vfork" >&5
22192 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22193 if test "${ac_cv_func_vfork_works+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 if test "$cross_compiling" = yes; then
22197 ac_cv_func_vfork_works=cross
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 /* Thanks to Paul Eggert for this test. */
22206 #include <stdio.h>
22207 #include <stdlib.h>
22208 #include <sys/types.h>
22209 #include <sys/stat.h>
22210 #include <sys/wait.h>
22211 #if HAVE_UNISTD_H
22212 # include <unistd.h>
22213 #endif
22214 #if HAVE_VFORK_H
22215 # include <vfork.h>
22216 #endif
22217 /* On some sparc systems, changes by the child to local and incoming
22218 argument registers are propagated back to the parent. The compiler
22219 is told about this with #include <vfork.h>, but some compilers
22220 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22221 static variable whose address is put into a register that is
22222 clobbered by the vfork. */
22223 static void
22224 #ifdef __cplusplus
22225 sparc_address_test (int arg)
22226 # else
22227 sparc_address_test (arg) int arg;
22228 #endif
22229 {
22230 static pid_t child;
22231 if (!child) {
22232 child = vfork ();
22233 if (child < 0) {
22234 perror ("vfork");
22235 _exit(2);
22236 }
22237 if (!child) {
22238 arg = getpid();
22239 write(-1, "", 0);
22240 _exit (arg);
22241 }
22242 }
22243 }
22244
22245 int
22246 main ()
22247 {
22248 pid_t parent = getpid ();
22249 pid_t child;
22250
22251 sparc_address_test (0);
22252
22253 child = vfork ();
22254
22255 if (child == 0) {
22256 /* Here is another test for sparc vfork register problems. This
22257 test uses lots of local variables, at least as many local
22258 variables as main has allocated so far including compiler
22259 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22260 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22261 reuse the register of parent for one of the local variables,
22262 since it will think that parent can't possibly be used any more
22263 in this routine. Assigning to the local variable will thus
22264 munge parent in the parent process. */
22265 pid_t
22266 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22267 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22268 /* Convince the compiler that p..p7 are live; otherwise, it might
22269 use the same hardware register for all 8 local variables. */
22270 if (p != p1 || p != p2 || p != p3 || p != p4
22271 || p != p5 || p != p6 || p != p7)
22272 _exit(1);
22273
22274 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22275 from child file descriptors. If the child closes a descriptor
22276 before it execs or exits, this munges the parent's descriptor
22277 as well. Test for this by closing stdout in the child. */
22278 _exit(close(fileno(stdout)) != 0);
22279 } else {
22280 int status;
22281 struct stat st;
22282
22283 while (wait(&status) != child)
22284 ;
22285 exit(
22286 /* Was there some problem with vforking? */
22287 child < 0
22288
22289 /* Did the child fail? (This shouldn't happen.) */
22290 || status
22291
22292 /* Did the vfork/compiler bug occur? */
22293 || parent != getpid()
22294
22295 /* Did the file descriptor bug occur? */
22296 || fstat(fileno(stdout), &st) != 0
22297 );
22298 }
22299 }
22300 _ACEOF
22301 rm -f conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303 (eval $ac_link) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_func_vfork_works=yes
22313 else
22314 echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ( exit $ac_status )
22319 ac_cv_func_vfork_works=no
22320 fi
22321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322 fi
22323 fi
22324 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22325 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22326
22327 fi;
22328 if test "x$ac_cv_func_fork_works" = xcross; then
22329 ac_cv_func_vfork_works=$ac_cv_func_vfork
22330 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22331 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22332 fi
22333
22334 if test "x$ac_cv_func_vfork_works" = xyes; then
22335
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_WORKING_VFORK 1
22338 _ACEOF
22339
22340 else
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define vfork fork
22344 _ACEOF
22345
22346 fi
22347 if test "x$ac_cv_func_fork_works" = xyes; then
22348
22349 cat >>confdefs.h <<\_ACEOF
22350 #define HAVE_WORKING_FORK 1
22351 _ACEOF
22352
22353 fi
22354
22355
22356 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22357 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22358 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h. */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 #include <langinfo.h>
22368 int
22369 main ()
22370 {
22371 char* cs = nl_langinfo(CODESET);
22372 ;
22373 return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext conftest$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>conftest.er1
22379 ac_status=$?
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest$ac_exeext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 emacs_cv_langinfo_codeset=yes
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 emacs_cv_langinfo_codeset=no
22403 fi
22404 rm -f conftest.err conftest.$ac_objext \
22405 conftest$ac_exeext conftest.$ac_ext
22406
22407 fi
22408 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22409 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22410 if test $emacs_cv_langinfo_codeset = yes; then
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_LANGINFO_CODESET 1
22414 _ACEOF
22415
22416 fi
22417
22418 echo "$as_me:$LINENO: checking for size_t" >&5
22419 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22420 if test "${ac_cv_type_size_t+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22430 int
22431 main ()
22432 {
22433 if ((size_t *) 0)
22434 return 0;
22435 if (sizeof (size_t))
22436 return 0;
22437 ;
22438 return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>conftest.er1
22444 ac_status=$?
22445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try='test -s conftest.$ac_objext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_type_size_t=yes
22463 else
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ac_cv_type_size_t=no
22468 fi
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22472 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22473 if test $ac_cv_type_size_t = yes; then
22474
22475 cat >>confdefs.h <<_ACEOF
22476 #define HAVE_SIZE_T 1
22477 _ACEOF
22478
22479
22480 fi
22481
22482
22483 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22484 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22485 if test "${ac_cv_type_mbstate_t+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488 cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h. */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 $ac_includes_default
22495 # include <wchar.h>
22496 int
22497 main ()
22498 {
22499 mbstate_t x; return sizeof x;
22500 ;
22501 return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22507 ac_status=$?
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_type_mbstate_t=yes
22526 else
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 ac_cv_type_mbstate_t=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22535 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22536 if test $ac_cv_type_mbstate_t = yes; then
22537
22538 cat >>confdefs.h <<\_ACEOF
22539 #define HAVE_MBSTATE_T 1
22540 _ACEOF
22541
22542 else
22543
22544 cat >>confdefs.h <<\_ACEOF
22545 #define mbstate_t int
22546 _ACEOF
22547
22548 fi
22549
22550 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22551 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22552 if test "${emacs_cv_c_restrict+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 void fred (int *restrict x);
22562 int
22563 main ()
22564 {
22565
22566 ;
22567 return 0;
22568 }
22569 _ACEOF
22570 rm -f conftest.$ac_objext
22571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22572 (eval $ac_compile) 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } &&
22579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22582 ac_status=$?
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; } &&
22585 { ac_try='test -s conftest.$ac_objext'
22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; }; then
22591 emacs_cv_c_restrict=yes
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h. */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 void fred (int *__restrict x);
22603 int
22604 main ()
22605 {
22606
22607 ;
22608 return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try='test -s conftest.$ac_objext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 emacs_cv_c_restrict=__restrict
22633 else
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637 emacs_cv_c_restrict=no
22638 fi
22639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22640 fi
22641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22642 fi
22643 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22644 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22645 case "$emacs_cv_c_restrict" in
22646 yes) emacs_restrict=restrict;;
22647 no) emacs_restrict="";;
22648 *) emacs_restrict="$emacs_cv_c_restrict";;
22649 esac
22650 if test "$emacs_restrict" != __restrict; then
22651
22652 cat >>confdefs.h <<_ACEOF
22653 #define __restrict $emacs_restrict
22654 _ACEOF
22655
22656 fi
22657
22658 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22659 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22660 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663 cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h. */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 void fred (int x[__restrict]);
22670 int
22671 main ()
22672 {
22673
22674 ;
22675 return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22681 ac_status=$?
22682 grep -v '^ *+' conftest.er1 >conftest.err
22683 rm -f conftest.er1
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 emacs_cv_c_restrict_arr=yes
22700 else
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 emacs_cv_c_restrict_arr=no
22705 fi
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22709 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22710 if test "$emacs_cv_c_restrict_arr" = yes; then
22711
22712 cat >>confdefs.h <<\_ACEOF
22713 #define __restrict_arr __restrict
22714 _ACEOF
22715
22716 fi
22717
22718
22719
22720 # Set up the CFLAGS for real compilation, so we can substitute it.
22721 CFLAGS="$REAL_CFLAGS"
22722 CPPFLAGS="$REAL_CPPFLAGS"
22723
22724 #### Find out which version of Emacs this is.
22725 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22726 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22727 if test x"${version}" = x; then
22728 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22729 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22730 { (exit 1); exit 1; }; }
22731 fi
22732
22733 ### Specify what sort of things we'll be editing into Makefile and config.h.
22734 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770 cat >>confdefs.h <<_ACEOF
22771 #define EMACS_CONFIGURATION "${canonical}"
22772 _ACEOF
22773
22774
22775 cat >>confdefs.h <<_ACEOF
22776 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22777 _ACEOF
22778
22779
22780 cat >>confdefs.h <<_ACEOF
22781 #define config_machfile "${machfile}"
22782 _ACEOF
22783
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define config_opsysfile "${opsysfile}"
22787 _ACEOF
22788
22789
22790 cat >>confdefs.h <<_ACEOF
22791 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22792 _ACEOF
22793
22794
22795 cat >>confdefs.h <<_ACEOF
22796 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22797 _ACEOF
22798
22799
22800 cat >>confdefs.h <<_ACEOF
22801 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22802 _ACEOF
22803
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define UNEXEC_SRC ${UNEXEC_SRC}
22807 _ACEOF
22808
22809
22810 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22811
22812 cat >>confdefs.h <<\_ACEOF
22813 #define HAVE_X_WINDOWS 1
22814 _ACEOF
22815
22816 fi
22817 if test "${USE_X_TOOLKIT}" != "none" ; then
22818
22819 cat >>confdefs.h <<\_ACEOF
22820 #define USE_X_TOOLKIT 1
22821 _ACEOF
22822
22823 fi
22824 if test "${HAVE_X11}" = "yes" ; then
22825
22826 cat >>confdefs.h <<\_ACEOF
22827 #define HAVE_X11 1
22828 _ACEOF
22829
22830 fi
22831 if test "${HAVE_XFREE386}" = "yes" ; then
22832
22833 cat >>confdefs.h <<\_ACEOF
22834 #define HAVE_XFREE386 1
22835 _ACEOF
22836
22837 fi
22838 if test "${HAVE_MENUS}" = "yes" ; then
22839
22840 cat >>confdefs.h <<\_ACEOF
22841 #define HAVE_MENUS 1
22842 _ACEOF
22843
22844 fi
22845 if test "${GNU_MALLOC}" = "yes" ; then
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define GNU_MALLOC 1
22849 _ACEOF
22850
22851 fi
22852 if test "${REL_ALLOC}" = "yes" ; then
22853
22854 cat >>confdefs.h <<\_ACEOF
22855 #define REL_ALLOC 1
22856 _ACEOF
22857
22858 fi
22859
22860
22861
22862
22863
22864 #### Report on what we decided to do.
22865 #### Report GTK as a toolkit, even if it doesn't use Xt.
22866 #### It makes printing result more understandable as using GTK sets
22867 #### toolkit_scroll_bars to yes by default.
22868 if test "${HAVE_GTK}" = "yes"; then
22869 USE_X_TOOLKIT=GTK
22870 fi
22871
22872 echo "
22873 Configured for \`${canonical}'.
22874
22875 Where should the build process find the source code? ${srcdir}
22876 What operating system and machine description files should Emacs use?
22877 \`${opsysfile}' and \`${machfile}'
22878 What compiler should emacs be built with? ${CC} ${CFLAGS}
22879 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22880 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22881 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22882 What window system should Emacs use? ${window_system}
22883 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22884
22885 if test -n "${x_includes}"; then
22886 echo " Where do we find X Windows header files? ${x_includes}"
22887 else
22888 echo " Where do we find X Windows header files? Standard dirs"
22889 fi
22890 if test -n "${x_libraries}"; then
22891 echo " Where do we find X Windows libraries? ${x_libraries}"
22892 else
22893 echo " Where do we find X Windows libraries? Standard dirs"
22894 fi
22895
22896 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22897 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22898 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22899 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22900 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22901 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22902 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22903 echo
22904
22905 if test $USE_XASSERTS = yes; then
22906 echo " Compiling with asserts turned on."
22907 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22908 echo
22909 fi
22910
22911
22912
22913 # Remove any trailing slashes in these variables.
22914 test "${prefix}" != NONE &&
22915 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22916 test "${exec_prefix}" != NONE &&
22917 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22918
22919 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22920 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22921 ## from Makefile.c can correctly provide the arg `-traditional' to the
22922 ## C preprocessor.
22923
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 yes..yes
22931 _ACEOF
22932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22933 $EGREP "yes..yes" >/dev/null 2>&1; then
22934 CPP_NEED_TRADITIONAL=no
22935 else
22936 CPP_NEED_TRADITIONAL=yes
22937 fi
22938 rm -f conftest*
22939
22940
22941 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"
22942 ac_config_commands="$ac_config_commands default"
22943 cat >confcache <<\_ACEOF
22944 # This file is a shell script that caches the results of configure
22945 # tests run on this system so they can be shared between configure
22946 # scripts and configure runs, see configure's option --config-cache.
22947 # It is not useful on other systems. If it contains results you don't
22948 # want to keep, you may remove or edit it.
22949 #
22950 # config.status only pays attention to the cache file if you give it
22951 # the --recheck option to rerun configure.
22952 #
22953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22955 # following values.
22956
22957 _ACEOF
22958
22959 # The following way of writing the cache mishandles newlines in values,
22960 # but we know of no workaround that is simple, portable, and efficient.
22961 # So, don't put newlines in cache variables' values.
22962 # Ultrix sh set writes to stderr and can't be redirected directly,
22963 # and sets the high bit in the cache file unless we assign to the vars.
22964 {
22965 (set) 2>&1 |
22966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22967 *ac_space=\ *)
22968 # `set' does not quote correctly, so add quotes (double-quote
22969 # substitution turns \\\\ into \\, and sed turns \\ into \).
22970 sed -n \
22971 "s/'/'\\\\''/g;
22972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22973 ;;
22974 *)
22975 # `set' quotes correctly as required by POSIX, so do not add quotes.
22976 sed -n \
22977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22978 ;;
22979 esac;
22980 } |
22981 sed '
22982 t clear
22983 : clear
22984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22985 t end
22986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22987 : end' >>confcache
22988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22989 if test -w $cache_file; then
22990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22991 cat confcache >$cache_file
22992 else
22993 echo "not updating unwritable cache $cache_file"
22994 fi
22995 fi
22996 rm -f confcache
22997
22998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22999 # Let make expand exec_prefix.
23000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23001
23002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23004 # trailing colons and then remove the whole line if VPATH becomes empty
23005 # (actually we leave an empty line to preserve line numbers).
23006 if test "x$srcdir" = x.; then
23007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23008 s/:*\$(srcdir):*/:/;
23009 s/:*\${srcdir}:*/:/;
23010 s/:*@srcdir@:*/:/;
23011 s/^\([^=]*=[ ]*\):*/\1/;
23012 s/:*$//;
23013 s/^[^=]*=[ ]*$//;
23014 }'
23015 fi
23016
23017 DEFS=-DHAVE_CONFIG_H
23018
23019 ac_libobjs=
23020 ac_ltlibobjs=
23021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23022 # 1. Remove the extension, and $U if already installed.
23023 ac_i=`echo "$ac_i" |
23024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23025 # 2. Add them.
23026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23028 done
23029 LIBOBJS=$ac_libobjs
23030
23031 LTLIBOBJS=$ac_ltlibobjs
23032
23033
23034
23035 : ${CONFIG_STATUS=./config.status}
23036 ac_clean_files_save=$ac_clean_files
23037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23040 cat >$CONFIG_STATUS <<_ACEOF
23041 #! $SHELL
23042 # Generated by $as_me.
23043 # Run this file to recreate the current configuration.
23044 # Compiler output produced by configure, useful for debugging
23045 # configure, is in config.log if it exists.
23046
23047 debug=false
23048 ac_cs_recheck=false
23049 ac_cs_silent=false
23050 SHELL=\${CONFIG_SHELL-$SHELL}
23051 _ACEOF
23052
23053 cat >>$CONFIG_STATUS <<\_ACEOF
23054 ## --------------------- ##
23055 ## M4sh Initialization. ##
23056 ## --------------------- ##
23057
23058 # Be Bourne compatible
23059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23060 emulate sh
23061 NULLCMD=:
23062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23063 # is contrary to our usage. Disable this feature.
23064 alias -g '${1+"$@"}'='"$@"'
23065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23066 set -o posix
23067 fi
23068 DUALCASE=1; export DUALCASE # for MKS sh
23069
23070 # Support unset when possible.
23071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23072 as_unset=unset
23073 else
23074 as_unset=false
23075 fi
23076
23077
23078 # Work around bugs in pre-3.0 UWIN ksh.
23079 $as_unset ENV MAIL MAILPATH
23080 PS1='$ '
23081 PS2='> '
23082 PS4='+ '
23083
23084 # NLS nuisances.
23085 for as_var in \
23086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23088 LC_TELEPHONE LC_TIME
23089 do
23090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23091 eval $as_var=C; export $as_var
23092 else
23093 $as_unset $as_var
23094 fi
23095 done
23096
23097 # Required to use basename.
23098 if expr a : '\(a\)' >/dev/null 2>&1; then
23099 as_expr=expr
23100 else
23101 as_expr=false
23102 fi
23103
23104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23105 as_basename=basename
23106 else
23107 as_basename=false
23108 fi
23109
23110
23111 # Name of the executable.
23112 as_me=`$as_basename "$0" ||
23113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23114 X"$0" : 'X\(//\)$' \| \
23115 X"$0" : 'X\(/\)$' \| \
23116 . : '\(.\)' 2>/dev/null ||
23117 echo X/"$0" |
23118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23119 /^X\/\(\/\/\)$/{ s//\1/; q; }
23120 /^X\/\(\/\).*/{ s//\1/; q; }
23121 s/.*/./; q'`
23122
23123
23124 # PATH needs CR, and LINENO needs CR and PATH.
23125 # Avoid depending upon Character Ranges.
23126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23129 as_cr_digits='0123456789'
23130 as_cr_alnum=$as_cr_Letters$as_cr_digits
23131
23132 # The user is always right.
23133 if test "${PATH_SEPARATOR+set}" != set; then
23134 echo "#! /bin/sh" >conf$$.sh
23135 echo "exit 0" >>conf$$.sh
23136 chmod +x conf$$.sh
23137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23138 PATH_SEPARATOR=';'
23139 else
23140 PATH_SEPARATOR=:
23141 fi
23142 rm -f conf$$.sh
23143 fi
23144
23145
23146 as_lineno_1=$LINENO
23147 as_lineno_2=$LINENO
23148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23149 test "x$as_lineno_1" != "x$as_lineno_2" &&
23150 test "x$as_lineno_3" = "x$as_lineno_2" || {
23151 # Find who we are. Look in the path if we contain no path at all
23152 # relative or not.
23153 case $0 in
23154 *[\\/]* ) as_myself=$0 ;;
23155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23156 for as_dir in $PATH
23157 do
23158 IFS=$as_save_IFS
23159 test -z "$as_dir" && as_dir=.
23160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23161 done
23162
23163 ;;
23164 esac
23165 # We did not find ourselves, most probably we were run as `sh COMMAND'
23166 # in which case we are not to be found in the path.
23167 if test "x$as_myself" = x; then
23168 as_myself=$0
23169 fi
23170 if test ! -f "$as_myself"; then
23171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23173 { (exit 1); exit 1; }; }
23174 fi
23175 case $CONFIG_SHELL in
23176 '')
23177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23178 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23179 do
23180 IFS=$as_save_IFS
23181 test -z "$as_dir" && as_dir=.
23182 for as_base in sh bash ksh sh5; do
23183 case $as_dir in
23184 /*)
23185 if ("$as_dir/$as_base" -c '
23186 as_lineno_1=$LINENO
23187 as_lineno_2=$LINENO
23188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23189 test "x$as_lineno_1" != "x$as_lineno_2" &&
23190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23191 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23192 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23193 CONFIG_SHELL=$as_dir/$as_base
23194 export CONFIG_SHELL
23195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23196 fi;;
23197 esac
23198 done
23199 done
23200 ;;
23201 esac
23202
23203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23204 # uniformly replaced by the line number. The first 'sed' inserts a
23205 # line-number line before each line; the second 'sed' does the real
23206 # work. The second script uses 'N' to pair each line-number line
23207 # with the numbered line, and appends trailing '-' during
23208 # substitution so that $LINENO is not a special case at line end.
23209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23211 sed '=' <$as_myself |
23212 sed '
23213 N
23214 s,$,-,
23215 : loop
23216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23217 t loop
23218 s,-$,,
23219 s,^['$as_cr_digits']*\n,,
23220 ' >$as_me.lineno &&
23221 chmod +x $as_me.lineno ||
23222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23224 { (exit 1); exit 1; }; }
23225
23226 # Don't try to exec as it changes $[0], causing all sort of problems
23227 # (the dirname of $[0] is not the place where we might find the
23228 # original and so on. Autoconf is especially sensible to this).
23229 . ./$as_me.lineno
23230 # Exit status is that of the last command.
23231 exit
23232 }
23233
23234
23235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23236 *c*,-n*) ECHO_N= ECHO_C='
23237 ' ECHO_T=' ' ;;
23238 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23239 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23240 esac
23241
23242 if expr a : '\(a\)' >/dev/null 2>&1; then
23243 as_expr=expr
23244 else
23245 as_expr=false
23246 fi
23247
23248 rm -f conf$$ conf$$.exe conf$$.file
23249 echo >conf$$.file
23250 if ln -s conf$$.file conf$$ 2>/dev/null; then
23251 # We could just check for DJGPP; but this test a) works b) is more generic
23252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23253 if test -f conf$$.exe; then
23254 # Don't use ln at all; we don't have any links
23255 as_ln_s='cp -p'
23256 else
23257 as_ln_s='ln -s'
23258 fi
23259 elif ln conf$$.file conf$$ 2>/dev/null; then
23260 as_ln_s=ln
23261 else
23262 as_ln_s='cp -p'
23263 fi
23264 rm -f conf$$ conf$$.exe conf$$.file
23265
23266 if mkdir -p . 2>/dev/null; then
23267 as_mkdir_p=:
23268 else
23269 test -d ./-p && rmdir ./-p
23270 as_mkdir_p=false
23271 fi
23272
23273 as_executable_p="test -f"
23274
23275 # Sed expression to map a string onto a valid CPP name.
23276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23277
23278 # Sed expression to map a string onto a valid variable name.
23279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23280
23281
23282 # IFS
23283 # We need space, tab and new line, in precisely that order.
23284 as_nl='
23285 '
23286 IFS=" $as_nl"
23287
23288 # CDPATH.
23289 $as_unset CDPATH
23290
23291 exec 6>&1
23292
23293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23294 # report actual input values of CONFIG_FILES etc. instead of their
23295 # values after options handling. Logging --version etc. is OK.
23296 exec 5>>config.log
23297 {
23298 echo
23299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23300 ## Running $as_me. ##
23301 _ASBOX
23302 } >&5
23303 cat >&5 <<_CSEOF
23304
23305 This file was extended by $as_me, which was
23306 generated by GNU Autoconf 2.59. Invocation command line was
23307
23308 CONFIG_FILES = $CONFIG_FILES
23309 CONFIG_HEADERS = $CONFIG_HEADERS
23310 CONFIG_LINKS = $CONFIG_LINKS
23311 CONFIG_COMMANDS = $CONFIG_COMMANDS
23312 $ $0 $@
23313
23314 _CSEOF
23315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23316 echo >&5
23317 _ACEOF
23318
23319 # Files that config.status was made for.
23320 if test -n "$ac_config_files"; then
23321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23322 fi
23323
23324 if test -n "$ac_config_headers"; then
23325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23326 fi
23327
23328 if test -n "$ac_config_links"; then
23329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23330 fi
23331
23332 if test -n "$ac_config_commands"; then
23333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23334 fi
23335
23336 cat >>$CONFIG_STATUS <<\_ACEOF
23337
23338 ac_cs_usage="\
23339 \`$as_me' instantiates files from templates according to the
23340 current configuration.
23341
23342 Usage: $0 [OPTIONS] [FILE]...
23343
23344 -h, --help print this help, then exit
23345 -V, --version print version number, then exit
23346 -q, --quiet do not print progress messages
23347 -d, --debug don't remove temporary files
23348 --recheck update $as_me by reconfiguring in the same conditions
23349 --file=FILE[:TEMPLATE]
23350 instantiate the configuration file FILE
23351 --header=FILE[:TEMPLATE]
23352 instantiate the configuration header FILE
23353
23354 Configuration files:
23355 $config_files
23356
23357 Configuration headers:
23358 $config_headers
23359
23360 Configuration commands:
23361 $config_commands
23362
23363 Report bugs to <bug-autoconf@gnu.org>."
23364 _ACEOF
23365
23366 cat >>$CONFIG_STATUS <<_ACEOF
23367 ac_cs_version="\\
23368 config.status
23369 configured by $0, generated by GNU Autoconf 2.59,
23370 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23371
23372 Copyright (C) 2003 Free Software Foundation, Inc.
23373 This config.status script is free software; the Free Software Foundation
23374 gives unlimited permission to copy, distribute and modify it."
23375 srcdir=$srcdir
23376 INSTALL="$INSTALL"
23377 _ACEOF
23378
23379 cat >>$CONFIG_STATUS <<\_ACEOF
23380 # If no file are specified by the user, then we need to provide default
23381 # value. By we need to know if files were specified by the user.
23382 ac_need_defaults=:
23383 while test $# != 0
23384 do
23385 case $1 in
23386 --*=*)
23387 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23388 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23389 ac_shift=:
23390 ;;
23391 -*)
23392 ac_option=$1
23393 ac_optarg=$2
23394 ac_shift=shift
23395 ;;
23396 *) # This is not an option, so the user has probably given explicit
23397 # arguments.
23398 ac_option=$1
23399 ac_need_defaults=false;;
23400 esac
23401
23402 case $ac_option in
23403 # Handling of the options.
23404 _ACEOF
23405 cat >>$CONFIG_STATUS <<\_ACEOF
23406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23407 ac_cs_recheck=: ;;
23408 --version | --vers* | -V )
23409 echo "$ac_cs_version"; exit 0 ;;
23410 --he | --h)
23411 # Conflict between --help and --header
23412 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23413 Try \`$0 --help' for more information." >&5
23414 echo "$as_me: error: ambiguous option: $1
23415 Try \`$0 --help' for more information." >&2;}
23416 { (exit 1); exit 1; }; };;
23417 --help | --hel | -h )
23418 echo "$ac_cs_usage"; exit 0 ;;
23419 --debug | --d* | -d )
23420 debug=: ;;
23421 --file | --fil | --fi | --f )
23422 $ac_shift
23423 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23424 ac_need_defaults=false;;
23425 --header | --heade | --head | --hea )
23426 $ac_shift
23427 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23428 ac_need_defaults=false;;
23429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23430 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23431 ac_cs_silent=: ;;
23432
23433 # This is an error.
23434 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23435 Try \`$0 --help' for more information." >&5
23436 echo "$as_me: error: unrecognized option: $1
23437 Try \`$0 --help' for more information." >&2;}
23438 { (exit 1); exit 1; }; } ;;
23439
23440 *) ac_config_targets="$ac_config_targets $1" ;;
23441
23442 esac
23443 shift
23444 done
23445
23446 ac_configure_extra_args=
23447
23448 if $ac_cs_silent; then
23449 exec 6>/dev/null
23450 ac_configure_extra_args="$ac_configure_extra_args --silent"
23451 fi
23452
23453 _ACEOF
23454 cat >>$CONFIG_STATUS <<_ACEOF
23455 if \$ac_cs_recheck; then
23456 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23457 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23458 fi
23459
23460 _ACEOF
23461
23462 cat >>$CONFIG_STATUS <<_ACEOF
23463 #
23464 # INIT-COMMANDS section.
23465 #
23466
23467 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23468
23469 _ACEOF
23470
23471
23472
23473 cat >>$CONFIG_STATUS <<\_ACEOF
23474 for ac_config_target in $ac_config_targets
23475 do
23476 case "$ac_config_target" in
23477 # Handling of arguments.
23478 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23479 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23480 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23481 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23482 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23483 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23484 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23485 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23486 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23487 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23488 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23489 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23492 { (exit 1); exit 1; }; };;
23493 esac
23494 done
23495
23496 # If the user did not use the arguments to specify the items to instantiate,
23497 # then the envvar interface is used. Set only those that are not.
23498 # We use the long form for the default assignment because of an extremely
23499 # bizarre bug on SunOS 4.1.3.
23500 if $ac_need_defaults; then
23501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23504 fi
23505
23506 # Have a temporary directory for convenience. Make it in the build tree
23507 # simply because there is no reason to put it here, and in addition,
23508 # creating and moving files from /tmp can sometimes cause problems.
23509 # Create a temporary directory, and hook for its removal unless debugging.
23510 $debug ||
23511 {
23512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23513 trap '{ (exit 1); exit 1; }' 1 2 13 15
23514 }
23515
23516 # Create a (secure) tmp directory for tmp files.
23517
23518 {
23519 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23520 test -n "$tmp" && test -d "$tmp"
23521 } ||
23522 {
23523 tmp=./confstat$$-$RANDOM
23524 (umask 077 && mkdir $tmp)
23525 } ||
23526 {
23527 echo "$me: cannot create a temporary directory in ." >&2
23528 { (exit 1); exit 1; }
23529 }
23530
23531 _ACEOF
23532
23533 cat >>$CONFIG_STATUS <<_ACEOF
23534
23535 #
23536 # CONFIG_FILES section.
23537 #
23538
23539 # No need to generate the scripts if there are no CONFIG_FILES.
23540 # This happens for instance when ./config.status config.h
23541 if test -n "\$CONFIG_FILES"; then
23542 # Protect against being on the right side of a sed subst in config.status.
23543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23545 s,@SHELL@,$SHELL,;t t
23546 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23547 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23548 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23549 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23550 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23551 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23552 s,@exec_prefix@,$exec_prefix,;t t
23553 s,@prefix@,$prefix,;t t
23554 s,@program_transform_name@,$program_transform_name,;t t
23555 s,@bindir@,$bindir,;t t
23556 s,@sbindir@,$sbindir,;t t
23557 s,@libexecdir@,$libexecdir,;t t
23558 s,@datadir@,$datadir,;t t
23559 s,@sysconfdir@,$sysconfdir,;t t
23560 s,@sharedstatedir@,$sharedstatedir,;t t
23561 s,@localstatedir@,$localstatedir,;t t
23562 s,@libdir@,$libdir,;t t
23563 s,@includedir@,$includedir,;t t
23564 s,@oldincludedir@,$oldincludedir,;t t
23565 s,@infodir@,$infodir,;t t
23566 s,@mandir@,$mandir,;t t
23567 s,@build_alias@,$build_alias,;t t
23568 s,@host_alias@,$host_alias,;t t
23569 s,@target_alias@,$target_alias,;t t
23570 s,@DEFS@,$DEFS,;t t
23571 s,@ECHO_C@,$ECHO_C,;t t
23572 s,@ECHO_N@,$ECHO_N,;t t
23573 s,@ECHO_T@,$ECHO_T,;t t
23574 s,@LIBS@,$LIBS,;t t
23575 s,@MAINT@,$MAINT,;t t
23576 s,@build@,$build,;t t
23577 s,@build_cpu@,$build_cpu,;t t
23578 s,@build_vendor@,$build_vendor,;t t
23579 s,@build_os@,$build_os,;t t
23580 s,@host@,$host,;t t
23581 s,@host_cpu@,$host_cpu,;t t
23582 s,@host_vendor@,$host_vendor,;t t
23583 s,@host_os@,$host_os,;t t
23584 s,@CC@,$CC,;t t
23585 s,@CFLAGS@,$CFLAGS,;t t
23586 s,@LDFLAGS@,$LDFLAGS,;t t
23587 s,@CPPFLAGS@,$CPPFLAGS,;t t
23588 s,@ac_ct_CC@,$ac_ct_CC,;t t
23589 s,@EXEEXT@,$EXEEXT,;t t
23590 s,@OBJEXT@,$OBJEXT,;t t
23591 s,@CPP@,$CPP,;t t
23592 s,@EGREP@,$EGREP,;t t
23593 s,@LN_S@,$LN_S,;t t
23594 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23595 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23596 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23597 s,@RANLIB@,$RANLIB,;t t
23598 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23599 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23600 s,@GZIP_PROG@,$GZIP_PROG,;t t
23601 s,@LIBSOUND@,$LIBSOUND,;t t
23602 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23603 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23604 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23605 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23606 s,@SET_MAKE@,$SET_MAKE,;t t
23607 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23608 s,@GTK_LIBS@,$GTK_LIBS,;t t
23609 s,@ALLOCA@,$ALLOCA,;t t
23610 s,@liblockfile@,$liblockfile,;t t
23611 s,@LIBOBJS@,$LIBOBJS,;t t
23612 s,@NEED_SETGID@,$NEED_SETGID,;t t
23613 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23614 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23615 s,@GETOPT_H@,$GETOPT_H,;t t
23616 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23617 s,@version@,$version,;t t
23618 s,@configuration@,$configuration,;t t
23619 s,@canonical@,$canonical,;t t
23620 s,@srcdir@,$srcdir,;t t
23621 s,@lispdir@,$lispdir,;t t
23622 s,@locallisppath@,$locallisppath,;t t
23623 s,@lisppath@,$lisppath,;t t
23624 s,@x_default_search_path@,$x_default_search_path,;t t
23625 s,@etcdir@,$etcdir,;t t
23626 s,@archlibdir@,$archlibdir,;t t
23627 s,@docdir@,$docdir,;t t
23628 s,@bitmapdir@,$bitmapdir,;t t
23629 s,@gamedir@,$gamedir,;t t
23630 s,@gameuser@,$gameuser,;t t
23631 s,@c_switch_system@,$c_switch_system,;t t
23632 s,@c_switch_machine@,$c_switch_machine,;t t
23633 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23634 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23635 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23636 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23637 s,@machfile@,$machfile,;t t
23638 s,@opsysfile@,$opsysfile,;t t
23639 s,@carbon_appdir@,$carbon_appdir,;t t
23640 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23641 CEOF
23642
23643 _ACEOF
23644
23645 cat >>$CONFIG_STATUS <<\_ACEOF
23646 # Split the substitutions into bite-sized pieces for seds with
23647 # small command number limits, like on Digital OSF/1 and HP-UX.
23648 ac_max_sed_lines=48
23649 ac_sed_frag=1 # Number of current file.
23650 ac_beg=1 # First line for current file.
23651 ac_end=$ac_max_sed_lines # Line after last line for current file.
23652 ac_more_lines=:
23653 ac_sed_cmds=
23654 while $ac_more_lines; do
23655 if test $ac_beg -gt 1; then
23656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23657 else
23658 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23659 fi
23660 if test ! -s $tmp/subs.frag; then
23661 ac_more_lines=false
23662 else
23663 # The purpose of the label and of the branching condition is to
23664 # speed up the sed processing (if there are no `@' at all, there
23665 # is no need to browse any of the substitutions).
23666 # These are the two extra sed commands mentioned above.
23667 (echo ':t
23668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23669 if test -z "$ac_sed_cmds"; then
23670 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23671 else
23672 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23673 fi
23674 ac_sed_frag=`expr $ac_sed_frag + 1`
23675 ac_beg=$ac_end
23676 ac_end=`expr $ac_end + $ac_max_sed_lines`
23677 fi
23678 done
23679 if test -z "$ac_sed_cmds"; then
23680 ac_sed_cmds=cat
23681 fi
23682 fi # test -n "$CONFIG_FILES"
23683
23684 _ACEOF
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23686 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23688 case $ac_file in
23689 - | *:- | *:-:* ) # input from stdin
23690 cat >$tmp/stdin
23691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23695 * ) ac_file_in=$ac_file.in ;;
23696 esac
23697
23698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$ac_file" : 'X\(//\)[^/]' \| \
23702 X"$ac_file" : 'X\(//\)$' \| \
23703 X"$ac_file" : 'X\(/\)' \| \
23704 . : '\(.\)' 2>/dev/null ||
23705 echo X"$ac_file" |
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23708 /^X\(\/\/\)$/{ s//\1/; q; }
23709 /^X\(\/\).*/{ s//\1/; q; }
23710 s/.*/./; q'`
23711 { if $as_mkdir_p; then
23712 mkdir -p "$ac_dir"
23713 else
23714 as_dir="$ac_dir"
23715 as_dirs=
23716 while test ! -d "$as_dir"; do
23717 as_dirs="$as_dir $as_dirs"
23718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$as_dir" : 'X\(//\)[^/]' \| \
23721 X"$as_dir" : 'X\(//\)$' \| \
23722 X"$as_dir" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23724 echo X"$as_dir" |
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23729 s/.*/./; q'`
23730 done
23731 test ! -n "$as_dirs" || mkdir $as_dirs
23732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23733 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23734 { (exit 1); exit 1; }; }; }
23735
23736 ac_builddir=.
23737
23738 if test "$ac_dir" != .; then
23739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23740 # A "../" for each directory in $ac_dir_suffix.
23741 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23742 else
23743 ac_dir_suffix= ac_top_builddir=
23744 fi
23745
23746 case $srcdir in
23747 .) # No --srcdir option. We are building in place.
23748 ac_srcdir=.
23749 if test -z "$ac_top_builddir"; then
23750 ac_top_srcdir=.
23751 else
23752 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23753 fi ;;
23754 [\\/]* | ?:[\\/]* ) # Absolute path.
23755 ac_srcdir=$srcdir$ac_dir_suffix;
23756 ac_top_srcdir=$srcdir ;;
23757 *) # Relative path.
23758 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23759 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23760 esac
23761
23762 # Do not use `cd foo && pwd` to compute absolute paths, because
23763 # the directories may not exist.
23764 case `pwd` in
23765 .) ac_abs_builddir="$ac_dir";;
23766 *)
23767 case "$ac_dir" in
23768 .) ac_abs_builddir=`pwd`;;
23769 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23770 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23771 esac;;
23772 esac
23773 case $ac_abs_builddir in
23774 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23775 *)
23776 case ${ac_top_builddir}. in
23777 .) ac_abs_top_builddir=$ac_abs_builddir;;
23778 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23779 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23780 esac;;
23781 esac
23782 case $ac_abs_builddir in
23783 .) ac_abs_srcdir=$ac_srcdir;;
23784 *)
23785 case $ac_srcdir in
23786 .) ac_abs_srcdir=$ac_abs_builddir;;
23787 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23788 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23789 esac;;
23790 esac
23791 case $ac_abs_builddir in
23792 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23793 *)
23794 case $ac_top_srcdir in
23795 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23796 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23797 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23798 esac;;
23799 esac
23800
23801
23802 case $INSTALL in
23803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23804 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23805 esac
23806
23807 # Let's still pretend it is `configure' which instantiates (i.e., don't
23808 # use $as_me), people would be surprised to read:
23809 # /* config.h. Generated by config.status. */
23810 if test x"$ac_file" = x-; then
23811 configure_input=
23812 else
23813 configure_input="$ac_file. "
23814 fi
23815 configure_input=$configure_input"Generated from `echo $ac_file_in |
23816 sed 's,.*/,,'` by configure."
23817
23818 # First look for the input files in the build tree, otherwise in the
23819 # src tree.
23820 ac_file_inputs=`IFS=:
23821 for f in $ac_file_in; do
23822 case $f in
23823 -) echo $tmp/stdin ;;
23824 [\\/$]*)
23825 # Absolute (can't be DOS-style, as IFS=:)
23826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23827 echo "$as_me: error: cannot find input file: $f" >&2;}
23828 { (exit 1); exit 1; }; }
23829 echo "$f";;
23830 *) # Relative
23831 if test -f "$f"; then
23832 # Build tree
23833 echo "$f"
23834 elif test -f "$srcdir/$f"; then
23835 # Source tree
23836 echo "$srcdir/$f"
23837 else
23838 # /dev/null tree
23839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23840 echo "$as_me: error: cannot find input file: $f" >&2;}
23841 { (exit 1); exit 1; }; }
23842 fi;;
23843 esac
23844 done` || { (exit 1); exit 1; }
23845
23846 if test x"$ac_file" != x-; then
23847 { echo "$as_me:$LINENO: creating $ac_file" >&5
23848 echo "$as_me: creating $ac_file" >&6;}
23849 rm -f "$ac_file"
23850 fi
23851 _ACEOF
23852 cat >>$CONFIG_STATUS <<_ACEOF
23853 sed "$ac_vpsub
23854 $extrasub
23855 _ACEOF
23856 cat >>$CONFIG_STATUS <<\_ACEOF
23857 :t
23858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23859 s,@configure_input@,$configure_input,;t t
23860 s,@srcdir@,$ac_srcdir,;t t
23861 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23862 s,@top_srcdir@,$ac_top_srcdir,;t t
23863 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23864 s,@builddir@,$ac_builddir,;t t
23865 s,@abs_builddir@,$ac_abs_builddir,;t t
23866 s,@top_builddir@,$ac_top_builddir,;t t
23867 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23868 s,@INSTALL@,$ac_INSTALL,;t t
23869 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23870 rm -f $tmp/stdin
23871 if test x"$ac_file" != x-; then
23872 mv $tmp/out $ac_file
23873 else
23874 cat $tmp/out
23875 rm -f $tmp/out
23876 fi
23877
23878 done
23879 _ACEOF
23880 cat >>$CONFIG_STATUS <<\_ACEOF
23881
23882 #
23883 # CONFIG_HEADER section.
23884 #
23885
23886 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23887 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23888 #
23889 # ac_d sets the value in "#define NAME VALUE" lines.
23890 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23891 ac_dB='[ ].*$,\1#\2'
23892 ac_dC=' '
23893 ac_dD=',;t'
23894 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23895 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23896 ac_uB='$,\1#\2define\3'
23897 ac_uC=' '
23898 ac_uD=',;t'
23899
23900 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23902 case $ac_file in
23903 - | *:- | *:-:* ) # input from stdin
23904 cat >$tmp/stdin
23905 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23907 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23909 * ) ac_file_in=$ac_file.in ;;
23910 esac
23911
23912 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23913 echo "$as_me: creating $ac_file" >&6;}
23914
23915 # First look for the input files in the build tree, otherwise in the
23916 # src tree.
23917 ac_file_inputs=`IFS=:
23918 for f in $ac_file_in; do
23919 case $f in
23920 -) echo $tmp/stdin ;;
23921 [\\/$]*)
23922 # Absolute (can't be DOS-style, as IFS=:)
23923 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23924 echo "$as_me: error: cannot find input file: $f" >&2;}
23925 { (exit 1); exit 1; }; }
23926 # Do quote $f, to prevent DOS paths from being IFS'd.
23927 echo "$f";;
23928 *) # Relative
23929 if test -f "$f"; then
23930 # Build tree
23931 echo "$f"
23932 elif test -f "$srcdir/$f"; then
23933 # Source tree
23934 echo "$srcdir/$f"
23935 else
23936 # /dev/null tree
23937 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23938 echo "$as_me: error: cannot find input file: $f" >&2;}
23939 { (exit 1); exit 1; }; }
23940 fi;;
23941 esac
23942 done` || { (exit 1); exit 1; }
23943 # Remove the trailing spaces.
23944 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23945
23946 _ACEOF
23947
23948 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23949 # `conftest.undefs', that substitutes the proper values into
23950 # config.h.in to produce config.h. The first handles `#define'
23951 # templates, and the second `#undef' templates.
23952 # And first: Protect against being on the right side of a sed subst in
23953 # config.status. Protect against being in an unquoted here document
23954 # in config.status.
23955 rm -f conftest.defines conftest.undefs
23956 # Using a here document instead of a string reduces the quoting nightmare.
23957 # Putting comments in sed scripts is not portable.
23958 #
23959 # `end' is used to avoid that the second main sed command (meant for
23960 # 0-ary CPP macros) applies to n-ary macro definitions.
23961 # See the Autoconf documentation for `clear'.
23962 cat >confdef2sed.sed <<\_ACEOF
23963 s/[\\&,]/\\&/g
23964 s,[\\$`],\\&,g
23965 t clear
23966 : clear
23967 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23968 t end
23969 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23970 : end
23971 _ACEOF
23972 # If some macros were called several times there might be several times
23973 # the same #defines, which is useless. Nevertheless, we may not want to
23974 # sort them, since we want the *last* AC-DEFINE to be honored.
23975 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23976 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23977 rm -f confdef2sed.sed
23978
23979 # This sed command replaces #undef with comments. This is necessary, for
23980 # example, in the case of _POSIX_SOURCE, which is predefined and required
23981 # on some systems where configure will not decide to define it.
23982 cat >>conftest.undefs <<\_ACEOF
23983 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23984 _ACEOF
23985
23986 # Break up conftest.defines because some shells have a limit on the size
23987 # of here documents, and old seds have small limits too (100 cmds).
23988 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23989 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23990 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23991 echo ' :' >>$CONFIG_STATUS
23992 rm -f conftest.tail
23993 while grep . conftest.defines >/dev/null
23994 do
23995 # Write a limited-size here document to $tmp/defines.sed.
23996 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23997 # Speed up: don't consider the non `#define' lines.
23998 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23999 # Work around the forget-to-reset-the-flag bug.
24000 echo 't clr' >>$CONFIG_STATUS
24001 echo ': clr' >>$CONFIG_STATUS
24002 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24003 echo 'CEOF
24004 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24005 rm -f $tmp/in
24006 mv $tmp/out $tmp/in
24007 ' >>$CONFIG_STATUS
24008 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24009 rm -f conftest.defines
24010 mv conftest.tail conftest.defines
24011 done
24012 rm -f conftest.defines
24013 echo ' fi # grep' >>$CONFIG_STATUS
24014 echo >>$CONFIG_STATUS
24015
24016 # Break up conftest.undefs because some shells have a limit on the size
24017 # of here documents, and old seds have small limits too (100 cmds).
24018 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24019 rm -f conftest.tail
24020 while grep . conftest.undefs >/dev/null
24021 do
24022 # Write a limited-size here document to $tmp/undefs.sed.
24023 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24024 # Speed up: don't consider the non `#undef'
24025 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24026 # Work around the forget-to-reset-the-flag bug.
24027 echo 't clr' >>$CONFIG_STATUS
24028 echo ': clr' >>$CONFIG_STATUS
24029 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24030 echo 'CEOF
24031 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24032 rm -f $tmp/in
24033 mv $tmp/out $tmp/in
24034 ' >>$CONFIG_STATUS
24035 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24036 rm -f conftest.undefs
24037 mv conftest.tail conftest.undefs
24038 done
24039 rm -f conftest.undefs
24040
24041 cat >>$CONFIG_STATUS <<\_ACEOF
24042 # Let's still pretend it is `configure' which instantiates (i.e., don't
24043 # use $as_me), people would be surprised to read:
24044 # /* config.h. Generated by config.status. */
24045 if test x"$ac_file" = x-; then
24046 echo "/* Generated by configure. */" >$tmp/config.h
24047 else
24048 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24049 fi
24050 cat $tmp/in >>$tmp/config.h
24051 rm -f $tmp/in
24052 if test x"$ac_file" != x-; then
24053 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24054 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24055 echo "$as_me: $ac_file is unchanged" >&6;}
24056 else
24057 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24059 X"$ac_file" : 'X\(//\)[^/]' \| \
24060 X"$ac_file" : 'X\(//\)$' \| \
24061 X"$ac_file" : 'X\(/\)' \| \
24062 . : '\(.\)' 2>/dev/null ||
24063 echo X"$ac_file" |
24064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24066 /^X\(\/\/\)$/{ s//\1/; q; }
24067 /^X\(\/\).*/{ s//\1/; q; }
24068 s/.*/./; q'`
24069 { if $as_mkdir_p; then
24070 mkdir -p "$ac_dir"
24071 else
24072 as_dir="$ac_dir"
24073 as_dirs=
24074 while test ! -d "$as_dir"; do
24075 as_dirs="$as_dir $as_dirs"
24076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24078 X"$as_dir" : 'X\(//\)[^/]' \| \
24079 X"$as_dir" : 'X\(//\)$' \| \
24080 X"$as_dir" : 'X\(/\)' \| \
24081 . : '\(.\)' 2>/dev/null ||
24082 echo X"$as_dir" |
24083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24085 /^X\(\/\/\)$/{ s//\1/; q; }
24086 /^X\(\/\).*/{ s//\1/; q; }
24087 s/.*/./; q'`
24088 done
24089 test ! -n "$as_dirs" || mkdir $as_dirs
24090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24092 { (exit 1); exit 1; }; }; }
24093
24094 rm -f $ac_file
24095 mv $tmp/config.h $ac_file
24096 fi
24097 else
24098 cat $tmp/config.h
24099 rm -f $tmp/config.h
24100 fi
24101 done
24102 _ACEOF
24103 cat >>$CONFIG_STATUS <<\_ACEOF
24104
24105 #
24106 # CONFIG_COMMANDS section.
24107 #
24108 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24109 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24110 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24111 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24112 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113 X"$ac_dest" : 'X\(//\)[^/]' \| \
24114 X"$ac_dest" : 'X\(//\)$' \| \
24115 X"$ac_dest" : 'X\(/\)' \| \
24116 . : '\(.\)' 2>/dev/null ||
24117 echo X"$ac_dest" |
24118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24120 /^X\(\/\/\)$/{ s//\1/; q; }
24121 /^X\(\/\).*/{ s//\1/; q; }
24122 s/.*/./; q'`
24123 { if $as_mkdir_p; then
24124 mkdir -p "$ac_dir"
24125 else
24126 as_dir="$ac_dir"
24127 as_dirs=
24128 while test ! -d "$as_dir"; do
24129 as_dirs="$as_dir $as_dirs"
24130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132 X"$as_dir" : 'X\(//\)[^/]' \| \
24133 X"$as_dir" : 'X\(//\)$' \| \
24134 X"$as_dir" : 'X\(/\)' \| \
24135 . : '\(.\)' 2>/dev/null ||
24136 echo X"$as_dir" |
24137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24139 /^X\(\/\/\)$/{ s//\1/; q; }
24140 /^X\(\/\).*/{ s//\1/; q; }
24141 s/.*/./; q'`
24142 done
24143 test ! -n "$as_dirs" || mkdir $as_dirs
24144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24146 { (exit 1); exit 1; }; }; }
24147
24148 ac_builddir=.
24149
24150 if test "$ac_dir" != .; then
24151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24152 # A "../" for each directory in $ac_dir_suffix.
24153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24154 else
24155 ac_dir_suffix= ac_top_builddir=
24156 fi
24157
24158 case $srcdir in
24159 .) # No --srcdir option. We are building in place.
24160 ac_srcdir=.
24161 if test -z "$ac_top_builddir"; then
24162 ac_top_srcdir=.
24163 else
24164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24165 fi ;;
24166 [\\/]* | ?:[\\/]* ) # Absolute path.
24167 ac_srcdir=$srcdir$ac_dir_suffix;
24168 ac_top_srcdir=$srcdir ;;
24169 *) # Relative path.
24170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24172 esac
24173
24174 # Do not use `cd foo && pwd` to compute absolute paths, because
24175 # the directories may not exist.
24176 case `pwd` in
24177 .) ac_abs_builddir="$ac_dir";;
24178 *)
24179 case "$ac_dir" in
24180 .) ac_abs_builddir=`pwd`;;
24181 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24182 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24183 esac;;
24184 esac
24185 case $ac_abs_builddir in
24186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24187 *)
24188 case ${ac_top_builddir}. in
24189 .) ac_abs_top_builddir=$ac_abs_builddir;;
24190 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24191 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24192 esac;;
24193 esac
24194 case $ac_abs_builddir in
24195 .) ac_abs_srcdir=$ac_srcdir;;
24196 *)
24197 case $ac_srcdir in
24198 .) ac_abs_srcdir=$ac_abs_builddir;;
24199 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24200 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24201 esac;;
24202 esac
24203 case $ac_abs_builddir in
24204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24205 *)
24206 case $ac_top_srcdir in
24207 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24208 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24209 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24210 esac;;
24211 esac
24212
24213
24214 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24215 echo "$as_me: executing $ac_dest commands" >&6;}
24216 case $ac_dest in
24217 default )
24218
24219 ### Make the necessary directories, if they don't exist.
24220 for dir in etc lisp ; do
24221 test -d ${dir} || mkdir ${dir}
24222 done
24223
24224 # Build src/Makefile from ${srcdir}/src/Makefile.c
24225 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24226 # This must be done after src/config.h is built, since we rely on that file.
24227
24228 # Now get this: Some word that is part of the ${srcdir} directory name
24229 # or the ${configuration} value might, just might, happen to be an
24230 # identifier like `sun4' or `i386' or something, and be predefined by
24231 # the C preprocessor to some helpful value like 1, or maybe the empty
24232 # string. Needless to say consequent macro substitutions are less
24233 # than conducive to the makefile finding the correct directory.
24234 undefs="`echo $top_srcdir $configuration $canonical |
24235 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24236 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24237 `"
24238
24239 echo creating src/epaths.h
24240 ${MAKE-make} epaths-force
24241
24242 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24243 # `..' to `. .' unless invoked with -traditional
24244
24245 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24246 CPPFLAGS="$CPPFLAGS -traditional"
24247 fi
24248
24249 echo creating lib-src/Makefile
24250 ( cd lib-src
24251 rm -f junk.c junk1.c junk2.c
24252 sed -e '/start of cpp stuff/q' \
24253 < Makefile.c > junk1.c
24254 sed -e '1,/start of cpp stuff/d'\
24255 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24256 < Makefile.c > junk.c
24257 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24258 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24259 cat junk1.c junk2.c > Makefile.new
24260 rm -f junk.c junk1.c junk2.c
24261 chmod 444 Makefile.new
24262 mv -f Makefile.new Makefile
24263 )
24264
24265 echo creating src/Makefile
24266 ( cd src
24267 rm -f junk.c junk1.c junk2.c
24268 sed -e '/start of cpp stuff/q' \
24269 < Makefile.c > junk1.c
24270 sed -e '1,/start of cpp stuff/d'\
24271 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24272 < Makefile.c > junk.c
24273 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24274 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24275 cat junk1.c junk2.c > Makefile.new
24276 rm -f junk.c junk1.c junk2.c
24277 chmod 444 Makefile.new
24278 mv -f Makefile.new Makefile
24279 )
24280
24281 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24282 echo creating src/.gdbinit
24283 echo source $srcdir/src/.gdbinit > src/.gdbinit
24284 fi
24285
24286 # This is how we know whether to re-run configure in certain cases.
24287 touch src/config.stamp
24288
24289 ;;
24290 esac
24291 done
24292 _ACEOF
24293
24294 cat >>$CONFIG_STATUS <<\_ACEOF
24295
24296 { (exit 0); exit 0; }
24297 _ACEOF
24298 chmod +x $CONFIG_STATUS
24299 ac_clean_files=$ac_clean_files_save
24300
24301
24302 # configure is writing to config.log, and then calls config.status.
24303 # config.status does its own redirection, appending to config.log.
24304 # Unfortunately, on DOS this fails, as config.log is still kept open
24305 # by configure, so config.status won't be able to write to it; its
24306 # output is simply discarded. So we exec the FD to /dev/null,
24307 # effectively closing config.log, so it can be properly (re)opened and
24308 # appended to by config.status. When coming back to configure, we
24309 # need to make the FD available again.
24310 if test "$no_create" != yes; then
24311 ac_cs_success=:
24312 ac_config_status_args=
24313 test "$silent" = yes &&
24314 ac_config_status_args="$ac_config_status_args --quiet"
24315 exec 5>/dev/null
24316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24317 exec 5>>config.log
24318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24319 # would make configure fail if this is the last instruction.
24320 $ac_cs_success || { (exit 1); exit 1; }
24321 fi
24322
24323