Regenerated.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1723 ;;
1724
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1729
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1733
1734 fi
1735
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1752 ;;
1753
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1766 ;;
1767
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1775 ;;
1776
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1780 ;;
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1785 ;;
1786
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1802 ;;
1803
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1812 ;;
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1815 ;;
1816
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1832 ;;
1833
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1836 ;;
1837
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1840 ;;
1841
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1845 ;;
1846
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1850 ;;
1851
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1855 ;;
1856
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1860 ;;
1861
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1865 ;;
1866
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1870 ;;
1871
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1875 ;;
1876
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1880 ;;
1881
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1883
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1890 ;;
1891
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1899 ;;
1900
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1904 ;;
1905
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1911 ;;
1912
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1916 ;;
1917
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1921 ;;
1922
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1931 ;;
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1936 ;;
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1939 ;;
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1942 ;;
1943
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1949 ;;
1950
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1954 ;;
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1957 ;;
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1960 ;;
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1963 ;;
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1966 ;;
1967
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1976 fi
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1981 fi
1982 fi
1983 ;;
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1990 ;;
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1993 ;;
1994
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1998 ;;
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2001 ;;
2002
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2006 ;;
2007
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2011 ;;
2012
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2015
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2019 ;;
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2022 ;;
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2025 ;;
2026
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2036 ;;
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2040 ;;
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2045 ;;
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2049 ;;
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2052 ;;
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2056 ;;
2057
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2061 ;;
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2078 ;;
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2081 ;;
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2084 ;;
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2087 ;;
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2090 ;;
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2093 ;;
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 ;;
2097
2098 hppa*-*-linux-gnu* )
2099 machine=hp800 opsys=gnu-linux
2100 ;;
2101
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux* )
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2109 *.08.* ) machine=hp800 opsys=hpux8 ;;
2110 *.09.* ) machine=hp800 opsys=hpux9 ;;
2111 *) machine=hp800 opsys=hpux10 ;;
2112 esac
2113 ;;
2114 hppa*-*-nextstep* )
2115 machine=hp800 opsys=nextstep
2116 ;;
2117
2118 ## Orion machines
2119 orion-orion-bsd* )
2120 machine=orion opsys=bsd4-2
2121 ;;
2122 clipper-orion-bsd* )
2123 machine=orion105 opsys=bsd4-2
2124 ;;
2125
2126 ## IBM machines
2127 i[3456]86-ibm-aix1.1* )
2128 machine=ibmps2-aix opsys=usg5-2-2
2129 ;;
2130 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2131 machine=ibmps2-aix opsys=usg5-3
2132 ;;
2133 i370-ibm-aix*)
2134 machine=ibm370aix opsys=usg5-3
2135 ;;
2136 s390-*-linux-gnu* )
2137 machine=ibms390 opsys=gnu-linux
2138 ;;
2139 s390x-*-linux-gnu* )
2140 machine=ibms390x opsys=gnu-linux
2141 ;;
2142 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2143 machine=ibmrs6000 opsys=aix3-1
2144 ;;
2145 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2146 machine=ibmrs6000 opsys=aix3-2-5
2147 ;;
2148 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2149 machine=ibmrs6000 opsys=aix4-1
2150 ;;
2151 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2152 machine=ibmrs6000 opsys=aix4-2
2153 ;;
2154 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2155 machine=ibmrs6000 opsys=aix4-2
2156 ;;
2157 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2158 machine=ibmrs6000 opsys=aix4
2159 ;;
2160 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2161 machine=ibmrs6000 opsys=aix4-1
2162 ;;
2163 rs6000-ibm-aix* | powerpc-ibm-aix* )
2164 machine=ibmrs6000 opsys=aix3-2
2165 ;;
2166 romp-ibm-bsd4.3* )
2167 machine=ibmrt opsys=bsd4-3
2168 ;;
2169 romp-ibm-bsd4.2* )
2170 machine=ibmrt opsys=bsd4-2
2171 ;;
2172 romp-ibm-aos4.3* )
2173 machine=ibmrt opsys=bsd4-3
2174 ;;
2175 romp-ibm-aos4.2* )
2176 machine=ibmrt opsys=bsd4-2
2177 ;;
2178 romp-ibm-aos* )
2179 machine=ibmrt opsys=bsd4-3
2180 ;;
2181 romp-ibm-bsd* )
2182 machine=ibmrt opsys=bsd4-3
2183 ;;
2184 romp-ibm-aix* )
2185 machine=ibmrt-aix opsys=usg5-2-2
2186 ;;
2187
2188 ## Integrated Solutions `Optimum V'
2189 m68*-isi-bsd4.2* )
2190 machine=isi-ov opsys=bsd4-2
2191 ;;
2192 m68*-isi-bsd4.3* )
2193 machine=isi-ov opsys=bsd4-3
2194 ;;
2195
2196 ## Intel 386 machines where we do care about the manufacturer
2197 i[3456]86-intsys-sysv* )
2198 machine=is386 opsys=usg5-2-2
2199 ;;
2200
2201 ## Prime EXL
2202 i[3456]86-prime-sysv* )
2203 machine=i386 opsys=usg5-3
2204 ;;
2205
2206 ## Sequent Symmetry running Dynix
2207 i[3456]86-sequent-bsd* )
2208 machine=symmetry opsys=bsd4-3
2209 ;;
2210
2211 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2212 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2213 machine=sequent-ptx opsys=ptx4
2214 NON_GNU_CPP=/lib/cpp
2215 ;;
2216
2217 ## Sequent Symmetry running DYNIX/ptx
2218 ## Use the old cpp rather than the newer ANSI one.
2219 i[3456]86-sequent-ptx* )
2220 machine=sequent-ptx opsys=ptx
2221 NON_GNU_CPP="/lib/cpp"
2222 ;;
2223
2224 ## ncr machine running svr4.3.
2225 i[3456]86-ncr-sysv4.3 )
2226 machine=ncr386 opsys=usg5-4-3
2227 ;;
2228
2229 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2230 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2231 i[3456]86-ncr-sysv* )
2232 machine=ncr386 opsys=usg5-4-2
2233 ;;
2234
2235 ## Intel Paragon OSF/1
2236 i860-intel-osf1* )
2237 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2238 ;;
2239
2240 ## Intel 860
2241 i860-*-sysv4* )
2242 machine=i860 opsys=usg5-4
2243 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2244 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2245 ;;
2246
2247 ## Macintosh PowerPC
2248 powerpc*-*-linux-gnu* )
2249 machine=macppc opsys=gnu-linux
2250 ;;
2251
2252 ## Masscomp machines
2253 m68*-masscomp-rtu* )
2254 machine=masscomp opsys=rtu
2255 ;;
2256
2257 ## Megatest machines
2258 m68*-megatest-bsd* )
2259 machine=mega68 opsys=bsd4-2
2260 ;;
2261
2262 ## Workstations sold by MIPS
2263 ## This is not necessarily all workstations using the MIPS processor -
2264 ## Irises are produced by SGI, and DECstations by DEC.
2265
2266 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2267 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2268 ## it gives for choosing between the alternatives seems to be "Use
2269 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2270 ## the BSD world." I'll assume that these are instructions for
2271 ## handling two odd situations, and that every other situation
2272 ## should use mips.h and usg5-2-2, they being listed first.
2273 mips-mips-usg* )
2274 machine=mips4
2275 ## Fall through to the general code at the bottom to decide on the OS.
2276 ;;
2277 mips-mips-riscos4* )
2278 machine=mips4 opsys=bsd4-3
2279 NON_GNU_CC="cc -systype bsd43"
2280 NON_GNU_CPP="cc -systype bsd43 -E"
2281 ;;
2282 mips-mips-riscos5* )
2283 machine=mips4 opsys=riscos5
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2286 ;;
2287 mips-mips-bsd* )
2288 machine=mips opsys=bsd4-3
2289 ;;
2290 mips-mips-* )
2291 machine=mips opsys=usg5-2-2
2292 ;;
2293
2294 ## NeXT
2295 m68*-next-* | m68k-*-nextstep* )
2296 machine=m68k opsys=nextstep
2297 ;;
2298
2299 ## The complete machine from National Semiconductor
2300 ns32k-ns-genix* )
2301 machine=ns32000 opsys=usg5-2
2302 ;;
2303
2304 ## NCR machines
2305 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2306 machine=tower32 opsys=usg5-2-2
2307 ;;
2308 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2309 machine=tower32v3 opsys=usg5-3
2310 ;;
2311
2312 ## NEC EWS4800
2313 mips-nec-sysv4*)
2314 machine=ews4800 opsys=ux4800
2315 ;;
2316
2317 ## Nixdorf Targon 31
2318 m68*-nixdorf-sysv* )
2319 machine=targon31 opsys=usg5-2-2
2320 ;;
2321
2322 ## Nu (TI or LMI)
2323 m68*-nu-sysv* )
2324 machine=nu opsys=usg5-2
2325 ;;
2326
2327 ## Plexus
2328 m68*-plexus-sysv* )
2329 machine=plexus opsys=usg5-2
2330 ;;
2331
2332 ## Pyramid machines
2333 ## I don't really have any idea what sort of processor the Pyramid has,
2334 ## so I'm assuming it is its own architecture.
2335 pyramid-pyramid-bsd* )
2336 machine=pyramid opsys=bsd4-2
2337 ;;
2338
2339 ## Sequent Balance
2340 ns32k-sequent-bsd4.2* )
2341 machine=sequent opsys=bsd4-2
2342 ;;
2343 ns32k-sequent-bsd4.3* )
2344 machine=sequent opsys=bsd4-3
2345 ;;
2346
2347 ## Siemens Nixdorf
2348 mips-siemens-sysv* | mips-sni-sysv*)
2349 machine=mips-siemens opsys=usg5-4
2350 NON_GNU_CC=/usr/ccs/bin/cc
2351 NON_GNU_CPP=/usr/ccs/lib/cpp
2352 ;;
2353
2354 ## Silicon Graphics machines
2355 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2356 m68*-sgi-iris3.5* )
2357 machine=irist opsys=iris3-5
2358 ;;
2359 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2360 machine=irist opsys=iris3-6
2361 ;;
2362 ## Iris 4D
2363 mips-sgi-irix3* )
2364 machine=iris4d opsys=irix3-3
2365 ;;
2366 mips-sgi-irix4* )
2367 machine=iris4d opsys=irix4-0
2368 ;;
2369 mips-sgi-irix6.5 )
2370 machine=iris4d opsys=irix6-5
2371 # Without defining _LANGUAGE_C, things get masked out in the headers
2372 # so that, for instance, grepping for `free' in stdlib.h fails and
2373 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2374 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2375 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2376 ;;
2377 mips-sgi-irix6* )
2378 machine=iris4d opsys=irix6-0
2379 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2380 # but presumably it does no harm.
2381 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2382 # -32 probably isn't necessary in later v.6s -- anyone know which?
2383 NON_GCC_TEST_OPTIONS=-32
2384 ;;
2385 mips-sgi-irix5.[01]* )
2386 machine=iris4d opsys=irix5-0
2387 ;;
2388 mips-sgi-irix5* | mips-sgi-irix* )
2389 machine=iris4d opsys=irix5-2
2390 ;;
2391
2392 ## SONY machines
2393 m68*-sony-bsd4.2* )
2394 machine=news opsys=bsd4-2
2395 ;;
2396 m68*-sony-bsd4.3* )
2397 machine=news opsys=bsd4-3
2398 ;;
2399 m68*-sony-newsos3* | m68*-sony-news3*)
2400 machine=news opsys=bsd4-3
2401 ;;
2402 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2403 machine=news-risc opsys=bsd4-3
2404 ;;
2405 mips-sony-newsos6* )
2406 machine=news-r6 opsys=newsos6
2407 ;;
2408 mips-sony-news* )
2409 machine=news-risc opsys=newsos5
2410 ;;
2411
2412 ## Stride
2413 m68*-stride-sysv* )
2414 machine=stride opsys=usg5-2
2415 ;;
2416
2417 ## Suns
2418 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2419 machine=sparc opsys=gnu-linux
2420 ;;
2421
2422 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2423 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2424 | rs6000-*-solaris2*)
2425 case "${canonical}" in
2426 m68*-sunos1* ) machine=sun1 ;;
2427 m68*-sunos2* ) machine=sun2 ;;
2428 m68* ) machine=sun3 ;;
2429 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2430 i[3456]86-*-* ) machine=intel386 ;;
2431 powerpcle* ) machine=powerpcle ;;
2432 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2433 sparc* ) machine=sparc ;;
2434 * ) unported=yes ;;
2435 esac
2436 case "${canonical}" in
2437 ## The Sun386 didn't get past 4.0.
2438 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2439 *-sunos4.0* ) opsys=sunos4-0 ;;
2440 *-sunos4.1.[3-9]*noshare )
2441 ## This name is sunos413 instead of sunos4-1-3
2442 ## to avoid a file name conflict on MSDOS.
2443 opsys=sunos413
2444 NON_GNU_CPP=/usr/lib/cpp
2445 NON_GCC_TEST_OPTIONS=-Bstatic
2446 GCC_TEST_OPTIONS=-static
2447 ;;
2448 *-sunos4.1.[3-9]* | *-sunos4shr*)
2449 opsys=sunos4shr
2450 NON_GNU_CPP=/usr/lib/cpp
2451 ;;
2452 *-sunos4* | *-sunos )
2453 opsys=sunos4-1
2454 NON_GCC_TEST_OPTIONS=-Bstatic
2455 GCC_TEST_OPTIONS=-static
2456 ;;
2457 *-sunos5.3* | *-solaris2.3* )
2458 opsys=sol2-3
2459 NON_GNU_CPP=/usr/ccs/lib/cpp
2460 ;;
2461 *-sunos5.4* | *-solaris2.4* )
2462 opsys=sol2-4
2463 NON_GNU_CPP=/usr/ccs/lib/cpp
2464 RANLIB="ar -ts"
2465 ;;
2466 *-sunos5.5* | *-solaris2.5* )
2467 opsys=sol2-5
2468 NON_GNU_CPP=/usr/ccs/lib/cpp
2469 RANLIB="ar -ts"
2470 ;;
2471 *-sunos5.6* | *-solaris2.6* )
2472 opsys=sol2-6
2473 NON_GNU_CPP=/usr/ccs/lib/cpp
2474 RANLIB="ar -ts"
2475 ;;
2476 *-sunos5* | *-solaris* )
2477 opsys=sol2-6
2478 NON_GNU_CPP=/usr/ccs/lib/cpp
2479 ;;
2480 * ) opsys=bsd4-2 ;;
2481 esac
2482 ## Watch out for a compiler that we know will not work.
2483 case "${canonical}" in
2484 *-solaris* | *-sunos5* )
2485 if [ "x$CC" = x/usr/ucb/cc ]; then
2486 ## /usr/ucb/cc doesn't work;
2487 ## we should find some other compiler that does work.
2488 unset CC
2489 fi
2490 ;;
2491 *) ;;
2492 esac
2493 ;;
2494 sparc-*-nextstep* )
2495 machine=sparc opsys=nextstep
2496 ;;
2497
2498 ## Tadpole 68k
2499 m68*-tadpole-sysv* )
2500 machine=tad68k opsys=usg5-3
2501 ;;
2502
2503 ## Tahoe machines
2504 tahoe-tahoe-bsd4.2* )
2505 machine=tahoe opsys=bsd4-2
2506 ;;
2507 tahoe-tahoe-bsd4.3* )
2508 machine=tahoe opsys=bsd4-3
2509 ;;
2510
2511 ## Tandem Integrity S2
2512 mips-tandem-sysv* )
2513 machine=tandem-s2 opsys=usg5-3
2514 ;;
2515
2516 ## Tektronix XD88
2517 m88k-tektronix-sysv3* )
2518 machine=tekxd88 opsys=usg5-3
2519 ;;
2520
2521 ## Tektronix 16000 box (6130?)
2522 ns16k-tektronix-bsd* )
2523 machine=ns16000 opsys=bsd4-2
2524 ;;
2525 ## Tektronix 4300
2526 ## src/m/tek4300.h hints that this is a m68k machine.
2527 m68*-tektronix-bsd* )
2528 machine=tek4300 opsys=bsd4-3
2529 ;;
2530
2531 ## Titan P2 or P3
2532 ## We seem to have lost the machine-description file titan.h!
2533 titan-titan-sysv* )
2534 machine=titan opsys=usg5-3
2535 ;;
2536
2537 ## Ustation E30 (SS5E)
2538 m68*-unisys-uniplus* )
2539 machine=ustation opsystem=unipl5-2
2540 ;;
2541
2542 ## Vaxen.
2543 vax-dec-* )
2544 machine=vax
2545 case "${canonical}" in
2546 *-bsd4.1* ) opsys=bsd4-1 ;;
2547 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2548 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2549 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2550 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2551 *-vms* ) opsys=vms ;;
2552 * ) unported=yes
2553 esac
2554 ;;
2555
2556 ## Whitechapel MG1
2557 ns16k-whitechapel-* )
2558 machine=mg1
2559 ## We don't know what sort of OS runs on these; we'll let the
2560 ## operating system guessing code below try.
2561 ;;
2562
2563 ## Wicat
2564 m68*-wicat-sysv* )
2565 machine=wicat opsys=usg5-2
2566 ;;
2567
2568 ## IA-64
2569 ia64*-*-linux* )
2570 machine=ia64 opsys=gnu-linux
2571 ;;
2572
2573 ## Intel 386 machines where we don't care about the manufacturer
2574 i[3456]86-*-* )
2575 machine=intel386
2576 case "${canonical}" in
2577 *-cygwin ) opsys=cygwin ;;
2578 *-darwin* ) opsys=darwin
2579 CPP="${CC-cc} -E -no-cpp-precomp"
2580 ;;
2581 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2582 *-isc2.2* ) opsys=isc2-2 ;;
2583 *-isc4.0* ) opsys=isc4-0 ;;
2584 *-isc4.* ) opsys=isc4-1
2585 GCC_TEST_OPTIONS=-posix
2586 NON_GCC_TEST_OPTIONS=-Xp
2587 ;;
2588 *-isc* ) opsys=isc3-0 ;;
2589 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2590 *-esix* ) opsys=esix ;;
2591 *-xenix* ) opsys=xenix ;;
2592 *-linux-gnu* ) opsys=gnu-linux ;;
2593 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2594 *-sco3.2v5* ) opsys=sco5
2595 NON_GNU_CPP=/lib/cpp
2596 # Prevent -belf from being passed to $CPP.
2597 # /lib/cpp does not accept it.
2598 OVERRIDE_CPPFLAGS=" "
2599 ;;
2600 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2601 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-386bsd* ) opsys=386bsd ;;
2604 *-nextstep* ) opsys=nextstep ;;
2605 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 esac
2607 ;;
2608
2609 ## m68k Linux-based GNU system
2610 m68k-*-linux-gnu* )
2611 machine=m68k opsys=gnu-linux
2612 ;;
2613
2614 ## Mips Linux-based GNU system
2615 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2616 machine=mips opsys=gnu-linux
2617 ;;
2618
2619 ## UXP/DS
2620 sparc-fujitsu-sysv4* )
2621 machine=sparc opsys=uxpds
2622 NON_GNU_CPP=/usr/ccs/lib/cpp
2623 RANLIB="ar -ts"
2624 ;;
2625
2626 ## UXP/V
2627 f301-fujitsu-uxpv4.1)
2628 machine=f301 opsys=uxpv
2629 ;;
2630
2631 ## Darwin / Mac OS X
2632 powerpc-apple-darwin* )
2633 machine=powermac opsys=darwin
2634 # Define CPP as follows to make autoconf work correctly.
2635 CPP="${CC-cc} -E -no-cpp-precomp"
2636 # Use fink packages if available.
2637 if test -d /sw/include && test -d /sw/lib; then
2638 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2639 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2640 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2641 fi
2642 ;;
2643
2644 ## AMD x86-64 Linux-based GNU system
2645 x86_64-*-linux-gnu* )
2646 machine=amdx86-64 opsys=gnu-linux
2647 ;;
2648
2649 * )
2650 unported=yes
2651 ;;
2652 esac
2653
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2659 ### above.
2660 if test x"${opsys}" = x; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys=gnu ;;
2663 *-bsd4.[01] ) opsys=bsd4-1 ;;
2664 *-bsd4.2 ) opsys=bsd4-2 ;;
2665 *-bsd4.3 ) opsys=bsd4-3 ;;
2666 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2667 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2668 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2669 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2670 *-sysv4.2uw* ) opsys=unixware ;;
2671 *-sysv5uw* ) opsys=unixware ;;
2672 *-sysv5OpenUNIX* ) opsys=unixware ;;
2673 *-sysv4.1* | *-sysvr4.1* )
2674 NON_GNU_CPP=/usr/lib/cpp
2675 opsys=usg5-4 ;;
2676 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2677 if [ x$NON_GNU_CPP = x ]; then
2678 if [ -f /usr/ccs/lib/cpp ]; then
2679 NON_GNU_CPP=/usr/ccs/lib/cpp
2680 else
2681 NON_GNU_CPP=/lib/cpp
2682 fi
2683 fi
2684 opsys=usg5-4-2 ;;
2685 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2686 * )
2687 unported=yes
2688 ;;
2689 esac
2690 fi
2691
2692
2693
2694 if test $unported = yes; then
2695 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2696 Check \`etc/MACHINES' for recognized configuration names." >&5
2697 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2699 { (exit 1); exit 1; }; }
2700 fi
2701
2702 machfile="m/${machine}.h"
2703 opsysfile="s/${opsys}.h"
2704
2705
2706 #### Choose a compiler.
2707 test -n "$CC" && cc_specified=yes
2708
2709 # Save the value of CFLAGS that the user specified.
2710 SPECIFIED_CFLAGS="$CFLAGS"
2711
2712 case ${with_gcc} in
2713 "yes" ) CC="gcc" GCC=yes ;;
2714 "no" ) : ${CC=cc} ;;
2715 * )
2716 esac
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6
2753 else
2754 echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2756 fi
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760 ac_ct_CC=$CC
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC="gcc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796 CC=$ac_ct_CC
2797 else
2798 CC="$ac_cv_prog_CC"
2799 fi
2800
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}cc; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2833 else
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 fi
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840 ac_ct_CC=$CC
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc; ac_word=$2
2843 echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC="cc"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864
2865 fi
2866 fi
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6
2871 else
2872 echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2874 fi
2875
2876 CC=$ac_ct_CC
2877 else
2878 CC="$ac_cv_prog_CC"
2879 fi
2880
2881 fi
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 fi
2923 fi
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929 echo "${ECHO_T}$CC" >&6
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 fi
2934
2935 fi
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl
2939 do
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2970 else
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 fi
2974
2975 test -n "$CC" && break
2976 done
2977 fi
2978 if test -z "$CC"; then
2979 ac_ct_CC=$CC
2980 for ac_prog in cl
2981 do
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005
3006 fi
3007 fi
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016
3017 test -n "$ac_ct_CC" && break
3018 done
3019
3020 CC=$ac_ct_CC
3021 fi
3022
3023 fi
3024
3025
3026 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3031
3032 # Provide some information about the compiler.
3033 echo "$as_me:$LINENO:" \
3034 "checking for C compiler version" >&5
3035 ac_compiler=`set X $ac_compile; echo $2`
3036 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3037 (eval $ac_compiler --version </dev/null >&5) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3042 (eval $ac_compiler -v </dev/null >&5) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3047 (eval $ac_compiler -V </dev/null >&5) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 ac_clean_files_save=$ac_clean_files
3068 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3071 # of exeext.
3072 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3074 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3076 (eval $ac_link_default) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 # Find the output, starting from the most likely. This scheme is
3081 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3082 # resort.
3083
3084 # Be careful to initialize this variable, since it used to be cached.
3085 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3086 ac_cv_exeext=
3087 # b.out is created by i960 compilers.
3088 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3089 do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3093 ;;
3094 conftest.$ac_ext )
3095 # This is the source file.
3096 ;;
3097 [ab].out )
3098 # We found the default executable, but exeext='' is most
3099 # certainly right.
3100 break;;
3101 *.* )
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # FIXME: I believe we export ac_cv_exeext for Libtool,
3104 # but it would be cool to find out if it's true. Does anybody
3105 # maintain Libtool? --akim.
3106 export ac_cv_exeext
3107 break;;
3108 * )
3109 break;;
3110 esac
3111 done
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3117 See \`config.log' for more details." >&5
3118 echo "$as_me: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&2;}
3120 { (exit 77); exit 77; }; }
3121 fi
3122
3123 ac_exeext=$ac_cv_exeext
3124 echo "$as_me:$LINENO: result: $ac_file" >&5
3125 echo "${ECHO_T}$ac_file" >&6
3126
3127 # Check the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try='./$ac_file'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 cross_compiling=no
3141 else
3142 if test "$cross_compiling" = maybe; then
3143 cross_compiling=yes
3144 else
3145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: cannot run C compiled programs.
3149 If you meant to cross compile, use \`--host'.
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3152 fi
3153 fi
3154 fi
3155 echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3157
3158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 # Check the compiler produces executables we can run. If not, either
3161 # the compiler is broken, or we cross compile.
3162 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3164 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3165 echo "${ECHO_T}$cross_compiling" >&6
3166
3167 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 # `rm'.
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 export ac_cv_exeext
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195
3196 rm -f conftest$ac_cv_exeext
3197 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3198 echo "${ECHO_T}$ac_cv_exeext" >&6
3199
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3202 ac_exeext=$EXEEXT
3203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3205 if test "${ac_cv_objext+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.o conftest.obj
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; then
3229 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233 break;;
3234 esac
3235 done
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248 fi
3249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3250 echo "${ECHO_T}$ac_cv_objext" >&6
3251 OBJEXT=$ac_cv_objext
3252 ac_objext=$OBJEXT
3253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268 #ifndef __GNUC__
3269 choke me
3270 #endif
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_compiler_gnu=yes
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 ac_compiler_gnu=no
3304 fi
3305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3307
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS=${CFLAGS+set}
3313 ac_save_CFLAGS=$CFLAGS
3314 CFLAGS="-g"
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326
3327 int
3328 main ()
3329 {
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag"
3345 || 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"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_prog_cc_stdc=$ac_arg
3475 break
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 fi
3481 rm -f conftest.err conftest.$ac_objext
3482 done
3483 rm -f conftest.$ac_ext conftest.$ac_objext
3484 CC=$ac_save_CC
3485
3486 fi
3487
3488 case "x$ac_cv_prog_cc_stdc" in
3489 x|xno)
3490 echo "$as_me:$LINENO: result: none needed" >&5
3491 echo "${ECHO_T}none needed" >&6 ;;
3492 *)
3493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3495 CC="$CC $ac_cv_prog_cc_stdc" ;;
3496 esac
3497
3498 # Some people use a C++ compiler to compile C. Since we use `exit',
3499 # in C++ we need to declare it. In case someone uses the same compiler
3500 # for both compiling C and C++ we need to have the C++ compiler decide
3501 # the declaration of exit, since it's the most demanding environment.
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #ifndef __cplusplus
3504 choke me
3505 #endif
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 for ac_declaration in \
3530 '' \
3531 'extern "C" void std::exit (int) throw (); using std::exit;' \
3532 'extern "C" void std::exit (int); using std::exit;' \
3533 'extern "C" void exit (int) throw ();' \
3534 'extern "C" void exit (int);' \
3535 'void exit (int);'
3536 do
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 $ac_declaration
3544 #include <stdlib.h>
3545 int
3546 main ()
3547 {
3548 exit (42);
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 :
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 continue
3581 fi
3582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 $ac_declaration
3590 int
3591 main ()
3592 {
3593 exit (42);
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 break
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 fi
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 done
3628 rm -f conftest*
3629 if test -n "$ac_declaration"; then
3630 echo '#ifdef __cplusplus' >>confdefs.h
3631 echo $ac_declaration >>confdefs.h
3632 echo '#endif' >>confdefs.h
3633 fi
3634
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 fi
3640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_ext=c
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648 # On Suns, sometimes $CPP names a directory.
3649 if test -n "$CPP" && test -d "$CPP"; then
3650 CPP=
3651 fi
3652
3653 #### Some systems specify a CPP to use unless we are using GCC.
3654 #### Now that we know whether we are using GCC, we can decide whether
3655 #### to use that one.
3656 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3657 then
3658 CPP="$NON_GNU_CPP"
3659 fi
3660
3661 #### Some systems specify a CC to use unless we are using GCC.
3662 #### Now that we know whether we are using GCC, we can decide whether
3663 #### to use that one.
3664 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3665 test x$cc_specified != xyes
3666 then
3667 CC="$NON_GNU_CC"
3668 fi
3669
3670 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3671 then
3672 CC="$CC $GCC_TEST_OPTIONS"
3673 fi
3674
3675 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3676 then
3677 CC="$CC $NON_GCC_TEST_OPTIONS"
3678 fi
3679
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3687 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3688 # On Suns, sometimes $CPP names a directory.
3689 if test -n "$CPP" && test -d "$CPP"; then
3690 CPP=
3691 fi
3692 if test -z "$CPP"; then
3693 if test "${ac_cv_prog_CPP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 # Double quotes because CPP needs to be expanded
3697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3698 do
3699 ac_preproc_ok=false
3700 for ac_c_preproc_warn_flag in '' yes
3701 do
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 Syntax error
3720 _ACEOF
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3734 fi
3735 else
3736 ac_cpp_err=yes
3737 fi
3738 if test -z "$ac_cpp_err"; then
3739 :
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 # Broken: fails on valid input.
3745 continue
3746 fi
3747 rm -f conftest.err conftest.$ac_ext
3748
3749 # OK, works on sane cases. Now check whether non-existent headers
3750 # can be detected and how.
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <ac_nonexistent.h>
3758 _ACEOF
3759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null; then
3767 if test -s conftest.err; then
3768 ac_cpp_err=$ac_c_preproc_warn_flag
3769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3770 else
3771 ac_cpp_err=
3772 fi
3773 else
3774 ac_cpp_err=yes
3775 fi
3776 if test -z "$ac_cpp_err"; then
3777 # Broken: success on invalid input.
3778 continue
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3782
3783 # Passes both tests.
3784 ac_preproc_ok=:
3785 break
3786 fi
3787 rm -f conftest.err conftest.$ac_ext
3788
3789 done
3790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3791 rm -f conftest.err conftest.$ac_ext
3792 if $ac_preproc_ok; then
3793 break
3794 fi
3795
3796 done
3797 ac_cv_prog_CPP=$CPP
3798
3799 fi
3800 CPP=$ac_cv_prog_CPP
3801 else
3802 ac_cv_prog_CPP=$CPP
3803 fi
3804 echo "$as_me:$LINENO: result: $CPP" >&5
3805 echo "${ECHO_T}$CPP" >&6
3806 ac_preproc_ok=false
3807 for ac_c_preproc_warn_flag in '' yes
3808 do
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #ifdef __STDC__
3822 # include <limits.h>
3823 #else
3824 # include <assert.h>
3825 #endif
3826 Syntax error
3827 _ACEOF
3828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null; then
3836 if test -s conftest.err; then
3837 ac_cpp_err=$ac_c_preproc_warn_flag
3838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3839 else
3840 ac_cpp_err=
3841 fi
3842 else
3843 ac_cpp_err=yes
3844 fi
3845 if test -z "$ac_cpp_err"; then
3846 :
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 # Broken: fails on valid input.
3852 continue
3853 fi
3854 rm -f conftest.err conftest.$ac_ext
3855
3856 # OK, works on sane cases. Now check whether non-existent headers
3857 # can be detected and how.
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #include <ac_nonexistent.h>
3865 _ACEOF
3866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null; then
3874 if test -s conftest.err; then
3875 ac_cpp_err=$ac_c_preproc_warn_flag
3876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3877 else
3878 ac_cpp_err=
3879 fi
3880 else
3881 ac_cpp_err=yes
3882 fi
3883 if test -z "$ac_cpp_err"; then
3884 # Broken: success on invalid input.
3885 continue
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 # Passes both tests.
3891 ac_preproc_ok=:
3892 break
3893 fi
3894 rm -f conftest.err conftest.$ac_ext
3895
3896 done
3897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898 rm -f conftest.err conftest.$ac_ext
3899 if $ac_preproc_ok; then
3900 :
3901 else
3902 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3903 See \`config.log' for more details." >&5
3904 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&2;}
3906 { (exit 1); exit 1; }; }
3907 fi
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916 echo "$as_me:$LINENO: checking for egrep" >&5
3917 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3918 if test "${ac_cv_prog_egrep+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3922 then ac_cv_prog_egrep='grep -E'
3923 else ac_cv_prog_egrep='egrep'
3924 fi
3925 fi
3926 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3927 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3928 EGREP=$ac_cv_prog_egrep
3929
3930
3931
3932 echo "$as_me:$LINENO: checking for AIX" >&5
3933 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #ifdef _AIX
3941 yes
3942 #endif
3943
3944 _ACEOF
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "yes" >/dev/null 2>&1; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6
3949 cat >>confdefs.h <<\_ACEOF
3950 #define _ALL_SOURCE 1
3951 _ACEOF
3952
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3956 fi
3957 rm -f conftest*
3958
3959
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _GNU_SOURCE 1
3963 _ACEOF
3964
3965
3966
3967 ### Use -Wno-pointer-sign if the compiler supports it
3968 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3969 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3970 SAVE_CFLAGS="$CFLAGS"
3971 CFLAGS="$CFLAGS -Wno-pointer-sign"
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978
3979 int
3980 main ()
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 has_option=yes
4010 else
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 has_option=no
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 if test $has_option = yes; then
4018 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4019 fi
4020 echo "$as_me:$LINENO: result: $has_option" >&5
4021 echo "${ECHO_T}$has_option" >&6
4022 CFLAGS="$SAVE_CFLAGS"
4023 unset has_option
4024 unset SAVE_CFLAGS
4025
4026 #### Some other nice autoconf tests.
4027
4028 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4029 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4030 LN_S=$as_ln_s
4031 if test "$LN_S" = "ln -s"; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4036 echo "${ECHO_T}no, using $LN_S" >&6
4037 fi
4038
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4046 # On Suns, sometimes $CPP names a directory.
4047 if test -n "$CPP" && test -d "$CPP"; then
4048 CPP=
4049 fi
4050 if test -z "$CPP"; then
4051 if test "${ac_cv_prog_CPP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 # Double quotes because CPP needs to be expanded
4055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056 do
4057 ac_preproc_ok=false
4058 for ac_c_preproc_warn_flag in '' yes
4059 do
4060 # Use a header file that comes with gcc, so configuring glibc
4061 # with a fresh cross-compiler works.
4062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063 # <limits.h> exists even on freestanding compilers.
4064 # On the NeXT, cc -E runs the code through the compiler's parser,
4065 # not just through cpp. "Syntax error" is here to catch this case.
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 #ifdef __STDC__
4073 # include <limits.h>
4074 #else
4075 # include <assert.h>
4076 #endif
4077 Syntax error
4078 _ACEOF
4079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null; then
4087 if test -s conftest.err; then
4088 ac_cpp_err=$ac_c_preproc_warn_flag
4089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4090 else
4091 ac_cpp_err=
4092 fi
4093 else
4094 ac_cpp_err=yes
4095 fi
4096 if test -z "$ac_cpp_err"; then
4097 :
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 # Broken: fails on valid input.
4103 continue
4104 fi
4105 rm -f conftest.err conftest.$ac_ext
4106
4107 # OK, works on sane cases. Now check whether non-existent headers
4108 # can be detected and how.
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4116 _ACEOF
4117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null; then
4125 if test -s conftest.err; then
4126 ac_cpp_err=$ac_c_preproc_warn_flag
4127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4128 else
4129 ac_cpp_err=
4130 fi
4131 else
4132 ac_cpp_err=yes
4133 fi
4134 if test -z "$ac_cpp_err"; then
4135 # Broken: success on invalid input.
4136 continue
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4140
4141 # Passes both tests.
4142 ac_preproc_ok=:
4143 break
4144 fi
4145 rm -f conftest.err conftest.$ac_ext
4146
4147 done
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.err conftest.$ac_ext
4150 if $ac_preproc_ok; then
4151 break
4152 fi
4153
4154 done
4155 ac_cv_prog_CPP=$CPP
4156
4157 fi
4158 CPP=$ac_cv_prog_CPP
4159 else
4160 ac_cv_prog_CPP=$CPP
4161 fi
4162 echo "$as_me:$LINENO: result: $CPP" >&5
4163 echo "${ECHO_T}$CPP" >&6
4164 ac_preproc_ok=false
4165 for ac_c_preproc_warn_flag in '' yes
4166 do
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184 Syntax error
4185 _ACEOF
4186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null; then
4194 if test -s conftest.err; then
4195 ac_cpp_err=$ac_c_preproc_warn_flag
4196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4197 else
4198 ac_cpp_err=
4199 fi
4200 else
4201 ac_cpp_err=yes
4202 fi
4203 if test -z "$ac_cpp_err"; then
4204 :
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 # Broken: fails on valid input.
4210 continue
4211 fi
4212 rm -f conftest.err conftest.$ac_ext
4213
4214 # OK, works on sane cases. Now check whether non-existent headers
4215 # can be detected and how.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4223 _ACEOF
4224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null; then
4232 if test -s conftest.err; then
4233 ac_cpp_err=$ac_c_preproc_warn_flag
4234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4235 else
4236 ac_cpp_err=
4237 fi
4238 else
4239 ac_cpp_err=yes
4240 fi
4241 if test -z "$ac_cpp_err"; then
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4251 fi
4252 rm -f conftest.err conftest.$ac_ext
4253
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then
4258 :
4259 else
4260 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4261 See \`config.log' for more details." >&5
4262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4263 See \`config.log' for more details." >&2;}
4264 { (exit 1); exit 1; }; }
4265 fi
4266
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272
4273 # Find a good install program. We prefer a C program (faster),
4274 # so one script is as good as another. But avoid the broken or
4275 # incompatible versions:
4276 # SysV /etc/install, /usr/sbin/install
4277 # SunOS /usr/etc/install
4278 # IRIX /sbin/install
4279 # AIX /bin/install
4280 # AmigaOS /C/install, which installs bootblocks on floppy discs
4281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4284 # OS/2's system install, which has a completely different semantic
4285 # ./install, which can be erroneously created by make from ./install.sh.
4286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4288 if test -z "$INSTALL"; then
4289 if test "${ac_cv_path_install+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 # Account for people who put trailing slashes in PATH elements.
4298 case $as_dir/ in
4299 ./ | .// | /cC/* | \
4300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4302 /usr/ucb/* ) ;;
4303 *)
4304 # OSF1 and SCO ODT 3.0 have their own names for install.
4305 # Don't use installbsd from OSF since it installs stuff as root
4306 # by default.
4307 for ac_prog in ginstall scoinst install; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4310 if test $ac_prog = install &&
4311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4312 # AIX install. It has an incompatible calling convention.
4313 :
4314 elif test $ac_prog = install &&
4315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4316 # program-specific install script used by HP pwplus--don't use.
4317 :
4318 else
4319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4320 break 3
4321 fi
4322 fi
4323 done
4324 done
4325 ;;
4326 esac
4327 done
4328
4329
4330 fi
4331 if test "${ac_cv_path_install+set}" = set; then
4332 INSTALL=$ac_cv_path_install
4333 else
4334 # As a last resort, use the slow shell script. We don't cache a
4335 # path for INSTALL within a source directory, because that will
4336 # break other packages using the cache if that directory is
4337 # removed, or if the path is relative.
4338 INSTALL=$ac_install_sh
4339 fi
4340 fi
4341 echo "$as_me:$LINENO: result: $INSTALL" >&5
4342 echo "${ECHO_T}$INSTALL" >&6
4343
4344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4345 # It thinks the first close brace ends the variable substitution.
4346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4347
4348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4349
4350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4351
4352 if test "x$RANLIB" = x; then
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_RANLIB+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$RANLIB"; then
4362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377
4378 fi
4379 fi
4380 RANLIB=$ac_cv_prog_RANLIB
4381 if test -n "$RANLIB"; then
4382 echo "$as_me:$LINENO: result: $RANLIB" >&5
4383 echo "${ECHO_T}$RANLIB" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389 fi
4390 if test -z "$ac_cv_prog_RANLIB"; then
4391 ac_ct_RANLIB=$RANLIB
4392 # Extract the first word of "ranlib", so it can be a program name with args.
4393 set dummy ranlib; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$ac_ct_RANLIB"; then
4400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_RANLIB="ranlib"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413 done
4414 done
4415
4416 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4417 fi
4418 fi
4419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4420 if test -n "$ac_ct_RANLIB"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428 RANLIB=$ac_ct_RANLIB
4429 else
4430 RANLIB="$ac_cv_prog_RANLIB"
4431 fi
4432
4433 fi
4434 # Extract the first word of "install-info", so it can be a program name with args.
4435 set dummy install-info; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 case $INSTALL_INFO in
4442 [\\/]* | ?:[\\/]*)
4443 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4444 ;;
4445 *)
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459
4460 ;;
4461 esac
4462 fi
4463 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4464
4465 if test -n "$INSTALL_INFO"; then
4466 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4467 echo "${ECHO_T}$INSTALL_INFO" >&6
4468 else
4469 echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 # Extract the first word of "install-info", so it can be a program name with args.
4474 set dummy install-info; ac_word=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 case $INSTALL_INFO in
4481 [\\/]* | ?:[\\/]*)
4482 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4483 ;;
4484 *)
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in /usr/sbin
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498
4499 ;;
4500 esac
4501 fi
4502 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4503
4504 if test -n "$INSTALL_INFO"; then
4505 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4506 echo "${ECHO_T}$INSTALL_INFO" >&6
4507 else
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512 # Extract the first word of "install-info", so it can be a program name with args.
4513 set dummy install-info; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 case $INSTALL_INFO in
4520 [\\/]* | ?:[\\/]*)
4521 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4522 ;;
4523 *)
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in /sbin
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537
4538 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4539 ;;
4540 esac
4541 fi
4542 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4543
4544 if test -n "$INSTALL_INFO"; then
4545 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4546 echo "${ECHO_T}$INSTALL_INFO" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552 # Extract the first word of "gzip", so it can be a program name with args.
4553 set dummy gzip; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 case $GZIP_PROG in
4560 [\\/]* | ?:[\\/]*)
4561 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4562 ;;
4563 *)
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577
4578 ;;
4579 esac
4580 fi
4581 GZIP_PROG=$ac_cv_path_GZIP_PROG
4582
4583 if test -n "$GZIP_PROG"; then
4584 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4585 echo "${ECHO_T}$GZIP_PROG" >&6
4586 else
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591
4592
4593 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4594 then
4595 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4596 fi
4597
4598 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4599 then
4600 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4601 fi
4602
4603
4604 late_LDFLAGS=$LDFLAGS
4605 if test "$GCC" = yes; then
4606 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4607 else
4608 LDFLAGS="$LDFLAGS -znocombreloc"
4609 fi
4610
4611 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4612 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4613 cat >conftest.$ac_ext <<_ACEOF
4614 main(){return 0;}
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
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); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 LDFLAGS=$late_LDFLAGS
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647 fi
4648 rm -f conftest.err conftest.$ac_objext \
4649 conftest$ac_exeext conftest.$ac_ext
4650
4651 #### Extract some information from the operating system and machine files.
4652
4653 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4654 - which libraries the lib-src programs will want, and
4655 - whether the GNU malloc routines are usable..." >&5
4656 echo "$as_me: checking the machine- and system-dependent files to find out
4657 - which libraries the lib-src programs will want, and
4658 - whether the GNU malloc routines are usable..." >&6;}
4659
4660 ### First figure out CFLAGS (which we use for running the compiler here)
4661 ### and REAL_CFLAGS (which we use for real compilation).
4662 ### The two are the same except on a few systems, where they are made
4663 ### different to work around various lossages. For example,
4664 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4665 ### as implying static linking.
4666
4667 ### If the CFLAGS env var is specified, we use that value
4668 ### instead of the default.
4669
4670 ### It's not important that this name contain the PID; you can't run
4671 ### two configures in the same directory and have anything work
4672 ### anyway.
4673 tempcname="conftest.c"
4674
4675 echo '
4676 #include "'${srcdir}'/src/'${opsysfile}'"
4677 #include "'${srcdir}'/src/'${machfile}'"
4678 #ifndef LIBS_MACHINE
4679 #define LIBS_MACHINE
4680 #endif
4681 #ifndef LIBS_SYSTEM
4682 #define LIBS_SYSTEM
4683 #endif
4684 #ifndef C_SWITCH_SYSTEM
4685 #define C_SWITCH_SYSTEM
4686 #endif
4687 #ifndef C_SWITCH_MACHINE
4688 #define C_SWITCH_MACHINE
4689 #endif
4690 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4691 configure___ c_switch_system=C_SWITCH_SYSTEM
4692 configure___ c_switch_machine=C_SWITCH_MACHINE
4693
4694 #ifndef LIB_X11_LIB
4695 #define LIB_X11_LIB -lX11
4696 #endif
4697
4698 #ifndef LIBX11_MACHINE
4699 #define LIBX11_MACHINE
4700 #endif
4701
4702 #ifndef LIBX11_SYSTEM
4703 #define LIBX11_SYSTEM
4704 #endif
4705 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4706
4707 #ifdef UNEXEC
4708 configure___ unexec=UNEXEC
4709 #else
4710 configure___ unexec=unexec.o
4711 #endif
4712
4713 #ifdef SYSTEM_MALLOC
4714 configure___ system_malloc=yes
4715 #else
4716 configure___ system_malloc=no
4717 #endif
4718
4719 #ifdef USE_MMAP_FOR_BUFFERS
4720 configure___ use_mmap_for_buffers=yes
4721 #else
4722 configure___ use_mmap_for_buffers=no
4723 #endif
4724
4725 #ifndef C_DEBUG_SWITCH
4726 #define C_DEBUG_SWITCH -g
4727 #endif
4728
4729 #ifndef C_OPTIMIZE_SWITCH
4730 #ifdef __GNUC__
4731 #define C_OPTIMIZE_SWITCH -O2
4732 #else
4733 #define C_OPTIMIZE_SWITCH -O
4734 #endif
4735 #endif
4736
4737 #ifndef C_WARNINGS_SWITCH
4738 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4739 #endif
4740
4741 #ifndef LD_SWITCH_MACHINE
4742 #define LD_SWITCH_MACHINE
4743 #endif
4744
4745 #ifndef LD_SWITCH_SYSTEM
4746 #define LD_SWITCH_SYSTEM
4747 #endif
4748
4749 #ifndef LD_SWITCH_X_SITE_AUX
4750 #define LD_SWITCH_X_SITE_AUX
4751 #endif
4752
4753 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4754 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4755
4756 #ifdef THIS_IS_CONFIGURE
4757
4758 /* Get the CFLAGS for tests in configure. */
4759 #ifdef __GNUC__
4760 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4761 #else
4762 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4763 #endif
4764
4765 #else /* not THIS_IS_CONFIGURE */
4766
4767 /* Get the CFLAGS for real compilation. */
4768 #ifdef __GNUC__
4769 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4770 #else
4771 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4772 #endif
4773
4774 #endif /* not THIS_IS_CONFIGURE */
4775 ' > ${tempcname}
4776
4777 # The value of CPP is a quoted variable reference, so we need to do this
4778 # to get its actual value...
4779 CPP=`eval "echo $CPP"`
4780 eval `${CPP} -Isrc ${tempcname} \
4781 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4782 if test "x$SPECIFIED_CFLAGS" = x; then
4783 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4784 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4785 else
4786 REAL_CFLAGS="$CFLAGS"
4787 fi
4788 rm ${tempcname}
4789
4790 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4791
4792 ### Make sure subsequent tests use flags consistent with the build flags.
4793
4794 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4795 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4796 else
4797 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4798 fi
4799
4800
4801
4802 # Check whether --enable-largefile or --disable-largefile was given.
4803 if test "${enable_largefile+set}" = set; then
4804 enableval="$enable_largefile"
4805
4806 fi;
4807 if test "$enable_largefile" != no; then
4808
4809 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4810 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4811 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 ac_cv_sys_largefile_CC=no
4815 if test "$GCC" != yes; then
4816 ac_save_CC=$CC
4817 while :; do
4818 # IRIX 6.2 and later do not support large files by default,
4819 # so use the C compiler's -n32 option if that helps.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <sys/types.h>
4827 /* Check that off_t can represent 2**63 - 1 correctly.
4828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4829 since some C++ compilers masquerading as C compilers
4830 incorrectly reject 9223372036854775807. */
4831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4833 && LARGE_OFF_T % 2147483647 == 1)
4834 ? 1 : -1];
4835 int
4836 main ()
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 break
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 fi
4871 rm -f conftest.err conftest.$ac_objext
4872 CC="$CC -n32"
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_largefile_CC=' -n32'; break
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 fi
4901 rm -f conftest.err conftest.$ac_objext
4902 break
4903 done
4904 CC=$ac_save_CC
4905 rm -f conftest.$ac_ext
4906 fi
4907 fi
4908 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4909 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4910 if test "$ac_cv_sys_largefile_CC" != no; then
4911 CC=$CC$ac_cv_sys_largefile_CC
4912 fi
4913
4914 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4915 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4916 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 while :; do
4920 ac_cv_sys_file_offset_bits=no
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4935 ? 1 : -1];
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 break
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 fi
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #define _FILE_OFFSET_BITS 64
4980 #include <sys/types.h>
4981 /* Check that off_t can represent 2**63 - 1 correctly.
4982 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4983 since some C++ compilers masquerading as C compilers
4984 incorrectly reject 9223372036854775807. */
4985 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4986 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4987 && LARGE_OFF_T % 2147483647 == 1)
4988 ? 1 : -1];
4989 int
4990 main ()
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag"
5007 || test ! -s conftest.err'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; } &&
5013 { ac_try='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_sys_file_offset_bits=64; break
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 fi
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 break
5027 done
5028 fi
5029 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5030 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5031 if test "$ac_cv_sys_file_offset_bits" != no; then
5032
5033 cat >>confdefs.h <<_ACEOF
5034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5035 _ACEOF
5036
5037 fi
5038 rm -f conftest*
5039 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5040 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5041 if test "${ac_cv_sys_large_files+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 while :; do
5045 ac_cv_sys_large_files=no
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 /* Check that off_t can represent 2**63 - 1 correctly.
5054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5055 since some C++ compilers masquerading as C compilers
5056 incorrectly reject 9223372036854775807. */
5057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5059 && LARGE_OFF_T % 2147483647 == 1)
5060 ? 1 : -1];
5061 int
5062 main ()
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag"
5079 || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 break
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 fi
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #define _LARGE_FILES 1
5105 #include <sys/types.h>
5106 /* Check that off_t can represent 2**63 - 1 correctly.
5107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5108 since some C++ compilers masquerading as C compilers
5109 incorrectly reject 9223372036854775807. */
5110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5112 && LARGE_OFF_T % 2147483647 == 1)
5113 ? 1 : -1];
5114 int
5115 main ()
5116 {
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -z "$ac_c_werror_flag"
5132 || test ! -s conftest.err'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_cv_sys_large_files=1; break
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 fi
5150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 break
5152 done
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5155 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5156 if test "$ac_cv_sys_large_files" != no; then
5157
5158 cat >>confdefs.h <<_ACEOF
5159 #define _LARGE_FILES $ac_cv_sys_large_files
5160 _ACEOF
5161
5162 fi
5163 rm -f conftest*
5164 fi
5165
5166
5167 if test "${with_sound}" != "no"; then
5168 # Sound support for GNU/Linux and the free BSDs.
5169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5171 if test "${ac_cv_header_stdc+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5181 #include <stdarg.h>
5182 #include <string.h>
5183 #include <float.h>
5184
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_header_stdc=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_cv_header_stdc=no
5221 fi
5222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5223
5224 if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <string.h>
5233
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "memchr" >/dev/null 2>&1; then
5237 :
5238 else
5239 ac_cv_header_stdc=no
5240 fi
5241 rm -f conftest*
5242
5243 fi
5244
5245 if test $ac_cv_header_stdc = yes; then
5246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <stdlib.h>
5254
5255 _ACEOF
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "free" >/dev/null 2>&1; then
5258 :
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f conftest*
5263
5264 fi
5265
5266 if test $ac_cv_header_stdc = yes; then
5267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5268 if test "$cross_compiling" = yes; then
5269 :
5270 else
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 #include <ctype.h>
5278 #if ((' ' & 0x0FF) == 0x020)
5279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5281 #else
5282 # define ISLOWER(c) \
5283 (('a' <= (c) && (c) <= 'i') \
5284 || ('j' <= (c) && (c) <= 'r') \
5285 || ('s' <= (c) && (c) <= 'z'))
5286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5287 #endif
5288
5289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5290 int
5291 main ()
5292 {
5293 int i;
5294 for (i = 0; i < 256; i++)
5295 if (XOR (islower (i), ISLOWER (i))
5296 || toupper (i) != TOUPPER (i))
5297 exit(2);
5298 exit (0);
5299 }
5300 _ACEOF
5301 rm -f conftest$ac_exeext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5303 (eval $ac_link) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 :
5313 else
5314 echo "$as_me: program exited with status $ac_status" >&5
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ( exit $ac_status )
5319 ac_cv_header_stdc=no
5320 fi
5321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 fi
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5327 if test $ac_cv_header_stdc = yes; then
5328
5329 cat >>confdefs.h <<\_ACEOF
5330 #define STDC_HEADERS 1
5331 _ACEOF
5332
5333 fi
5334
5335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5347 do
5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 echo "$as_me:$LINENO: checking for $ac_header" >&5
5350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5361
5362 #include <$ac_header>
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_c_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 eval "$as_ac_Header=yes"
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 eval "$as_ac_Header=no"
5392 fi
5393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394 fi
5395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 _ACEOF
5401
5402 fi
5403
5404 done
5405
5406
5407
5408
5409
5410 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5411 do
5412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo "$as_me:$LINENO: checking for $ac_header" >&5
5415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 fi
5419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 else
5422 # Is the header compilable?
5423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5432 #include <$ac_header>
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag"
5444 || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_header_compiler=yes
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_header_compiler=no
5462 fi
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5466
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h. */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <$ac_header>
5477 _ACEOF
5478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } >/dev/null; then
5486 if test -s conftest.err; then
5487 ac_cpp_err=$ac_c_preproc_warn_flag
5488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5489 else
5490 ac_cpp_err=
5491 fi
5492 else
5493 ac_cpp_err=yes
5494 fi
5495 if test -z "$ac_cpp_err"; then
5496 ac_header_preproc=yes
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_header_preproc=no
5502 fi
5503 rm -f conftest.err conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5506
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5509 yes:no: )
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514 ac_header_preproc=yes
5515 ;;
5516 no:yes:* )
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529 (
5530 cat <<\_ASBOX
5531 ## ------------------------------------------ ##
5532 ## Report this to the AC_PACKAGE_NAME lists. ##
5533 ## ------------------------------------------ ##
5534 _ASBOX
5535 ) |
5536 sed "s/^/$as_me: WARNING: /" >&2
5537 ;;
5538 esac
5539 echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 eval "$as_ac_Header=\$ac_header_preproc"
5545 fi
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548
5549 fi
5550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 _ACEOF
5554
5555 fi
5556
5557 done
5558
5559 # Emulation library used on NetBSD.
5560 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5561 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5562 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 ac_check_lib_save_LIBS=$LIBS
5566 LIBS="-lossaudio $LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 #ifdef __cplusplus
5576 extern "C"
5577 #endif
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580 char _oss_ioctl ();
5581 int
5582 main ()
5583 {
5584 _oss_ioctl ();
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_ossaudio__oss_ioctl=yes
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 ac_cv_lib_ossaudio__oss_ioctl=no
5617 fi
5618 rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 LIBS=$ac_check_lib_save_LIBS
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5623 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5624 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5625 LIBSOUND=-lossaudio
5626 else
5627 LIBSOUND=
5628 fi
5629
5630
5631 fi
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5659 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5660 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5661 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5662 sys/utsname.h pwd.h
5663 do
5664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo "$as_me:$LINENO: checking for $ac_header" >&5
5667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 fi
5671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673 else
5674 # Is the header compilable?
5675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 $ac_includes_default
5684 #include <$ac_header>
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_header_compiler=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_header_compiler=no
5714 fi
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717 echo "${ECHO_T}$ac_header_compiler" >&6
5718
5719 # Is the header present?
5720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <$ac_header>
5729 _ACEOF
5730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev/null; then
5738 if test -s conftest.err; then
5739 ac_cpp_err=$ac_c_preproc_warn_flag
5740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5741 else
5742 ac_cpp_err=
5743 fi
5744 else
5745 ac_cpp_err=yes
5746 fi
5747 if test -z "$ac_cpp_err"; then
5748 ac_header_preproc=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_header_preproc=no
5754 fi
5755 rm -f conftest.err conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5757 echo "${ECHO_T}$ac_header_preproc" >&6
5758
5759 # So? What about this header?
5760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5761 yes:no: )
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5766 ac_header_preproc=yes
5767 ;;
5768 no:yes:* )
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5781 (
5782 cat <<\_ASBOX
5783 ## ------------------------------------------ ##
5784 ## Report this to the AC_PACKAGE_NAME lists. ##
5785 ## ------------------------------------------ ##
5786 _ASBOX
5787 ) |
5788 sed "s/^/$as_me: WARNING: /" >&2
5789 ;;
5790 esac
5791 echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 eval "$as_ac_Header=\$ac_header_preproc"
5797 fi
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5800
5801 fi
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 _ACEOF
5806
5807 fi
5808
5809 done
5810
5811
5812 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5813 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/personality.h>
5821 int
5822 main ()
5823 {
5824 personality (PER_LINUX32)
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 emacs_cv_personality_linux32=yes
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 emacs_cv_personality_linux32=no
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5860 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5861
5862 if test $emacs_cv_personality_linux32 = yes; then
5863
5864 cat >>confdefs.h <<\_ACEOF
5865 #define HAVE_PERSONALITY_LINUX32 1
5866 _ACEOF
5867
5868 fi
5869
5870
5871 for ac_header in term.h
5872 do
5873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5874 echo "$as_me:$LINENO: checking for $ac_header" >&5
5875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <$ac_header>
5886 _ACEOF
5887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } >/dev/null; then
5895 if test -s conftest.err; then
5896 ac_cpp_err=$ac_c_preproc_warn_flag
5897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5898 else
5899 ac_cpp_err=
5900 fi
5901 else
5902 ac_cpp_err=yes
5903 fi
5904 if test -z "$ac_cpp_err"; then
5905 eval "$as_ac_Header=yes"
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 eval "$as_ac_Header=no"
5911 fi
5912 rm -f conftest.err conftest.$ac_ext
5913 fi
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919 _ACEOF
5920
5921 fi
5922
5923 done
5924
5925 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5927 if test "${ac_cv_header_stdc+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <stdlib.h>
5937 #include <stdarg.h>
5938 #include <string.h>
5939 #include <float.h>
5940
5941 int
5942 main ()
5943 {
5944
5945 ;
5946 return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag"
5959 || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 (eval $ac_try) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 ac_cv_header_stdc=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_cv_header_stdc=no
5977 fi
5978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979
5980 if test $ac_cv_header_stdc = yes; then
5981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <string.h>
5989
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "memchr" >/dev/null 2>&1; then
5993 :
5994 else
5995 ac_cv_header_stdc=no
5996 fi
5997 rm -f conftest*
5998
5999 fi
6000
6001 if test $ac_cv_header_stdc = yes; then
6002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <stdlib.h>
6010
6011 _ACEOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev/null 2>&1; then
6014 :
6015 else
6016 ac_cv_header_stdc=no
6017 fi
6018 rm -f conftest*
6019
6020 fi
6021
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then
6025 :
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 <ctype.h>
6034 #if ((' ' & 0x0FF) == 0x020)
6035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6037 #else
6038 # define ISLOWER(c) \
6039 (('a' <= (c) && (c) <= 'i') \
6040 || ('j' <= (c) && (c) <= 'r') \
6041 || ('s' <= (c) && (c) <= 'z'))
6042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6043 #endif
6044
6045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6046 int
6047 main ()
6048 {
6049 int i;
6050 for (i = 0; i < 256; i++)
6051 if (XOR (islower (i), ISLOWER (i))
6052 || toupper (i) != TOUPPER (i))
6053 exit(2);
6054 exit (0);
6055 }
6056 _ACEOF
6057 rm -f conftest$ac_exeext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 :
6069 else
6070 echo "$as_me: program exited with status $ac_status" >&5
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ( exit $ac_status )
6075 ac_cv_header_stdc=no
6076 fi
6077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6078 fi
6079 fi
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6082 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6083 if test $ac_cv_header_stdc = yes; then
6084
6085 cat >>confdefs.h <<\_ACEOF
6086 #define STDC_HEADERS 1
6087 _ACEOF
6088
6089 fi
6090
6091 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6092 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6093 if test "${ac_cv_header_time+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #include <sys/types.h>
6103 #include <sys/time.h>
6104 #include <time.h>
6105
6106 int
6107 main ()
6108 {
6109 if ((struct tm *) 0)
6110 return 0;
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_header_time=yes
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_header_time=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145 fi
6146 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6147 echo "${ECHO_T}$ac_cv_header_time" >&6
6148 if test $ac_cv_header_time = yes; then
6149
6150 cat >>confdefs.h <<\_ACEOF
6151 #define TIME_WITH_SYS_TIME 1
6152 _ACEOF
6153
6154 fi
6155
6156 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6157 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6158 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6168 int
6169 main ()
6170 {
6171 #ifndef sys_siglist
6172 char *p = (char *) sys_siglist;
6173 #endif
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_have_decl_sys_siglist=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_have_decl_sys_siglist=no
6207 fi
6208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209 fi
6210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6211 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6212 if test $ac_cv_have_decl_sys_siglist = yes; then
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define HAVE_DECL_SYS_SIGLIST 1
6216 _ACEOF
6217
6218
6219 else
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_DECL_SYS_SIGLIST 0
6222 _ACEOF
6223
6224
6225 fi
6226
6227
6228 if test $ac_cv_have_decl_sys_siglist != yes; then
6229 # For Tru64, at least:
6230 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6231 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6232 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 int
6243 main ()
6244 {
6245 #ifndef __sys_siglist
6246 char *p = (char *) __sys_siglist;
6247 #endif
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_have_decl___sys_siglist=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 ac_cv_have_decl___sys_siglist=no
6281 fi
6282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6285 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6286 if test $ac_cv_have_decl___sys_siglist = yes; then
6287
6288 cat >>confdefs.h <<_ACEOF
6289 #define HAVE_DECL___SYS_SIGLIST 1
6290 _ACEOF
6291
6292
6293 else
6294 cat >>confdefs.h <<_ACEOF
6295 #define HAVE_DECL___SYS_SIGLIST 0
6296 _ACEOF
6297
6298
6299 fi
6300
6301
6302 if test $ac_cv_have_decl___sys_siglist = yes; then
6303
6304 cat >>confdefs.h <<\_ACEOF
6305 #define sys_siglist __sys_siglist
6306 _ACEOF
6307
6308 fi
6309 fi
6310 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6311 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6312 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <sys/types.h>
6322 #include <sys/wait.h>
6323 #ifndef WEXITSTATUS
6324 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6325 #endif
6326 #ifndef WIFEXITED
6327 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6328 #endif
6329
6330 int
6331 main ()
6332 {
6333 int s;
6334 wait (&s);
6335 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6362 ac_cv_header_sys_wait_h=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_header_sys_wait_h=no
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6372 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6373 if test $ac_cv_header_sys_wait_h = yes; then
6374
6375 cat >>confdefs.h <<\_ACEOF
6376 #define HAVE_SYS_WAIT_H 1
6377 _ACEOF
6378
6379 fi
6380
6381
6382 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6383 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6384 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 #ifdef TIME_WITH_SYS_TIME
6394 #include <sys/time.h>
6395 #include <time.h>
6396 #else
6397 #ifdef HAVE_SYS_TIME_H
6398 #include <sys/time.h>
6399 #else
6400 #include <time.h>
6401 #endif
6402 #endif
6403 #ifdef HAVE_UTIME_H
6404 #include <utime.h>
6405 #endif
6406 int
6407 main ()
6408 {
6409 static struct utimbuf x; x.actime = x.modtime;
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_c_werror_flag"
6424 || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 emacs_cv_struct_utimbuf=yes
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 emacs_cv_struct_utimbuf=no
6442 fi
6443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6446 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6447 if test $emacs_cv_struct_utimbuf = yes; then
6448
6449 cat >>confdefs.h <<\_ACEOF
6450 #define HAVE_STRUCT_UTIMBUF 1
6451 _ACEOF
6452
6453 fi
6454
6455 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6456 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6457 if test "${ac_cv_type_signal+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 #include <signal.h>
6468 #ifdef signal
6469 # undef signal
6470 #endif
6471 #ifdef __cplusplus
6472 extern "C" void (*signal (int, void (*)(int)))(int);
6473 #else
6474 void (*signal ()) ();
6475 #endif
6476
6477 int
6478 main ()
6479 {
6480 int i;
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag"
6495 || test ! -s conftest.err'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_type_signal=void
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512 ac_cv_type_signal=int
6513 fi
6514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 fi
6516 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6517 echo "${ECHO_T}$ac_cv_type_signal" >&6
6518
6519 cat >>confdefs.h <<_ACEOF
6520 #define RETSIGTYPE $ac_cv_type_signal
6521 _ACEOF
6522
6523
6524
6525 echo "$as_me:$LINENO: checking for speed_t" >&5
6526 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6527 if test "${emacs_cv_speed_t+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <termios.h>
6537 int
6538 main ()
6539 {
6540 speed_t x = 1;
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 emacs_cv_speed_t=yes
6568 else
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572 emacs_cv_speed_t=no
6573 fi
6574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6577 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6578 if test $emacs_cv_speed_t = yes; then
6579
6580 cat >>confdefs.h <<\_ACEOF
6581 #define HAVE_SPEED_T 1
6582 _ACEOF
6583
6584 fi
6585
6586 echo "$as_me:$LINENO: checking for struct timeval" >&5
6587 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6588 if test "${emacs_cv_struct_timeval+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #ifdef TIME_WITH_SYS_TIME
6598 #include <sys/time.h>
6599 #include <time.h>
6600 #else
6601 #ifdef HAVE_SYS_TIME_H
6602 #include <sys/time.h>
6603 #else
6604 #include <time.h>
6605 #endif
6606 #endif
6607 int
6608 main ()
6609 {
6610 static struct timeval x; x.tv_sec = x.tv_usec;
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 emacs_cv_struct_timeval=yes
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 emacs_cv_struct_timeval=no
6643 fi
6644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6647 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6648 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6649 if test $emacs_cv_struct_timeval = yes; then
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_TIMEVAL 1
6653 _ACEOF
6654
6655 fi
6656
6657 echo "$as_me:$LINENO: checking for struct exception" >&5
6658 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6659 if test "${emacs_cv_struct_exception+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <math.h>
6669 int
6670 main ()
6671 {
6672 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679 (eval $ac_compile) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 emacs_cv_struct_exception=yes
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 emacs_cv_struct_exception=no
6705 fi
6706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6709 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6710 HAVE_EXCEPTION=$emacs_cv_struct_exception
6711 if test $emacs_cv_struct_exception != yes; then
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define NO_MATHERR 1
6715 _ACEOF
6716
6717 fi
6718
6719
6720 for ac_header in sys/socket.h
6721 do
6722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo "$as_me:$LINENO: checking for $ac_header" >&5
6725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 fi
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6731 else
6732 # Is the header compilable?
6733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 #include <$ac_header>
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_header_compiler=yes
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 ac_header_compiler=no
6772 fi
6773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6775 echo "${ECHO_T}$ac_header_compiler" >&6
6776
6777 # Is the header present?
6778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <$ac_header>
6787 _ACEOF
6788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } >/dev/null; then
6796 if test -s conftest.err; then
6797 ac_cpp_err=$ac_c_preproc_warn_flag
6798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6799 else
6800 ac_cpp_err=
6801 fi
6802 else
6803 ac_cpp_err=yes
6804 fi
6805 if test -z "$ac_cpp_err"; then
6806 ac_header_preproc=yes
6807 else
6808 echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811 ac_header_preproc=no
6812 fi
6813 rm -f conftest.err conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6815 echo "${ECHO_T}$ac_header_preproc" >&6
6816
6817 # So? What about this header?
6818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6819 yes:no: )
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6824 ac_header_preproc=yes
6825 ;;
6826 no:yes:* )
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6839 (
6840 cat <<\_ASBOX
6841 ## ------------------------------------------ ##
6842 ## Report this to the AC_PACKAGE_NAME lists. ##
6843 ## ------------------------------------------ ##
6844 _ASBOX
6845 ) |
6846 sed "s/^/$as_me: WARNING: /" >&2
6847 ;;
6848 esac
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 eval "$as_ac_Header=\$ac_header_preproc"
6855 fi
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6858
6859 fi
6860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6863 _ACEOF
6864
6865 fi
6866
6867 done
6868
6869
6870 for ac_header in net/if.h
6871 do
6872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6873 echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 #if HAVE_SYS_SOCKET_H
6886 #include <sys/socket.h>
6887 #endif
6888
6889 #include <$ac_header>
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 eval "$as_ac_Header=yes"
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 eval "$as_ac_Header=no"
6919 fi
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6925 cat >>confdefs.h <<_ACEOF
6926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6927 _ACEOF
6928
6929 fi
6930
6931 done
6932
6933
6934 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6935 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6936 if test "${ac_cv_struct_tm+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6946 #include <time.h>
6947
6948 int
6949 main ()
6950 {
6951 struct tm *tp; tp->tm_sec;
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_struct_tm=time.h
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 ac_cv_struct_tm=sys/time.h
6984 fi
6985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6988 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6989 if test $ac_cv_struct_tm = sys/time.h; then
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define TM_IN_SYS_TIME 1
6993 _ACEOF
6994
6995 fi
6996
6997 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6998 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6999 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 #include <$ac_cv_struct_tm>
7010
7011
7012 int
7013 main ()
7014 {
7015 static struct tm ac_aggr;
7016 if (ac_aggr.tm_zone)
7017 return 0;
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_tm_tm_zone=yes
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <sys/types.h>
7056 #include <$ac_cv_struct_tm>
7057
7058
7059 int
7060 main ()
7061 {
7062 static struct tm ac_aggr;
7063 if (sizeof ac_aggr.tm_zone)
7064 return 0;
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag"
7079 || test ! -s conftest.err'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try='test -s conftest.$ac_objext'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 ac_cv_member_struct_tm_tm_zone=yes
7092 else
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_cv_member_struct_tm_tm_zone=no
7097 fi
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7103 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7104 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_STRUCT_TM_TM_ZONE 1
7108 _ACEOF
7109
7110
7111 fi
7112
7113 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7114
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_TM_ZONE 1
7117 _ACEOF
7118
7119 else
7120 echo "$as_me:$LINENO: checking for tzname" >&5
7121 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7122 if test "${ac_cv_var_tzname+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 #include <time.h>
7132 #ifndef tzname /* For SGI. */
7133 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7134 #endif
7135
7136 int
7137 main ()
7138 {
7139 atoi(*tzname);
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_var_tzname=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171 ac_cv_var_tzname=no
7172 fi
7173 rm -f conftest.err conftest.$ac_objext \
7174 conftest$ac_exeext conftest.$ac_ext
7175 fi
7176 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7177 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7178 if test $ac_cv_var_tzname = yes; then
7179
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_TZNAME 1
7182 _ACEOF
7183
7184 fi
7185 fi
7186
7187 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7188 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7189 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <time.h>
7199
7200 int
7201 main ()
7202 {
7203 static struct tm ac_aggr;
7204 if (ac_aggr.tm_gmtoff)
7205 return 0;
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_member_struct_tm_tm_gmtoff=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #include <time.h>
7244
7245 int
7246 main ()
7247 {
7248 static struct tm ac_aggr;
7249 if (sizeof ac_aggr.tm_gmtoff)
7250 return 0;
7251 ;
7252 return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_member_struct_tm_tm_gmtoff=yes
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_member_struct_tm_tm_gmtoff=no
7283 fi
7284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7289 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7290 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7291
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_TM_GMTOFF 1
7294 _ACEOF
7295
7296 fi
7297
7298 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7299 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7300 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #if HAVE_SYS_SOCKET_H
7311 #include <sys/socket.h>
7312 #endif
7313 #if HAVE_NET_IF_H
7314 #include <net/if.h>
7315 #endif
7316
7317 int
7318 main ()
7319 {
7320 static struct ifreq ac_aggr;
7321 if (ac_aggr.ifr_flags)
7322 return 0;
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_flags=yes
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 $ac_includes_default
7361 #if HAVE_SYS_SOCKET_H
7362 #include <sys/socket.h>
7363 #endif
7364 #if HAVE_NET_IF_H
7365 #include <net/if.h>
7366 #endif
7367
7368 int
7369 main ()
7370 {
7371 static struct ifreq ac_aggr;
7372 if (sizeof ac_aggr.ifr_flags)
7373 return 0;
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_member_struct_ifreq_ifr_flags=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 ac_cv_member_struct_ifreq_ifr_flags=no
7406 fi
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7412 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7413 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7414
7415 cat >>confdefs.h <<_ACEOF
7416 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7417 _ACEOF
7418
7419
7420 fi
7421 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7422 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7423 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 #if HAVE_SYS_SOCKET_H
7434 #include <sys/socket.h>
7435 #endif
7436 #if HAVE_NET_IF_H
7437 #include <net/if.h>
7438 #endif
7439
7440 int
7441 main ()
7442 {
7443 static struct ifreq ac_aggr;
7444 if (ac_aggr.ifr_hwaddr)
7445 return 0;
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #if HAVE_SYS_SOCKET_H
7485 #include <sys/socket.h>
7486 #endif
7487 #if HAVE_NET_IF_H
7488 #include <net/if.h>
7489 #endif
7490
7491 int
7492 main ()
7493 {
7494 static struct ifreq ac_aggr;
7495 if (sizeof ac_aggr.ifr_hwaddr)
7496 return 0;
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7536 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7540 _ACEOF
7541
7542
7543 fi
7544 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7545 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7546 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 $ac_includes_default
7556 #if HAVE_SYS_SOCKET_H
7557 #include <sys/socket.h>
7558 #endif
7559 #if HAVE_NET_IF_H
7560 #include <net/if.h>
7561 #endif
7562
7563 int
7564 main ()
7565 {
7566 static struct ifreq ac_aggr;
7567 if (ac_aggr.ifr_netmask)
7568 return 0;
7569 ;
7570 return 0;
7571 }
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7575 (eval $ac_compile) 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -z "$ac_c_werror_flag"
7583 || test ! -s conftest.err'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; } &&
7589 { ac_try='test -s conftest.$ac_objext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_member_struct_ifreq_ifr_netmask=yes
7596 else
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7607 #if HAVE_SYS_SOCKET_H
7608 #include <sys/socket.h>
7609 #endif
7610 #if HAVE_NET_IF_H
7611 #include <net/if.h>
7612 #endif
7613
7614 int
7615 main ()
7616 {
7617 static struct ifreq ac_aggr;
7618 if (sizeof ac_aggr.ifr_netmask)
7619 return 0;
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_member_struct_ifreq_ifr_netmask=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_cv_member_struct_ifreq_ifr_netmask=no
7652 fi
7653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656 fi
7657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7658 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7659 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7663 _ACEOF
7664
7665
7666 fi
7667 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7668 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7669 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7679 #if HAVE_SYS_SOCKET_H
7680 #include <sys/socket.h>
7681 #endif
7682 #if HAVE_NET_IF_H
7683 #include <net/if.h>
7684 #endif
7685
7686 int
7687 main ()
7688 {
7689 static struct ifreq ac_aggr;
7690 if (ac_aggr.ifr_broadaddr)
7691 return 0;
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 #if HAVE_SYS_SOCKET_H
7731 #include <sys/socket.h>
7732 #endif
7733 #if HAVE_NET_IF_H
7734 #include <net/if.h>
7735 #endif
7736
7737 int
7738 main ()
7739 {
7740 static struct ifreq ac_aggr;
7741 if (sizeof ac_aggr.ifr_broadaddr)
7742 return 0;
7743 ;
7744 return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7775 fi
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 fi
7778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 fi
7780 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7781 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7782 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7783
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7786 _ACEOF
7787
7788
7789 fi
7790 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7791 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7792 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
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 (ac_aggr.ifr_addr)
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"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_member_struct_ifreq_ifr_addr=yes
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 #if HAVE_SYS_SOCKET_H
7854 #include <sys/socket.h>
7855 #endif
7856 #if HAVE_NET_IF_H
7857 #include <net/if.h>
7858 #endif
7859
7860 int
7861 main ()
7862 {
7863 static struct ifreq ac_aggr;
7864 if (sizeof ac_aggr.ifr_addr)
7865 return 0;
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_member_struct_ifreq_ifr_addr=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ac_cv_member_struct_ifreq_ifr_addr=no
7898 fi
7899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 fi
7901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7905 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7909 _ACEOF
7910
7911
7912 fi
7913
7914
7915
7916 echo "$as_me:$LINENO: checking for function prototypes" >&5
7917 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7918 if test "$ac_cv_prog_cc_stdc" != no; then
7919 echo "$as_me:$LINENO: result: yes" >&5
7920 echo "${ECHO_T}yes" >&6
7921
7922 cat >>confdefs.h <<\_ACEOF
7923 #define PROTOTYPES 1
7924 _ACEOF
7925
7926
7927 cat >>confdefs.h <<\_ACEOF
7928 #define __PROTOTYPES 1
7929 _ACEOF
7930
7931 else
7932 echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6
7934 fi
7935
7936 echo "$as_me:$LINENO: checking for working volatile" >&5
7937 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7938 if test "${ac_cv_c_volatile+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947
7948 int
7949 main ()
7950 {
7951
7952 volatile int x;
7953 int * volatile y;
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_c_volatile=yes
7981 else
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_c_volatile=no
7986 fi
7987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7988 fi
7989 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7990 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7991 if test $ac_cv_c_volatile = no; then
7992
7993 cat >>confdefs.h <<\_ACEOF
7994 #define volatile
7995 _ACEOF
7996
7997 fi
7998
7999 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8001 if test "${ac_cv_c_const+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010
8011 int
8012 main ()
8013 {
8014 /* FIXME: Include the comments suggested by Paul. */
8015 #ifndef __cplusplus
8016 /* Ultrix mips cc rejects this. */
8017 typedef int charset[2];
8018 const charset x;
8019 /* SunOS 4.1.1 cc rejects this. */
8020 char const *const *ccp;
8021 char **p;
8022 /* NEC SVR4.0.2 mips cc rejects this. */
8023 struct point {int x, y;};
8024 static struct point const zero = {0,0};
8025 /* AIX XL C 1.02.0.0 rejects this.
8026 It does not let you subtract one const X* pointer from another in
8027 an arm of an if-expression whose if-part is not a constant
8028 expression */
8029 const char *g = "string";
8030 ccp = &g + (g ? g-g : 0);
8031 /* HPUX 7.0 cc rejects these. */
8032 ++ccp;
8033 p = (char**) ccp;
8034 ccp = (char const *const *) p;
8035 { /* SCO 3.2v4 cc rejects this. */
8036 char *t;
8037 char const *s = 0 ? (char *) 0 : (char const *) 0;
8038
8039 *t++ = 0;
8040 }
8041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8042 int x[] = {25, 17};
8043 const int *foo = &x[0];
8044 ++foo;
8045 }
8046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047 typedef const int *iptr;
8048 iptr p = 0;
8049 ++p;
8050 }
8051 { /* AIX XL C 1.02.0.0 rejects this saying
8052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053 struct s { int j; const int *ap[3]; };
8054 struct s *b; b->j = 5;
8055 }
8056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8057 const int foo = 10;
8058 }
8059 #endif
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_c_const=yes
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 ac_cv_c_const=no
8093 fi
8094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6
8098 if test $ac_cv_c_const = no; then
8099
8100 cat >>confdefs.h <<\_ACEOF
8101 #define const
8102 _ACEOF
8103
8104 fi
8105
8106 echo "$as_me:$LINENO: checking for void * support" >&5
8107 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8108 if test "${emacs_cv_void_star+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117
8118 int
8119 main ()
8120 {
8121 void * foo;
8122 ;
8123 return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8148 emacs_cv_void_star=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 emacs_cv_void_star=no
8154 fi
8155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8158 echo "${ECHO_T}$emacs_cv_void_star" >&6
8159 if test $emacs_cv_void_star = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161 #define POINTER_TYPE void
8162 _ACEOF
8163
8164 else
8165 cat >>confdefs.h <<\_ACEOF
8166 #define POINTER_TYPE char
8167 _ACEOF
8168
8169 fi
8170
8171
8172
8173
8174
8175 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8176 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8177 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8178 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 cat >conftest.make <<\_ACEOF
8182 all:
8183 @echo 'ac_maketemp="$(MAKE)"'
8184 _ACEOF
8185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8186 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8187 if test -n "$ac_maketemp"; then
8188 eval ac_cv_prog_make_${ac_make}_set=yes
8189 else
8190 eval ac_cv_prog_make_${ac_make}_set=no
8191 fi
8192 rm -f conftest.make
8193 fi
8194 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197 SET_MAKE=
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201 SET_MAKE="MAKE=${MAKE-make}"
8202 fi
8203
8204
8205 echo "$as_me:$LINENO: checking for long file names" >&5
8206 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8207 if test "${ac_cv_sys_long_file_names+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 ac_cv_sys_long_file_names=yes
8211 # Test for long file names in all the places we know might matter:
8212 # . the current directory, where building will happen
8213 # $prefix/lib where we will be installing things
8214 # $exec_prefix/lib likewise
8215 # eval it to expand exec_prefix.
8216 # $TMPDIR if set, where it might want to write temporary files
8217 # if $TMPDIR is not set:
8218 # /tmp where it might want to write temporary files
8219 # /var/tmp likewise
8220 # /usr/tmp likewise
8221 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8222 ac_tmpdirs=$TMPDIR
8223 else
8224 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8225 fi
8226 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8227 test -d $ac_dir || continue
8228 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8229 ac_xdir=$ac_dir/cf$$
8230 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8231 ac_tf1=$ac_xdir/conftest9012345
8232 ac_tf2=$ac_xdir/conftest9012346
8233 (echo 1 >$ac_tf1) 2>/dev/null
8234 (echo 2 >$ac_tf2) 2>/dev/null
8235 ac_val=`cat $ac_tf1 2>/dev/null`
8236 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8237 ac_cv_sys_long_file_names=no
8238 rm -rf $ac_xdir 2>/dev/null
8239 break
8240 fi
8241 rm -rf $ac_xdir 2>/dev/null
8242 done
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8245 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8246 if test $ac_cv_sys_long_file_names = yes; then
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_LONG_FILE_NAMES 1
8250 _ACEOF
8251
8252 fi
8253
8254
8255 #### Choose a window system.
8256
8257 echo "$as_me:$LINENO: checking for X" >&5
8258 echo $ECHO_N "checking for X... $ECHO_C" >&6
8259
8260
8261 # Check whether --with-x or --without-x was given.
8262 if test "${with_x+set}" = set; then
8263 withval="$with_x"
8264
8265 fi;
8266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8267 if test "x$with_x" = xno; then
8268 # The user explicitly disabled X.
8269 have_x=disabled
8270 else
8271 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8272 # Both variables are already set.
8273 have_x=yes
8274 else
8275 if test "${ac_cv_have_x+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 # One or both of the vars are not set, and there is no cached value.
8279 ac_x_includes=no ac_x_libraries=no
8280 rm -fr conftest.dir
8281 if mkdir conftest.dir; then
8282 cd conftest.dir
8283 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8284 cat >Imakefile <<'_ACEOF'
8285 acfindx:
8286 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8287 _ACEOF
8288 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8290 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8291 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8292 for ac_extension in a so sl; do
8293 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8294 test -f $ac_im_libdir/libX11.$ac_extension; then
8295 ac_im_usrlibdir=$ac_im_libdir; break
8296 fi
8297 done
8298 # Screen out bogus values from the imake configuration. They are
8299 # bogus both because they are the default anyway, and because
8300 # using them would break gcc on systems where it needs fixed includes.
8301 case $ac_im_incroot in
8302 /usr/include) ;;
8303 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8304 esac
8305 case $ac_im_usrlibdir in
8306 /usr/lib | /lib) ;;
8307 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8308 esac
8309 fi
8310 cd ..
8311 rm -fr conftest.dir
8312 fi
8313
8314 # Standard set of common directories for X headers.
8315 # Check X11 before X11Rn because it is often a symlink to the current release.
8316 ac_x_header_dirs='
8317 /usr/X11/include
8318 /usr/X11R6/include
8319 /usr/X11R5/include
8320 /usr/X11R4/include
8321
8322 /usr/include/X11
8323 /usr/include/X11R6
8324 /usr/include/X11R5
8325 /usr/include/X11R4
8326
8327 /usr/local/X11/include
8328 /usr/local/X11R6/include
8329 /usr/local/X11R5/include
8330 /usr/local/X11R4/include
8331
8332 /usr/local/include/X11
8333 /usr/local/include/X11R6
8334 /usr/local/include/X11R5
8335 /usr/local/include/X11R4
8336
8337 /usr/X386/include
8338 /usr/x386/include
8339 /usr/XFree86/include/X11
8340
8341 /usr/include
8342 /usr/local/include
8343 /usr/unsupported/include
8344 /usr/athena/include
8345 /usr/local/x11r5/include
8346 /usr/lpp/Xamples/include
8347
8348 /usr/openwin/include
8349 /usr/openwin/share/include'
8350
8351 if test "$ac_x_includes" = no; then
8352 # Guess where to find include files, by looking for Intrinsic.h.
8353 # First, try using that file with no special directory specified.
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <X11/Intrinsic.h>
8361 _ACEOF
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } >/dev/null; then
8370 if test -s conftest.err; then
8371 ac_cpp_err=$ac_c_preproc_warn_flag
8372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8373 else
8374 ac_cpp_err=
8375 fi
8376 else
8377 ac_cpp_err=yes
8378 fi
8379 if test -z "$ac_cpp_err"; then
8380 # We can compile using X headers with no special include directory.
8381 ac_x_includes=
8382 else
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 for ac_dir in $ac_x_header_dirs; do
8387 if test -r "$ac_dir/X11/Intrinsic.h"; then
8388 ac_x_includes=$ac_dir
8389 break
8390 fi
8391 done
8392 fi
8393 rm -f conftest.err conftest.$ac_ext
8394 fi # $ac_x_includes = no
8395
8396 if test "$ac_x_libraries" = no; then
8397 # Check for the libraries.
8398 # See if we find them without any special options.
8399 # Don't add to $LIBS permanently.
8400 ac_save_LIBS=$LIBS
8401 LIBS="-lXt $LIBS"
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <X11/Intrinsic.h>
8409 int
8410 main ()
8411 {
8412 XtMalloc (0)
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 LIBS=$ac_save_LIBS
8440 # We can link X programs with no special library path.
8441 ac_x_libraries=
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 LIBS=$ac_save_LIBS
8447 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8448 do
8449 # Don't even attempt the hair of trying to link an X program!
8450 for ac_extension in a so sl; do
8451 if test -r $ac_dir/libXt.$ac_extension; then
8452 ac_x_libraries=$ac_dir
8453 break 2
8454 fi
8455 done
8456 done
8457 fi
8458 rm -f conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 fi # $ac_x_libraries = no
8461
8462 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8463 # Didn't find X anywhere. Cache the known absence of X.
8464 ac_cv_have_x="have_x=no"
8465 else
8466 # Record where we found X for the cache.
8467 ac_cv_have_x="have_x=yes \
8468 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8469 fi
8470 fi
8471
8472 fi
8473 eval "$ac_cv_have_x"
8474 fi # $with_x != no
8475
8476 if test "$have_x" != yes; then
8477 echo "$as_me:$LINENO: result: $have_x" >&5
8478 echo "${ECHO_T}$have_x" >&6
8479 no_x=yes
8480 else
8481 # If each of the values was on the command line, it overrides each guess.
8482 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8483 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8484 # Update the cache value to reflect the command line values.
8485 ac_cv_have_x="have_x=yes \
8486 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8487 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8488 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8489 fi
8490
8491 if test "$no_x" = yes; then
8492 window_system=none
8493 else
8494 window_system=x11
8495 fi
8496
8497 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8498 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8499 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8500 x_default_search_path=""
8501 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8502 x_search_path="\
8503 ${x_library}/X11/%L/%T/%N%C%S:\
8504 ${x_library}/X11/%l/%T/%N%C%S:\
8505 ${x_library}/X11/%T/%N%C%S:\
8506 ${x_library}/X11/%L/%T/%N%S:\
8507 ${x_library}/X11/%l/%T/%N%S:\
8508 ${x_library}/X11/%T/%N%S"
8509 if test x"${x_default_search_path}" = x; then
8510 x_default_search_path=${x_search_path}
8511 else
8512 x_default_search_path="${x_search_path}:${x_default_search_path}"
8513 fi
8514 done
8515 fi
8516 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8517 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8518 fi
8519
8520 if test x"${x_includes}" = x; then
8521 bitmapdir=/usr/include/X11/bitmaps
8522 else
8523 # accumulate include directories that have X11 bitmap subdirectories
8524 bmd_acc="dummyval"
8525 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8526 if test -d "${bmd}/X11/bitmaps"; then
8527 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8528 fi
8529 if test -d "${bmd}/bitmaps"; then
8530 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8531 fi
8532 done
8533 if test ${bmd_acc} != "dummyval"; then
8534 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8535 fi
8536 fi
8537
8538 HAVE_CARBON=no
8539 if test "${with_carbon}" != no; then
8540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8541 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8542 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8543 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8547 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8548 else
8549 # Is the header compilable?
8550 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8551 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 $ac_includes_default
8559 #include <Carbon/Carbon.h>
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -z "$ac_c_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest.$ac_objext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_header_compiler=yes
8584 else
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_header_compiler=no
8589 fi
8590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8592 echo "${ECHO_T}$ac_header_compiler" >&6
8593
8594 # Is the header present?
8595 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8596 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 #include <Carbon/Carbon.h>
8604 _ACEOF
8605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } >/dev/null; then
8613 if test -s conftest.err; then
8614 ac_cpp_err=$ac_c_preproc_warn_flag
8615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8616 else
8617 ac_cpp_err=
8618 fi
8619 else
8620 ac_cpp_err=yes
8621 fi
8622 if test -z "$ac_cpp_err"; then
8623 ac_header_preproc=yes
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 ac_header_preproc=no
8629 fi
8630 rm -f conftest.err conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8632 echo "${ECHO_T}$ac_header_preproc" >&6
8633
8634 # So? What about this header?
8635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8636 yes:no: )
8637 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8638 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8640 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8641 ac_header_preproc=yes
8642 ;;
8643 no:yes:* )
8644 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8645 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8647 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8649 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8651 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8655 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8656 (
8657 cat <<\_ASBOX
8658 ## ------------------------------------------ ##
8659 ## Report this to the AC_PACKAGE_NAME lists. ##
8660 ## ------------------------------------------ ##
8661 _ASBOX
8662 ) |
8663 sed "s/^/$as_me: WARNING: /" >&2
8664 ;;
8665 esac
8666 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8667 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8675
8676 fi
8677 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8678 HAVE_CARBON=yes
8679 fi
8680
8681
8682 fi
8683 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8684 if test "${with_carbon+set}" != set \
8685 && test "${carbon_appdir_x+set}" != set; then
8686 HAVE_CARBON=no
8687 fi
8688 fi
8689 if test "${HAVE_CARBON}" = yes; then
8690 window_system=mac
8691 fi
8692
8693 case "${window_system}" in
8694 x11 )
8695 HAVE_X_WINDOWS=yes
8696 HAVE_X11=yes
8697 case "${with_x_toolkit}" in
8698 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8699 motif ) USE_X_TOOLKIT=MOTIF ;;
8700 gtk ) with_gtk=yes
8701 USE_X_TOOLKIT=none ;;
8702 no ) USE_X_TOOLKIT=none ;;
8703 * ) USE_X_TOOLKIT=maybe ;;
8704 esac
8705 ;;
8706 mac | none )
8707 HAVE_X_WINDOWS=no
8708 HAVE_X11=no
8709 USE_X_TOOLKIT=none
8710 ;;
8711 esac
8712
8713 ### If we're using X11, we should use the X menu package.
8714 HAVE_MENUS=no
8715 case ${HAVE_X11} in
8716 yes ) HAVE_MENUS=yes ;;
8717 esac
8718
8719 if test "${opsys}" = "hpux9"; then
8720 case "${x_libraries}" in
8721 *X11R4* )
8722 opsysfile="s/hpux9-x11r4.h"
8723 ;;
8724 esac
8725 fi
8726
8727 if test "${opsys}" = "hpux9shr"; then
8728 case "${x_libraries}" in
8729 *X11R4* )
8730 opsysfile="s/hpux9shxr4.h"
8731 ;;
8732 esac
8733 fi
8734
8735 ### Compute the unexec source name from the object name.
8736 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8737
8738 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8739 # Assume not, until told otherwise.
8740 GNU_MALLOC=yes
8741 doug_lea_malloc=yes
8742 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8743 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8744 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8755 #define malloc_get_state innocuous_malloc_get_state
8756
8757 /* System header to define __stub macros and hopefully few prototypes,
8758 which can conflict with char malloc_get_state (); below.
8759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8760 <limits.h> exists even on freestanding compilers. */
8761
8762 #ifdef __STDC__
8763 # include <limits.h>
8764 #else
8765 # include <assert.h>
8766 #endif
8767
8768 #undef malloc_get_state
8769
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 {
8774 #endif
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8777 char malloc_get_state ();
8778 /* The GNU C library defines this for functions which it implements
8779 to always fail with ENOSYS. Some functions are actually named
8780 something starting with __ and the normal name is an alias. */
8781 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8782 choke me
8783 #else
8784 char (*f) () = malloc_get_state;
8785 #endif
8786 #ifdef __cplusplus
8787 }
8788 #endif
8789
8790 int
8791 main ()
8792 {
8793 return f != malloc_get_state;
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_func_malloc_get_state=yes
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_cv_func_malloc_get_state=no
8826 fi
8827 rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 fi
8830 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8831 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8832 if test $ac_cv_func_malloc_get_state = yes; then
8833 :
8834 else
8835 doug_lea_malloc=no
8836 fi
8837
8838 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8839 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8840 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8851 #define malloc_set_state innocuous_malloc_set_state
8852
8853 /* System header to define __stub macros and hopefully few prototypes,
8854 which can conflict with char malloc_set_state (); below.
8855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8856 <limits.h> exists even on freestanding compilers. */
8857
8858 #ifdef __STDC__
8859 # include <limits.h>
8860 #else
8861 # include <assert.h>
8862 #endif
8863
8864 #undef malloc_set_state
8865
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 {
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char malloc_set_state ();
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8878 choke me
8879 #else
8880 char (*f) () = malloc_set_state;
8881 #endif
8882 #ifdef __cplusplus
8883 }
8884 #endif
8885
8886 int
8887 main ()
8888 {
8889 return f != malloc_set_state;
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_func_malloc_set_state=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_func_malloc_set_state=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 fi
8926 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8927 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8928 if test $ac_cv_func_malloc_set_state = yes; then
8929 :
8930 else
8931 doug_lea_malloc=no
8932 fi
8933
8934 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8935 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8936 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 extern void (* __after_morecore_hook)();
8946 int
8947 main ()
8948 {
8949 __after_morecore_hook = 0
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 (eval $ac_try) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 emacs_cv_var___after_morecore_hook=yes
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 emacs_cv_var___after_morecore_hook=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext conftest.$ac_ext
8985 fi
8986 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8987 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8988 if test $emacs_cv_var___after_morecore_hook = no; then
8989 doug_lea_malloc=no
8990 fi
8991 if test "${system_malloc}" = "yes"; then
8992 GNU_MALLOC=no
8993 GNU_MALLOC_reason="
8994 (The GNU allocators don't work with this system configuration.)"
8995 fi
8996 if test "$doug_lea_malloc" = "yes" ; then
8997 if test "$GNU_MALLOC" = yes ; then
8998 GNU_MALLOC_reason="
8999 (Using Doug Lea's new malloc from the GNU C Library.)"
9000 fi
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define DOUG_LEA_MALLOC 1
9004 _ACEOF
9005
9006 fi
9007
9008 if test x"${REL_ALLOC}" = x; then
9009 REL_ALLOC=${GNU_MALLOC}
9010 fi
9011
9012
9013
9014
9015 for ac_header in stdlib.h unistd.h
9016 do
9017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo "$as_me:$LINENO: checking for $ac_header" >&5
9020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 fi
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026 else
9027 # Is the header compilable?
9028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9037 #include <$ac_header>
9038 _ACEOF
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag"
9049 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try='test -s conftest.$ac_objext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_header_compiler=yes
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066 ac_header_compiler=no
9067 fi
9068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9070 echo "${ECHO_T}$ac_header_compiler" >&6
9071
9072 # Is the header present?
9073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 #include <$ac_header>
9082 _ACEOF
9083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } >/dev/null; then
9091 if test -s conftest.err; then
9092 ac_cpp_err=$ac_c_preproc_warn_flag
9093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9094 else
9095 ac_cpp_err=
9096 fi
9097 else
9098 ac_cpp_err=yes
9099 fi
9100 if test -z "$ac_cpp_err"; then
9101 ac_header_preproc=yes
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9105
9106 ac_header_preproc=no
9107 fi
9108 rm -f conftest.err conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9110 echo "${ECHO_T}$ac_header_preproc" >&6
9111
9112 # So? What about this header?
9113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9114 yes:no: )
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9119 ac_header_preproc=yes
9120 ;;
9121 no:yes:* )
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9134 (
9135 cat <<\_ASBOX
9136 ## ------------------------------------------ ##
9137 ## Report this to the AC_PACKAGE_NAME lists. ##
9138 ## ------------------------------------------ ##
9139 _ASBOX
9140 ) |
9141 sed "s/^/$as_me: WARNING: /" >&2
9142 ;;
9143 esac
9144 echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149 eval "$as_ac_Header=\$ac_header_preproc"
9150 fi
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9153
9154 fi
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164
9165 for ac_func in getpagesize
9166 do
9167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9168 echo "$as_me:$LINENO: checking for $ac_func" >&5
9169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_var+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9181 #define $ac_func innocuous_$ac_func
9182
9183 /* System header to define __stub macros and hopefully few prototypes,
9184 which can conflict with char $ac_func (); below.
9185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186 <limits.h> exists even on freestanding compilers. */
9187
9188 #ifdef __STDC__
9189 # include <limits.h>
9190 #else
9191 # include <assert.h>
9192 #endif
9193
9194 #undef $ac_func
9195
9196 /* Override any gcc2 internal prototype to avoid an error. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 {
9200 #endif
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9203 char $ac_func ();
9204 /* The GNU C library defines this for functions which it implements
9205 to always fail with ENOSYS. Some functions are actually named
9206 something starting with __ and the normal name is an alias. */
9207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9208 choke me
9209 #else
9210 char (*f) () = $ac_func;
9211 #endif
9212 #ifdef __cplusplus
9213 }
9214 #endif
9215
9216 int
9217 main ()
9218 {
9219 return f != $ac_func;
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_var=yes"
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 eval "$as_ac_var=no"
9252 fi
9253 rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9261 _ACEOF
9262
9263 fi
9264 done
9265
9266 echo "$as_me:$LINENO: checking for working mmap" >&5
9267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 if test "$cross_compiling" = yes; then
9272 ac_cv_func_mmap_fixed_mapped=no
9273 else
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 $ac_includes_default
9281 /* malloc might have been renamed as rpl_malloc. */
9282 #undef malloc
9283
9284 /* Thanks to Mike Haertel and Jim Avera for this test.
9285 Here is a matrix of mmap possibilities:
9286 mmap private not fixed
9287 mmap private fixed at somewhere currently unmapped
9288 mmap private fixed at somewhere already mapped
9289 mmap shared not fixed
9290 mmap shared fixed at somewhere currently unmapped
9291 mmap shared fixed at somewhere already mapped
9292 For private mappings, we should verify that changes cannot be read()
9293 back from the file, nor mmap's back from the file at a different
9294 address. (There have been systems where private was not correctly
9295 implemented like the infamous i386 svr4.0, and systems where the
9296 VM page cache was not coherent with the file system buffer cache
9297 like early versions of FreeBSD and possibly contemporary NetBSD.)
9298 For shared mappings, we should conversely verify that changes get
9299 propagated back to all the places they're supposed to be.
9300
9301 Grep wants private fixed already mapped.
9302 The main things grep needs to know about mmap are:
9303 * does it exist and is it safe to write into the mmap'd area
9304 * how to use it (BSD variants) */
9305
9306 #include <fcntl.h>
9307 #include <sys/mman.h>
9308
9309 #if !STDC_HEADERS && !HAVE_STDLIB_H
9310 char *malloc ();
9311 #endif
9312
9313 /* This mess was copied from the GNU getpagesize.h. */
9314 #if !HAVE_GETPAGESIZE
9315 /* Assume that all systems that can run configure have sys/param.h. */
9316 # if !HAVE_SYS_PARAM_H
9317 # define HAVE_SYS_PARAM_H 1
9318 # endif
9319
9320 # ifdef _SC_PAGESIZE
9321 # define getpagesize() sysconf(_SC_PAGESIZE)
9322 # else /* no _SC_PAGESIZE */
9323 # if HAVE_SYS_PARAM_H
9324 # include <sys/param.h>
9325 # ifdef EXEC_PAGESIZE
9326 # define getpagesize() EXEC_PAGESIZE
9327 # else /* no EXEC_PAGESIZE */
9328 # ifdef NBPG
9329 # define getpagesize() NBPG * CLSIZE
9330 # ifndef CLSIZE
9331 # define CLSIZE 1
9332 # endif /* no CLSIZE */
9333 # else /* no NBPG */
9334 # ifdef NBPC
9335 # define getpagesize() NBPC
9336 # else /* no NBPC */
9337 # ifdef PAGESIZE
9338 # define getpagesize() PAGESIZE
9339 # endif /* PAGESIZE */
9340 # endif /* no NBPC */
9341 # endif /* no NBPG */
9342 # endif /* no EXEC_PAGESIZE */
9343 # else /* no HAVE_SYS_PARAM_H */
9344 # define getpagesize() 8192 /* punt totally */
9345 # endif /* no HAVE_SYS_PARAM_H */
9346 # endif /* no _SC_PAGESIZE */
9347
9348 #endif /* no HAVE_GETPAGESIZE */
9349
9350 int
9351 main ()
9352 {
9353 char *data, *data2, *data3;
9354 int i, pagesize;
9355 int fd;
9356
9357 pagesize = getpagesize ();
9358
9359 /* First, make a file with some known garbage in it. */
9360 data = (char *) malloc (pagesize);
9361 if (!data)
9362 exit (1);
9363 for (i = 0; i < pagesize; ++i)
9364 *(data + i) = rand ();
9365 umask (0);
9366 fd = creat ("conftest.mmap", 0600);
9367 if (fd < 0)
9368 exit (1);
9369 if (write (fd, data, pagesize) != pagesize)
9370 exit (1);
9371 close (fd);
9372
9373 /* Next, try to mmap the file at a fixed address which already has
9374 something else allocated at it. If we can, also make sure that
9375 we see the same garbage. */
9376 fd = open ("conftest.mmap", O_RDWR);
9377 if (fd < 0)
9378 exit (1);
9379 data2 = (char *) malloc (2 * pagesize);
9380 if (!data2)
9381 exit (1);
9382 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9385 exit (1);
9386 for (i = 0; i < pagesize; ++i)
9387 if (*(data + i) != *(data2 + i))
9388 exit (1);
9389
9390 /* Finally, make sure that changes to the mapped area do not
9391 percolate back to the file as seen by read(). (This is a bug on
9392 some variants of i386 svr4.0.) */
9393 for (i = 0; i < pagesize; ++i)
9394 *(data2 + i) = *(data2 + i) + 1;
9395 data3 = (char *) malloc (pagesize);
9396 if (!data3)
9397 exit (1);
9398 if (read (fd, data3, pagesize) != pagesize)
9399 exit (1);
9400 for (i = 0; i < pagesize; ++i)
9401 if (*(data + i) != *(data3 + i))
9402 exit (1);
9403 close (fd);
9404 exit (0);
9405 }
9406 _ACEOF
9407 rm -f conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_func_mmap_fixed_mapped=yes
9419 else
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ( exit $ac_status )
9425 ac_cv_func_mmap_fixed_mapped=no
9426 fi
9427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 fi
9430 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9431 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9432 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9433
9434 cat >>confdefs.h <<\_ACEOF
9435 #define HAVE_MMAP 1
9436 _ACEOF
9437
9438 fi
9439 rm -f conftest.mmap
9440
9441 if test $use_mmap_for_buffers = yes; then
9442 REL_ALLOC=no
9443 fi
9444
9445 LIBS="$libsrc_libs $LIBS"
9446
9447
9448 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9449 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_check_lib_save_LIBS=$LIBS
9454 LIBS="-ldnet $LIBS"
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9468 char dnet_ntoa ();
9469 int
9470 main ()
9471 {
9472 dnet_ntoa ();
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_lib_dnet_dnet_ntoa=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_lib_dnet_dnet_ntoa=no
9505 fi
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9509 fi
9510 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9512 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9513 cat >>confdefs.h <<_ACEOF
9514 #define HAVE_LIBDNET 1
9515 _ACEOF
9516
9517 LIBS="-ldnet $LIBS"
9518
9519 fi
9520
9521
9522 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9523 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9524 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 ac_check_lib_save_LIBS=$LIBS
9528 LIBS="-lXbsd $LIBS"
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h. */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535
9536
9537 int
9538 main ()
9539 {
9540 main ();
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest$ac_exeext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 (eval $ac_try) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_lib_Xbsd_main=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 ac_cv_lib_Xbsd_main=no
9573 fi
9574 rm -f conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LIBS=$ac_check_lib_save_LIBS
9577 fi
9578 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9579 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9580 if test $ac_cv_lib_Xbsd_main = yes; then
9581 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9582 fi
9583
9584
9585
9586 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9587 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9588 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-lpthreads $LIBS"
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599
9600 /* Override any gcc2 internal prototype to avoid an error. */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9606 char cma_open ();
9607 int
9608 main ()
9609 {
9610 cma_open ();
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"
9625 || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_cv_lib_pthreads_cma_open=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 ac_cv_lib_pthreads_cma_open=no
9643 fi
9644 rm -f conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9647 fi
9648 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9649 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9650 if test $ac_cv_lib_pthreads_cma_open = yes; then
9651 cat >>confdefs.h <<_ACEOF
9652 #define HAVE_LIBPTHREADS 1
9653 _ACEOF
9654
9655 LIBS="-lpthreads $LIBS"
9656
9657 fi
9658
9659
9660 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9661 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9662 if test -d /usr/X386/include; then
9663 HAVE_XFREE386=yes
9664 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9665 else
9666 HAVE_XFREE386=no
9667 fi
9668 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9669 echo "${ECHO_T}$HAVE_XFREE386" >&6
9670
9671
9672 case ${host_os} in
9673 aix*)
9674 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9675 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9676 if test "${gdb_cv_bigtoc+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679
9680 case $GCC in
9681 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9682 *) gdb_cv_bigtoc=-bbigtoc ;;
9683 esac
9684
9685 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9686 cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692
9693 int
9694 main ()
9695 {
9696 int i;
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 :
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 gdb_cv_bigtoc=
9729 fi
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732
9733 fi
9734 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9735 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9736 ;;
9737 esac
9738
9739 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9740 # used for the tests that follow. We set them back to REAL_CFLAGS and
9741 # REAL_CPPFLAGS later on.
9742
9743 REAL_CPPFLAGS="$CPPFLAGS"
9744
9745 if test "${HAVE_X11}" = "yes"; then
9746 DEFS="$C_SWITCH_X_SITE $DEFS"
9747 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9748 LIBS="$LIBX $LIBS"
9749 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9750 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9751
9752 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9753 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9754 # but it's more convenient here to set LD_RUN_PATH
9755 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9756 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9757 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9758 export LD_RUN_PATH
9759 fi
9760
9761 if test "${opsys}" = "gnu-linux"; then
9762 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9763 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770
9771 int
9772 main ()
9773 {
9774 XOpenDisplay ("foo");
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 xlinux_first_failure=no
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 xlinux_first_failure=yes
9807 fi
9808 rm -f conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 if test "${xlinux_first_failure}" = "yes"; then
9811 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9812 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9813 OLD_CPPFLAGS="$CPPFLAGS"
9814 OLD_LIBS="$LIBS"
9815 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9816 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9817 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9818 LIBS="$LIBS -b i486-linuxaout"
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825
9826 int
9827 main ()
9828 {
9829 XOpenDisplay ("foo");
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 xlinux_second_failure=no
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 xlinux_second_failure=yes
9862 fi
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 if test "${xlinux_second_failure}" = "yes"; then
9866 # If we get the same failure with -b, there is no use adding -b.
9867 # So take it out. This plays safe.
9868 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9869 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9870 CPPFLAGS="$OLD_CPPFLAGS"
9871 LIBS="$OLD_LIBS"
9872 echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6
9874 else
9875 echo "$as_me:$LINENO: result: yes" >&5
9876 echo "${ECHO_T}yes" >&6
9877 fi
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880 echo "${ECHO_T}no" >&6
9881 fi
9882 fi
9883
9884 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9885 # header files included from there.
9886 echo "$as_me:$LINENO: checking for Xkb" >&5
9887 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 #include <X11/Xlib.h>
9895 #include <X11/XKBlib.h>
9896 int
9897 main ()
9898 {
9899 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 emacs_xkb=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 emacs_xkb=no
9932 fi
9933 rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9936 echo "${ECHO_T}$emacs_xkb" >&6
9937 if test $emacs_xkb = yes; then
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_XKBGETKEYBOARD 1
9941 _ACEOF
9942
9943 fi
9944
9945
9946
9947
9948
9949 for ac_func in XrmSetDatabase XScreenResourceString \
9950 XScreenNumberOfScreen XSetWMProtocols
9951 do
9952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9953 echo "$as_me:$LINENO: checking for $ac_func" >&5
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_var+set}\" = set"; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966 #define $ac_func innocuous_$ac_func
9967
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9972
9973 #ifdef __STDC__
9974 # include <limits.h>
9975 #else
9976 # include <assert.h>
9977 #endif
9978
9979 #undef $ac_func
9980
9981 /* Override any gcc2 internal prototype to avoid an error. */
9982 #ifdef __cplusplus
9983 extern "C"
9984 {
9985 #endif
9986 /* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9988 char $ac_func ();
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9993 choke me
9994 #else
9995 char (*f) () = $ac_func;
9996 #endif
9997 #ifdef __cplusplus
9998 }
9999 #endif
10000
10001 int
10002 main ()
10003 {
10004 return f != $ac_func;
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 eval "$as_ac_var=yes"
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 eval "$as_ac_var=no"
10037 fi
10038 rm -f conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 fi
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10043 if test `eval echo '${'$as_ac_var'}'` = yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046 _ACEOF
10047
10048 fi
10049 done
10050
10051 fi
10052
10053 if test "${window_system}" = "x11"; then
10054 echo "$as_me:$LINENO: checking X11 version 6" >&5
10055 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10056 if test "${emacs_cv_x11_version_6+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 #include <X11/Xlib.h>
10066 int
10067 main ()
10068 {
10069 #if XlibSpecificationRelease < 6
10070 fail;
10071 #endif
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 emacs_cv_x11_version_6=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 emacs_cv_x11_version_6=no
10105 fi
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 fi
10109
10110 if test $emacs_cv_x11_version_6 = yes; then
10111 echo "$as_me:$LINENO: result: 6 or newer" >&5
10112 echo "${ECHO_T}6 or newer" >&6
10113
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_X11R6 1
10116 _ACEOF
10117
10118 else
10119 echo "$as_me:$LINENO: result: before 6" >&5
10120 echo "${ECHO_T}before 6" >&6
10121 fi
10122 fi
10123
10124 if test "${window_system}" = "x11"; then
10125 echo "$as_me:$LINENO: checking X11 version 5" >&5
10126 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10127 if test "${emacs_cv_x11_version_5+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 #include <X11/Xlib.h>
10137 int
10138 main ()
10139 {
10140 #if XlibSpecificationRelease < 5
10141 fail;
10142 #endif
10143
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 emacs_cv_x11_version_5=yes
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 emacs_cv_x11_version_5=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 fi
10180
10181 if test $emacs_cv_x11_version_5 = yes; then
10182 echo "$as_me:$LINENO: result: 5 or newer" >&5
10183 echo "${ECHO_T}5 or newer" >&6
10184 HAVE_X11R5=yes
10185
10186 cat >>confdefs.h <<\_ACEOF
10187 #define HAVE_X11R5 1
10188 _ACEOF
10189
10190 else
10191 HAVE_X11R5=no
10192 echo "$as_me:$LINENO: result: before 5" >&5
10193 echo "${ECHO_T}before 5" >&6
10194 fi
10195 fi
10196
10197
10198
10199 HAVE_GTK=no
10200 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10201 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10202 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10203 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10204 { (exit 1); exit 1; }; };
10205 fi
10206 GLIB_REQUIRED=2.4
10207 GTK_REQUIRED=2.4
10208 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10209
10210 if test "X${with_pkg_config_prog}" != X; then
10211 PKG_CONFIG="${with_pkg_config_prog}"
10212 fi
10213
10214 succeeded=no
10215
10216 if test -z "$PKG_CONFIG"; then
10217 # Extract the first word of "pkg-config", so it can be a program name with args.
10218 set dummy pkg-config; ac_word=$2
10219 echo "$as_me:$LINENO: checking for $ac_word" >&5
10220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10221 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 case $PKG_CONFIG in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10227 ;;
10228 *)
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240 done
10241 done
10242
10243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10244 ;;
10245 esac
10246 fi
10247 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10248
10249 if test -n "$PKG_CONFIG"; then
10250 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10251 echo "${ECHO_T}$PKG_CONFIG" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254 echo "${ECHO_T}no" >&6
10255 fi
10256
10257 fi
10258
10259 if test "$PKG_CONFIG" = "no" ; then
10260 echo "*** The pkg-config script could not be found. Make sure it is"
10261 echo "*** in your path, or give the full path to pkg-config with"
10262 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10263 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10264 else
10265 PKG_CONFIG_MIN_VERSION=0.9.0
10266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10267 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10268 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10269
10270 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10271 echo "$as_me:$LINENO: result: yes" >&5
10272 echo "${ECHO_T}yes" >&6
10273 succeeded=yes
10274
10275 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10276 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10277 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10278 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10279 echo "${ECHO_T}$GTK_CFLAGS" >&6
10280
10281 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10282 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10283 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10284 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10285 echo "${ECHO_T}$GTK_LIBS" >&6
10286 else
10287 GTK_CFLAGS=""
10288 GTK_LIBS=""
10289 ## If we have a custom action on failure, don't print errors, but
10290 ## do set a variable so people can do so.
10291 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10292 echo $GTK_PKG_ERRORS
10293 fi
10294
10295
10296
10297 else
10298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10300 fi
10301 fi
10302
10303 if test $succeeded = yes; then
10304 :
10305 else
10306 { { 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
10307 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;}
10308 { (exit 1); exit 1; }; }
10309 fi
10310
10311
10312
10313 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10314 CFLAGS="$CFLAGS $GTK_CFLAGS"
10315 LIBS="$GTK_LIBS $LIBS"
10316 HAVE_GTK=yes
10317
10318 cat >>confdefs.h <<\_ACEOF
10319 #define HAVE_GTK 1
10320 _ACEOF
10321
10322 USE_X_TOOLKIT=none
10323
10324 if test "$with_toolkit_scroll_bars" != no; then
10325 with_toolkit_scroll_bars=yes
10326 fi
10327
10328 HAVE_GTK_MULTIDISPLAY=no
10329
10330 for ac_func in gdk_display_open
10331 do
10332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333 echo "$as_me:$LINENO: checking for $ac_func" >&5
10334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10335 if eval "test \"\${$as_ac_var+set}\" = set"; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10346 #define $ac_func innocuous_$ac_func
10347
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char $ac_func (); below.
10350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10351 <limits.h> exists even on freestanding compilers. */
10352
10353 #ifdef __STDC__
10354 # include <limits.h>
10355 #else
10356 # include <assert.h>
10357 #endif
10358
10359 #undef $ac_func
10360
10361 /* Override any gcc2 internal prototype to avoid an error. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 {
10365 #endif
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10368 char $ac_func ();
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10373 choke me
10374 #else
10375 char (*f) () = $ac_func;
10376 #endif
10377 #ifdef __cplusplus
10378 }
10379 #endif
10380
10381 int
10382 main ()
10383 {
10384 return f != $ac_func;
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 eval "$as_ac_var=yes"
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10415
10416 eval "$as_ac_var=no"
10417 fi
10418 rm -f conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 fi
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10423 if test `eval echo '${'$as_ac_var'}'` = yes; then
10424 cat >>confdefs.h <<_ACEOF
10425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10426 _ACEOF
10427 HAVE_GTK_MULTIDISPLAY=yes
10428 fi
10429 done
10430
10431 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_GTK_MULTIDISPLAY 1
10435 _ACEOF
10436
10437 fi
10438 HAVE_GTK_FILE_SELECTION=no
10439
10440 for ac_func in gtk_file_selection_new
10441 do
10442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10443 echo "$as_me:$LINENO: checking for $ac_func" >&5
10444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10445 if eval "test \"\${$as_ac_var+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10456 #define $ac_func innocuous_$ac_func
10457
10458 /* System header to define __stub macros and hopefully few prototypes,
10459 which can conflict with char $ac_func (); below.
10460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10461 <limits.h> exists even on freestanding compilers. */
10462
10463 #ifdef __STDC__
10464 # include <limits.h>
10465 #else
10466 # include <assert.h>
10467 #endif
10468
10469 #undef $ac_func
10470
10471 /* Override any gcc2 internal prototype to avoid an error. */
10472 #ifdef __cplusplus
10473 extern "C"
10474 {
10475 #endif
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char $ac_func ();
10479 /* The GNU C library defines this for functions which it implements
10480 to always fail with ENOSYS. Some functions are actually named
10481 something starting with __ and the normal name is an alias. */
10482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10483 choke me
10484 #else
10485 char (*f) () = $ac_func;
10486 #endif
10487 #ifdef __cplusplus
10488 }
10489 #endif
10490
10491 int
10492 main ()
10493 {
10494 return f != $ac_func;
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 eval "$as_ac_var=yes"
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 eval "$as_ac_var=no"
10527 fi
10528 rm -f conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 fi
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10533 if test `eval echo '${'$as_ac_var'}'` = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10536 _ACEOF
10537 HAVE_GTK_FILE_SELECTION=yes
10538 fi
10539 done
10540
10541
10542 HAVE_GTK_FILE_CHOOSER=no
10543
10544 for ac_func in gtk_file_chooser_dialog_new
10545 do
10546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10547 echo "$as_me:$LINENO: checking for $ac_func" >&5
10548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_var+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552 cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h. */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10560 #define $ac_func innocuous_$ac_func
10561
10562 /* System header to define __stub macros and hopefully few prototypes,
10563 which can conflict with char $ac_func (); below.
10564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10565 <limits.h> exists even on freestanding compilers. */
10566
10567 #ifdef __STDC__
10568 # include <limits.h>
10569 #else
10570 # include <assert.h>
10571 #endif
10572
10573 #undef $ac_func
10574
10575 /* Override any gcc2 internal prototype to avoid an error. */
10576 #ifdef __cplusplus
10577 extern "C"
10578 {
10579 #endif
10580 /* We use char because int might match the return type of a gcc2
10581 builtin and then its argument prototype would still apply. */
10582 char $ac_func ();
10583 /* The GNU C library defines this for functions which it implements
10584 to always fail with ENOSYS. Some functions are actually named
10585 something starting with __ and the normal name is an alias. */
10586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10587 choke me
10588 #else
10589 char (*f) () = $ac_func;
10590 #endif
10591 #ifdef __cplusplus
10592 }
10593 #endif
10594
10595 int
10596 main ()
10597 {
10598 return f != $ac_func;
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605 (eval $ac_link) 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -z "$ac_c_werror_flag"
10613 || test ! -s conftest.err'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; } &&
10619 { ac_try='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 eval "$as_ac_var=yes"
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 eval "$as_ac_var=no"
10631 fi
10632 rm -f conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634 fi
10635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10637 if test `eval echo '${'$as_ac_var'}'` = yes; then
10638 cat >>confdefs.h <<_ACEOF
10639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10640 _ACEOF
10641 HAVE_GTK_FILE_CHOOSER=yes
10642 fi
10643 done
10644
10645
10646 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10647 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10648
10649 cat >>confdefs.h <<\_ACEOF
10650 #define HAVE_GTK_FILE_BOTH 1
10651 _ACEOF
10652
10653 fi
10654
10655 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10656 HAVE_GTK_AND_PTHREAD=no
10657
10658 for ac_header in pthread.h
10659 do
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 fi
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10669 else
10670 # Is the header compilable?
10671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 $ac_includes_default
10680 #include <$ac_header>
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_header_compiler=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_header_compiler=no
10710 fi
10711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6
10714
10715 # Is the header present?
10716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <$ac_header>
10725 _ACEOF
10726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } >/dev/null; then
10734 if test -s conftest.err; then
10735 ac_cpp_err=$ac_c_preproc_warn_flag
10736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10737 else
10738 ac_cpp_err=
10739 fi
10740 else
10741 ac_cpp_err=yes
10742 fi
10743 if test -z "$ac_cpp_err"; then
10744 ac_header_preproc=yes
10745 else
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ac_header_preproc=no
10750 fi
10751 rm -f conftest.err conftest.$ac_ext
10752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10753 echo "${ECHO_T}$ac_header_preproc" >&6
10754
10755 # So? What about this header?
10756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10757 yes:no: )
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10762 ac_header_preproc=yes
10763 ;;
10764 no:yes:* )
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10777 (
10778 cat <<\_ASBOX
10779 ## ------------------------------------------ ##
10780 ## Report this to the AC_PACKAGE_NAME lists. ##
10781 ## ------------------------------------------ ##
10782 _ASBOX
10783 ) |
10784 sed "s/^/$as_me: WARNING: /" >&2
10785 ;;
10786 esac
10787 echo "$as_me:$LINENO: checking for $ac_header" >&5
10788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 eval "$as_ac_Header=\$ac_header_preproc"
10793 fi
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796
10797 fi
10798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10799 cat >>confdefs.h <<_ACEOF
10800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10801 _ACEOF
10802
10803 fi
10804
10805 done
10806
10807 if test "$ac_cv_header_pthread_h"; then
10808 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10809 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10810 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lpthread $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821
10822 /* Override any gcc2 internal prototype to avoid an error. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char pthread_self ();
10829 int
10830 main ()
10831 {
10832 pthread_self ();
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_lib_pthread_pthread_self=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_cv_lib_pthread_pthread_self=no
10865 fi
10866 rm -f conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10871 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10872 if test $ac_cv_lib_pthread_pthread_self = yes; then
10873 HAVE_GTK_AND_PTHREAD=yes
10874 fi
10875
10876 fi
10877 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10878 GTK_LIBS="$GTK_LIBS -lpthread"
10879
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_GTK_AND_PTHREAD 1
10882 _ACEOF
10883
10884 fi
10885 fi
10886 fi
10887
10888 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10889 if test x"${HAVE_X11R5}" = xyes; then
10890 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10891 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10892 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h. */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901
10902 #include <X11/Intrinsic.h>
10903 #include <X11/Xaw/Simple.h>
10904 int
10905 main ()
10906 {
10907
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 emacs_cv_x11_version_5_with_xaw=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 emacs_cv_x11_version_5_with_xaw=no
10940 fi
10941 rm -f conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10943 fi
10944
10945 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10946 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10947 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10948 USE_X_TOOLKIT=LUCID
10949 else
10950 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10951 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10952 USE_X_TOOLKIT=none
10953 fi
10954 else
10955 USE_X_TOOLKIT=none
10956 fi
10957 fi
10958
10959 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10960
10961 if test "${USE_X_TOOLKIT}" != "none"; then
10962 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10963 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10964 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 #include <X11/Intrinsic.h>
10974 int
10975 main ()
10976 {
10977 #if XtSpecificationRelease < 6
10978 fail;
10979 #endif
10980
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 emacs_cv_x11_toolkit_version_6=yes
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 emacs_cv_x11_toolkit_version_6=no
11013 fi
11014 rm -f conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 fi
11017
11018 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11019 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11020 echo "$as_me:$LINENO: result: 6 or newer" >&5
11021 echo "${ECHO_T}6 or newer" >&6
11022
11023 cat >>confdefs.h <<\_ACEOF
11024 #define HAVE_X11XTR6 1
11025 _ACEOF
11026
11027 else
11028 echo "$as_me:$LINENO: result: before 6" >&5
11029 echo "${ECHO_T}before 6" >&6
11030 fi
11031
11032 OLDLIBS="$LIBS"
11033 if test x$HAVE_X11XTR6 = xyes; then
11034 LIBS="-lXt -lSM -lICE $LIBS"
11035 else
11036 LIBS="-lXt $LIBS"
11037 fi
11038
11039 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11040 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11041 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-lXmu $LIBS"
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052
11053 /* Override any gcc2 internal prototype to avoid an error. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char XmuConvertStandardSelection ();
11060 int
11061 main ()
11062 {
11063 XmuConvertStandardSelection ();
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11091 else
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11096 fi
11097 rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11102 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11103 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define HAVE_LIBXMU 1
11106 _ACEOF
11107
11108 LIBS="-lXmu $LIBS"
11109
11110 fi
11111
11112 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11113 fi
11114
11115 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11116 if test "${HAVE_X11}" = "yes"; then
11117 if test "${USE_X_TOOLKIT}" != "none"; then
11118
11119 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11120 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11121 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 ac_check_lib_save_LIBS=$LIBS
11125 LIBS="-lXext $LIBS"
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132
11133 /* Override any gcc2 internal prototype to avoid an error. */
11134 #ifdef __cplusplus
11135 extern "C"
11136 #endif
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char XShapeQueryExtension ();
11140 int
11141 main ()
11142 {
11143 XShapeQueryExtension ();
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_cv_lib_Xext_XShapeQueryExtension=yes
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_cv_lib_Xext_XShapeQueryExtension=no
11176 fi
11177 rm -f conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11180 fi
11181 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11182 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11183 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_LIBXEXT 1
11186 _ACEOF
11187
11188 LIBS="-lXext $LIBS"
11189
11190 fi
11191
11192 fi
11193 fi
11194
11195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11196 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11197 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11198 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <Xm/Xm.h>
11208 int
11209 main ()
11210 {
11211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11212 int x = 5;
11213 #else
11214 Motif version prior to 2.1.
11215 #endif
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 emacs_cv_motif_version_2_1=yes
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 emacs_cv_motif_version_2_1=no
11248 fi
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250 fi
11251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11253 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11254 if test $emacs_cv_motif_version_2_1 = yes; then
11255 HAVE_LIBXP=no
11256
11257 cat >>confdefs.h <<\_ACEOF
11258 #define HAVE_MOTIF_2_1 1
11259 _ACEOF
11260
11261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lXp $LIBS"
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274
11275 /* Override any gcc2 internal prototype to avoid an error. */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char XpCreateContext ();
11282 int
11283 main ()
11284 {
11285 XpCreateContext ();
11286 ;
11287 return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_lib_Xp_XpCreateContext=yes
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_cv_lib_Xp_XpCreateContext=no
11318 fi
11319 rm -f conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11324 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11325 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11326 HAVE_LIBXP=yes
11327 fi
11328
11329 if test ${HAVE_LIBXP} = yes; then
11330
11331 cat >>confdefs.h <<\_ACEOF
11332 #define HAVE_LIBXP 1
11333 _ACEOF
11334
11335 fi
11336 else
11337 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11338 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11339 if test "${emacs_cv_lesstif+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342 # We put this in CFLAGS temporarily to precede other -I options
11343 # that might be in CFLAGS temporarily.
11344 # We put this in CPPFLAGS where it precedes the other -I options.
11345 OLD_CPPFLAGS=$CPPFLAGS
11346 OLD_CFLAGS=$CFLAGS
11347 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11348 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11356 int
11357 main ()
11358 {
11359 int x = 5;
11360 ;
11361 return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 emacs_cv_lesstif=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 emacs_cv_lesstif=no
11392 fi
11393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11394 fi
11395 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11396 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11397 if test $emacs_cv_lesstif = yes; then
11398 # Make sure this -I option remains in CPPFLAGS after it is set
11399 # back to REAL_CPPFLAGS.
11400 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11401 # have those other -I options anyway. Ultimately, having this
11402 # directory ultimately in CPPFLAGS will be enough.
11403 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11404 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11405 else
11406 CFLAGS=$OLD_CFLAGS
11407 CPPFLAGS=$OLD_CPPFLAGS
11408 fi
11409 fi
11410 fi
11411
11412 ### Is -lXaw3d available?
11413 HAVE_XAW3D=no
11414 if test "${HAVE_X11}" = "yes"; then
11415 if test "${USE_X_TOOLKIT}" != "none"; then
11416 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11417 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11418 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <X11/Xaw3d/Scrollbar.h>
11428 _ACEOF
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443 else
11444 ac_cpp_err=yes
11445 fi
11446 if test -z "$ac_cpp_err"; then
11447 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11453 fi
11454 rm -f conftest.err conftest.$ac_ext
11455 fi
11456 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11457 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11458 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11459 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11460 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11461 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lXaw3d $LIBS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472
11473 /* Override any gcc2 internal prototype to avoid an error. */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11479 char XawScrollbarSetThumb ();
11480 int
11481 main ()
11482 {
11483 XawScrollbarSetThumb ();
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11516 fi
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11520 fi
11521 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11522 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11523 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11524 HAVE_XAW3D=yes
11525 fi
11526
11527 fi
11528
11529
11530 if test "${HAVE_XAW3D}" = "yes"; then
11531
11532 cat >>confdefs.h <<\_ACEOF
11533 #define HAVE_XAW3D 1
11534 _ACEOF
11535
11536 fi
11537 fi
11538 fi
11539
11540
11541
11542 USE_TOOLKIT_SCROLL_BARS=no
11543 if test "${with_toolkit_scroll_bars}" != "no"; then
11544 if test "${USE_X_TOOLKIT}" != "none"; then
11545 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define USE_TOOLKIT_SCROLL_BARS 1
11548 _ACEOF
11549
11550 HAVE_XAW3D=no
11551 USE_TOOLKIT_SCROLL_BARS=yes
11552 elif test "${HAVE_XAW3D}" = "yes"; then
11553 cat >>confdefs.h <<\_ACEOF
11554 #define USE_TOOLKIT_SCROLL_BARS 1
11555 _ACEOF
11556
11557 USE_TOOLKIT_SCROLL_BARS=yes
11558 fi
11559 elif test "${HAVE_GTK}" = "yes"; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define USE_TOOLKIT_SCROLL_BARS 1
11562 _ACEOF
11563
11564 USE_TOOLKIT_SCROLL_BARS=yes
11565 elif test "${HAVE_CARBON}" = "yes"; then
11566 cat >>confdefs.h <<\_ACEOF
11567 #define USE_TOOLKIT_SCROLL_BARS 1
11568 _ACEOF
11569
11570 USE_TOOLKIT_SCROLL_BARS=yes
11571 fi
11572 fi
11573
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580
11581 #include <X11/Xlib.h>
11582 #include <X11/Xresource.h>
11583 int
11584 main ()
11585 {
11586 XIMProc callback;
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11593 (eval $ac_compile) 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest.$ac_objext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 HAVE_XIM=yes
11614
11615 cat >>confdefs.h <<\_ACEOF
11616 #define HAVE_XIM 1
11617 _ACEOF
11618
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 HAVE_XIM=no
11624 fi
11625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626
11627
11628 if test "${with_xim}" != "no"; then
11629
11630 cat >>confdefs.h <<\_ACEOF
11631 #define USE_XIM 1
11632 _ACEOF
11633
11634 fi
11635
11636
11637 if test "${HAVE_XIM}" != "no"; then
11638 late_CFLAGS=$CFLAGS
11639 if test "$GCC" = yes; then
11640 CFLAGS="$CFLAGS --pedantic-errors"
11641 fi
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648
11649 #include <X11/Xlib.h>
11650 #include <X11/Xresource.h>
11651 int
11652 main ()
11653 {
11654 Display *display;
11655 XrmDatabase db;
11656 char *res_name;
11657 char *res_class;
11658 XIMProc callback;
11659 XPointer *client_data;
11660 #ifndef __GNUC__
11661 /* If we're not using GCC, it's probably not XFree86, and this is
11662 probably right, but we can't use something like --pedantic-errors. */
11663 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11664 char*, XIMProc, XPointer*);
11665 #endif
11666 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11667 client_data);
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 emacs_cv_arg6_star=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 fi
11700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701
11702 if test "$emacs_cv_arg6_star" = yes; then
11703 cat >>confdefs.h <<\_ACEOF
11704 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11705 _ACEOF
11706
11707 else
11708 cat >>confdefs.h <<\_ACEOF
11709 #define XRegisterIMInstantiateCallback_arg6 XPointer
11710 _ACEOF
11711
11712 fi
11713 CFLAGS=$late_CFLAGS
11714 fi
11715
11716 ### Use -lXpm if available, unless `--with-xpm=no'.
11717 HAVE_XPM=no
11718 if test "${HAVE_X11}" = "yes"; then
11719 if test "${with_xpm}" != "no"; then
11720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 fi
11726 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11727 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11728 else
11729 # Is the header compilable?
11730 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11731 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h. */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 #include <X11/xpm.h>
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_header_compiler=yes
11764 else
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 ac_header_compiler=no
11769 fi
11770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11772 echo "${ECHO_T}$ac_header_compiler" >&6
11773
11774 # Is the header present?
11775 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11776 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h. */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <X11/xpm.h>
11784 _ACEOF
11785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } >/dev/null; then
11793 if test -s conftest.err; then
11794 ac_cpp_err=$ac_c_preproc_warn_flag
11795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11796 else
11797 ac_cpp_err=
11798 fi
11799 else
11800 ac_cpp_err=yes
11801 fi
11802 if test -z "$ac_cpp_err"; then
11803 ac_header_preproc=yes
11804 else
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_header_preproc=no
11809 fi
11810 rm -f conftest.err conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11812 echo "${ECHO_T}$ac_header_preproc" >&6
11813
11814 # So? What about this header?
11815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11816 yes:no: )
11817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11818 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11820 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11821 ac_header_preproc=yes
11822 ;;
11823 no:yes:* )
11824 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11825 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11827 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11829 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11831 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11833 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11835 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11836 (
11837 cat <<\_ASBOX
11838 ## ------------------------------------------ ##
11839 ## Report this to the AC_PACKAGE_NAME lists. ##
11840 ## ------------------------------------------ ##
11841 _ASBOX
11842 ) |
11843 sed "s/^/$as_me: WARNING: /" >&2
11844 ;;
11845 esac
11846 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11847 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11848 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851 ac_cv_header_X11_xpm_h=$ac_header_preproc
11852 fi
11853 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11854 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11855
11856 fi
11857 if test $ac_cv_header_X11_xpm_h = yes; then
11858 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11859 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11860 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-lXpm -lX11 $LIBS"
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871
11872 /* Override any gcc2 internal prototype to avoid an error. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char XpmReadFileToPixmap ();
11879 int
11880 main ()
11881 {
11882 XpmReadFileToPixmap ();
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11915 fi
11916 rm -f conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11921 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11922 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11923 HAVE_XPM=yes
11924 fi
11925
11926 fi
11927
11928
11929 if test "${HAVE_XPM}" = "yes"; then
11930 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11931 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 #include "X11/xpm.h"
11939 #ifndef XpmReturnAllocPixels
11940 no_return_alloc_pixels
11941 #endif
11942
11943 _ACEOF
11944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11945 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11946 HAVE_XPM=no
11947 else
11948 HAVE_XPM=yes
11949 fi
11950 rm -f conftest*
11951
11952
11953 if test "${HAVE_XPM}" = "yes"; then
11954 echo "$as_me:$LINENO: result: yes" >&5
11955 echo "${ECHO_T}yes" >&6
11956 else
11957 echo "$as_me:$LINENO: result: no" >&5
11958 echo "${ECHO_T}no" >&6
11959 fi
11960 fi
11961 fi
11962
11963 if test "${HAVE_XPM}" = "yes"; then
11964
11965 cat >>confdefs.h <<\_ACEOF
11966 #define HAVE_XPM 1
11967 _ACEOF
11968
11969 fi
11970 fi
11971
11972 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11973 HAVE_JPEG=no
11974 if test "${HAVE_X11}" = "yes"; then
11975 if test "${with_jpeg}" != "no"; then
11976 if test "${ac_cv_header_jerror_h+set}" = set; then
11977 echo "$as_me:$LINENO: checking for jerror.h" >&5
11978 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11979 if test "${ac_cv_header_jerror_h+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11983 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11984 else
11985 # Is the header compilable?
11986 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11987 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <jerror.h>
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999 (eval $ac_compile) 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag"
12007 || test ! -s conftest.err'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest.$ac_objext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 ac_header_compiler=yes
12020 else
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 ac_header_compiler=no
12025 fi
12026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12028 echo "${ECHO_T}$ac_header_compiler" >&6
12029
12030 # Is the header present?
12031 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12032 echo $ECHO_N "checking jerror.h presence... $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 #include <jerror.h>
12040 _ACEOF
12041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } >/dev/null; then
12049 if test -s conftest.err; then
12050 ac_cpp_err=$ac_c_preproc_warn_flag
12051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12052 else
12053 ac_cpp_err=
12054 fi
12055 else
12056 ac_cpp_err=yes
12057 fi
12058 if test -z "$ac_cpp_err"; then
12059 ac_header_preproc=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_header_preproc=no
12065 fi
12066 rm -f conftest.err conftest.$ac_ext
12067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12068 echo "${ECHO_T}$ac_header_preproc" >&6
12069
12070 # So? What about this header?
12071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12072 yes:no: )
12073 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12074 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12076 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12077 ac_header_preproc=yes
12078 ;;
12079 no:yes:* )
12080 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12081 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12083 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12085 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12087 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12089 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12091 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12092 (
12093 cat <<\_ASBOX
12094 ## ------------------------------------------ ##
12095 ## Report this to the AC_PACKAGE_NAME lists. ##
12096 ## ------------------------------------------ ##
12097 _ASBOX
12098 ) |
12099 sed "s/^/$as_me: WARNING: /" >&2
12100 ;;
12101 esac
12102 echo "$as_me:$LINENO: checking for jerror.h" >&5
12103 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12104 if test "${ac_cv_header_jerror_h+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107 ac_cv_header_jerror_h=$ac_header_preproc
12108 fi
12109 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12110 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12111
12112 fi
12113 if test $ac_cv_header_jerror_h = yes; then
12114 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12115 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12116 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-ljpeg $LIBS"
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127
12128 /* Override any gcc2 internal prototype to avoid an error. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12134 char jpeg_destroy_compress ();
12135 int
12136 main ()
12137 {
12138 jpeg_destroy_compress ();
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12166 else
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12171 fi
12172 rm -f conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12175 fi
12176 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12177 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12178 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12179 HAVE_JPEG=yes
12180 fi
12181
12182 fi
12183
12184
12185 fi
12186
12187
12188 if test "${HAVE_JPEG}" = "yes"; then
12189 cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_JPEG 1
12191 _ACEOF
12192
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 #include <jpeglib.h>
12200 version=JPEG_LIB_VERSION
12201
12202 _ACEOF
12203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12204 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12205 cat >>confdefs.h <<\_ACEOF
12206 #define HAVE_JPEG 1
12207 _ACEOF
12208
12209 else
12210 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12211 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12212 HAVE_JPEG=no
12213 fi
12214 rm -f conftest*
12215
12216 fi
12217 fi
12218
12219 ### Use -lpng if available, unless `--with-png=no'.
12220 HAVE_PNG=no
12221 if test "${HAVE_X11}" = "yes"; then
12222 if test "${with_png}" != "no"; then
12223 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12224 # in /usr/include/libpng.
12225
12226
12227 for ac_header in png.h libpng/png.h
12228 do
12229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo "$as_me:$LINENO: checking for $ac_header" >&5
12232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 fi
12236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238 else
12239 # Is the header compilable?
12240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h. */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 $ac_includes_default
12249 #include <$ac_header>
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_header_compiler=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_header_compiler=no
12279 fi
12280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12282 echo "${ECHO_T}$ac_header_compiler" >&6
12283
12284 # Is the header present?
12285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 #include <$ac_header>
12294 _ACEOF
12295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12296 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12303 if test -s conftest.err; then
12304 ac_cpp_err=$ac_c_preproc_warn_flag
12305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12306 else
12307 ac_cpp_err=
12308 fi
12309 else
12310 ac_cpp_err=yes
12311 fi
12312 if test -z "$ac_cpp_err"; then
12313 ac_header_preproc=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_header_preproc=no
12319 fi
12320 rm -f conftest.err conftest.$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12322 echo "${ECHO_T}$ac_header_preproc" >&6
12323
12324 # So? What about this header?
12325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12326 yes:no: )
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12331 ac_header_preproc=yes
12332 ;;
12333 no:yes:* )
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12346 (
12347 cat <<\_ASBOX
12348 ## ------------------------------------------ ##
12349 ## Report this to the AC_PACKAGE_NAME lists. ##
12350 ## ------------------------------------------ ##
12351 _ASBOX
12352 ) |
12353 sed "s/^/$as_me: WARNING: /" >&2
12354 ;;
12355 esac
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 eval "$as_ac_Header=\$ac_header_preproc"
12362 fi
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12365
12366 fi
12367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12368 cat >>confdefs.h <<_ACEOF
12369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 _ACEOF
12371
12372 fi
12373
12374 done
12375
12376 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12377 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12378 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12379 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-lpng -lz -lm $LIBS"
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390
12391 /* Override any gcc2 internal prototype to avoid an error. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 /* We use char because int might match the return type of a gcc2
12396 builtin and then its argument prototype would still apply. */
12397 char png_get_channels ();
12398 int
12399 main ()
12400 {
12401 png_get_channels ();
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_lib_png_png_get_channels=yes
12429 else
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 ac_cv_lib_png_png_get_channels=no
12434 fi
12435 rm -f conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12438 fi
12439 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12440 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12441 if test $ac_cv_lib_png_png_get_channels = yes; then
12442 HAVE_PNG=yes
12443 fi
12444
12445 fi
12446 fi
12447
12448 if test "${HAVE_PNG}" = "yes"; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_PNG 1
12452 _ACEOF
12453
12454 fi
12455 fi
12456
12457 ### Use -ltiff if available, unless `--with-tiff=no'.
12458 HAVE_TIFF=no
12459 if test "${HAVE_X11}" = "yes"; then
12460 if test "${with_tiff}" != "no"; then
12461 if test "${ac_cv_header_tiffio_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12463 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12464 if test "${ac_cv_header_tiffio_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12468 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12469 else
12470 # Is the header compilable?
12471 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12472 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 $ac_includes_default
12480 #include <tiffio.h>
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_header_compiler=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_header_compiler=no
12510 fi
12511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12513 echo "${ECHO_T}$ac_header_compiler" >&6
12514
12515 # Is the header present?
12516 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12517 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 #include <tiffio.h>
12525 _ACEOF
12526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } >/dev/null; then
12534 if test -s conftest.err; then
12535 ac_cpp_err=$ac_c_preproc_warn_flag
12536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12537 else
12538 ac_cpp_err=
12539 fi
12540 else
12541 ac_cpp_err=yes
12542 fi
12543 if test -z "$ac_cpp_err"; then
12544 ac_header_preproc=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_header_preproc=no
12550 fi
12551 rm -f conftest.err conftest.$ac_ext
12552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6
12554
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12557 yes:no: )
12558 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12561 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12562 ac_header_preproc=yes
12563 ;;
12564 no:yes:* )
12565 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12574 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12577 (
12578 cat <<\_ASBOX
12579 ## ------------------------------------------ ##
12580 ## Report this to the AC_PACKAGE_NAME lists. ##
12581 ## ------------------------------------------ ##
12582 _ASBOX
12583 ) |
12584 sed "s/^/$as_me: WARNING: /" >&2
12585 ;;
12586 esac
12587 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12588 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12589 if test "${ac_cv_header_tiffio_h+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592 ac_cv_header_tiffio_h=$ac_header_preproc
12593 fi
12594 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12595 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12596
12597 fi
12598 if test $ac_cv_header_tiffio_h = yes; then
12599 tifflibs="-lz -lm"
12600 # At least one tiff package requires the jpeg library.
12601 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12602 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12603 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12604 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-ltiff $tifflibs $LIBS"
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615
12616 /* Override any gcc2 internal prototype to avoid an error. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char TIFFGetVersion ();
12623 int
12624 main ()
12625 {
12626 TIFFGetVersion ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_lib_tiff_TIFFGetVersion=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_cv_lib_tiff_TIFFGetVersion=no
12659 fi
12660 rm -f conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 LIBS=$ac_check_lib_save_LIBS
12663 fi
12664 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12665 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12666 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12667 HAVE_TIFF=yes
12668 fi
12669
12670 fi
12671
12672
12673 fi
12674
12675 if test "${HAVE_TIFF}" = "yes"; then
12676
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_TIFF 1
12679 _ACEOF
12680
12681 fi
12682 fi
12683
12684 ### Use -lgif if available, unless `--with-gif=no'.
12685 HAVE_GIF=no
12686 if test "${HAVE_X11}" = "yes"; then
12687 if test "${with_gif}" != "no"; then
12688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12689 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12690 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12691 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12696 else
12697 # Is the header compilable?
12698 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12699 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 #include <gif_lib.h>
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_header_compiler=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_header_compiler=no
12737 fi
12738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12740 echo "${ECHO_T}$ac_header_compiler" >&6
12741
12742 # Is the header present?
12743 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12744 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <gif_lib.h>
12752 _ACEOF
12753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev/null; then
12761 if test -s conftest.err; then
12762 ac_cpp_err=$ac_c_preproc_warn_flag
12763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12764 else
12765 ac_cpp_err=
12766 fi
12767 else
12768 ac_cpp_err=yes
12769 fi
12770 if test -z "$ac_cpp_err"; then
12771 ac_header_preproc=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 ac_header_preproc=no
12777 fi
12778 rm -f conftest.err conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12780 echo "${ECHO_T}$ac_header_preproc" >&6
12781
12782 # So? What about this header?
12783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12784 yes:no: )
12785 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12786 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12788 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12789 ac_header_preproc=yes
12790 ;;
12791 no:yes:* )
12792 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12793 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12795 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12797 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12799 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12803 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12804 (
12805 cat <<\_ASBOX
12806 ## ------------------------------------------ ##
12807 ## Report this to the AC_PACKAGE_NAME lists. ##
12808 ## ------------------------------------------ ##
12809 _ASBOX
12810 ) |
12811 sed "s/^/$as_me: WARNING: /" >&2
12812 ;;
12813 esac
12814 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12815 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12816 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 ac_cv_header_gif_lib_h=$ac_header_preproc
12820 fi
12821 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12822 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12823
12824 fi
12825 if test $ac_cv_header_gif_lib_h = yes; then
12826 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12827 # Earlier versions can crash Emacs.
12828 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12829 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12830 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833 ac_check_lib_save_LIBS=$LIBS
12834 LIBS="-lungif $LIBS"
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char EGifPutExtensionLast ();
12849 int
12850 main ()
12851 {
12852 EGifPutExtensionLast ();
12853 ;
12854 return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 (eval $ac_link) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag"
12867 || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try='test -s conftest$ac_exeext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12880 else
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_cv_lib_ungif_EGifPutExtensionLast=no
12885 fi
12886 rm -f conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12889 fi
12890 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12891 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12892 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12893 HAVE_GIF=yes
12894 fi
12895
12896 fi
12897
12898
12899 fi
12900
12901 if test "${HAVE_GIF}" = "yes"; then
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_GIF 1
12905 _ACEOF
12906
12907 fi
12908 fi
12909
12910 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12911 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12912 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12913 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 fi
12916 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12917 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12918 else
12919 # Is the header compilable?
12920 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12921 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 $ac_includes_default
12929 #include <malloc/malloc.h>
12930 _ACEOF
12931 rm -f conftest.$ac_objext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler=yes
12954 else
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ac_header_compiler=no
12959 fi
12960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12962 echo "${ECHO_T}$ac_header_compiler" >&6
12963
12964 # Is the header present?
12965 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12966 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 #include <malloc/malloc.h>
12974 _ACEOF
12975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_c_preproc_warn_flag
12985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12986 else
12987 ac_cpp_err=
12988 fi
12989 else
12990 ac_cpp_err=yes
12991 fi
12992 if test -z "$ac_cpp_err"; then
12993 ac_header_preproc=yes
12994 else
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998 ac_header_preproc=no
12999 fi
13000 rm -f conftest.err conftest.$ac_ext
13001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13002 echo "${ECHO_T}$ac_header_preproc" >&6
13003
13004 # So? What about this header?
13005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13006 yes:no: )
13007 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13008 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13010 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13011 ac_header_preproc=yes
13012 ;;
13013 no:yes:* )
13014 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13015 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13017 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13019 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13021 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13023 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13025 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13026 (
13027 cat <<\_ASBOX
13028 ## ------------------------------------------ ##
13029 ## Report this to the AC_PACKAGE_NAME lists. ##
13030 ## ------------------------------------------ ##
13031 _ASBOX
13032 ) |
13033 sed "s/^/$as_me: WARNING: /" >&2
13034 ;;
13035 esac
13036 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13037 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13038 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13042 fi
13043 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13044 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13045
13046 fi
13047 if test $ac_cv_header_malloc_malloc_h = yes; then
13048
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_MALLOC_MALLOC_H 1
13051 _ACEOF
13052
13053 fi
13054
13055
13056
13057 ### Use Mac OS X Carbon API to implement GUI.
13058 if test "${HAVE_CARBON}" = "yes"; then
13059
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_CARBON 1
13062 _ACEOF
13063
13064 ## Specify the install directory
13065 carbon_appdir=
13066 if test "${carbon_appdir_x}" != ""; then
13067 case ${carbon_appdir_x} in
13068 y | ye | yes) carbon_appdir=/Applications ;;
13069 * ) carbon_appdir=${carbon_appdir_x} ;;
13070 esac
13071 fi
13072 # We also have mouse menus.
13073 HAVE_MENUS=yes
13074
13075 tmp_CFLAGS="$CFLAGS"
13076 CFLAGS="$CFLAGS -framework Carbon"
13077 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13078 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13079 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13090 #define CancelMenuTracking innocuous_CancelMenuTracking
13091
13092 /* System header to define __stub macros and hopefully few prototypes,
13093 which can conflict with char CancelMenuTracking (); below.
13094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 <limits.h> exists even on freestanding compilers. */
13096
13097 #ifdef __STDC__
13098 # include <limits.h>
13099 #else
13100 # include <assert.h>
13101 #endif
13102
13103 #undef CancelMenuTracking
13104
13105 /* Override any gcc2 internal prototype to avoid an error. */
13106 #ifdef __cplusplus
13107 extern "C"
13108 {
13109 #endif
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13112 char CancelMenuTracking ();
13113 /* The GNU C library defines this for functions which it implements
13114 to always fail with ENOSYS. Some functions are actually named
13115 something starting with __ and the normal name is an alias. */
13116 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13117 choke me
13118 #else
13119 char (*f) () = CancelMenuTracking;
13120 #endif
13121 #ifdef __cplusplus
13122 }
13123 #endif
13124
13125 int
13126 main ()
13127 {
13128 return f != CancelMenuTracking;
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13135 (eval $ac_link) 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag"
13143 || test ! -s conftest.err'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; } &&
13149 { ac_try='test -s conftest$ac_exeext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_func_CancelMenuTracking=yes
13156 else
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160 ac_cv_func_CancelMenuTracking=no
13161 fi
13162 rm -f conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 fi
13165 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13166 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13167 if test $ac_cv_func_CancelMenuTracking = yes; then
13168 have_cmt=yes
13169 else
13170 have_cmt=no
13171 fi
13172
13173 if test "$have_cmt" = yes; then
13174
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_CANCELMENUTRACKING 1
13177 _ACEOF
13178
13179 fi
13180 CFLAGS="$tmp_CFLAGS"
13181 fi
13182
13183 ### Use session management (-lSM -lICE) if available
13184 HAVE_X_SM=no
13185 if test "${HAVE_X11}" = "yes"; then
13186 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13187 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13188 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13189 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 fi
13192 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13194 else
13195 # Is the header compilable?
13196 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13197 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <X11/SM/SMlib.h>
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_header_compiler=yes
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ac_header_compiler=no
13235 fi
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238 echo "${ECHO_T}$ac_header_compiler" >&6
13239
13240 # Is the header present?
13241 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13242 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <X11/SM/SMlib.h>
13250 _ACEOF
13251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } >/dev/null; then
13259 if test -s conftest.err; then
13260 ac_cpp_err=$ac_c_preproc_warn_flag
13261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13262 else
13263 ac_cpp_err=
13264 fi
13265 else
13266 ac_cpp_err=yes
13267 fi
13268 if test -z "$ac_cpp_err"; then
13269 ac_header_preproc=yes
13270 else
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_header_preproc=no
13275 fi
13276 rm -f conftest.err conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278 echo "${ECHO_T}$ac_header_preproc" >&6
13279
13280 # So? What about this header?
13281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282 yes:no: )
13283 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13284 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13286 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc=yes
13288 ;;
13289 no:yes:* )
13290 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13291 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13293 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13295 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13297 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13299 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13301 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13302 (
13303 cat <<\_ASBOX
13304 ## ------------------------------------------ ##
13305 ## Report this to the AC_PACKAGE_NAME lists. ##
13306 ## ------------------------------------------ ##
13307 _ASBOX
13308 ) |
13309 sed "s/^/$as_me: WARNING: /" >&2
13310 ;;
13311 esac
13312 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13313 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13314 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13318 fi
13319 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13320 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13321
13322 fi
13323 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13324 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13325 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13326 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lSM -lICE $LIBS"
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h. */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337
13338 /* Override any gcc2 internal prototype to avoid an error. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char SmcOpenConnection ();
13345 int
13346 main ()
13347 {
13348 SmcOpenConnection ();
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 rm -f conftest.$ac_objext conftest$ac_exeext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355 (eval $ac_link) 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try='test -z "$ac_c_werror_flag"
13363 || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest$ac_exeext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_lib_SM_SmcOpenConnection=yes
13376 else
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_cv_lib_SM_SmcOpenConnection=no
13381 fi
13382 rm -f conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13387 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13388 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13389 HAVE_X_SM=yes
13390 fi
13391
13392 fi
13393
13394
13395
13396 if test "${HAVE_X_SM}" = "yes"; then
13397
13398 cat >>confdefs.h <<\_ACEOF
13399 #define HAVE_X_SM 1
13400 _ACEOF
13401
13402 case "$LIBS" in
13403 *-lSM*) ;;
13404 *) LIBS="-lSM -lICE $LIBS" ;;
13405 esac
13406 fi
13407 fi
13408
13409 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13410 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13411 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13412 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include <netdb.h>
13422 int
13423 main ()
13424 {
13425 return h_errno;
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>conftest.er1
13433 ac_status=$?
13434 grep -v '^ *+' conftest.er1 >conftest.err
13435 rm -f conftest.er1
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -z "$ac_c_werror_flag"
13440 || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 emacs_cv_netdb_declares_h_errno=yes
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 emacs_cv_netdb_declares_h_errno=no
13458 fi
13459 rm -f conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 fi
13462 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13463 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13464 if test $emacs_cv_netdb_declares_h_errno = yes; then
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_H_ERRNO 1
13468 _ACEOF
13469
13470 fi
13471
13472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13473 # for constant arguments. Useless!
13474 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13475 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13476 if test "${ac_cv_working_alloca_h+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <alloca.h>
13486 int
13487 main ()
13488 {
13489 char *p = (char *) alloca (2 * sizeof (int));
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_cv_working_alloca_h=yes
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_cv_working_alloca_h=no
13522 fi
13523 rm -f conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13527 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13528 if test $ac_cv_working_alloca_h = yes; then
13529
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_ALLOCA_H 1
13532 _ACEOF
13533
13534 fi
13535
13536 echo "$as_me:$LINENO: checking for alloca" >&5
13537 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13538 if test "${ac_cv_func_alloca_works+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #ifdef __GNUC__
13548 # define alloca __builtin_alloca
13549 #else
13550 # ifdef _MSC_VER
13551 # include <malloc.h>
13552 # define alloca _alloca
13553 # else
13554 # if HAVE_ALLOCA_H
13555 # include <alloca.h>
13556 # else
13557 # ifdef _AIX
13558 #pragma alloca
13559 # else
13560 # ifndef alloca /* predefined by HP cc +Olibcalls */
13561 char *alloca ();
13562 # endif
13563 # endif
13564 # endif
13565 # endif
13566 #endif
13567
13568 int
13569 main ()
13570 {
13571 char *p = (char *) alloca (1);
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_func_alloca_works=yes
13599 else
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603 ac_cv_func_alloca_works=no
13604 fi
13605 rm -f conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 fi
13608 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13609 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13610
13611 if test $ac_cv_func_alloca_works = yes; then
13612
13613 cat >>confdefs.h <<\_ACEOF
13614 #define HAVE_ALLOCA 1
13615 _ACEOF
13616
13617 else
13618 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13619 # that cause trouble. Some versions do not even contain alloca or
13620 # contain a buggy version. If you still want to use their alloca,
13621 # use ar to extract alloca.o from them instead of compiling alloca.c.
13622
13623 ALLOCA=alloca.$ac_objext
13624
13625 cat >>confdefs.h <<\_ACEOF
13626 #define C_ALLOCA 1
13627 _ACEOF
13628
13629
13630 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13631 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13632 if test "${ac_cv_os_cray+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #if defined(CRAY) && ! defined(CRAY2)
13642 webecray
13643 #else
13644 wenotbecray
13645 #endif
13646
13647 _ACEOF
13648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13649 $EGREP "webecray" >/dev/null 2>&1; then
13650 ac_cv_os_cray=yes
13651 else
13652 ac_cv_os_cray=no
13653 fi
13654 rm -f conftest*
13655
13656 fi
13657 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13658 echo "${ECHO_T}$ac_cv_os_cray" >&6
13659 if test $ac_cv_os_cray = yes; then
13660 for ac_func in _getb67 GETB67 getb67; do
13661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13662 echo "$as_me:$LINENO: checking for $ac_func" >&5
13663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_var+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13675 #define $ac_func innocuous_$ac_func
13676
13677 /* System header to define __stub macros and hopefully few prototypes,
13678 which can conflict with char $ac_func (); below.
13679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13680 <limits.h> exists even on freestanding compilers. */
13681
13682 #ifdef __STDC__
13683 # include <limits.h>
13684 #else
13685 # include <assert.h>
13686 #endif
13687
13688 #undef $ac_func
13689
13690 /* Override any gcc2 internal prototype to avoid an error. */
13691 #ifdef __cplusplus
13692 extern "C"
13693 {
13694 #endif
13695 /* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13697 char $ac_func ();
13698 /* The GNU C library defines this for functions which it implements
13699 to always fail with ENOSYS. Some functions are actually named
13700 something starting with __ and the normal name is an alias. */
13701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13702 choke me
13703 #else
13704 char (*f) () = $ac_func;
13705 #endif
13706 #ifdef __cplusplus
13707 }
13708 #endif
13709
13710 int
13711 main ()
13712 {
13713 return f != $ac_func;
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest$ac_exeext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 eval "$as_ac_var=yes"
13741 else
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 eval "$as_ac_var=no"
13746 fi
13747 rm -f conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 fi
13750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13752 if test `eval echo '${'$as_ac_var'}'` = yes; then
13753
13754 cat >>confdefs.h <<_ACEOF
13755 #define CRAY_STACKSEG_END $ac_func
13756 _ACEOF
13757
13758 break
13759 fi
13760
13761 done
13762 fi
13763
13764 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13765 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13766 if test "${ac_cv_c_stack_direction+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769 if test "$cross_compiling" = yes; then
13770 ac_cv_c_stack_direction=0
13771 else
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 int
13779 find_stack_direction ()
13780 {
13781 static char *addr = 0;
13782 auto char dummy;
13783 if (addr == 0)
13784 {
13785 addr = &dummy;
13786 return find_stack_direction ();
13787 }
13788 else
13789 return (&dummy > addr) ? 1 : -1;
13790 }
13791
13792 int
13793 main ()
13794 {
13795 exit (find_stack_direction () < 0);
13796 }
13797 _ACEOF
13798 rm -f conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_cv_c_stack_direction=1
13810 else
13811 echo "$as_me: program exited with status $ac_status" >&5
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ( exit $ac_status )
13816 ac_cv_c_stack_direction=-1
13817 fi
13818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13819 fi
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13822 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13823
13824 cat >>confdefs.h <<_ACEOF
13825 #define STACK_DIRECTION $ac_cv_c_stack_direction
13826 _ACEOF
13827
13828
13829 fi
13830
13831
13832 # fmod, logb, and frexp are found in -lm on most systems.
13833 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13834
13835 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13836 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13837 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lm $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848
13849 /* Override any gcc2 internal prototype to avoid an error. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 /* We use char because int might match the return type of a gcc2
13854 builtin and then its argument prototype would still apply. */
13855 char sqrt ();
13856 int
13857 main ()
13858 {
13859 sqrt ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest$ac_exeext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_cv_lib_m_sqrt=yes
13887 else
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 ac_cv_lib_m_sqrt=no
13892 fi
13893 rm -f conftest.err conftest.$ac_objext \
13894 conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13896 fi
13897 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13898 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13899 if test $ac_cv_lib_m_sqrt = yes; then
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_LIBM 1
13902 _ACEOF
13903
13904 LIBS="-lm $LIBS"
13905
13906 fi
13907
13908
13909 # Check for mail-locking functions in a "mail" library. Probably this should
13910 # have the same check as for liblockfile below.
13911
13912 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13913 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13914 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 ac_check_lib_save_LIBS=$LIBS
13918 LIBS="-lmail $LIBS"
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925
13926 /* Override any gcc2 internal prototype to avoid an error. */
13927 #ifdef __cplusplus
13928 extern "C"
13929 #endif
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char maillock ();
13933 int
13934 main ()
13935 {
13936 maillock ();
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest$ac_exeext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_lib_mail_maillock=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_lib_mail_maillock=no
13969 fi
13970 rm -f conftest.err conftest.$ac_objext \
13971 conftest$ac_exeext conftest.$ac_ext
13972 LIBS=$ac_check_lib_save_LIBS
13973 fi
13974 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13975 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13976 if test $ac_cv_lib_mail_maillock = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978 #define HAVE_LIBMAIL 1
13979 _ACEOF
13980
13981 LIBS="-lmail $LIBS"
13982
13983 fi
13984
13985
13986 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13987 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13988 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991 ac_check_lib_save_LIBS=$LIBS
13992 LIBS="-llockfile $LIBS"
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999
14000 /* Override any gcc2 internal prototype to avoid an error. */
14001 #ifdef __cplusplus
14002 extern "C"
14003 #endif
14004 /* We use char because int might match the return type of a gcc2
14005 builtin and then its argument prototype would still apply. */
14006 char maillock ();
14007 int
14008 main ()
14009 {
14010 maillock ();
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_lib_lockfile_maillock=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_cv_lib_lockfile_maillock=no
14043 fi
14044 rm -f conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046 LIBS=$ac_check_lib_save_LIBS
14047 fi
14048 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14049 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14050 if test $ac_cv_lib_lockfile_maillock = yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_LIBLOCKFILE 1
14053 _ACEOF
14054
14055 LIBS="-llockfile $LIBS"
14056
14057 fi
14058
14059 # If we have the shared liblockfile, assume we must use it for mail
14060 # locking (e.g. Debian). If we couldn't link against liblockfile
14061 # (no liblockfile.a installed), ensure that we don't need to.
14062 if test "$ac_cv_lib_lockfile_maillock" = no; then
14063 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14064 set dummy liblockfile.so; ac_word=$2
14065 echo "$as_me:$LINENO: checking for $ac_word" >&5
14066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14067 if test "${ac_cv_prog_liblockfile+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 if test -n "$liblockfile"; then
14071 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14072 else
14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14075 for as_dir in $as_dummy
14076 do
14077 IFS=$as_save_IFS
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081 ac_cv_prog_liblockfile="yes"
14082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14083 break 2
14084 fi
14085 done
14086 done
14087
14088 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14089 fi
14090 fi
14091 liblockfile=$ac_cv_prog_liblockfile
14092 if test -n "$liblockfile"; then
14093 echo "$as_me:$LINENO: result: $liblockfile" >&5
14094 echo "${ECHO_T}$liblockfile" >&6
14095 else
14096 echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6
14098 fi
14099
14100 if test $ac_cv_prog_liblockfile = yes; then
14101 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14102 This probably means that movemail could lose mail.
14103 There may be a \`development' package to install containing liblockfile." >&5
14104 echo "$as_me: error: Shared liblockfile found but can't link against it.
14105 This probably means that movemail could lose mail.
14106 There may be a \`development' package to install containing liblockfile." >&2;}
14107 { (exit 1); exit 1; }; }
14108 else :
14109 fi
14110 fi
14111
14112 for ac_func in touchlock
14113 do
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14129
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14134
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14140
14141 #undef $ac_func
14142
14143 /* Override any gcc2 internal prototype to avoid an error. */
14144 #ifdef __cplusplus
14145 extern "C"
14146 {
14147 #endif
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14150 char $ac_func ();
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 char (*f) () = $ac_func;
14158 #endif
14159 #ifdef __cplusplus
14160 }
14161 #endif
14162
14163 int
14164 main ()
14165 {
14166 return f != $ac_func;
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_var=yes"
14194 else
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 eval "$as_ac_var=no"
14199 fi
14200 rm -f conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14205 if test `eval echo '${'$as_ac_var'}'` = yes; then
14206 cat >>confdefs.h <<_ACEOF
14207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14208 _ACEOF
14209
14210 fi
14211 done
14212
14213
14214 for ac_header in maillock.h
14215 do
14216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 fi
14223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14225 else
14226 # Is the header compilable?
14227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14236 #include <$ac_header>
14237 _ACEOF
14238 rm -f conftest.$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240 (eval $ac_compile) 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } &&
14247 { ac_try='test -z "$ac_c_werror_flag"
14248 || test ! -s conftest.err'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } &&
14254 { ac_try='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_header_compiler=yes
14261 else
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 ac_header_compiler=no
14266 fi
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6
14270
14271 # Is the header present?
14272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <$ac_header>
14281 _ACEOF
14282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } >/dev/null; then
14290 if test -s conftest.err; then
14291 ac_cpp_err=$ac_c_preproc_warn_flag
14292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14293 else
14294 ac_cpp_err=
14295 fi
14296 else
14297 ac_cpp_err=yes
14298 fi
14299 if test -z "$ac_cpp_err"; then
14300 ac_header_preproc=yes
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 ac_header_preproc=no
14306 fi
14307 rm -f conftest.err conftest.$ac_ext
14308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14309 echo "${ECHO_T}$ac_header_preproc" >&6
14310
14311 # So? What about this header?
14312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14313 yes:no: )
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14318 ac_header_preproc=yes
14319 ;;
14320 no:yes:* )
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14333 (
14334 cat <<\_ASBOX
14335 ## ------------------------------------------ ##
14336 ## Report this to the AC_PACKAGE_NAME lists. ##
14337 ## ------------------------------------------ ##
14338 _ASBOX
14339 ) |
14340 sed "s/^/$as_me: WARNING: /" >&2
14341 ;;
14342 esac
14343 echo "$as_me:$LINENO: checking for $ac_header" >&5
14344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 eval "$as_ac_Header=\$ac_header_preproc"
14349 fi
14350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14352
14353 fi
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14357 _ACEOF
14358
14359 fi
14360
14361 done
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
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 for ac_func in gethostname getdomainname dup2 \
14433 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14434 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14435 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14436 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14439 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14440 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14441 do
14442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443 echo "$as_me:$LINENO: checking for $ac_func" >&5
14444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_var+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14456 #define $ac_func innocuous_$ac_func
14457
14458 /* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func (); below.
14460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14461 <limits.h> exists even on freestanding compilers. */
14462
14463 #ifdef __STDC__
14464 # include <limits.h>
14465 #else
14466 # include <assert.h>
14467 #endif
14468
14469 #undef $ac_func
14470
14471 /* Override any gcc2 internal prototype to avoid an error. */
14472 #ifdef __cplusplus
14473 extern "C"
14474 {
14475 #endif
14476 /* We use char because int might match the return type of a gcc2
14477 builtin and then its argument prototype would still apply. */
14478 char $ac_func ();
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14483 choke me
14484 #else
14485 char (*f) () = $ac_func;
14486 #endif
14487 #ifdef __cplusplus
14488 }
14489 #endif
14490
14491 int
14492 main ()
14493 {
14494 return f != $ac_func;
14495 ;
14496 return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 eval "$as_ac_var=yes"
14522 else
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 eval "$as_ac_var=no"
14527 fi
14528 rm -f conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14530 fi
14531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14533 if test `eval echo '${'$as_ac_var'}'` = yes; then
14534 cat >>confdefs.h <<_ACEOF
14535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14536 _ACEOF
14537
14538 fi
14539 done
14540
14541
14542
14543 for ac_header in sys/un.h
14544 do
14545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14547 echo "$as_me:$LINENO: checking for $ac_header" >&5
14548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 fi
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14554 else
14555 # Is the header compilable?
14556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 $ac_includes_default
14565 #include <$ac_header>
14566 _ACEOF
14567 rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_header_compiler=yes
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ac_header_compiler=no
14595 fi
14596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14598 echo "${ECHO_T}$ac_header_compiler" >&6
14599
14600 # Is the header present?
14601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <$ac_header>
14610 _ACEOF
14611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } >/dev/null; then
14619 if test -s conftest.err; then
14620 ac_cpp_err=$ac_c_preproc_warn_flag
14621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14622 else
14623 ac_cpp_err=
14624 fi
14625 else
14626 ac_cpp_err=yes
14627 fi
14628 if test -z "$ac_cpp_err"; then
14629 ac_header_preproc=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ac_header_preproc=no
14635 fi
14636 rm -f conftest.err conftest.$ac_ext
14637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638 echo "${ECHO_T}$ac_header_preproc" >&6
14639
14640 # So? What about this header?
14641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14642 yes:no: )
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14647 ac_header_preproc=yes
14648 ;;
14649 no:yes:* )
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14662 (
14663 cat <<\_ASBOX
14664 ## ------------------------------------------ ##
14665 ## Report this to the AC_PACKAGE_NAME lists. ##
14666 ## ------------------------------------------ ##
14667 _ASBOX
14668 ) |
14669 sed "s/^/$as_me: WARNING: /" >&2
14670 ;;
14671 esac
14672 echo "$as_me:$LINENO: checking for $ac_header" >&5
14673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677 eval "$as_ac_Header=\$ac_header_preproc"
14678 fi
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14681
14682 fi
14683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14684 cat >>confdefs.h <<_ACEOF
14685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14686 _ACEOF
14687
14688 fi
14689
14690 done
14691
14692
14693
14694
14695
14696 for ac_header in stdlib.h sys/time.h unistd.h
14697 do
14698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 fi
14705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14707 else
14708 # Is the header compilable?
14709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 $ac_includes_default
14718 #include <$ac_header>
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_header_compiler=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_header_compiler=no
14748 fi
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14751 echo "${ECHO_T}$ac_header_compiler" >&6
14752
14753 # Is the header present?
14754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 #include <$ac_header>
14763 _ACEOF
14764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } >/dev/null; then
14772 if test -s conftest.err; then
14773 ac_cpp_err=$ac_c_preproc_warn_flag
14774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14775 else
14776 ac_cpp_err=
14777 fi
14778 else
14779 ac_cpp_err=yes
14780 fi
14781 if test -z "$ac_cpp_err"; then
14782 ac_header_preproc=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_header_preproc=no
14788 fi
14789 rm -f conftest.err conftest.$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14791 echo "${ECHO_T}$ac_header_preproc" >&6
14792
14793 # So? What about this header?
14794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14795 yes:no: )
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14800 ac_header_preproc=yes
14801 ;;
14802 no:yes:* )
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14815 (
14816 cat <<\_ASBOX
14817 ## ------------------------------------------ ##
14818 ## Report this to the AC_PACKAGE_NAME lists. ##
14819 ## ------------------------------------------ ##
14820 _ASBOX
14821 ) |
14822 sed "s/^/$as_me: WARNING: /" >&2
14823 ;;
14824 esac
14825 echo "$as_me:$LINENO: checking for $ac_header" >&5
14826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 eval "$as_ac_Header=\$ac_header_preproc"
14831 fi
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14834
14835 fi
14836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14837 cat >>confdefs.h <<_ACEOF
14838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14839 _ACEOF
14840
14841 fi
14842
14843 done
14844
14845
14846 for ac_func in alarm
14847 do
14848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14849 echo "$as_me:$LINENO: checking for $ac_func" >&5
14850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14851 if eval "test \"\${$as_ac_var+set}\" = set"; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14862 #define $ac_func innocuous_$ac_func
14863
14864 /* System header to define __stub macros and hopefully few prototypes,
14865 which can conflict with char $ac_func (); below.
14866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14867 <limits.h> exists even on freestanding compilers. */
14868
14869 #ifdef __STDC__
14870 # include <limits.h>
14871 #else
14872 # include <assert.h>
14873 #endif
14874
14875 #undef $ac_func
14876
14877 /* Override any gcc2 internal prototype to avoid an error. */
14878 #ifdef __cplusplus
14879 extern "C"
14880 {
14881 #endif
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14884 char $ac_func ();
14885 /* The GNU C library defines this for functions which it implements
14886 to always fail with ENOSYS. Some functions are actually named
14887 something starting with __ and the normal name is an alias. */
14888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14889 choke me
14890 #else
14891 char (*f) () = $ac_func;
14892 #endif
14893 #ifdef __cplusplus
14894 }
14895 #endif
14896
14897 int
14898 main ()
14899 {
14900 return f != $ac_func;
14901 ;
14902 return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest.$ac_objext conftest$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>conftest.er1
14908 ac_status=$?
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -z "$ac_c_werror_flag"
14915 || test ! -s conftest.err'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest$ac_exeext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 eval "$as_ac_var=yes"
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 eval "$as_ac_var=no"
14933 fi
14934 rm -f conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14936 fi
14937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14939 if test `eval echo '${'$as_ac_var'}'` = yes; then
14940 cat >>confdefs.h <<_ACEOF
14941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14942 _ACEOF
14943
14944 fi
14945 done
14946
14947 echo "$as_me:$LINENO: checking for working mktime" >&5
14948 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14949 if test "${ac_cv_func_working_mktime+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 if test "$cross_compiling" = yes; then
14953 ac_cv_func_working_mktime=no
14954 else
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 /* Test program from Paul Eggert and Tony Leneis. */
14962 #if TIME_WITH_SYS_TIME
14963 # include <sys/time.h>
14964 # include <time.h>
14965 #else
14966 # if HAVE_SYS_TIME_H
14967 # include <sys/time.h>
14968 # else
14969 # include <time.h>
14970 # endif
14971 #endif
14972
14973 #if HAVE_STDLIB_H
14974 # include <stdlib.h>
14975 #endif
14976
14977 #if HAVE_UNISTD_H
14978 # include <unistd.h>
14979 #endif
14980
14981 #if !HAVE_ALARM
14982 # define alarm(X) /* empty */
14983 #endif
14984
14985 /* Work around redefinition to rpl_putenv by other config tests. */
14986 #undef putenv
14987
14988 static time_t time_t_max;
14989 static time_t time_t_min;
14990
14991 /* Values we'll use to set the TZ environment variable. */
14992 static char *tz_strings[] = {
14993 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14994 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14995 };
14996 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14997
14998 /* Fail if mktime fails to convert a date in the spring-forward gap.
14999 Based on a problem report from Andreas Jaeger. */
15000 static void
15001 spring_forward_gap ()
15002 {
15003 /* glibc (up to about 1998-10-07) failed this test. */
15004 struct tm tm;
15005
15006 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15007 instead of "TZ=America/Vancouver" in order to detect the bug even
15008 on systems that don't support the Olson extension, or don't have the
15009 full zoneinfo tables installed. */
15010 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15011
15012 tm.tm_year = 98;
15013 tm.tm_mon = 3;
15014 tm.tm_mday = 5;
15015 tm.tm_hour = 2;
15016 tm.tm_min = 0;
15017 tm.tm_sec = 0;
15018 tm.tm_isdst = -1;
15019 if (mktime (&tm) == (time_t)-1)
15020 exit (1);
15021 }
15022
15023 static void
15024 mktime_test1 (now)
15025 time_t now;
15026 {
15027 struct tm *lt;
15028 if ((lt = localtime (&now)) && mktime (lt) != now)
15029 exit (1);
15030 }
15031
15032 static void
15033 mktime_test (now)
15034 time_t now;
15035 {
15036 mktime_test1 (now);
15037 mktime_test1 ((time_t) (time_t_max - now));
15038 mktime_test1 ((time_t) (time_t_min + now));
15039 }
15040
15041 static void
15042 irix_6_4_bug ()
15043 {
15044 /* Based on code from Ariel Faigon. */
15045 struct tm tm;
15046 tm.tm_year = 96;
15047 tm.tm_mon = 3;
15048 tm.tm_mday = 0;
15049 tm.tm_hour = 0;
15050 tm.tm_min = 0;
15051 tm.tm_sec = 0;
15052 tm.tm_isdst = -1;
15053 mktime (&tm);
15054 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15055 exit (1);
15056 }
15057
15058 static void
15059 bigtime_test (j)
15060 int j;
15061 {
15062 struct tm tm;
15063 time_t now;
15064 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15065 now = mktime (&tm);
15066 if (now != (time_t) -1)
15067 {
15068 struct tm *lt = localtime (&now);
15069 if (! (lt
15070 && lt->tm_year == tm.tm_year
15071 && lt->tm_mon == tm.tm_mon
15072 && lt->tm_mday == tm.tm_mday
15073 && lt->tm_hour == tm.tm_hour
15074 && lt->tm_min == tm.tm_min
15075 && lt->tm_sec == tm.tm_sec
15076 && lt->tm_yday == tm.tm_yday
15077 && lt->tm_wday == tm.tm_wday
15078 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15079 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15080 exit (1);
15081 }
15082 }
15083
15084 int
15085 main ()
15086 {
15087 time_t t, delta;
15088 int i, j;
15089
15090 /* This test makes some buggy mktime implementations loop.
15091 Give up after 60 seconds; a mktime slower than that
15092 isn't worth using anyway. */
15093 alarm (60);
15094
15095 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15096 continue;
15097 time_t_max--;
15098 if ((time_t) -1 < 0)
15099 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15100 continue;
15101 delta = time_t_max / 997; /* a suitable prime number */
15102 for (i = 0; i < N_STRINGS; i++)
15103 {
15104 if (tz_strings[i])
15105 putenv (tz_strings[i]);
15106
15107 for (t = 0; t <= time_t_max - delta; t += delta)
15108 mktime_test (t);
15109 mktime_test ((time_t) 1);
15110 mktime_test ((time_t) (60 * 60));
15111 mktime_test ((time_t) (60 * 60 * 24));
15112
15113 for (j = 1; 0 < j; j *= 2)
15114 bigtime_test (j);
15115 bigtime_test (j - 1);
15116 }
15117 irix_6_4_bug ();
15118 spring_forward_gap ();
15119 exit (0);
15120 }
15121 _ACEOF
15122 rm -f conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_func_working_mktime=yes
15134 else
15135 echo "$as_me: program exited with status $ac_status" >&5
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ( exit $ac_status )
15140 ac_cv_func_working_mktime=no
15141 fi
15142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15143 fi
15144 fi
15145 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15146 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15147 if test $ac_cv_func_working_mktime = no; then
15148 case $LIBOBJS in
15149 "mktime.$ac_objext" | \
15150 *" mktime.$ac_objext" | \
15151 "mktime.$ac_objext "* | \
15152 *" mktime.$ac_objext "* ) ;;
15153 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15154 esac
15155
15156 fi
15157
15158 if test "$ac_cv_func_working_mktime" = no; then
15159
15160 cat >>confdefs.h <<\_ACEOF
15161 #define BROKEN_MKTIME 1
15162 _ACEOF
15163
15164 fi
15165
15166 ac_have_func=no # yes means we've found a way to get the load average.
15167
15168 # Make sure getloadavg.c is where it belongs, at configure-time.
15169 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15171 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15172 { (exit 1); exit 1; }; }
15173
15174 ac_save_LIBS=$LIBS
15175
15176 # Check for getloadavg, but be sure not to touch the cache variable.
15177 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15178 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15179 if test "${ac_cv_func_getloadavg+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15190 #define getloadavg innocuous_getloadavg
15191
15192 /* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char getloadavg (); below.
15194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15195 <limits.h> exists even on freestanding compilers. */
15196
15197 #ifdef __STDC__
15198 # include <limits.h>
15199 #else
15200 # include <assert.h>
15201 #endif
15202
15203 #undef getloadavg
15204
15205 /* Override any gcc2 internal prototype to avoid an error. */
15206 #ifdef __cplusplus
15207 extern "C"
15208 {
15209 #endif
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15212 char getloadavg ();
15213 /* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15217 choke me
15218 #else
15219 char (*f) () = getloadavg;
15220 #endif
15221 #ifdef __cplusplus
15222 }
15223 #endif
15224
15225 int
15226 main ()
15227 {
15228 return f != getloadavg;
15229 ;
15230 return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235 (eval $ac_link) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest$ac_exeext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_cv_func_getloadavg=yes
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_cv_func_getloadavg=no
15261 fi
15262 rm -f conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 fi
15265 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15266 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15267 if test $ac_cv_func_getloadavg = yes; then
15268 exit 0
15269 else
15270 exit 1
15271 fi
15272 ) && ac_have_func=yes
15273
15274 # On HPUX9, an unprivileged user can get load averages through this function.
15275
15276 for ac_func in pstat_getdynamic
15277 do
15278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 echo "$as_me:$LINENO: checking for $ac_func" >&5
15280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_var+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15292 #define $ac_func innocuous_$ac_func
15293
15294 /* System header to define __stub macros and hopefully few prototypes,
15295 which can conflict with char $ac_func (); below.
15296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15297 <limits.h> exists even on freestanding compilers. */
15298
15299 #ifdef __STDC__
15300 # include <limits.h>
15301 #else
15302 # include <assert.h>
15303 #endif
15304
15305 #undef $ac_func
15306
15307 /* Override any gcc2 internal prototype to avoid an error. */
15308 #ifdef __cplusplus
15309 extern "C"
15310 {
15311 #endif
15312 /* We use char because int might match the return type of a gcc2
15313 builtin and then its argument prototype would still apply. */
15314 char $ac_func ();
15315 /* The GNU C library defines this for functions which it implements
15316 to always fail with ENOSYS. Some functions are actually named
15317 something starting with __ and the normal name is an alias. */
15318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15319 choke me
15320 #else
15321 char (*f) () = $ac_func;
15322 #endif
15323 #ifdef __cplusplus
15324 }
15325 #endif
15326
15327 int
15328 main ()
15329 {
15330 return f != $ac_func;
15331 ;
15332 return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 eval "$as_ac_var=yes"
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 eval "$as_ac_var=no"
15363 fi
15364 rm -f conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 fi
15375 done
15376
15377
15378 # Solaris has libkstat which does not require root.
15379
15380 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15381 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15382 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lkstat $LIBS"
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 #ifdef __cplusplus
15396 extern "C"
15397 #endif
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15400 char kstat_open ();
15401 int
15402 main ()
15403 {
15404 kstat_open ();
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15411 (eval $ac_link) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest$ac_exeext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_lib_kstat_kstat_open=yes
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436 ac_cv_lib_kstat_kstat_open=no
15437 fi
15438 rm -f conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LIBS=$ac_check_lib_save_LIBS
15441 fi
15442 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15443 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15444 if test $ac_cv_lib_kstat_kstat_open = yes; then
15445 cat >>confdefs.h <<_ACEOF
15446 #define HAVE_LIBKSTAT 1
15447 _ACEOF
15448
15449 LIBS="-lkstat $LIBS"
15450
15451 fi
15452
15453 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15454
15455 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15456 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15457 # to get the right answer into the cache.
15458 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15459 if test $ac_have_func = no; then
15460 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15461 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15462 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 ac_check_lib_save_LIBS=$LIBS
15466 LIBS="-lelf $LIBS"
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h. */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473
15474 /* Override any gcc2 internal prototype to avoid an error. */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15480 char elf_begin ();
15481 int
15482 main ()
15483 {
15484 elf_begin ();
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 rm -f conftest.$ac_objext conftest$ac_exeext
15490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>conftest.er1
15492 ac_status=$?
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag"
15499 || test ! -s conftest.err'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest$ac_exeext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_cv_lib_elf_elf_begin=yes
15512 else
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516 ac_cv_lib_elf_elf_begin=no
15517 fi
15518 rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 LIBS=$ac_check_lib_save_LIBS
15521 fi
15522 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15523 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15524 if test $ac_cv_lib_elf_elf_begin = yes; then
15525 LIBS="-lelf $LIBS"
15526 fi
15527
15528 fi
15529 if test $ac_have_func = no; then
15530 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15531 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15532 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535 ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lkvm $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543
15544 /* Override any gcc2 internal prototype to avoid an error. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 /* We use char because int might match the return type of a gcc2
15549 builtin and then its argument prototype would still apply. */
15550 char kvm_open ();
15551 int
15552 main ()
15553 {
15554 kvm_open ();
15555 ;
15556 return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15561 (eval $ac_link) 2>conftest.er1
15562 ac_status=$?
15563 grep -v '^ *+' conftest.er1 >conftest.err
15564 rm -f conftest.er1
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -z "$ac_c_werror_flag"
15569 || test ! -s conftest.err'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest$ac_exeext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_cv_lib_kvm_kvm_open=yes
15582 else
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586 ac_cv_lib_kvm_kvm_open=no
15587 fi
15588 rm -f conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15590 LIBS=$ac_check_lib_save_LIBS
15591 fi
15592 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15593 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15594 if test $ac_cv_lib_kvm_kvm_open = yes; then
15595 LIBS="-lkvm $LIBS"
15596 fi
15597
15598 # Check for the 4.4BSD definition of getloadavg.
15599 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15600 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15601 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lutil $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612
15613 /* Override any gcc2 internal prototype to avoid an error. */
15614 #ifdef __cplusplus
15615 extern "C"
15616 #endif
15617 /* We use char because int might match the return type of a gcc2
15618 builtin and then its argument prototype would still apply. */
15619 char getloadavg ();
15620 int
15621 main ()
15622 {
15623 getloadavg ();
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag"
15638 || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_lib_util_getloadavg=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_cv_lib_util_getloadavg=no
15656 fi
15657 rm -f conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15659 LIBS=$ac_check_lib_save_LIBS
15660 fi
15661 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15662 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15663 if test $ac_cv_lib_util_getloadavg = yes; then
15664 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15665 fi
15666
15667 fi
15668
15669 if test $ac_have_func = no; then
15670 # There is a commonly available library for RS/6000 AIX.
15671 # Since it is not a standard part of AIX, it might be installed locally.
15672 ac_getloadavg_LIBS=$LIBS
15673 LIBS="-L/usr/local/lib $LIBS"
15674 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15675 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15676 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679 ac_check_lib_save_LIBS=$LIBS
15680 LIBS="-lgetloadavg $LIBS"
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687
15688 /* Override any gcc2 internal prototype to avoid an error. */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15694 char getloadavg ();
15695 int
15696 main ()
15697 {
15698 getloadavg ();
15699 ;
15700 return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag"
15713 || test ! -s conftest.err'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_lib_getloadavg_getloadavg=yes
15726 else
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730 ac_cv_lib_getloadavg_getloadavg=no
15731 fi
15732 rm -f conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
15734 LIBS=$ac_check_lib_save_LIBS
15735 fi
15736 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15737 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15738 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15739 LIBS="-lgetloadavg $LIBS"
15740 else
15741 LIBS=$ac_getloadavg_LIBS
15742 fi
15743
15744 fi
15745
15746 # Make sure it is really in the library, if we think we found it,
15747 # otherwise set up the replacement function.
15748
15749 for ac_func in getloadavg
15750 do
15751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15752 echo "$as_me:$LINENO: checking for $ac_func" >&5
15753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_var+set}\" = set"; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15765 #define $ac_func innocuous_$ac_func
15766
15767 /* System header to define __stub macros and hopefully few prototypes,
15768 which can conflict with char $ac_func (); below.
15769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770 <limits.h> exists even on freestanding compilers. */
15771
15772 #ifdef __STDC__
15773 # include <limits.h>
15774 #else
15775 # include <assert.h>
15776 #endif
15777
15778 #undef $ac_func
15779
15780 /* Override any gcc2 internal prototype to avoid an error. */
15781 #ifdef __cplusplus
15782 extern "C"
15783 {
15784 #endif
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15787 char $ac_func ();
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15792 choke me
15793 #else
15794 char (*f) () = $ac_func;
15795 #endif
15796 #ifdef __cplusplus
15797 }
15798 #endif
15799
15800 int
15801 main ()
15802 {
15803 return f != $ac_func;
15804 ;
15805 return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 eval "$as_ac_var=no"
15836 fi
15837 rm -f conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 fi
15840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15842 if test `eval echo '${'$as_ac_var'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15845 _ACEOF
15846
15847 else
15848 case $LIBOBJS in
15849 "getloadavg.$ac_objext" | \
15850 *" getloadavg.$ac_objext" | \
15851 "getloadavg.$ac_objext "* | \
15852 *" getloadavg.$ac_objext "* ) ;;
15853 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15854 esac
15855
15856
15857 cat >>confdefs.h <<\_ACEOF
15858 #define C_GETLOADAVG 1
15859 _ACEOF
15860
15861 # Figure out what our getloadavg.c needs.
15862 ac_have_func=no
15863 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15864 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15865 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15866 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 fi
15869 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15871 else
15872 # Is the header compilable?
15873 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15874 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $ac_includes_default
15882 #include <sys/dg_sys_info.h>
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_header_compiler=yes
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 ac_header_compiler=no
15912 fi
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15915 echo "${ECHO_T}$ac_header_compiler" >&6
15916
15917 # Is the header present?
15918 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15919 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <sys/dg_sys_info.h>
15927 _ACEOF
15928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev/null; then
15936 if test -s conftest.err; then
15937 ac_cpp_err=$ac_c_preproc_warn_flag
15938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15939 else
15940 ac_cpp_err=
15941 fi
15942 else
15943 ac_cpp_err=yes
15944 fi
15945 if test -z "$ac_cpp_err"; then
15946 ac_header_preproc=yes
15947 else
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_header_preproc=no
15952 fi
15953 rm -f conftest.err conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6
15956
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 yes:no: )
15960 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15965 ;;
15966 no:yes:* )
15967 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15979 (
15980 cat <<\_ASBOX
15981 ## ------------------------------------------ ##
15982 ## Report this to the AC_PACKAGE_NAME lists. ##
15983 ## ------------------------------------------ ##
15984 _ASBOX
15985 ) |
15986 sed "s/^/$as_me: WARNING: /" >&2
15987 ;;
15988 esac
15989 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15990 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15997 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15998
15999 fi
16000 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16001 ac_have_func=yes
16002
16003 cat >>confdefs.h <<\_ACEOF
16004 #define DGUX 1
16005 _ACEOF
16006
16007
16008 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16009 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16010 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013 ac_check_lib_save_LIBS=$LIBS
16014 LIBS="-ldgc $LIBS"
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021
16022 /* Override any gcc2 internal prototype to avoid an error. */
16023 #ifdef __cplusplus
16024 extern "C"
16025 #endif
16026 /* We use char because int might match the return type of a gcc2
16027 builtin and then its argument prototype would still apply. */
16028 char dg_sys_info ();
16029 int
16030 main ()
16031 {
16032 dg_sys_info ();
16033 ;
16034 return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_cv_lib_dgc_dg_sys_info=yes
16060 else
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 ac_cv_lib_dgc_dg_sys_info=no
16065 fi
16066 rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16069 fi
16070 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16071 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16072 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_LIBDGC 1
16075 _ACEOF
16076
16077 LIBS="-ldgc $LIBS"
16078
16079 fi
16080
16081 fi
16082
16083
16084
16085 if test "${ac_cv_header_locale_h+set}" = set; then
16086 echo "$as_me:$LINENO: checking for locale.h" >&5
16087 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16088 if test "${ac_cv_header_locale_h+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 fi
16091 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16092 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16093 else
16094 # Is the header compilable?
16095 echo "$as_me:$LINENO: checking locale.h usability" >&5
16096 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <locale.h>
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16108 (eval $ac_compile) 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_header_compiler=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_header_compiler=no
16134 fi
16135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16137 echo "${ECHO_T}$ac_header_compiler" >&6
16138
16139 # Is the header present?
16140 echo "$as_me:$LINENO: checking locale.h presence" >&5
16141 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <locale.h>
16149 _ACEOF
16150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } >/dev/null; then
16158 if test -s conftest.err; then
16159 ac_cpp_err=$ac_c_preproc_warn_flag
16160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16161 else
16162 ac_cpp_err=
16163 fi
16164 else
16165 ac_cpp_err=yes
16166 fi
16167 if test -z "$ac_cpp_err"; then
16168 ac_header_preproc=yes
16169 else
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 ac_header_preproc=no
16174 fi
16175 rm -f conftest.err conftest.$ac_ext
16176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16177 echo "${ECHO_T}$ac_header_preproc" >&6
16178
16179 # So? What about this header?
16180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16181 yes:no: )
16182 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16183 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16185 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16186 ac_header_preproc=yes
16187 ;;
16188 no:yes:* )
16189 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16190 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16192 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16194 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16195 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16196 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16198 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16200 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16201 (
16202 cat <<\_ASBOX
16203 ## ------------------------------------------ ##
16204 ## Report this to the AC_PACKAGE_NAME lists. ##
16205 ## ------------------------------------------ ##
16206 _ASBOX
16207 ) |
16208 sed "s/^/$as_me: WARNING: /" >&2
16209 ;;
16210 esac
16211 echo "$as_me:$LINENO: checking for locale.h" >&5
16212 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16213 if test "${ac_cv_header_locale_h+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 ac_cv_header_locale_h=$ac_header_preproc
16217 fi
16218 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16219 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16220
16221 fi
16222
16223
16224
16225 for ac_func in setlocale
16226 do
16227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16228 echo "$as_me:$LINENO: checking for $ac_func" >&5
16229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16230 if eval "test \"\${$as_ac_var+set}\" = set"; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16241 #define $ac_func innocuous_$ac_func
16242
16243 /* System header to define __stub macros and hopefully few prototypes,
16244 which can conflict with char $ac_func (); below.
16245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16246 <limits.h> exists even on freestanding compilers. */
16247
16248 #ifdef __STDC__
16249 # include <limits.h>
16250 #else
16251 # include <assert.h>
16252 #endif
16253
16254 #undef $ac_func
16255
16256 /* Override any gcc2 internal prototype to avoid an error. */
16257 #ifdef __cplusplus
16258 extern "C"
16259 {
16260 #endif
16261 /* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16263 char $ac_func ();
16264 /* The GNU C library defines this for functions which it implements
16265 to always fail with ENOSYS. Some functions are actually named
16266 something starting with __ and the normal name is an alias. */
16267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16268 choke me
16269 #else
16270 char (*f) () = $ac_func;
16271 #endif
16272 #ifdef __cplusplus
16273 }
16274 #endif
16275
16276 int
16277 main ()
16278 {
16279 return f != $ac_func;
16280 ;
16281 return 0;
16282 }
16283 _ACEOF
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16286 (eval $ac_link) 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_c_werror_flag"
16294 || test ! -s conftest.err'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try='test -s conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 eval "$as_ac_var=yes"
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 eval "$as_ac_var=no"
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 fi
16316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16318 if test `eval echo '${'$as_ac_var'}'` = yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 _ACEOF
16322
16323 fi
16324 done
16325
16326
16327 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16328 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16329 # Irix 4.0.5F has the header but not the library.
16330 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16331 ac_have_func=yes
16332
16333 cat >>confdefs.h <<\_ACEOF
16334 #define SVR4 1
16335 _ACEOF
16336
16337 fi
16338
16339 if test $ac_have_func = no; then
16340 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16341 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16342 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16343 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16347 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16348 else
16349 # Is the header compilable?
16350 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16351 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $ac_includes_default
16359 #include <inq_stats/cpustats.h>
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363 (eval $ac_compile) 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_header_compiler=yes
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 ac_header_compiler=no
16389 fi
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6
16393
16394 # Is the header present?
16395 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16396 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <inq_stats/cpustats.h>
16404 _ACEOF
16405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } >/dev/null; then
16413 if test -s conftest.err; then
16414 ac_cpp_err=$ac_c_preproc_warn_flag
16415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16416 else
16417 ac_cpp_err=
16418 fi
16419 else
16420 ac_cpp_err=yes
16421 fi
16422 if test -z "$ac_cpp_err"; then
16423 ac_header_preproc=yes
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_header_preproc=no
16429 fi
16430 rm -f conftest.err conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432 echo "${ECHO_T}$ac_header_preproc" >&6
16433
16434 # So? What about this header?
16435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16436 yes:no: )
16437 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16438 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16440 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc=yes
16442 ;;
16443 no:yes:* )
16444 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16445 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16447 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16449 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16451 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16453 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16455 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16456 (
16457 cat <<\_ASBOX
16458 ## ------------------------------------------ ##
16459 ## Report this to the AC_PACKAGE_NAME lists. ##
16460 ## ------------------------------------------ ##
16461 _ASBOX
16462 ) |
16463 sed "s/^/$as_me: WARNING: /" >&2
16464 ;;
16465 esac
16466 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16467 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16468 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16472 fi
16473 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16474 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16475
16476 fi
16477 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16478 ac_have_func=yes
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define UMAX 1
16482 _ACEOF
16483
16484
16485 cat >>confdefs.h <<\_ACEOF
16486 #define UMAX4_3 1
16487 _ACEOF
16488
16489 fi
16490
16491
16492 fi
16493
16494 if test $ac_have_func = no; then
16495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16496 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16497 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16498 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 fi
16501 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16502 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16503 else
16504 # Is the header compilable?
16505 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16506 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <sys/cpustats.h>
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag"
16526 || test ! -s conftest.err'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16538 ac_header_compiler=yes
16539 else
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_header_compiler=no
16544 fi
16545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547 echo "${ECHO_T}$ac_header_compiler" >&6
16548
16549 # Is the header present?
16550 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16551 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 #include <sys/cpustats.h>
16559 _ACEOF
16560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev/null; then
16568 if test -s conftest.err; then
16569 ac_cpp_err=$ac_c_preproc_warn_flag
16570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16571 else
16572 ac_cpp_err=
16573 fi
16574 else
16575 ac_cpp_err=yes
16576 fi
16577 if test -z "$ac_cpp_err"; then
16578 ac_header_preproc=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ac_header_preproc=no
16584 fi
16585 rm -f conftest.err conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587 echo "${ECHO_T}$ac_header_preproc" >&6
16588
16589 # So? What about this header?
16590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16591 yes:no: )
16592 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16593 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16595 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16596 ac_header_preproc=yes
16597 ;;
16598 no:yes:* )
16599 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16600 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16602 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16604 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16606 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16608 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16610 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16611 (
16612 cat <<\_ASBOX
16613 ## ------------------------------------------ ##
16614 ## Report this to the AC_PACKAGE_NAME lists. ##
16615 ## ------------------------------------------ ##
16616 _ASBOX
16617 ) |
16618 sed "s/^/$as_me: WARNING: /" >&2
16619 ;;
16620 esac
16621 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16622 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16623 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16627 fi
16628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16629 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16630
16631 fi
16632 if test $ac_cv_header_sys_cpustats_h = yes; then
16633 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16634 #define UMAX 1
16635 _ACEOF
16636
16637 fi
16638
16639
16640 fi
16641
16642 if test $ac_have_func = no; then
16643
16644 for ac_header in mach/mach.h
16645 do
16646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 fi
16653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16655 else
16656 # Is the header compilable?
16657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16659 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h. */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 $ac_includes_default
16666 #include <$ac_header>
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670 (eval $ac_compile) 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -z "$ac_c_werror_flag"
16678 || test ! -s conftest.err'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_header_compiler=yes
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ac_header_compiler=no
16696 fi
16697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16699 echo "${ECHO_T}$ac_header_compiler" >&6
16700
16701 # Is the header present?
16702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 #include <$ac_header>
16711 _ACEOF
16712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } >/dev/null; then
16720 if test -s conftest.err; then
16721 ac_cpp_err=$ac_c_preproc_warn_flag
16722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16723 else
16724 ac_cpp_err=
16725 fi
16726 else
16727 ac_cpp_err=yes
16728 fi
16729 if test -z "$ac_cpp_err"; then
16730 ac_header_preproc=yes
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 ac_header_preproc=no
16736 fi
16737 rm -f conftest.err conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16739 echo "${ECHO_T}$ac_header_preproc" >&6
16740
16741 # So? What about this header?
16742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16743 yes:no: )
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16748 ac_header_preproc=yes
16749 ;;
16750 no:yes:* )
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16763 (
16764 cat <<\_ASBOX
16765 ## ------------------------------------------ ##
16766 ## Report this to the AC_PACKAGE_NAME lists. ##
16767 ## ------------------------------------------ ##
16768 _ASBOX
16769 ) |
16770 sed "s/^/$as_me: WARNING: /" >&2
16771 ;;
16772 esac
16773 echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778 eval "$as_ac_Header=\$ac_header_preproc"
16779 fi
16780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16782
16783 fi
16784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16787 _ACEOF
16788
16789 fi
16790
16791 done
16792
16793 fi
16794
16795
16796 for ac_header in nlist.h
16797 do
16798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16800 echo "$as_me:$LINENO: checking for $ac_header" >&5
16801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 fi
16805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16807 else
16808 # Is the header compilable?
16809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16811 cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 $ac_includes_default
16818 #include <$ac_header>
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_header_compiler=yes
16843 else
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 ac_header_compiler=no
16848 fi
16849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6
16852
16853 # Is the header present?
16854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <$ac_header>
16863 _ACEOF
16864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } >/dev/null; then
16872 if test -s conftest.err; then
16873 ac_cpp_err=$ac_c_preproc_warn_flag
16874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16875 else
16876 ac_cpp_err=
16877 fi
16878 else
16879 ac_cpp_err=yes
16880 fi
16881 if test -z "$ac_cpp_err"; then
16882 ac_header_preproc=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 ac_header_preproc=no
16888 fi
16889 rm -f conftest.err conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891 echo "${ECHO_T}$ac_header_preproc" >&6
16892
16893 # So? What about this header?
16894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16895 yes:no: )
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16900 ac_header_preproc=yes
16901 ;;
16902 no:yes:* )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16915 (
16916 cat <<\_ASBOX
16917 ## ------------------------------------------ ##
16918 ## Report this to the AC_PACKAGE_NAME lists. ##
16919 ## ------------------------------------------ ##
16920 _ASBOX
16921 ) |
16922 sed "s/^/$as_me: WARNING: /" >&2
16923 ;;
16924 esac
16925 echo "$as_me:$LINENO: checking for $ac_header" >&5
16926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930 eval "$as_ac_Header=\$ac_header_preproc"
16931 fi
16932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16934
16935 fi
16936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16937 cat >>confdefs.h <<_ACEOF
16938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16939 _ACEOF
16940 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16941 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16942 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 #include <nlist.h>
16952
16953 int
16954 main ()
16955 {
16956 static struct nlist ac_aggr;
16957 if (ac_aggr.n_un.n_name)
16958 return 0;
16959 ;
16960 return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16965 (eval $ac_compile) 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -z "$ac_c_werror_flag"
16973 || test ! -s conftest.err'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; } &&
16979 { ac_try='test -s conftest.$ac_objext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_member_struct_nlist_n_un_n_name=yes
16986 else
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <nlist.h>
16997
16998 int
16999 main ()
17000 {
17001 static struct nlist ac_aggr;
17002 if (sizeof ac_aggr.n_un.n_name)
17003 return 0;
17004 ;
17005 return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010 (eval $ac_compile) 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_member_struct_nlist_n_un_n_name=yes
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ac_cv_member_struct_nlist_n_un_n_name=no
17036 fi
17037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17042 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17043 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17044
17045 cat >>confdefs.h <<_ACEOF
17046 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17047 _ACEOF
17048
17049
17050 cat >>confdefs.h <<\_ACEOF
17051 #define NLIST_NAME_UNION 1
17052 _ACEOF
17053
17054 fi
17055
17056
17057 fi
17058
17059 done
17060
17061 fi
17062 done
17063
17064
17065 # Some definitions of getloadavg require that the program be installed setgid.
17066 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17067 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17068 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17078 #ifdef LDAV_PRIVILEGED
17079 Yowza Am I SETGID yet
17080 #endif
17081 _ACEOF
17082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17083 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17084 ac_cv_func_getloadavg_setgid=yes
17085 else
17086 ac_cv_func_getloadavg_setgid=no
17087 fi
17088 rm -f conftest*
17089
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17092 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17093 if test $ac_cv_func_getloadavg_setgid = yes; then
17094 NEED_SETGID=true
17095
17096 cat >>confdefs.h <<\_ACEOF
17097 #define GETLOADAVG_PRIVILEGED 1
17098 _ACEOF
17099
17100 else
17101 NEED_SETGID=false
17102 fi
17103
17104 if test $ac_cv_func_getloadavg_setgid = yes; then
17105 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17106 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17107 if test "${ac_cv_group_kmem+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17111 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17112 # If we got an error (system does not support symlinks), try without -L.
17113 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17114 ac_cv_group_kmem=`echo $ac_ls_output \
17115 | sed -ne 's/[ ][ ]*/ /g;
17116 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17117 / /s/.* //;p;'`
17118
17119 fi
17120 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17121 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17122 KMEM_GROUP=$ac_cv_group_kmem
17123 fi
17124 if test "x$ac_save_LIBS" = x; then
17125 GETLOADAVG_LIBS=$LIBS
17126 else
17127 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17128 fi
17129 LIBS=$ac_save_LIBS
17130
17131
17132
17133 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17134 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17135 if test "${ac_cv_sys_largefile_source+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138 while :; do
17139 ac_cv_sys_largefile_source=no
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <stdio.h>
17147 int
17148 main ()
17149 {
17150 return !fseeko;
17151 ;
17152 return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 break
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 fi
17183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #define _LARGEFILE_SOURCE 1
17191 #include <stdio.h>
17192 int
17193 main ()
17194 {
17195 return !fseeko;
17196 ;
17197 return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202 (eval $ac_compile) 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag"
17210 || 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"
17276 || test ! -s conftest.err'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_func_fseeko=yes
17289 else
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_cv_func_fseeko=no
17294 fi
17295 rm -f conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17297 fi
17298 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17299 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17300 if test $ac_cv_func_fseeko = yes; then
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_FSEEKO 1
17304 _ACEOF
17305
17306 fi
17307
17308
17309 # Configure getopt.
17310 # getopt.m4 serial 10
17311
17312 # The getopt module assume you want GNU getopt, with getopt_long etc,
17313 # rather than vanilla POSIX getopt. This means your your code should
17314 # always include <getopt.h> for the getopt prototypes.
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326 # Prerequisites of lib/getopt*.
17327
17328
17329
17330
17331 GETOPT_H=
17332
17333 for ac_header in getopt.h
17334 do
17335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17337 echo "$as_me:$LINENO: checking for $ac_header" >&5
17338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 fi
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17344 else
17345 # Is the header compilable?
17346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 $ac_includes_default
17355 #include <$ac_header>
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest.$ac_objext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_header_compiler=yes
17380 else
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_header_compiler=no
17385 fi
17386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17388 echo "${ECHO_T}$ac_header_compiler" >&6
17389
17390 # Is the header present?
17391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 #include <$ac_header>
17400 _ACEOF
17401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17403 ac_status=$?
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } >/dev/null; then
17409 if test -s conftest.err; then
17410 ac_cpp_err=$ac_c_preproc_warn_flag
17411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17412 else
17413 ac_cpp_err=
17414 fi
17415 else
17416 ac_cpp_err=yes
17417 fi
17418 if test -z "$ac_cpp_err"; then
17419 ac_header_preproc=yes
17420 else
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_header_preproc=no
17425 fi
17426 rm -f conftest.err conftest.$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17428 echo "${ECHO_T}$ac_header_preproc" >&6
17429
17430 # So? What about this header?
17431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17432 yes:no: )
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17437 ac_header_preproc=yes
17438 ;;
17439 no:yes:* )
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17452 (
17453 cat <<\_ASBOX
17454 ## ------------------------------------------ ##
17455 ## Report this to the AC_PACKAGE_NAME lists. ##
17456 ## ------------------------------------------ ##
17457 _ASBOX
17458 ) |
17459 sed "s/^/$as_me: WARNING: /" >&2
17460 ;;
17461 esac
17462 echo "$as_me:$LINENO: checking for $ac_header" >&5
17463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 eval "$as_ac_Header=\$ac_header_preproc"
17468 fi
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17471
17472 fi
17473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17476 _ACEOF
17477
17478 else
17479 GETOPT_H=getopt.h
17480 fi
17481
17482 done
17483
17484 if test -z "$GETOPT_H"; then
17485
17486 for ac_func in getopt_long_only
17487 do
17488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17489 echo "$as_me:$LINENO: checking for $ac_func" >&5
17490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491 if eval "test \"\${$as_ac_var+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502 #define $ac_func innocuous_$ac_func
17503
17504 /* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17508
17509 #ifdef __STDC__
17510 # include <limits.h>
17511 #else
17512 # include <assert.h>
17513 #endif
17514
17515 #undef $ac_func
17516
17517 /* Override any gcc2 internal prototype to avoid an error. */
17518 #ifdef __cplusplus
17519 extern "C"
17520 {
17521 #endif
17522 /* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
17524 char $ac_func ();
17525 /* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
17528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529 choke me
17530 #else
17531 char (*f) () = $ac_func;
17532 #endif
17533 #ifdef __cplusplus
17534 }
17535 #endif
17536
17537 int
17538 main ()
17539 {
17540 return f != $ac_func;
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 eval "$as_ac_var=yes"
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 eval "$as_ac_var=no"
17573 fi
17574 rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576 fi
17577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17579 if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 _ACEOF
17583
17584 else
17585 GETOPT_H=getopt.h
17586 fi
17587 done
17588
17589 fi
17590
17591 if test -z "$GETOPT_H"; then
17592 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17593 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17594 if test "${ac_cv_have_decl_optreset+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <getopt.h>
17604
17605 int
17606 main ()
17607 {
17608 #ifndef optreset
17609 char *p = (char *) optreset;
17610 #endif
17611
17612 ;
17613 return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_have_decl_optreset=yes
17639 else
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 ac_cv_have_decl_optreset=no
17644 fi
17645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 fi
17647 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17648 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17649 if test $ac_cv_have_decl_optreset = yes; then
17650 GETOPT_H=getopt.h
17651 fi
17652
17653 fi
17654
17655 if test -z "$GETOPT_H"; then
17656 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17657 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17658 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661 if test "$cross_compiling" = yes; then
17662 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17663 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17664 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 #include <getopt.h>
17674
17675 int
17676 main ()
17677 {
17678 #ifndef getopt_clip
17679 char *p = (char *) getopt_clip;
17680 #endif
17681
17682 ;
17683 return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688 (eval $ac_compile) 2>conftest.er1
17689 ac_status=$?
17690 grep -v '^ *+' conftest.er1 >conftest.err
17691 rm -f conftest.er1
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_have_decl_getopt_clip=yes
17709 else
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_have_decl_getopt_clip=no
17714 fi
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17718 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17719 if test $ac_cv_have_decl_getopt_clip = yes; then
17720 gl_cv_func_gnu_getopt=no
17721 else
17722 gl_cv_func_gnu_getopt=yes
17723 fi
17724
17725 else
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #include <getopt.h>
17733 int
17734 main ()
17735 {
17736
17737 char *myargv[3];
17738 myargv[0] = "conftest";
17739 myargv[1] = "-+";
17740 myargv[2] = 0;
17741 return getopt (2, myargv, "+a") != '?';
17742
17743 ;
17744 return 0;
17745 }
17746 _ACEOF
17747 rm -f conftest$ac_exeext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749 (eval $ac_link) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 gl_cv_func_gnu_getopt=yes
17759 else
17760 echo "$as_me: program exited with status $ac_status" >&5
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ( exit $ac_status )
17765 gl_cv_func_gnu_getopt=no
17766 fi
17767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17768 fi
17769 fi
17770 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17771 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17772 if test "$gl_cv_func_gnu_getopt" = "no"; then
17773 GETOPT_H=getopt.h
17774 fi
17775 fi
17776
17777
17778
17779 if test -n "$GETOPT_H"; then
17780
17781
17782 GETOPT_H=getopt.h
17783
17784 cat >>confdefs.h <<\_ACEOF
17785 #define __GETOPT_PREFIX rpl_
17786 _ACEOF
17787
17788
17789
17790 :
17791 GETOPTOBJS='getopt.o getopt1.o'
17792
17793 fi
17794
17795
17796
17797
17798 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17799 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17800 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 # Use it with a single arg.
17804 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h. */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 $ac_includes_default
17811 int
17812 main ()
17813 {
17814 getpgrp (0);
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
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); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_func_getpgrp_void=no
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_func_getpgrp_void=yes
17847 fi
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17849
17850 fi
17851 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17852 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17853 if test $ac_cv_func_getpgrp_void = yes; then
17854
17855 cat >>confdefs.h <<\_ACEOF
17856 #define GETPGRP_VOID 1
17857 _ACEOF
17858
17859 fi
17860
17861
17862
17863 for ac_func in strftime
17864 do
17865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17866 echo "$as_me:$LINENO: checking for $ac_func" >&5
17867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_var+set}\" = set"; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h. */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17879 #define $ac_func innocuous_$ac_func
17880
17881 /* System header to define __stub macros and hopefully few prototypes,
17882 which can conflict with char $ac_func (); below.
17883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884 <limits.h> exists even on freestanding compilers. */
17885
17886 #ifdef __STDC__
17887 # include <limits.h>
17888 #else
17889 # include <assert.h>
17890 #endif
17891
17892 #undef $ac_func
17893
17894 /* Override any gcc2 internal prototype to avoid an error. */
17895 #ifdef __cplusplus
17896 extern "C"
17897 {
17898 #endif
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17901 char $ac_func ();
17902 /* The GNU C library defines this for functions which it implements
17903 to always fail with ENOSYS. Some functions are actually named
17904 something starting with __ and the normal name is an alias. */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17906 choke me
17907 #else
17908 char (*f) () = $ac_func;
17909 #endif
17910 #ifdef __cplusplus
17911 }
17912 #endif
17913
17914 int
17915 main ()
17916 {
17917 return f != $ac_func;
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 eval "$as_ac_var=yes"
17945 else
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 eval "$as_ac_var=no"
17950 fi
17951 rm -f conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 fi
17954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17959 _ACEOF
17960
17961 else
17962 # strftime is in -lintl on SCO UNIX.
17963 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17964 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17965 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968 ac_check_lib_save_LIBS=$LIBS
17969 LIBS="-lintl $LIBS"
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976
17977 /* Override any gcc2 internal prototype to avoid an error. */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 /* We use char because int might match the return type of a gcc2
17982 builtin and then its argument prototype would still apply. */
17983 char strftime ();
17984 int
17985 main ()
17986 {
17987 strftime ();
17988 ;
17989 return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_lib_intl_strftime=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ac_cv_lib_intl_strftime=no
18020 fi
18021 rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023 LIBS=$ac_check_lib_save_LIBS
18024 fi
18025 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18026 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18027 if test $ac_cv_lib_intl_strftime = yes; then
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_STRFTIME 1
18030 _ACEOF
18031
18032 LIBS="-lintl $LIBS"
18033 fi
18034
18035 fi
18036 done
18037
18038
18039 # UNIX98 PTYs.
18040
18041 for ac_func in grantpt
18042 do
18043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18046 if eval "test \"\${$as_ac_var+set}\" = set"; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057 #define $ac_func innocuous_$ac_func
18058
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18063
18064 #ifdef __STDC__
18065 # include <limits.h>
18066 #else
18067 # include <assert.h>
18068 #endif
18069
18070 #undef $ac_func
18071
18072 /* Override any gcc2 internal prototype to avoid an error. */
18073 #ifdef __cplusplus
18074 extern "C"
18075 {
18076 #endif
18077 /* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18079 char $ac_func ();
18080 /* The GNU C library defines this for functions which it implements
18081 to always fail with ENOSYS. Some functions are actually named
18082 something starting with __ and the normal name is an alias. */
18083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18084 choke me
18085 #else
18086 char (*f) () = $ac_func;
18087 #endif
18088 #ifdef __cplusplus
18089 }
18090 #endif
18091
18092 int
18093 main ()
18094 {
18095 return f != $ac_func;
18096 ;
18097 return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 eval "$as_ac_var=yes"
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 eval "$as_ac_var=no"
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 fi
18132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18134 if test `eval echo '${'$as_ac_var'}'` = yes; then
18135 cat >>confdefs.h <<_ACEOF
18136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18137 _ACEOF
18138
18139 fi
18140 done
18141
18142
18143 # PTY-related GNU extensions.
18144
18145 for ac_func in getpt
18146 do
18147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18150 if eval "test \"\${$as_ac_var+set}\" = set"; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h. */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18162
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18167
18168 #ifdef __STDC__
18169 # include <limits.h>
18170 #else
18171 # include <assert.h>
18172 #endif
18173
18174 #undef $ac_func
18175
18176 /* Override any gcc2 internal prototype to avoid an error. */
18177 #ifdef __cplusplus
18178 extern "C"
18179 {
18180 #endif
18181 /* We use char because int might match the return type of a gcc2
18182 builtin and then its argument prototype would still apply. */
18183 char $ac_func ();
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18188 choke me
18189 #else
18190 char (*f) () = $ac_func;
18191 #endif
18192 #ifdef __cplusplus
18193 }
18194 #endif
18195
18196 int
18197 main ()
18198 {
18199 return f != $ac_func;
18200 ;
18201 return 0;
18202 }
18203 _ACEOF
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try='test -z "$ac_c_werror_flag"
18214 || test ! -s conftest.err'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest$ac_exeext'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 eval "$as_ac_var=yes"
18227 else
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231 eval "$as_ac_var=no"
18232 fi
18233 rm -f conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 fi
18236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18238 if test `eval echo '${'$as_ac_var'}'` = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18241 _ACEOF
18242
18243 fi
18244 done
18245
18246
18247 # Check this now, so that we will NOT find the above functions in ncurses.
18248 # That is because we have not set up to link ncurses in lib-src.
18249 # It's better to believe a function is not available
18250 # than to expect to find it in ncurses.
18251
18252 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18253 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18254 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257 ac_check_lib_save_LIBS=$LIBS
18258 LIBS="-lncurses $LIBS"
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265
18266 /* Override any gcc2 internal prototype to avoid an error. */
18267 #ifdef __cplusplus
18268 extern "C"
18269 #endif
18270 /* We use char because int might match the return type of a gcc2
18271 builtin and then its argument prototype would still apply. */
18272 char tparm ();
18273 int
18274 main ()
18275 {
18276 tparm ();
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18283 (eval $ac_link) 2>conftest.er1
18284 ac_status=$?
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest$ac_exeext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_lib_ncurses_tparm=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_cv_lib_ncurses_tparm=no
18309 fi
18310 rm -f conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18313 fi
18314 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18315 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18316 if test $ac_cv_lib_ncurses_tparm = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_LIBNCURSES 1
18319 _ACEOF
18320
18321 LIBS="-lncurses $LIBS"
18322
18323 fi
18324
18325
18326 # Do we need the Hesiod library to provide the support routines?
18327 if test "$with_hesiod" = yes ; then
18328 # Don't set $LIBS here -- see comments above.
18329 resolv=no
18330 echo "$as_me:$LINENO: checking for res_send" >&5
18331 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18332 if test "${ac_cv_func_res_send+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335 cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h. */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18343 #define res_send innocuous_res_send
18344
18345 /* System header to define __stub macros and hopefully few prototypes,
18346 which can conflict with char res_send (); below.
18347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18348 <limits.h> exists even on freestanding compilers. */
18349
18350 #ifdef __STDC__
18351 # include <limits.h>
18352 #else
18353 # include <assert.h>
18354 #endif
18355
18356 #undef res_send
18357
18358 /* Override any gcc2 internal prototype to avoid an error. */
18359 #ifdef __cplusplus
18360 extern "C"
18361 {
18362 #endif
18363 /* We use char because int might match the return type of a gcc2
18364 builtin and then its argument prototype would still apply. */
18365 char res_send ();
18366 /* The GNU C library defines this for functions which it implements
18367 to always fail with ENOSYS. Some functions are actually named
18368 something starting with __ and the normal name is an alias. */
18369 #if defined (__stub_res_send) || defined (__stub___res_send)
18370 choke me
18371 #else
18372 char (*f) () = res_send;
18373 #endif
18374 #ifdef __cplusplus
18375 }
18376 #endif
18377
18378 int
18379 main ()
18380 {
18381 return f != res_send;
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_func_res_send=yes
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_func_res_send=no
18414 fi
18415 rm -f conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 fi
18418 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18419 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18420 if test $ac_cv_func_res_send = yes; then
18421 :
18422 else
18423 echo "$as_me:$LINENO: checking for __res_send" >&5
18424 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18425 if test "${ac_cv_func___res_send+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18436 #define __res_send innocuous___res_send
18437
18438 /* System header to define __stub macros and hopefully few prototypes,
18439 which can conflict with char __res_send (); below.
18440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18441 <limits.h> exists even on freestanding compilers. */
18442
18443 #ifdef __STDC__
18444 # include <limits.h>
18445 #else
18446 # include <assert.h>
18447 #endif
18448
18449 #undef __res_send
18450
18451 /* Override any gcc2 internal prototype to avoid an error. */
18452 #ifdef __cplusplus
18453 extern "C"
18454 {
18455 #endif
18456 /* We use char because int might match the return type of a gcc2
18457 builtin and then its argument prototype would still apply. */
18458 char __res_send ();
18459 /* The GNU C library defines this for functions which it implements
18460 to always fail with ENOSYS. Some functions are actually named
18461 something starting with __ and the normal name is an alias. */
18462 #if defined (__stub___res_send) || defined (__stub_____res_send)
18463 choke me
18464 #else
18465 char (*f) () = __res_send;
18466 #endif
18467 #ifdef __cplusplus
18468 }
18469 #endif
18470
18471 int
18472 main ()
18473 {
18474 return f != __res_send;
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest$ac_exeext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_func___res_send=yes
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 ac_cv_func___res_send=no
18507 fi
18508 rm -f conftest.err conftest.$ac_objext \
18509 conftest$ac_exeext conftest.$ac_ext
18510 fi
18511 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18512 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18513 if test $ac_cv_func___res_send = yes; then
18514 :
18515 else
18516 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18517 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18518 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521 ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lresolv $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h. */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18529
18530 /* Override any gcc2 internal prototype to avoid an error. */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18536 char res_send ();
18537 int
18538 main ()
18539 {
18540 res_send ();
18541 ;
18542 return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_lib_resolv_res_send=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_cv_lib_resolv_res_send=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18577 fi
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18579 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18580 if test $ac_cv_lib_resolv_res_send = yes; then
18581 resolv=yes
18582 else
18583 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18584 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18585 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lresolv $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596
18597 /* Override any gcc2 internal prototype to avoid an error. */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 /* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603 char __res_send ();
18604 int
18605 main ()
18606 {
18607 __res_send ();
18608 ;
18609 return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag"
18622 || test ! -s conftest.err'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try='test -s conftest$ac_exeext'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_lib_resolv___res_send=yes
18635 else
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 ac_cv_lib_resolv___res_send=no
18640 fi
18641 rm -f conftest.err conftest.$ac_objext \
18642 conftest$ac_exeext conftest.$ac_ext
18643 LIBS=$ac_check_lib_save_LIBS
18644 fi
18645 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18646 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18647 if test $ac_cv_lib_resolv___res_send = yes; then
18648 resolv=yes
18649 fi
18650
18651 fi
18652
18653 fi
18654
18655 fi
18656
18657 if test "$resolv" = yes ; then
18658 RESOLVLIB=-lresolv
18659
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE_LIBRESOLV 1
18662 _ACEOF
18663
18664 else
18665 RESOLVLIB=
18666 fi
18667 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18668 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18669 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18680 #define hes_getmailhost innocuous_hes_getmailhost
18681
18682 /* System header to define __stub macros and hopefully few prototypes,
18683 which can conflict with char hes_getmailhost (); below.
18684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18685 <limits.h> exists even on freestanding compilers. */
18686
18687 #ifdef __STDC__
18688 # include <limits.h>
18689 #else
18690 # include <assert.h>
18691 #endif
18692
18693 #undef hes_getmailhost
18694
18695 /* Override any gcc2 internal prototype to avoid an error. */
18696 #ifdef __cplusplus
18697 extern "C"
18698 {
18699 #endif
18700 /* We use char because int might match the return type of a gcc2
18701 builtin and then its argument prototype would still apply. */
18702 char hes_getmailhost ();
18703 /* The GNU C library defines this for functions which it implements
18704 to always fail with ENOSYS. Some functions are actually named
18705 something starting with __ and the normal name is an alias. */
18706 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18707 choke me
18708 #else
18709 char (*f) () = hes_getmailhost;
18710 #endif
18711 #ifdef __cplusplus
18712 }
18713 #endif
18714
18715 int
18716 main ()
18717 {
18718 return f != hes_getmailhost;
18719 ;
18720 return 0;
18721 }
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag"
18733 || test ! -s conftest.err'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest$ac_exeext'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_cv_func_hes_getmailhost=yes
18746 else
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_func_hes_getmailhost=no
18751 fi
18752 rm -f conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754 fi
18755 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18756 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18757 if test $ac_cv_func_hes_getmailhost = yes; then
18758 :
18759 else
18760 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18761 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18762 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765 ac_check_lib_save_LIBS=$LIBS
18766 LIBS="-lhesiod $RESOLVLIB $LIBS"
18767 cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h. */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18773
18774 /* Override any gcc2 internal prototype to avoid an error. */
18775 #ifdef __cplusplus
18776 extern "C"
18777 #endif
18778 /* We use char because int might match the return type of a gcc2
18779 builtin and then its argument prototype would still apply. */
18780 char hes_getmailhost ();
18781 int
18782 main ()
18783 {
18784 hes_getmailhost ();
18785 ;
18786 return 0;
18787 }
18788 _ACEOF
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18791 (eval $ac_link) 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -z "$ac_c_werror_flag"
18799 || test ! -s conftest.err'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try='test -s conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_lib_hesiod_hes_getmailhost=yes
18812 else
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 ac_cv_lib_hesiod_hes_getmailhost=no
18817 fi
18818 rm -f conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18820 LIBS=$ac_check_lib_save_LIBS
18821 fi
18822 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18823 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18824 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_LIBHESIOD 1
18828 _ACEOF
18829
18830 else
18831 :
18832 fi
18833
18834 fi
18835
18836 fi
18837
18838 # These tell us which Kerberos-related libraries to use.
18839 if test "${with_kerberos+set}" = set; then
18840
18841 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18842 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18843 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-lcom_err $LIBS"
18848 cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h. */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854
18855 /* Override any gcc2 internal prototype to avoid an error. */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char com_err ();
18862 int
18863 main ()
18864 {
18865 com_err ();
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag"
18880 || test ! -s conftest.err'
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest$ac_exeext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_lib_com_err_com_err=yes
18893 else
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897 ac_cv_lib_com_err_com_err=no
18898 fi
18899 rm -f conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18902 fi
18903 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18904 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18905 if test $ac_cv_lib_com_err_com_err = yes; then
18906 cat >>confdefs.h <<_ACEOF
18907 #define HAVE_LIBCOM_ERR 1
18908 _ACEOF
18909
18910 LIBS="-lcom_err $LIBS"
18911
18912 fi
18913
18914
18915 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18916 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18917 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18920 ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-lk5crypto $LIBS"
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928
18929 /* Override any gcc2 internal prototype to avoid an error. */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 /* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18935 char mit_des_cbc_encrypt ();
18936 int
18937 main ()
18938 {
18939 mit_des_cbc_encrypt ();
18940 ;
18941 return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18972 fi
18973 rm -f conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18976 fi
18977 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18978 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18979 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_LIBK5CRYPTO 1
18982 _ACEOF
18983
18984 LIBS="-lk5crypto $LIBS"
18985
18986 fi
18987
18988
18989 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18990 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18991 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994 ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lcrypto $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h. */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002
19003 /* Override any gcc2 internal prototype to avoid an error. */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char mit_des_cbc_encrypt ();
19010 int
19011 main ()
19012 {
19013 mit_des_cbc_encrypt ();
19014 ;
19015 return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19046 fi
19047 rm -f conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049 LIBS=$ac_check_lib_save_LIBS
19050 fi
19051 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19052 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19053 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19054 cat >>confdefs.h <<_ACEOF
19055 #define HAVE_LIBCRYPTO 1
19056 _ACEOF
19057
19058 LIBS="-lcrypto $LIBS"
19059
19060 fi
19061
19062
19063 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19064 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19065 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068 ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lkrb5 $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076
19077 /* Override any gcc2 internal prototype to avoid an error. */
19078 #ifdef __cplusplus
19079 extern "C"
19080 #endif
19081 /* We use char because int might match the return type of a gcc2
19082 builtin and then its argument prototype would still apply. */
19083 char krb5_init_context ();
19084 int
19085 main ()
19086 {
19087 krb5_init_context ();
19088 ;
19089 return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>conftest.er1
19095 ac_status=$?
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_lib_krb5_krb5_init_context=yes
19115 else
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19118
19119 ac_cv_lib_krb5_krb5_init_context=no
19120 fi
19121 rm -f conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19126 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19127 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE_LIBKRB5 1
19130 _ACEOF
19131
19132 LIBS="-lkrb5 $LIBS"
19133
19134 fi
19135
19136 if test "${with_kerberos5+set}" != set; then
19137
19138 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19139 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19140 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 ac_check_lib_save_LIBS=$LIBS
19144 LIBS="-ldes425 $LIBS"
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151
19152 /* Override any gcc2 internal prototype to avoid an error. */
19153 #ifdef __cplusplus
19154 extern "C"
19155 #endif
19156 /* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19158 char des_cbc_encrypt ();
19159 int
19160 main ()
19161 {
19162 des_cbc_encrypt ();
19163 ;
19164 return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169 (eval $ac_link) 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest$ac_exeext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 ac_cv_lib_des425_des_cbc_encrypt=yes
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19193
19194 ac_cv_lib_des425_des_cbc_encrypt=no
19195 fi
19196 rm -f conftest.err conftest.$ac_objext \
19197 conftest$ac_exeext conftest.$ac_ext
19198 LIBS=$ac_check_lib_save_LIBS
19199 fi
19200 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19201 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19202 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define HAVE_LIBDES425 1
19205 _ACEOF
19206
19207 LIBS="-ldes425 $LIBS"
19208
19209 else
19210
19211 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19212 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19213 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216 ac_check_lib_save_LIBS=$LIBS
19217 LIBS="-ldes $LIBS"
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224
19225 /* Override any gcc2 internal prototype to avoid an error. */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 /* We use char because int might match the return type of a gcc2
19230 builtin and then its argument prototype would still apply. */
19231 char des_cbc_encrypt ();
19232 int
19233 main ()
19234 {
19235 des_cbc_encrypt ();
19236 ;
19237 return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest$ac_exeext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_cv_lib_des_des_cbc_encrypt=yes
19263 else
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 ac_cv_lib_des_des_cbc_encrypt=no
19268 fi
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_check_lib_save_LIBS
19272 fi
19273 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19274 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19275 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define HAVE_LIBDES 1
19278 _ACEOF
19279
19280 LIBS="-ldes $LIBS"
19281
19282 fi
19283
19284 fi
19285
19286
19287 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19288 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19289 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lkrb4 $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300
19301 /* Override any gcc2 internal prototype to avoid an error. */
19302 #ifdef __cplusplus
19303 extern "C"
19304 #endif
19305 /* We use char because int might match the return type of a gcc2
19306 builtin and then its argument prototype would still apply. */
19307 char krb_get_cred ();
19308 int
19309 main ()
19310 {
19311 krb_get_cred ();
19312 ;
19313 return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318 (eval $ac_link) 2>conftest.er1
19319 ac_status=$?
19320 grep -v '^ *+' conftest.er1 >conftest.err
19321 rm -f conftest.er1
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_cv_lib_krb4_krb_get_cred=yes
19339 else
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343 ac_cv_lib_krb4_krb_get_cred=no
19344 fi
19345 rm -f conftest.err conftest.$ac_objext \
19346 conftest$ac_exeext conftest.$ac_ext
19347 LIBS=$ac_check_lib_save_LIBS
19348 fi
19349 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19350 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19351 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19352 cat >>confdefs.h <<_ACEOF
19353 #define HAVE_LIBKRB4 1
19354 _ACEOF
19355
19356 LIBS="-lkrb4 $LIBS"
19357
19358 else
19359
19360 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19361 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19362 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 ac_check_lib_save_LIBS=$LIBS
19366 LIBS="-lkrb $LIBS"
19367 cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h. */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373
19374 /* Override any gcc2 internal prototype to avoid an error. */
19375 #ifdef __cplusplus
19376 extern "C"
19377 #endif
19378 /* We use char because int might match the return type of a gcc2
19379 builtin and then its argument prototype would still apply. */
19380 char krb_get_cred ();
19381 int
19382 main ()
19383 {
19384 krb_get_cred ();
19385 ;
19386 return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19391 (eval $ac_link) 2>conftest.er1
19392 ac_status=$?
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try='test -z "$ac_c_werror_flag"
19399 || test ! -s conftest.err'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 ac_cv_lib_krb_krb_get_cred=yes
19412 else
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 ac_cv_lib_krb_krb_get_cred=no
19417 fi
19418 rm -f conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420 LIBS=$ac_check_lib_save_LIBS
19421 fi
19422 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19423 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19424 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_LIBKRB 1
19427 _ACEOF
19428
19429 LIBS="-lkrb $LIBS"
19430
19431 fi
19432
19433 fi
19434
19435 fi
19436
19437 if test "${with_kerberos5+set}" = set; then
19438
19439 for ac_header in krb5.h
19440 do
19441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443 echo "$as_me:$LINENO: checking for $ac_header" >&5
19444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 fi
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19450 else
19451 # Is the header compilable?
19452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h. */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 $ac_includes_default
19461 #include <$ac_header>
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19465 (eval $ac_compile) 2>conftest.er1
19466 ac_status=$?
19467 grep -v '^ *+' conftest.er1 >conftest.err
19468 rm -f conftest.er1
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag"
19473 || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_header_compiler=yes
19486 else
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ac_header_compiler=no
19491 fi
19492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19494 echo "${ECHO_T}$ac_header_compiler" >&6
19495
19496 # Is the header present?
19497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <$ac_header>
19506 _ACEOF
19507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } >/dev/null; then
19515 if test -s conftest.err; then
19516 ac_cpp_err=$ac_c_preproc_warn_flag
19517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19518 else
19519 ac_cpp_err=
19520 fi
19521 else
19522 ac_cpp_err=yes
19523 fi
19524 if test -z "$ac_cpp_err"; then
19525 ac_header_preproc=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_header_preproc=no
19531 fi
19532 rm -f conftest.err conftest.$ac_ext
19533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19534 echo "${ECHO_T}$ac_header_preproc" >&6
19535
19536 # So? What about this header?
19537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19538 yes:no: )
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19543 ac_header_preproc=yes
19544 ;;
19545 no:yes:* )
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19558 (
19559 cat <<\_ASBOX
19560 ## ------------------------------------------ ##
19561 ## Report this to the AC_PACKAGE_NAME lists. ##
19562 ## ------------------------------------------ ##
19563 _ASBOX
19564 ) |
19565 sed "s/^/$as_me: WARNING: /" >&2
19566 ;;
19567 esac
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 else
19573 eval "$as_ac_Header=\$ac_header_preproc"
19574 fi
19575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19577
19578 fi
19579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19580 cat >>confdefs.h <<_ACEOF
19581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19582 _ACEOF
19583
19584 fi
19585
19586 done
19587
19588 else
19589
19590 for ac_header in des.h
19591 do
19592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo "$as_me:$LINENO: checking for $ac_header" >&5
19595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 fi
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19601 else
19602 # Is the header compilable?
19603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 $ac_includes_default
19612 #include <$ac_header>
19613 _ACEOF
19614 rm -f conftest.$ac_objext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19616 (eval $ac_compile) 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag"
19624 || test ! -s conftest.err'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest.$ac_objext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_header_compiler=yes
19637 else
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_header_compiler=no
19642 fi
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645 echo "${ECHO_T}$ac_header_compiler" >&6
19646
19647 # Is the header present?
19648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <$ac_header>
19657 _ACEOF
19658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } >/dev/null; then
19666 if test -s conftest.err; then
19667 ac_cpp_err=$ac_c_preproc_warn_flag
19668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19669 else
19670 ac_cpp_err=
19671 fi
19672 else
19673 ac_cpp_err=yes
19674 fi
19675 if test -z "$ac_cpp_err"; then
19676 ac_header_preproc=yes
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ac_header_preproc=no
19682 fi
19683 rm -f conftest.err conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19685 echo "${ECHO_T}$ac_header_preproc" >&6
19686
19687 # So? What about this header?
19688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19689 yes:no: )
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19694 ac_header_preproc=yes
19695 ;;
19696 no:yes:* )
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19709 (
19710 cat <<\_ASBOX
19711 ## ------------------------------------------ ##
19712 ## Report this to the AC_PACKAGE_NAME lists. ##
19713 ## ------------------------------------------ ##
19714 _ASBOX
19715 ) |
19716 sed "s/^/$as_me: WARNING: /" >&2
19717 ;;
19718 esac
19719 echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724 eval "$as_ac_Header=\$ac_header_preproc"
19725 fi
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728
19729 fi
19730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19731 cat >>confdefs.h <<_ACEOF
19732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19733 _ACEOF
19734
19735 else
19736
19737 for ac_header in kerberosIV/des.h
19738 do
19739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo "$as_me:$LINENO: checking for $ac_header" >&5
19742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 fi
19746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19748 else
19749 # Is the header compilable?
19750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758 $ac_includes_default
19759 #include <$ac_header>
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_header_compiler=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788 ac_header_compiler=no
19789 fi
19790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19792 echo "${ECHO_T}$ac_header_compiler" >&6
19793
19794 # Is the header present?
19795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #include <$ac_header>
19804 _ACEOF
19805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null; then
19813 if test -s conftest.err; then
19814 ac_cpp_err=$ac_c_preproc_warn_flag
19815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19816 else
19817 ac_cpp_err=
19818 fi
19819 else
19820 ac_cpp_err=yes
19821 fi
19822 if test -z "$ac_cpp_err"; then
19823 ac_header_preproc=yes
19824 else
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ac_header_preproc=no
19829 fi
19830 rm -f conftest.err conftest.$ac_ext
19831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19832 echo "${ECHO_T}$ac_header_preproc" >&6
19833
19834 # So? What about this header?
19835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19836 yes:no: )
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19841 ac_header_preproc=yes
19842 ;;
19843 no:yes:* )
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19856 (
19857 cat <<\_ASBOX
19858 ## ------------------------------------------ ##
19859 ## Report this to the AC_PACKAGE_NAME lists. ##
19860 ## ------------------------------------------ ##
19861 _ASBOX
19862 ) |
19863 sed "s/^/$as_me: WARNING: /" >&2
19864 ;;
19865 esac
19866 echo "$as_me:$LINENO: checking for $ac_header" >&5
19867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871 eval "$as_ac_Header=\$ac_header_preproc"
19872 fi
19873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19875
19876 fi
19877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19878 cat >>confdefs.h <<_ACEOF
19879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880 _ACEOF
19881
19882 else
19883
19884 for ac_header in kerberos/des.h
19885 do
19886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19888 echo "$as_me:$LINENO: checking for $ac_header" >&5
19889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 fi
19893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19895 else
19896 # Is the header compilable?
19897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19906 #include <$ac_header>
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_header_compiler=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_header_compiler=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6
19940
19941 # Is the header present?
19942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h. */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19963 else
19964 ac_cpp_err=
19965 fi
19966 else
19967 ac_cpp_err=yes
19968 fi
19969 if test -z "$ac_cpp_err"; then
19970 ac_header_preproc=yes
19971 else
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_header_preproc=no
19976 fi
19977 rm -f conftest.err conftest.$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19979 echo "${ECHO_T}$ac_header_preproc" >&6
19980
19981 # So? What about this header?
19982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983 yes:no: )
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19988 ac_header_preproc=yes
19989 ;;
19990 no:yes:* )
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20003 (
20004 cat <<\_ASBOX
20005 ## ------------------------------------------ ##
20006 ## Report this to the AC_PACKAGE_NAME lists. ##
20007 ## ------------------------------------------ ##
20008 _ASBOX
20009 ) |
20010 sed "s/^/$as_me: WARNING: /" >&2
20011 ;;
20012 esac
20013 echo "$as_me:$LINENO: checking for $ac_header" >&5
20014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 eval "$as_ac_Header=\$ac_header_preproc"
20019 fi
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
20023 fi
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 _ACEOF
20028
20029 fi
20030
20031 done
20032
20033 fi
20034
20035 done
20036
20037 fi
20038
20039 done
20040
20041
20042 for ac_header in krb.h
20043 do
20044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046 echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 fi
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20053 else
20054 # Is the header compilable?
20055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 #include <$ac_header>
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ac_header_compiler=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 ac_header_compiler=no
20094 fi
20095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20097 echo "${ECHO_T}$ac_header_compiler" >&6
20098
20099 # Is the header present?
20100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h. */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <$ac_header>
20109 _ACEOF
20110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } >/dev/null; then
20118 if test -s conftest.err; then
20119 ac_cpp_err=$ac_c_preproc_warn_flag
20120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20121 else
20122 ac_cpp_err=
20123 fi
20124 else
20125 ac_cpp_err=yes
20126 fi
20127 if test -z "$ac_cpp_err"; then
20128 ac_header_preproc=yes
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 ac_header_preproc=no
20134 fi
20135 rm -f conftest.err conftest.$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6
20138
20139 # So? What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20141 yes:no: )
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20146 ac_header_preproc=yes
20147 ;;
20148 no:yes:* )
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20161 (
20162 cat <<\_ASBOX
20163 ## ------------------------------------------ ##
20164 ## Report this to the AC_PACKAGE_NAME lists. ##
20165 ## ------------------------------------------ ##
20166 _ASBOX
20167 ) |
20168 sed "s/^/$as_me: WARNING: /" >&2
20169 ;;
20170 esac
20171 echo "$as_me:$LINENO: checking for $ac_header" >&5
20172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176 eval "$as_ac_Header=\$ac_header_preproc"
20177 fi
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20180
20181 fi
20182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20183 cat >>confdefs.h <<_ACEOF
20184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20185 _ACEOF
20186
20187 else
20188
20189 for ac_header in kerberosIV/krb.h
20190 do
20191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20193 echo "$as_me:$LINENO: checking for $ac_header" >&5
20194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 fi
20198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20200 else
20201 # Is the header compilable?
20202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20211 #include <$ac_header>
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_header_compiler=yes
20236 else
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ac_header_compiler=no
20241 fi
20242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6
20245
20246 # Is the header present?
20247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <$ac_header>
20256 _ACEOF
20257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev/null; then
20265 if test -s conftest.err; then
20266 ac_cpp_err=$ac_c_preproc_warn_flag
20267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20268 else
20269 ac_cpp_err=
20270 fi
20271 else
20272 ac_cpp_err=yes
20273 fi
20274 if test -z "$ac_cpp_err"; then
20275 ac_header_preproc=yes
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20279
20280 ac_header_preproc=no
20281 fi
20282 rm -f conftest.err conftest.$ac_ext
20283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6
20285
20286 # So? What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20288 yes:no: )
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293 ac_header_preproc=yes
20294 ;;
20295 no:yes:* )
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20308 (
20309 cat <<\_ASBOX
20310 ## ------------------------------------------ ##
20311 ## Report this to the AC_PACKAGE_NAME lists. ##
20312 ## ------------------------------------------ ##
20313 _ASBOX
20314 ) |
20315 sed "s/^/$as_me: WARNING: /" >&2
20316 ;;
20317 esac
20318 echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323 eval "$as_ac_Header=\$ac_header_preproc"
20324 fi
20325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20327
20328 fi
20329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20332 _ACEOF
20333
20334 else
20335
20336 for ac_header in kerberos/krb.h
20337 do
20338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340 echo "$as_me:$LINENO: checking for $ac_header" >&5
20341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 fi
20345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20347 else
20348 # Is the header compilable?
20349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h. */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 $ac_includes_default
20358 #include <$ac_header>
20359 _ACEOF
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_header_compiler=yes
20383 else
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_header_compiler=no
20388 fi
20389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20391 echo "${ECHO_T}$ac_header_compiler" >&6
20392
20393 # Is the header present?
20394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20396 cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h. */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 #include <$ac_header>
20403 _ACEOF
20404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } >/dev/null; then
20412 if test -s conftest.err; then
20413 ac_cpp_err=$ac_c_preproc_warn_flag
20414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20415 else
20416 ac_cpp_err=
20417 fi
20418 else
20419 ac_cpp_err=yes
20420 fi
20421 if test -z "$ac_cpp_err"; then
20422 ac_header_preproc=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_header_preproc=no
20428 fi
20429 rm -f conftest.err conftest.$ac_ext
20430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20431 echo "${ECHO_T}$ac_header_preproc" >&6
20432
20433 # So? What about this header?
20434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20435 yes:no: )
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20440 ac_header_preproc=yes
20441 ;;
20442 no:yes:* )
20443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20455 (
20456 cat <<\_ASBOX
20457 ## ------------------------------------------ ##
20458 ## Report this to the AC_PACKAGE_NAME lists. ##
20459 ## ------------------------------------------ ##
20460 _ASBOX
20461 ) |
20462 sed "s/^/$as_me: WARNING: /" >&2
20463 ;;
20464 esac
20465 echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470 eval "$as_ac_Header=\$ac_header_preproc"
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
20475 fi
20476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20477 cat >>confdefs.h <<_ACEOF
20478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20479 _ACEOF
20480
20481 fi
20482
20483 done
20484
20485 fi
20486
20487 done
20488
20489 fi
20490
20491 done
20492
20493 fi
20494
20495 for ac_header in com_err.h
20496 do
20497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo "$as_me:$LINENO: checking for $ac_header" >&5
20500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 fi
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20506 else
20507 # Is the header compilable?
20508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h. */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 $ac_includes_default
20517 #include <$ac_header>
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20521 (eval $ac_compile) 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_c_werror_flag"
20529 || test ! -s conftest.err'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_header_compiler=yes
20542 else
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 ac_header_compiler=no
20547 fi
20548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20550 echo "${ECHO_T}$ac_header_compiler" >&6
20551
20552 # Is the header present?
20553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <$ac_header>
20562 _ACEOF
20563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } >/dev/null; then
20571 if test -s conftest.err; then
20572 ac_cpp_err=$ac_c_preproc_warn_flag
20573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20574 else
20575 ac_cpp_err=
20576 fi
20577 else
20578 ac_cpp_err=yes
20579 fi
20580 if test -z "$ac_cpp_err"; then
20581 ac_header_preproc=yes
20582 else
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586 ac_header_preproc=no
20587 fi
20588 rm -f conftest.err conftest.$ac_ext
20589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20590 echo "${ECHO_T}$ac_header_preproc" >&6
20591
20592 # So? What about this header?
20593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20594 yes:no: )
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20599 ac_header_preproc=yes
20600 ;;
20601 no:yes:* )
20602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20614 (
20615 cat <<\_ASBOX
20616 ## ------------------------------------------ ##
20617 ## Report this to the AC_PACKAGE_NAME lists. ##
20618 ## ------------------------------------------ ##
20619 _ASBOX
20620 ) |
20621 sed "s/^/$as_me: WARNING: /" >&2
20622 ;;
20623 esac
20624 echo "$as_me:$LINENO: checking for $ac_header" >&5
20625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 eval "$as_ac_Header=\$ac_header_preproc"
20630 fi
20631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20633
20634 fi
20635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20638 _ACEOF
20639
20640 fi
20641
20642 done
20643
20644 fi
20645
20646 # Solaris requires -lintl if you want strerror (which calls dgettext)
20647 # to return localized messages.
20648
20649 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20650 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20651 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 ac_check_lib_save_LIBS=$LIBS
20655 LIBS="-lintl $LIBS"
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662
20663 /* Override any gcc2 internal prototype to avoid an error. */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 /* We use char because int might match the return type of a gcc2
20668 builtin and then its argument prototype would still apply. */
20669 char dgettext ();
20670 int
20671 main ()
20672 {
20673 dgettext ();
20674 ;
20675 return 0;
20676 }
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20680 (eval $ac_link) 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -z "$ac_c_werror_flag"
20688 || test ! -s conftest.err'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try='test -s conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_lib_intl_dgettext=yes
20701 else
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 ac_cv_lib_intl_dgettext=no
20706 fi
20707 rm -f conftest.err conftest.$ac_objext \
20708 conftest$ac_exeext conftest.$ac_ext
20709 LIBS=$ac_check_lib_save_LIBS
20710 fi
20711 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20712 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20713 if test $ac_cv_lib_intl_dgettext = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define HAVE_LIBINTL 1
20716 _ACEOF
20717
20718 LIBS="-lintl $LIBS"
20719
20720 fi
20721
20722
20723 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20724 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20725 if test "${emacs_cv_localtime_cache+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728 if test x$ac_cv_func_tzset = xyes; then
20729 if test "$cross_compiling" = yes; then
20730 # If we have tzset, assume the worst when cross-compiling.
20731 emacs_cv_localtime_cache=yes
20732 else
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h. */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 #include <time.h>
20740 extern char **environ;
20741 unset_TZ ()
20742 {
20743 char **from, **to;
20744 for (to = from = environ; (*to = *from); from++)
20745 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20746 to++;
20747 }
20748 char TZ_GMT0[] = "TZ=GMT0";
20749 char TZ_PST8[] = "TZ=PST8";
20750 main()
20751 {
20752 time_t now = time ((time_t *) 0);
20753 int hour_GMT0, hour_unset;
20754 if (putenv (TZ_GMT0) != 0)
20755 exit (1);
20756 hour_GMT0 = localtime (&now)->tm_hour;
20757 unset_TZ ();
20758 hour_unset = localtime (&now)->tm_hour;
20759 if (putenv (TZ_PST8) != 0)
20760 exit (1);
20761 if (localtime (&now)->tm_hour == hour_GMT0)
20762 exit (1);
20763 unset_TZ ();
20764 if (localtime (&now)->tm_hour != hour_unset)
20765 exit (1);
20766 exit (0);
20767 }
20768 _ACEOF
20769 rm -f conftest$ac_exeext
20770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20771 (eval $ac_link) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 emacs_cv_localtime_cache=no
20781 else
20782 echo "$as_me: program exited with status $ac_status" >&5
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 ( exit $ac_status )
20787 emacs_cv_localtime_cache=yes
20788 fi
20789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20790 fi
20791 else
20792 # If we lack tzset, report that localtime does not cache TZ,
20793 # since we can't invalidate the cache if we don't have tzset.
20794 emacs_cv_localtime_cache=no
20795 fi
20796 fi
20797 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20798 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20799 if test $emacs_cv_localtime_cache = yes; then
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define LOCALTIME_CACHE 1
20803 _ACEOF
20804
20805 fi
20806
20807 if test "x$HAVE_TIMEVAL" = xyes; then
20808
20809 for ac_func in gettimeofday
20810 do
20811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20812 echo "$as_me:$LINENO: checking for $ac_func" >&5
20813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20814 if eval "test \"\${$as_ac_var+set}\" = set"; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817 cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h. */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20825 #define $ac_func innocuous_$ac_func
20826
20827 /* System header to define __stub macros and hopefully few prototypes,
20828 which can conflict with char $ac_func (); below.
20829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20830 <limits.h> exists even on freestanding compilers. */
20831
20832 #ifdef __STDC__
20833 # include <limits.h>
20834 #else
20835 # include <assert.h>
20836 #endif
20837
20838 #undef $ac_func
20839
20840 /* Override any gcc2 internal prototype to avoid an error. */
20841 #ifdef __cplusplus
20842 extern "C"
20843 {
20844 #endif
20845 /* We use char because int might match the return type of a gcc2
20846 builtin and then its argument prototype would still apply. */
20847 char $ac_func ();
20848 /* The GNU C library defines this for functions which it implements
20849 to always fail with ENOSYS. Some functions are actually named
20850 something starting with __ and the normal name is an alias. */
20851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20852 choke me
20853 #else
20854 char (*f) () = $ac_func;
20855 #endif
20856 #ifdef __cplusplus
20857 }
20858 #endif
20859
20860 int
20861 main ()
20862 {
20863 return f != $ac_func;
20864 ;
20865 return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 eval "$as_ac_var=yes"
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 eval "$as_ac_var=no"
20896 fi
20897 rm -f conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
20899 fi
20900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20902 if test `eval echo '${'$as_ac_var'}'` = yes; then
20903 cat >>confdefs.h <<_ACEOF
20904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20905 _ACEOF
20906
20907 fi
20908 done
20909
20910 if test $ac_cv_func_gettimeofday = yes; then
20911 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20912 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20913 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916 cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h. */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922
20923 #ifdef TIME_WITH_SYS_TIME
20924 #include <sys/time.h>
20925 #include <time.h>
20926 #else
20927 #ifdef HAVE_SYS_TIME_H
20928 #include <sys/time.h>
20929 #else
20930 #include <time.h>
20931 #endif
20932 #endif
20933 int
20934 main ()
20935 {
20936 struct timeval time;
20937 gettimeofday (&time, 0);
20938 ;
20939 return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest.$ac_objext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20944 (eval $ac_compile) 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
20951 { ac_try='test -z "$ac_c_werror_flag"
20952 || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest.$ac_objext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 emacs_cv_gettimeofday_two_arguments=yes
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 emacs_cv_gettimeofday_two_arguments=no
20970 fi
20971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20972 fi
20973 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20974 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20975 if test $emacs_cv_gettimeofday_two_arguments = no; then
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20979 _ACEOF
20980
20981 fi
20982 fi
20983 fi
20984
20985 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20986 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20987 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20988 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 else
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <sys/types.h>
20998 #include <$ac_cv_struct_tm>
20999
21000
21001 int
21002 main ()
21003 {
21004 static struct tm ac_aggr;
21005 if (ac_aggr.tm_zone)
21006 return 0;
21007 ;
21008 return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_member_struct_tm_tm_zone=yes
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <$ac_cv_struct_tm>
21046
21047
21048 int
21049 main ()
21050 {
21051 static struct tm ac_aggr;
21052 if (sizeof ac_aggr.tm_zone)
21053 return 0;
21054 ;
21055 return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_member_struct_tm_tm_zone=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21084
21085 ac_cv_member_struct_tm_tm_zone=no
21086 fi
21087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21088 fi
21089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090 fi
21091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21092 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21093 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21094
21095 cat >>confdefs.h <<_ACEOF
21096 #define HAVE_STRUCT_TM_TM_ZONE 1
21097 _ACEOF
21098
21099
21100 fi
21101
21102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21103
21104 cat >>confdefs.h <<\_ACEOF
21105 #define HAVE_TM_ZONE 1
21106 _ACEOF
21107
21108 else
21109 echo "$as_me:$LINENO: checking for tzname" >&5
21110 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21111 if test "${ac_cv_var_tzname+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include <time.h>
21121 #ifndef tzname /* For SGI. */
21122 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21123 #endif
21124
21125 int
21126 main ()
21127 {
21128 atoi(*tzname);
21129 ;
21130 return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
21142 { ac_try='test -z "$ac_c_werror_flag"
21143 || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_var_tzname=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ac_cv_var_tzname=no
21161 fi
21162 rm -f conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21164 fi
21165 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21166 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21167 if test $ac_cv_var_tzname = yes; then
21168
21169 cat >>confdefs.h <<\_ACEOF
21170 #define HAVE_TZNAME 1
21171 _ACEOF
21172
21173 fi
21174 fi
21175
21176
21177 if test "$ac_cv_func_gettimeofday" = yes; then
21178 echo "$as_me:$LINENO: checking for struct timezone" >&5
21179 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21180 if test "${emacs_cv_struct_timezone+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <sys/time.h>
21190 int
21191 main ()
21192 {
21193 struct timezone tz;
21194 ;
21195 return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 if test "$cross_compiling" = yes; then
21221 emacs_cv_struct_timezone=yes
21222 else
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h. */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229
21230 #ifdef TIME_WITH_SYS_TIME
21231 #include <sys/time.h>
21232 #include <time.h>
21233 #else
21234 #ifdef HAVE_SYS_TIME_H
21235 #include <sys/time.h>
21236 #else
21237 #include <time.h>
21238 #endif
21239 #endif
21240 main () {
21241 struct timeval time;
21242 struct timezone dummy;
21243 exit (gettimeofday (&time, &dummy));
21244 }
21245 _ACEOF
21246 rm -f conftest$ac_exeext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21248 (eval $ac_link) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 emacs_cv_struct_timezone=yes
21258 else
21259 echo "$as_me: program exited with status $ac_status" >&5
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 ( exit $ac_status )
21264 emacs_cv_struct_timezone=no
21265 fi
21266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21267 fi
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 emacs_cv_struct_timezone=no
21273 fi
21274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21275 fi
21276 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21277 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21278 fi
21279
21280 ok_so_far=yes
21281 echo "$as_me:$LINENO: checking for socket" >&5
21282 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21283 if test "${ac_cv_func_socket+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286 cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h. */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21294 #define socket innocuous_socket
21295
21296 /* System header to define __stub macros and hopefully few prototypes,
21297 which can conflict with char socket (); below.
21298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21299 <limits.h> exists even on freestanding compilers. */
21300
21301 #ifdef __STDC__
21302 # include <limits.h>
21303 #else
21304 # include <assert.h>
21305 #endif
21306
21307 #undef socket
21308
21309 /* Override any gcc2 internal prototype to avoid an error. */
21310 #ifdef __cplusplus
21311 extern "C"
21312 {
21313 #endif
21314 /* We use char because int might match the return type of a gcc2
21315 builtin and then its argument prototype would still apply. */
21316 char socket ();
21317 /* The GNU C library defines this for functions which it implements
21318 to always fail with ENOSYS. Some functions are actually named
21319 something starting with __ and the normal name is an alias. */
21320 #if defined (__stub_socket) || defined (__stub___socket)
21321 choke me
21322 #else
21323 char (*f) () = socket;
21324 #endif
21325 #ifdef __cplusplus
21326 }
21327 #endif
21328
21329 int
21330 main ()
21331 {
21332 return f != socket;
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_func_socket=yes
21360 else
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_cv_func_socket=no
21365 fi
21366 rm -f conftest.err conftest.$ac_objext \
21367 conftest$ac_exeext conftest.$ac_ext
21368 fi
21369 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21370 echo "${ECHO_T}$ac_cv_func_socket" >&6
21371 if test $ac_cv_func_socket = yes; then
21372 :
21373 else
21374 ok_so_far=no
21375 fi
21376
21377 if test $ok_so_far = yes; then
21378 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21379 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21380 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21381 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 fi
21384 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21385 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21386 else
21387 # Is the header compilable?
21388 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21389 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 $ac_includes_default
21397 #include <netinet/in.h>
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_header_compiler=yes
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426 ac_header_compiler=no
21427 fi
21428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21430 echo "${ECHO_T}$ac_header_compiler" >&6
21431
21432 # Is the header present?
21433 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21434 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <netinet/in.h>
21442 _ACEOF
21443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21445 ac_status=$?
21446 grep -v '^ *+' conftest.er1 >conftest.err
21447 rm -f conftest.er1
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } >/dev/null; then
21451 if test -s conftest.err; then
21452 ac_cpp_err=$ac_c_preproc_warn_flag
21453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21454 else
21455 ac_cpp_err=
21456 fi
21457 else
21458 ac_cpp_err=yes
21459 fi
21460 if test -z "$ac_cpp_err"; then
21461 ac_header_preproc=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 ac_header_preproc=no
21467 fi
21468 rm -f conftest.err conftest.$ac_ext
21469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6
21471
21472 # So? What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21474 yes:no: )
21475 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21479 ac_header_preproc=yes
21480 ;;
21481 no:yes:* )
21482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21494 (
21495 cat <<\_ASBOX
21496 ## ------------------------------------------ ##
21497 ## Report this to the AC_PACKAGE_NAME lists. ##
21498 ## ------------------------------------------ ##
21499 _ASBOX
21500 ) |
21501 sed "s/^/$as_me: WARNING: /" >&2
21502 ;;
21503 esac
21504 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21505 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21506 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509 ac_cv_header_netinet_in_h=$ac_header_preproc
21510 fi
21511 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21512 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21513
21514 fi
21515 if test $ac_cv_header_netinet_in_h = yes; then
21516 :
21517 else
21518 ok_so_far=no
21519 fi
21520
21521
21522 fi
21523 if test $ok_so_far = yes; then
21524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21525 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21526 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21527 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 fi
21530 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21532 else
21533 # Is the header compilable?
21534 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21535 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 #include <arpa/inet.h>
21544 _ACEOF
21545 rm -f conftest.$ac_objext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547 (eval $ac_compile) 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); } &&
21554 { ac_try='test -z "$ac_c_werror_flag"
21555 || test ! -s conftest.err'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest.$ac_objext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_header_compiler=yes
21568 else
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572 ac_header_compiler=no
21573 fi
21574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21577
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21580 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h. */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <arpa/inet.h>
21588 _ACEOF
21589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } >/dev/null; then
21597 if test -s conftest.err; then
21598 ac_cpp_err=$ac_c_preproc_warn_flag
21599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21600 else
21601 ac_cpp_err=
21602 fi
21603 else
21604 ac_cpp_err=yes
21605 fi
21606 if test -z "$ac_cpp_err"; then
21607 ac_header_preproc=yes
21608 else
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612 ac_header_preproc=no
21613 fi
21614 rm -f conftest.err conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21617
21618 # So? What about this header?
21619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21620 yes:no: )
21621 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21624 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21625 ac_header_preproc=yes
21626 ;;
21627 no:yes:* )
21628 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21629 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21631 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21633 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21635 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21637 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21639 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21640 (
21641 cat <<\_ASBOX
21642 ## ------------------------------------------ ##
21643 ## Report this to the AC_PACKAGE_NAME lists. ##
21644 ## ------------------------------------------ ##
21645 _ASBOX
21646 ) |
21647 sed "s/^/$as_me: WARNING: /" >&2
21648 ;;
21649 esac
21650 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21651 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21652 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655 ac_cv_header_arpa_inet_h=$ac_header_preproc
21656 fi
21657 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21658 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21659
21660 fi
21661 if test $ac_cv_header_arpa_inet_h = yes; then
21662 :
21663 else
21664 ok_so_far=no
21665 fi
21666
21667
21668 fi
21669 if test $ok_so_far = yes; then
21670
21671 cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_INET_SOCKETS 1
21673 _ACEOF
21674
21675 fi
21676
21677
21678 for ac_header in sys/ioctl.h
21679 do
21680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21682 echo "$as_me:$LINENO: checking for $ac_header" >&5
21683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 fi
21687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21689 else
21690 # Is the header compilable?
21691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 $ac_includes_default
21700 #include <$ac_header>
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21704 (eval $ac_compile) 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
21711 { ac_try='test -z "$ac_c_werror_flag"
21712 || test ! -s conftest.err'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try='test -s conftest.$ac_objext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_header_compiler=yes
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ac_header_compiler=no
21730 fi
21731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21733 echo "${ECHO_T}$ac_header_compiler" >&6
21734
21735 # Is the header present?
21736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 #include <$ac_header>
21745 _ACEOF
21746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } >/dev/null; then
21754 if test -s conftest.err; then
21755 ac_cpp_err=$ac_c_preproc_warn_flag
21756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21757 else
21758 ac_cpp_err=
21759 fi
21760 else
21761 ac_cpp_err=yes
21762 fi
21763 if test -z "$ac_cpp_err"; then
21764 ac_header_preproc=yes
21765 else
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ac_header_preproc=no
21770 fi
21771 rm -f conftest.err conftest.$ac_ext
21772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21773 echo "${ECHO_T}$ac_header_preproc" >&6
21774
21775 # So? What about this header?
21776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21777 yes:no: )
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21782 ac_header_preproc=yes
21783 ;;
21784 no:yes:* )
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21797 (
21798 cat <<\_ASBOX
21799 ## ------------------------------------------ ##
21800 ## Report this to the AC_PACKAGE_NAME lists. ##
21801 ## ------------------------------------------ ##
21802 _ASBOX
21803 ) |
21804 sed "s/^/$as_me: WARNING: /" >&2
21805 ;;
21806 esac
21807 echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812 eval "$as_ac_Header=\$ac_header_preproc"
21813 fi
21814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21816
21817 fi
21818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21821 _ACEOF
21822
21823 fi
21824
21825 done
21826
21827
21828 if test -f /usr/lpp/X11/bin/smt.exp; then
21829
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_AIX_SMT_EXP 1
21832 _ACEOF
21833
21834 fi
21835
21836 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21837 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21838 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21839 echo "$as_me:$LINENO: result: yes" >&5
21840 echo "${ECHO_T}yes" >&6
21841
21842 cat >>confdefs.h <<\_ACEOF
21843 #define HAVE_DEV_PTMX 1
21844 _ACEOF
21845
21846 else
21847 echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6
21849 fi
21850
21851 echo "$as_me:$LINENO: checking for pid_t" >&5
21852 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21853 if test "${ac_cv_type_pid_t+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21855 else
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 $ac_includes_default
21863 int
21864 main ()
21865 {
21866 if ((pid_t *) 0)
21867 return 0;
21868 if (sizeof (pid_t))
21869 return 0;
21870 ;
21871 return 0;
21872 }
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876 (eval $ac_compile) 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
21883 { ac_try='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_cv_type_pid_t=yes
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ac_cv_type_pid_t=no
21902 fi
21903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21904 fi
21905 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21906 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21907 if test $ac_cv_type_pid_t = yes; then
21908 :
21909 else
21910
21911 cat >>confdefs.h <<_ACEOF
21912 #define pid_t int
21913 _ACEOF
21914
21915 fi
21916
21917
21918
21919 for ac_header in unistd.h vfork.h
21920 do
21921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 fi
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21930 else
21931 # Is the header compilable?
21932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h. */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 $ac_includes_default
21941 #include <$ac_header>
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945 (eval $ac_compile) 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try='test -z "$ac_c_werror_flag"
21953 || test ! -s conftest.err'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; } &&
21959 { ac_try='test -s conftest.$ac_objext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_header_compiler=yes
21966 else
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ac_header_compiler=no
21971 fi
21972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21974 echo "${ECHO_T}$ac_header_compiler" >&6
21975
21976 # Is the header present?
21977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 #include <$ac_header>
21986 _ACEOF
21987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev/null; then
21995 if test -s conftest.err; then
21996 ac_cpp_err=$ac_c_preproc_warn_flag
21997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21998 else
21999 ac_cpp_err=
22000 fi
22001 else
22002 ac_cpp_err=yes
22003 fi
22004 if test -z "$ac_cpp_err"; then
22005 ac_header_preproc=yes
22006 else
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ac_header_preproc=no
22011 fi
22012 rm -f conftest.err conftest.$ac_ext
22013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22014 echo "${ECHO_T}$ac_header_preproc" >&6
22015
22016 # So? What about this header?
22017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22018 yes:no: )
22019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22023 ac_header_preproc=yes
22024 ;;
22025 no:yes:* )
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22038 (
22039 cat <<\_ASBOX
22040 ## ------------------------------------------ ##
22041 ## Report this to the AC_PACKAGE_NAME lists. ##
22042 ## ------------------------------------------ ##
22043 _ASBOX
22044 ) |
22045 sed "s/^/$as_me: WARNING: /" >&2
22046 ;;
22047 esac
22048 echo "$as_me:$LINENO: checking for $ac_header" >&5
22049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053 eval "$as_ac_Header=\$ac_header_preproc"
22054 fi
22055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22057
22058 fi
22059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 _ACEOF
22063
22064 fi
22065
22066 done
22067
22068
22069
22070 for ac_func in fork vfork
22071 do
22072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22073 echo "$as_me:$LINENO: checking for $ac_func" >&5
22074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22075 if eval "test \"\${$as_ac_var+set}\" = set"; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h. */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22086 #define $ac_func innocuous_$ac_func
22087
22088 /* System header to define __stub macros and hopefully few prototypes,
22089 which can conflict with char $ac_func (); below.
22090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22091 <limits.h> exists even on freestanding compilers. */
22092
22093 #ifdef __STDC__
22094 # include <limits.h>
22095 #else
22096 # include <assert.h>
22097 #endif
22098
22099 #undef $ac_func
22100
22101 /* Override any gcc2 internal prototype to avoid an error. */
22102 #ifdef __cplusplus
22103 extern "C"
22104 {
22105 #endif
22106 /* We use char because int might match the return type of a gcc2
22107 builtin and then its argument prototype would still apply. */
22108 char $ac_func ();
22109 /* The GNU C library defines this for functions which it implements
22110 to always fail with ENOSYS. Some functions are actually named
22111 something starting with __ and the normal name is an alias. */
22112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22113 choke me
22114 #else
22115 char (*f) () = $ac_func;
22116 #endif
22117 #ifdef __cplusplus
22118 }
22119 #endif
22120
22121 int
22122 main ()
22123 {
22124 return f != $ac_func;
22125 ;
22126 return 0;
22127 }
22128 _ACEOF
22129 rm -f conftest.$ac_objext conftest$ac_exeext
22130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22131 (eval $ac_link) 2>conftest.er1
22132 ac_status=$?
22133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } &&
22138 { ac_try='test -z "$ac_c_werror_flag"
22139 || test ! -s conftest.err'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 eval "$as_ac_var=yes"
22152 else
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156 eval "$as_ac_var=no"
22157 fi
22158 rm -f conftest.err conftest.$ac_objext \
22159 conftest$ac_exeext conftest.$ac_ext
22160 fi
22161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22163 if test `eval echo '${'$as_ac_var'}'` = yes; then
22164 cat >>confdefs.h <<_ACEOF
22165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22166 _ACEOF
22167
22168 fi
22169 done
22170
22171 if test "x$ac_cv_func_fork" = xyes; then
22172 echo "$as_me:$LINENO: checking for working fork" >&5
22173 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22174 if test "${ac_cv_func_fork_works+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 if test "$cross_compiling" = yes; then
22178 ac_cv_func_fork_works=cross
22179 else
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* By Ruediger Kuhlmann. */
22182 #include <sys/types.h>
22183 #if HAVE_UNISTD_H
22184 # include <unistd.h>
22185 #endif
22186 /* Some systems only have a dummy stub for fork() */
22187 int main ()
22188 {
22189 if (fork() < 0)
22190 exit (1);
22191 exit (0);
22192 }
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196 (eval $ac_link) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_func_fork_works=yes
22206 else
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ( exit $ac_status )
22212 ac_cv_func_fork_works=no
22213 fi
22214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 fi
22216 fi
22217 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22218 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22219
22220 else
22221 ac_cv_func_fork_works=$ac_cv_func_fork
22222 fi
22223 if test "x$ac_cv_func_fork_works" = xcross; then
22224 case $host in
22225 *-*-amigaos* | *-*-msdosdjgpp*)
22226 # Override, as these systems have only a dummy fork() stub
22227 ac_cv_func_fork_works=no
22228 ;;
22229 *)
22230 ac_cv_func_fork_works=yes
22231 ;;
22232 esac
22233 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22234 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22235 fi
22236 ac_cv_func_vfork_works=$ac_cv_func_vfork
22237 if test "x$ac_cv_func_vfork" = xyes; then
22238 echo "$as_me:$LINENO: checking for working vfork" >&5
22239 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22240 if test "${ac_cv_func_vfork_works+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 if test "$cross_compiling" = yes; then
22244 ac_cv_func_vfork_works=cross
22245 else
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 /* Thanks to Paul Eggert for this test. */
22253 #include <stdio.h>
22254 #include <stdlib.h>
22255 #include <sys/types.h>
22256 #include <sys/stat.h>
22257 #include <sys/wait.h>
22258 #if HAVE_UNISTD_H
22259 # include <unistd.h>
22260 #endif
22261 #if HAVE_VFORK_H
22262 # include <vfork.h>
22263 #endif
22264 /* On some sparc systems, changes by the child to local and incoming
22265 argument registers are propagated back to the parent. The compiler
22266 is told about this with #include <vfork.h>, but some compilers
22267 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22268 static variable whose address is put into a register that is
22269 clobbered by the vfork. */
22270 static void
22271 #ifdef __cplusplus
22272 sparc_address_test (int arg)
22273 # else
22274 sparc_address_test (arg) int arg;
22275 #endif
22276 {
22277 static pid_t child;
22278 if (!child) {
22279 child = vfork ();
22280 if (child < 0) {
22281 perror ("vfork");
22282 _exit(2);
22283 }
22284 if (!child) {
22285 arg = getpid();
22286 write(-1, "", 0);
22287 _exit (arg);
22288 }
22289 }
22290 }
22291
22292 int
22293 main ()
22294 {
22295 pid_t parent = getpid ();
22296 pid_t child;
22297
22298 sparc_address_test (0);
22299
22300 child = vfork ();
22301
22302 if (child == 0) {
22303 /* Here is another test for sparc vfork register problems. This
22304 test uses lots of local variables, at least as many local
22305 variables as main has allocated so far including compiler
22306 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22307 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22308 reuse the register of parent for one of the local variables,
22309 since it will think that parent can't possibly be used any more
22310 in this routine. Assigning to the local variable will thus
22311 munge parent in the parent process. */
22312 pid_t
22313 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22314 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22315 /* Convince the compiler that p..p7 are live; otherwise, it might
22316 use the same hardware register for all 8 local variables. */
22317 if (p != p1 || p != p2 || p != p3 || p != p4
22318 || p != p5 || p != p6 || p != p7)
22319 _exit(1);
22320
22321 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22322 from child file descriptors. If the child closes a descriptor
22323 before it execs or exits, this munges the parent's descriptor
22324 as well. Test for this by closing stdout in the child. */
22325 _exit(close(fileno(stdout)) != 0);
22326 } else {
22327 int status;
22328 struct stat st;
22329
22330 while (wait(&status) != child)
22331 ;
22332 exit(
22333 /* Was there some problem with vforking? */
22334 child < 0
22335
22336 /* Did the child fail? (This shouldn't happen.) */
22337 || status
22338
22339 /* Did the vfork/compiler bug occur? */
22340 || parent != getpid()
22341
22342 /* Did the file descriptor bug occur? */
22343 || fstat(fileno(stdout), &st) != 0
22344 );
22345 }
22346 }
22347 _ACEOF
22348 rm -f conftest$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350 (eval $ac_link) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_func_vfork_works=yes
22360 else
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 ( exit $ac_status )
22366 ac_cv_func_vfork_works=no
22367 fi
22368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22369 fi
22370 fi
22371 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22372 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22373
22374 fi;
22375 if test "x$ac_cv_func_fork_works" = xcross; then
22376 ac_cv_func_vfork_works=$ac_cv_func_vfork
22377 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22378 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22379 fi
22380
22381 if test "x$ac_cv_func_vfork_works" = xyes; then
22382
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_WORKING_VFORK 1
22385 _ACEOF
22386
22387 else
22388
22389 cat >>confdefs.h <<\_ACEOF
22390 #define vfork fork
22391 _ACEOF
22392
22393 fi
22394 if test "x$ac_cv_func_fork_works" = xyes; then
22395
22396 cat >>confdefs.h <<\_ACEOF
22397 #define HAVE_WORKING_FORK 1
22398 _ACEOF
22399
22400 fi
22401
22402
22403 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22405 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 #include <langinfo.h>
22415 int
22416 main ()
22417 {
22418 char* cs = nl_langinfo(CODESET);
22419 ;
22420 return 0;
22421 }
22422 _ACEOF
22423 rm -f conftest.$ac_objext conftest$ac_exeext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22425 (eval $ac_link) 2>conftest.er1
22426 ac_status=$?
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -z "$ac_c_werror_flag"
22433 || test ! -s conftest.err'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 emacs_cv_langinfo_codeset=yes
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 emacs_cv_langinfo_codeset=no
22451 fi
22452 rm -f conftest.err conftest.$ac_objext \
22453 conftest$ac_exeext conftest.$ac_ext
22454
22455 fi
22456 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22457 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22458 if test $emacs_cv_langinfo_codeset = yes; then
22459
22460 cat >>confdefs.h <<\_ACEOF
22461 #define HAVE_LANGINFO_CODESET 1
22462 _ACEOF
22463
22464 fi
22465
22466 echo "$as_me:$LINENO: checking for size_t" >&5
22467 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22468 if test "${ac_cv_type_size_t+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471 cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h. */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 $ac_includes_default
22478 int
22479 main ()
22480 {
22481 if ((size_t *) 0)
22482 return 0;
22483 if (sizeof (size_t))
22484 return 0;
22485 ;
22486 return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22491 (eval $ac_compile) 2>conftest.er1
22492 ac_status=$?
22493 grep -v '^ *+' conftest.er1 >conftest.err
22494 rm -f conftest.er1
22495 cat conftest.err >&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
22498 { ac_try='test -z "$ac_c_werror_flag"
22499 || test ! -s conftest.err'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; } &&
22505 { ac_try='test -s conftest.$ac_objext'
22506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507 (eval $ac_try) 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 ac_cv_type_size_t=yes
22512 else
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22515
22516 ac_cv_type_size_t=no
22517 fi
22518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22519 fi
22520 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22521 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22522 if test $ac_cv_type_size_t = yes; then
22523
22524 cat >>confdefs.h <<_ACEOF
22525 #define HAVE_SIZE_T 1
22526 _ACEOF
22527
22528
22529 fi
22530
22531
22532 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22533 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22534 if test "${ac_cv_type_mbstate_t+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h. */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 $ac_includes_default
22544 # include <wchar.h>
22545 int
22546 main ()
22547 {
22548 mbstate_t x; return sizeof x;
22549 ;
22550 return 0;
22551 }
22552 _ACEOF
22553 rm -f conftest.$ac_objext
22554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555 (eval $ac_compile) 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
22562 { ac_try='test -z "$ac_c_werror_flag"
22563 || test ! -s conftest.err'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try='test -s conftest.$ac_objext'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_type_mbstate_t=yes
22576 else
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580 ac_cv_type_mbstate_t=no
22581 fi
22582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22583 fi
22584 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22585 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22586 if test $ac_cv_type_mbstate_t = yes; then
22587
22588 cat >>confdefs.h <<\_ACEOF
22589 #define HAVE_MBSTATE_T 1
22590 _ACEOF
22591
22592 else
22593
22594 cat >>confdefs.h <<\_ACEOF
22595 #define mbstate_t int
22596 _ACEOF
22597
22598 fi
22599
22600 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22601 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22602 if test "${emacs_cv_c_restrict+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h. */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 void fred (int *restrict x);
22612 int
22613 main ()
22614 {
22615
22616 ;
22617 return 0;
22618 }
22619 _ACEOF
22620 rm -f conftest.$ac_objext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22622 (eval $ac_compile) 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } &&
22629 { ac_try='test -z "$ac_c_werror_flag"
22630 || test ! -s conftest.err'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; } &&
22636 { ac_try='test -s conftest.$ac_objext'
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; }; then
22642 emacs_cv_c_restrict=yes
22643 else
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22646
22647 cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h. */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 void fred (int *__restrict x);
22654 int
22655 main ()
22656 {
22657
22658 ;
22659 return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664 (eval $ac_compile) 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try='test -z "$ac_c_werror_flag"
22672 || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 emacs_cv_c_restrict=__restrict
22685 else
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 emacs_cv_c_restrict=no
22690 fi
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 fi
22693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22694 fi
22695 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22696 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22697 case "$emacs_cv_c_restrict" in
22698 yes) emacs_restrict=restrict;;
22699 no) emacs_restrict="";;
22700 *) emacs_restrict="$emacs_cv_c_restrict";;
22701 esac
22702 if test "$emacs_restrict" != __restrict; then
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define __restrict $emacs_restrict
22706 _ACEOF
22707
22708 fi
22709
22710 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22711 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22712 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 else
22715 cat >conftest.$ac_ext <<_ACEOF
22716 /* confdefs.h. */
22717 _ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 void fred (int x[__restrict]);
22722 int
22723 main ()
22724 {
22725
22726 ;
22727 return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
22739 { ac_try='test -z "$ac_c_werror_flag"
22740 || test ! -s conftest.err'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 emacs_cv_c_restrict_arr=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 emacs_cv_c_restrict_arr=no
22758 fi
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22760 fi
22761 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22762 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22763 if test "$emacs_cv_c_restrict_arr" = yes; then
22764
22765 cat >>confdefs.h <<\_ACEOF
22766 #define __restrict_arr __restrict
22767 _ACEOF
22768
22769 fi
22770
22771
22772
22773 # Set up the CFLAGS for real compilation, so we can substitute it.
22774 CFLAGS="$REAL_CFLAGS"
22775 CPPFLAGS="$REAL_CPPFLAGS"
22776
22777 #### Find out which version of Emacs this is.
22778 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22779 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22780 if test x"${version}" = x; then
22781 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22782 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22783 { (exit 1); exit 1; }; }
22784 fi
22785
22786 ### Specify what sort of things we'll be editing into Makefile and config.h.
22787 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define EMACS_CONFIGURATION "${canonical}"
22825 _ACEOF
22826
22827
22828 cat >>confdefs.h <<_ACEOF
22829 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22830 _ACEOF
22831
22832
22833 cat >>confdefs.h <<_ACEOF
22834 #define config_machfile "${machfile}"
22835 _ACEOF
22836
22837
22838 cat >>confdefs.h <<_ACEOF
22839 #define config_opsysfile "${opsysfile}"
22840 _ACEOF
22841
22842
22843 cat >>confdefs.h <<_ACEOF
22844 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22845 _ACEOF
22846
22847
22848 cat >>confdefs.h <<_ACEOF
22849 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22850 _ACEOF
22851
22852
22853 cat >>confdefs.h <<_ACEOF
22854 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22855 _ACEOF
22856
22857
22858 cat >>confdefs.h <<_ACEOF
22859 #define UNEXEC_SRC ${UNEXEC_SRC}
22860 _ACEOF
22861
22862
22863 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22864
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_X_WINDOWS 1
22867 _ACEOF
22868
22869 fi
22870 if test "${USE_X_TOOLKIT}" != "none" ; then
22871
22872 cat >>confdefs.h <<\_ACEOF
22873 #define USE_X_TOOLKIT 1
22874 _ACEOF
22875
22876 fi
22877 if test "${HAVE_X11}" = "yes" ; then
22878
22879 cat >>confdefs.h <<\_ACEOF
22880 #define HAVE_X11 1
22881 _ACEOF
22882
22883 fi
22884 if test "${HAVE_XFREE386}" = "yes" ; then
22885
22886 cat >>confdefs.h <<\_ACEOF
22887 #define HAVE_XFREE386 1
22888 _ACEOF
22889
22890 fi
22891 if test "${HAVE_MENUS}" = "yes" ; then
22892
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_MENUS 1
22895 _ACEOF
22896
22897 fi
22898 if test "${GNU_MALLOC}" = "yes" ; then
22899
22900 cat >>confdefs.h <<\_ACEOF
22901 #define GNU_MALLOC 1
22902 _ACEOF
22903
22904 fi
22905 if test "${REL_ALLOC}" = "yes" ; then
22906
22907 cat >>confdefs.h <<\_ACEOF
22908 #define REL_ALLOC 1
22909 _ACEOF
22910
22911 fi
22912
22913
22914
22915
22916
22917 #### Report on what we decided to do.
22918 #### Report GTK as a toolkit, even if it doesn't use Xt.
22919 #### It makes printing result more understandable as using GTK sets
22920 #### toolkit_scroll_bars to yes by default.
22921 if test "${HAVE_GTK}" = "yes"; then
22922 USE_X_TOOLKIT=GTK
22923 fi
22924
22925 echo "
22926 Configured for \`${canonical}'.
22927
22928 Where should the build process find the source code? ${srcdir}
22929 What operating system and machine description files should Emacs use?
22930 \`${opsysfile}' and \`${machfile}'
22931 What compiler should emacs be built with? ${CC} ${CFLAGS}
22932 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22933 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22934 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22935 What window system should Emacs use? ${window_system}
22936 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22937
22938 if test -n "${x_includes}"; then
22939 echo " Where do we find X Windows header files? ${x_includes}"
22940 else
22941 echo " Where do we find X Windows header files? Standard dirs"
22942 fi
22943 if test -n "${x_libraries}"; then
22944 echo " Where do we find X Windows libraries? ${x_libraries}"
22945 else
22946 echo " Where do we find X Windows libraries? Standard dirs"
22947 fi
22948
22949 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22950 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22951 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22952 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22953 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22954 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22955 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22956 echo
22957
22958 if test $USE_XASSERTS = yes; then
22959 echo " Compiling with asserts turned on."
22960 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22961 echo
22962 fi
22963
22964
22965
22966 # Remove any trailing slashes in these variables.
22967 test "${prefix}" != NONE &&
22968 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22969 test "${exec_prefix}" != NONE &&
22970 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22971
22972 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22973 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22974 ## from Makefile.c can correctly provide the arg `-traditional' to the
22975 ## C preprocessor.
22976
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 yes..yes
22984 _ACEOF
22985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22986 $EGREP "yes..yes" >/dev/null 2>&1; then
22987 CPP_NEED_TRADITIONAL=no
22988 else
22989 CPP_NEED_TRADITIONAL=yes
22990 fi
22991 rm -f conftest*
22992
22993
22994 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"
22995 ac_config_commands="$ac_config_commands default"
22996 cat >confcache <<\_ACEOF
22997 # This file is a shell script that caches the results of configure
22998 # tests run on this system so they can be shared between configure
22999 # scripts and configure runs, see configure's option --config-cache.
23000 # It is not useful on other systems. If it contains results you don't
23001 # want to keep, you may remove or edit it.
23002 #
23003 # config.status only pays attention to the cache file if you give it
23004 # the --recheck option to rerun configure.
23005 #
23006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23008 # following values.
23009
23010 _ACEOF
23011
23012 # The following way of writing the cache mishandles newlines in values,
23013 # but we know of no workaround that is simple, portable, and efficient.
23014 # So, don't put newlines in cache variables' values.
23015 # Ultrix sh set writes to stderr and can't be redirected directly,
23016 # and sets the high bit in the cache file unless we assign to the vars.
23017 {
23018 (set) 2>&1 |
23019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23020 *ac_space=\ *)
23021 # `set' does not quote correctly, so add quotes (double-quote
23022 # substitution turns \\\\ into \\, and sed turns \\ into \).
23023 sed -n \
23024 "s/'/'\\\\''/g;
23025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23026 ;;
23027 *)
23028 # `set' quotes correctly as required by POSIX, so do not add quotes.
23029 sed -n \
23030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23031 ;;
23032 esac;
23033 } |
23034 sed '
23035 t clear
23036 : clear
23037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23038 t end
23039 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23040 : end' >>confcache
23041 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23042 if test -w $cache_file; then
23043 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23044 cat confcache >$cache_file
23045 else
23046 echo "not updating unwritable cache $cache_file"
23047 fi
23048 fi
23049 rm -f confcache
23050
23051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23052 # Let make expand exec_prefix.
23053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23054
23055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23057 # trailing colons and then remove the whole line if VPATH becomes empty
23058 # (actually we leave an empty line to preserve line numbers).
23059 if test "x$srcdir" = x.; then
23060 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23061 s/:*\$(srcdir):*/:/;
23062 s/:*\${srcdir}:*/:/;
23063 s/:*@srcdir@:*/:/;
23064 s/^\([^=]*=[ ]*\):*/\1/;
23065 s/:*$//;
23066 s/^[^=]*=[ ]*$//;
23067 }'
23068 fi
23069
23070 DEFS=-DHAVE_CONFIG_H
23071
23072 ac_libobjs=
23073 ac_ltlibobjs=
23074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23075 # 1. Remove the extension, and $U if already installed.
23076 ac_i=`echo "$ac_i" |
23077 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23078 # 2. Add them.
23079 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23080 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23081 done
23082 LIBOBJS=$ac_libobjs
23083
23084 LTLIBOBJS=$ac_ltlibobjs
23085
23086
23087
23088 : ${CONFIG_STATUS=./config.status}
23089 ac_clean_files_save=$ac_clean_files
23090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23091 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23092 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23093 cat >$CONFIG_STATUS <<_ACEOF
23094 #! $SHELL
23095 # Generated by $as_me.
23096 # Run this file to recreate the current configuration.
23097 # Compiler output produced by configure, useful for debugging
23098 # configure, is in config.log if it exists.
23099
23100 debug=false
23101 ac_cs_recheck=false
23102 ac_cs_silent=false
23103 SHELL=\${CONFIG_SHELL-$SHELL}
23104 _ACEOF
23105
23106 cat >>$CONFIG_STATUS <<\_ACEOF
23107 ## --------------------- ##
23108 ## M4sh Initialization. ##
23109 ## --------------------- ##
23110
23111 # Be Bourne compatible
23112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23113 emulate sh
23114 NULLCMD=:
23115 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23116 # is contrary to our usage. Disable this feature.
23117 alias -g '${1+"$@"}'='"$@"'
23118 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23119 set -o posix
23120 fi
23121 DUALCASE=1; export DUALCASE # for MKS sh
23122
23123 # Support unset when possible.
23124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23125 as_unset=unset
23126 else
23127 as_unset=false
23128 fi
23129
23130
23131 # Work around bugs in pre-3.0 UWIN ksh.
23132 $as_unset ENV MAIL MAILPATH
23133 PS1='$ '
23134 PS2='> '
23135 PS4='+ '
23136
23137 # NLS nuisances.
23138 for as_var in \
23139 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23140 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23141 LC_TELEPHONE LC_TIME
23142 do
23143 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23144 eval $as_var=C; export $as_var
23145 else
23146 $as_unset $as_var
23147 fi
23148 done
23149
23150 # Required to use basename.
23151 if expr a : '\(a\)' >/dev/null 2>&1; then
23152 as_expr=expr
23153 else
23154 as_expr=false
23155 fi
23156
23157 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23158 as_basename=basename
23159 else
23160 as_basename=false
23161 fi
23162
23163
23164 # Name of the executable.
23165 as_me=`$as_basename "$0" ||
23166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23167 X"$0" : 'X\(//\)$' \| \
23168 X"$0" : 'X\(/\)$' \| \
23169 . : '\(.\)' 2>/dev/null ||
23170 echo X/"$0" |
23171 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23172 /^X\/\(\/\/\)$/{ s//\1/; q; }
23173 /^X\/\(\/\).*/{ s//\1/; q; }
23174 s/.*/./; q'`
23175
23176
23177 # PATH needs CR, and LINENO needs CR and PATH.
23178 # Avoid depending upon Character Ranges.
23179 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23180 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23181 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23182 as_cr_digits='0123456789'
23183 as_cr_alnum=$as_cr_Letters$as_cr_digits
23184
23185 # The user is always right.
23186 if test "${PATH_SEPARATOR+set}" != set; then
23187 echo "#! /bin/sh" >conf$$.sh
23188 echo "exit 0" >>conf$$.sh
23189 chmod +x conf$$.sh
23190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23191 PATH_SEPARATOR=';'
23192 else
23193 PATH_SEPARATOR=:
23194 fi
23195 rm -f conf$$.sh
23196 fi
23197
23198
23199 as_lineno_1=$LINENO
23200 as_lineno_2=$LINENO
23201 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23202 test "x$as_lineno_1" != "x$as_lineno_2" &&
23203 test "x$as_lineno_3" = "x$as_lineno_2" || {
23204 # Find who we are. Look in the path if we contain no path at all
23205 # relative or not.
23206 case $0 in
23207 *[\\/]* ) as_myself=$0 ;;
23208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23209 for as_dir in $PATH
23210 do
23211 IFS=$as_save_IFS
23212 test -z "$as_dir" && as_dir=.
23213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23214 done
23215
23216 ;;
23217 esac
23218 # We did not find ourselves, most probably we were run as `sh COMMAND'
23219 # in which case we are not to be found in the path.
23220 if test "x$as_myself" = x; then
23221 as_myself=$0
23222 fi
23223 if test ! -f "$as_myself"; then
23224 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23225 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23226 { (exit 1); exit 1; }; }
23227 fi
23228 case $CONFIG_SHELL in
23229 '')
23230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23232 do
23233 IFS=$as_save_IFS
23234 test -z "$as_dir" && as_dir=.
23235 for as_base in sh bash ksh sh5; do
23236 case $as_dir in
23237 /*)
23238 if ("$as_dir/$as_base" -c '
23239 as_lineno_1=$LINENO
23240 as_lineno_2=$LINENO
23241 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23242 test "x$as_lineno_1" != "x$as_lineno_2" &&
23243 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23244 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23245 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23246 CONFIG_SHELL=$as_dir/$as_base
23247 export CONFIG_SHELL
23248 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23249 fi;;
23250 esac
23251 done
23252 done
23253 ;;
23254 esac
23255
23256 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23257 # uniformly replaced by the line number. The first 'sed' inserts a
23258 # line-number line before each line; the second 'sed' does the real
23259 # work. The second script uses 'N' to pair each line-number line
23260 # with the numbered line, and appends trailing '-' during
23261 # substitution so that $LINENO is not a special case at line end.
23262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23263 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23264 sed '=' <$as_myself |
23265 sed '
23266 N
23267 s,$,-,
23268 : loop
23269 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23270 t loop
23271 s,-$,,
23272 s,^['$as_cr_digits']*\n,,
23273 ' >$as_me.lineno &&
23274 chmod +x $as_me.lineno ||
23275 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23276 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23277 { (exit 1); exit 1; }; }
23278
23279 # Don't try to exec as it changes $[0], causing all sort of problems
23280 # (the dirname of $[0] is not the place where we might find the
23281 # original and so on. Autoconf is especially sensible to this).
23282 . ./$as_me.lineno
23283 # Exit status is that of the last command.
23284 exit
23285 }
23286
23287
23288 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23289 *c*,-n*) ECHO_N= ECHO_C='
23290 ' ECHO_T=' ' ;;
23291 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23292 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23293 esac
23294
23295 if expr a : '\(a\)' >/dev/null 2>&1; then
23296 as_expr=expr
23297 else
23298 as_expr=false
23299 fi
23300
23301 rm -f conf$$ conf$$.exe conf$$.file
23302 echo >conf$$.file
23303 if ln -s conf$$.file conf$$ 2>/dev/null; then
23304 # We could just check for DJGPP; but this test a) works b) is more generic
23305 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23306 if test -f conf$$.exe; then
23307 # Don't use ln at all; we don't have any links
23308 as_ln_s='cp -p'
23309 else
23310 as_ln_s='ln -s'
23311 fi
23312 elif ln conf$$.file conf$$ 2>/dev/null; then
23313 as_ln_s=ln
23314 else
23315 as_ln_s='cp -p'
23316 fi
23317 rm -f conf$$ conf$$.exe conf$$.file
23318
23319 if mkdir -p . 2>/dev/null; then
23320 as_mkdir_p=:
23321 else
23322 test -d ./-p && rmdir ./-p
23323 as_mkdir_p=false
23324 fi
23325
23326 as_executable_p="test -f"
23327
23328 # Sed expression to map a string onto a valid CPP name.
23329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23330
23331 # Sed expression to map a string onto a valid variable name.
23332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23333
23334
23335 # IFS
23336 # We need space, tab and new line, in precisely that order.
23337 as_nl='
23338 '
23339 IFS=" $as_nl"
23340
23341 # CDPATH.
23342 $as_unset CDPATH
23343
23344 exec 6>&1
23345
23346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23347 # report actual input values of CONFIG_FILES etc. instead of their
23348 # values after options handling. Logging --version etc. is OK.
23349 exec 5>>config.log
23350 {
23351 echo
23352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23353 ## Running $as_me. ##
23354 _ASBOX
23355 } >&5
23356 cat >&5 <<_CSEOF
23357
23358 This file was extended by $as_me, which was
23359 generated by GNU Autoconf 2.59. Invocation command line was
23360
23361 CONFIG_FILES = $CONFIG_FILES
23362 CONFIG_HEADERS = $CONFIG_HEADERS
23363 CONFIG_LINKS = $CONFIG_LINKS
23364 CONFIG_COMMANDS = $CONFIG_COMMANDS
23365 $ $0 $@
23366
23367 _CSEOF
23368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23369 echo >&5
23370 _ACEOF
23371
23372 # Files that config.status was made for.
23373 if test -n "$ac_config_files"; then
23374 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23375 fi
23376
23377 if test -n "$ac_config_headers"; then
23378 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23379 fi
23380
23381 if test -n "$ac_config_links"; then
23382 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23383 fi
23384
23385 if test -n "$ac_config_commands"; then
23386 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23387 fi
23388
23389 cat >>$CONFIG_STATUS <<\_ACEOF
23390
23391 ac_cs_usage="\
23392 \`$as_me' instantiates files from templates according to the
23393 current configuration.
23394
23395 Usage: $0 [OPTIONS] [FILE]...
23396
23397 -h, --help print this help, then exit
23398 -V, --version print version number, then exit
23399 -q, --quiet do not print progress messages
23400 -d, --debug don't remove temporary files
23401 --recheck update $as_me by reconfiguring in the same conditions
23402 --file=FILE[:TEMPLATE]
23403 instantiate the configuration file FILE
23404 --header=FILE[:TEMPLATE]
23405 instantiate the configuration header FILE
23406
23407 Configuration files:
23408 $config_files
23409
23410 Configuration headers:
23411 $config_headers
23412
23413 Configuration commands:
23414 $config_commands
23415
23416 Report bugs to <bug-autoconf@gnu.org>."
23417 _ACEOF
23418
23419 cat >>$CONFIG_STATUS <<_ACEOF
23420 ac_cs_version="\\
23421 config.status
23422 configured by $0, generated by GNU Autoconf 2.59,
23423 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23424
23425 Copyright (C) 2003 Free Software Foundation, Inc.
23426 This config.status script is free software; the Free Software Foundation
23427 gives unlimited permission to copy, distribute and modify it."
23428 srcdir=$srcdir
23429 INSTALL="$INSTALL"
23430 _ACEOF
23431
23432 cat >>$CONFIG_STATUS <<\_ACEOF
23433 # If no file are specified by the user, then we need to provide default
23434 # value. By we need to know if files were specified by the user.
23435 ac_need_defaults=:
23436 while test $# != 0
23437 do
23438 case $1 in
23439 --*=*)
23440 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23441 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23442 ac_shift=:
23443 ;;
23444 -*)
23445 ac_option=$1
23446 ac_optarg=$2
23447 ac_shift=shift
23448 ;;
23449 *) # This is not an option, so the user has probably given explicit
23450 # arguments.
23451 ac_option=$1
23452 ac_need_defaults=false;;
23453 esac
23454
23455 case $ac_option in
23456 # Handling of the options.
23457 _ACEOF
23458 cat >>$CONFIG_STATUS <<\_ACEOF
23459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23460 ac_cs_recheck=: ;;
23461 --version | --vers* | -V )
23462 echo "$ac_cs_version"; exit 0 ;;
23463 --he | --h)
23464 # Conflict between --help and --header
23465 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23466 Try \`$0 --help' for more information." >&5
23467 echo "$as_me: error: ambiguous option: $1
23468 Try \`$0 --help' for more information." >&2;}
23469 { (exit 1); exit 1; }; };;
23470 --help | --hel | -h )
23471 echo "$ac_cs_usage"; exit 0 ;;
23472 --debug | --d* | -d )
23473 debug=: ;;
23474 --file | --fil | --fi | --f )
23475 $ac_shift
23476 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23477 ac_need_defaults=false;;
23478 --header | --heade | --head | --hea )
23479 $ac_shift
23480 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23481 ac_need_defaults=false;;
23482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23484 ac_cs_silent=: ;;
23485
23486 # This is an error.
23487 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23488 Try \`$0 --help' for more information." >&5
23489 echo "$as_me: error: unrecognized option: $1
23490 Try \`$0 --help' for more information." >&2;}
23491 { (exit 1); exit 1; }; } ;;
23492
23493 *) ac_config_targets="$ac_config_targets $1" ;;
23494
23495 esac
23496 shift
23497 done
23498
23499 ac_configure_extra_args=
23500
23501 if $ac_cs_silent; then
23502 exec 6>/dev/null
23503 ac_configure_extra_args="$ac_configure_extra_args --silent"
23504 fi
23505
23506 _ACEOF
23507 cat >>$CONFIG_STATUS <<_ACEOF
23508 if \$ac_cs_recheck; then
23509 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23510 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23511 fi
23512
23513 _ACEOF
23514
23515 cat >>$CONFIG_STATUS <<_ACEOF
23516 #
23517 # INIT-COMMANDS section.
23518 #
23519
23520 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23521
23522 _ACEOF
23523
23524
23525
23526 cat >>$CONFIG_STATUS <<\_ACEOF
23527 for ac_config_target in $ac_config_targets
23528 do
23529 case "$ac_config_target" in
23530 # Handling of arguments.
23531 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23532 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23533 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23534 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23535 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23536 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23537 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23538 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23539 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23540 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23541 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23542 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23544 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23545 { (exit 1); exit 1; }; };;
23546 esac
23547 done
23548
23549 # If the user did not use the arguments to specify the items to instantiate,
23550 # then the envvar interface is used. Set only those that are not.
23551 # We use the long form for the default assignment because of an extremely
23552 # bizarre bug on SunOS 4.1.3.
23553 if $ac_need_defaults; then
23554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23557 fi
23558
23559 # Have a temporary directory for convenience. Make it in the build tree
23560 # simply because there is no reason to put it here, and in addition,
23561 # creating and moving files from /tmp can sometimes cause problems.
23562 # Create a temporary directory, and hook for its removal unless debugging.
23563 $debug ||
23564 {
23565 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23566 trap '{ (exit 1); exit 1; }' 1 2 13 15
23567 }
23568
23569 # Create a (secure) tmp directory for tmp files.
23570
23571 {
23572 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23573 test -n "$tmp" && test -d "$tmp"
23574 } ||
23575 {
23576 tmp=./confstat$$-$RANDOM
23577 (umask 077 && mkdir $tmp)
23578 } ||
23579 {
23580 echo "$me: cannot create a temporary directory in ." >&2
23581 { (exit 1); exit 1; }
23582 }
23583
23584 _ACEOF
23585
23586 cat >>$CONFIG_STATUS <<_ACEOF
23587
23588 #
23589 # CONFIG_FILES section.
23590 #
23591
23592 # No need to generate the scripts if there are no CONFIG_FILES.
23593 # This happens for instance when ./config.status config.h
23594 if test -n "\$CONFIG_FILES"; then
23595 # Protect against being on the right side of a sed subst in config.status.
23596 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23597 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23598 s,@SHELL@,$SHELL,;t t
23599 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23600 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23601 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23602 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23603 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23604 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23605 s,@exec_prefix@,$exec_prefix,;t t
23606 s,@prefix@,$prefix,;t t
23607 s,@program_transform_name@,$program_transform_name,;t t
23608 s,@bindir@,$bindir,;t t
23609 s,@sbindir@,$sbindir,;t t
23610 s,@libexecdir@,$libexecdir,;t t
23611 s,@datadir@,$datadir,;t t
23612 s,@sysconfdir@,$sysconfdir,;t t
23613 s,@sharedstatedir@,$sharedstatedir,;t t
23614 s,@localstatedir@,$localstatedir,;t t
23615 s,@libdir@,$libdir,;t t
23616 s,@includedir@,$includedir,;t t
23617 s,@oldincludedir@,$oldincludedir,;t t
23618 s,@infodir@,$infodir,;t t
23619 s,@mandir@,$mandir,;t t
23620 s,@build_alias@,$build_alias,;t t
23621 s,@host_alias@,$host_alias,;t t
23622 s,@target_alias@,$target_alias,;t t
23623 s,@DEFS@,$DEFS,;t t
23624 s,@ECHO_C@,$ECHO_C,;t t
23625 s,@ECHO_N@,$ECHO_N,;t t
23626 s,@ECHO_T@,$ECHO_T,;t t
23627 s,@LIBS@,$LIBS,;t t
23628 s,@MAINT@,$MAINT,;t t
23629 s,@build@,$build,;t t
23630 s,@build_cpu@,$build_cpu,;t t
23631 s,@build_vendor@,$build_vendor,;t t
23632 s,@build_os@,$build_os,;t t
23633 s,@host@,$host,;t t
23634 s,@host_cpu@,$host_cpu,;t t
23635 s,@host_vendor@,$host_vendor,;t t
23636 s,@host_os@,$host_os,;t t
23637 s,@CC@,$CC,;t t
23638 s,@CFLAGS@,$CFLAGS,;t t
23639 s,@LDFLAGS@,$LDFLAGS,;t t
23640 s,@CPPFLAGS@,$CPPFLAGS,;t t
23641 s,@ac_ct_CC@,$ac_ct_CC,;t t
23642 s,@EXEEXT@,$EXEEXT,;t t
23643 s,@OBJEXT@,$OBJEXT,;t t
23644 s,@CPP@,$CPP,;t t
23645 s,@EGREP@,$EGREP,;t t
23646 s,@LN_S@,$LN_S,;t t
23647 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23648 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23649 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23650 s,@RANLIB@,$RANLIB,;t t
23651 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23652 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23653 s,@GZIP_PROG@,$GZIP_PROG,;t t
23654 s,@LIBSOUND@,$LIBSOUND,;t t
23655 s,@SET_MAKE@,$SET_MAKE,;t t
23656 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23657 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23658 s,@GTK_LIBS@,$GTK_LIBS,;t t
23659 s,@ALLOCA@,$ALLOCA,;t t
23660 s,@liblockfile@,$liblockfile,;t t
23661 s,@LIBOBJS@,$LIBOBJS,;t t
23662 s,@NEED_SETGID@,$NEED_SETGID,;t t
23663 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23664 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23665 s,@GETOPT_H@,$GETOPT_H,;t t
23666 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23667 s,@version@,$version,;t t
23668 s,@configuration@,$configuration,;t t
23669 s,@canonical@,$canonical,;t t
23670 s,@srcdir@,$srcdir,;t t
23671 s,@lispdir@,$lispdir,;t t
23672 s,@locallisppath@,$locallisppath,;t t
23673 s,@lisppath@,$lisppath,;t t
23674 s,@x_default_search_path@,$x_default_search_path,;t t
23675 s,@etcdir@,$etcdir,;t t
23676 s,@archlibdir@,$archlibdir,;t t
23677 s,@docdir@,$docdir,;t t
23678 s,@bitmapdir@,$bitmapdir,;t t
23679 s,@gamedir@,$gamedir,;t t
23680 s,@gameuser@,$gameuser,;t t
23681 s,@c_switch_system@,$c_switch_system,;t t
23682 s,@c_switch_machine@,$c_switch_machine,;t t
23683 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23684 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23685 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23686 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23687 s,@machfile@,$machfile,;t t
23688 s,@opsysfile@,$opsysfile,;t t
23689 s,@carbon_appdir@,$carbon_appdir,;t t
23690 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23691 CEOF
23692
23693 _ACEOF
23694
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 # Split the substitutions into bite-sized pieces for seds with
23697 # small command number limits, like on Digital OSF/1 and HP-UX.
23698 ac_max_sed_lines=48
23699 ac_sed_frag=1 # Number of current file.
23700 ac_beg=1 # First line for current file.
23701 ac_end=$ac_max_sed_lines # Line after last line for current file.
23702 ac_more_lines=:
23703 ac_sed_cmds=
23704 while $ac_more_lines; do
23705 if test $ac_beg -gt 1; then
23706 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23707 else
23708 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23709 fi
23710 if test ! -s $tmp/subs.frag; then
23711 ac_more_lines=false
23712 else
23713 # The purpose of the label and of the branching condition is to
23714 # speed up the sed processing (if there are no `@' at all, there
23715 # is no need to browse any of the substitutions).
23716 # These are the two extra sed commands mentioned above.
23717 (echo ':t
23718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23719 if test -z "$ac_sed_cmds"; then
23720 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23721 else
23722 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23723 fi
23724 ac_sed_frag=`expr $ac_sed_frag + 1`
23725 ac_beg=$ac_end
23726 ac_end=`expr $ac_end + $ac_max_sed_lines`
23727 fi
23728 done
23729 if test -z "$ac_sed_cmds"; then
23730 ac_sed_cmds=cat
23731 fi
23732 fi # test -n "$CONFIG_FILES"
23733
23734 _ACEOF
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23736 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23738 case $ac_file in
23739 - | *:- | *:-:* ) # input from stdin
23740 cat >$tmp/stdin
23741 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23743 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23745 * ) ac_file_in=$ac_file.in ;;
23746 esac
23747
23748 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23749 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23751 X"$ac_file" : 'X\(//\)[^/]' \| \
23752 X"$ac_file" : 'X\(//\)$' \| \
23753 X"$ac_file" : 'X\(/\)' \| \
23754 . : '\(.\)' 2>/dev/null ||
23755 echo X"$ac_file" |
23756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23758 /^X\(\/\/\)$/{ s//\1/; q; }
23759 /^X\(\/\).*/{ s//\1/; q; }
23760 s/.*/./; q'`
23761 { if $as_mkdir_p; then
23762 mkdir -p "$ac_dir"
23763 else
23764 as_dir="$ac_dir"
23765 as_dirs=
23766 while test ! -d "$as_dir"; do
23767 as_dirs="$as_dir $as_dirs"
23768 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770 X"$as_dir" : 'X\(//\)[^/]' \| \
23771 X"$as_dir" : 'X\(//\)$' \| \
23772 X"$as_dir" : 'X\(/\)' \| \
23773 . : '\(.\)' 2>/dev/null ||
23774 echo X"$as_dir" |
23775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23777 /^X\(\/\/\)$/{ s//\1/; q; }
23778 /^X\(\/\).*/{ s//\1/; q; }
23779 s/.*/./; q'`
23780 done
23781 test ! -n "$as_dirs" || mkdir $as_dirs
23782 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23783 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23784 { (exit 1); exit 1; }; }; }
23785
23786 ac_builddir=.
23787
23788 if test "$ac_dir" != .; then
23789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23790 # A "../" for each directory in $ac_dir_suffix.
23791 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23792 else
23793 ac_dir_suffix= ac_top_builddir=
23794 fi
23795
23796 case $srcdir in
23797 .) # No --srcdir option. We are building in place.
23798 ac_srcdir=.
23799 if test -z "$ac_top_builddir"; then
23800 ac_top_srcdir=.
23801 else
23802 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23803 fi ;;
23804 [\\/]* | ?:[\\/]* ) # Absolute path.
23805 ac_srcdir=$srcdir$ac_dir_suffix;
23806 ac_top_srcdir=$srcdir ;;
23807 *) # Relative path.
23808 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23809 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23810 esac
23811
23812 # Do not use `cd foo && pwd` to compute absolute paths, because
23813 # the directories may not exist.
23814 case `pwd` in
23815 .) ac_abs_builddir="$ac_dir";;
23816 *)
23817 case "$ac_dir" in
23818 .) ac_abs_builddir=`pwd`;;
23819 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23820 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23821 esac;;
23822 esac
23823 case $ac_abs_builddir in
23824 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23825 *)
23826 case ${ac_top_builddir}. in
23827 .) ac_abs_top_builddir=$ac_abs_builddir;;
23828 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23829 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23830 esac;;
23831 esac
23832 case $ac_abs_builddir in
23833 .) ac_abs_srcdir=$ac_srcdir;;
23834 *)
23835 case $ac_srcdir in
23836 .) ac_abs_srcdir=$ac_abs_builddir;;
23837 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23838 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23839 esac;;
23840 esac
23841 case $ac_abs_builddir in
23842 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23843 *)
23844 case $ac_top_srcdir in
23845 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23846 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23847 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23848 esac;;
23849 esac
23850
23851
23852 case $INSTALL in
23853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23854 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23855 esac
23856
23857 if test x"$ac_file" != x-; then
23858 { echo "$as_me:$LINENO: creating $ac_file" >&5
23859 echo "$as_me: creating $ac_file" >&6;}
23860 rm -f "$ac_file"
23861 fi
23862 # Let's still pretend it is `configure' which instantiates (i.e., don't
23863 # use $as_me), people would be surprised to read:
23864 # /* config.h. Generated by config.status. */
23865 if test x"$ac_file" = x-; then
23866 configure_input=
23867 else
23868 configure_input="$ac_file. "
23869 fi
23870 configure_input=$configure_input"Generated from `echo $ac_file_in |
23871 sed 's,.*/,,'` by configure."
23872
23873 # First look for the input files in the build tree, otherwise in the
23874 # src tree.
23875 ac_file_inputs=`IFS=:
23876 for f in $ac_file_in; do
23877 case $f in
23878 -) echo $tmp/stdin ;;
23879 [\\/$]*)
23880 # Absolute (can't be DOS-style, as IFS=:)
23881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23882 echo "$as_me: error: cannot find input file: $f" >&2;}
23883 { (exit 1); exit 1; }; }
23884 echo "$f";;
23885 *) # Relative
23886 if test -f "$f"; then
23887 # Build tree
23888 echo "$f"
23889 elif test -f "$srcdir/$f"; then
23890 # Source tree
23891 echo "$srcdir/$f"
23892 else
23893 # /dev/null tree
23894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23895 echo "$as_me: error: cannot find input file: $f" >&2;}
23896 { (exit 1); exit 1; }; }
23897 fi;;
23898 esac
23899 done` || { (exit 1); exit 1; }
23900 _ACEOF
23901 cat >>$CONFIG_STATUS <<_ACEOF
23902 sed "$ac_vpsub
23903 $extrasub
23904 _ACEOF
23905 cat >>$CONFIG_STATUS <<\_ACEOF
23906 :t
23907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23908 s,@configure_input@,$configure_input,;t t
23909 s,@srcdir@,$ac_srcdir,;t t
23910 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23911 s,@top_srcdir@,$ac_top_srcdir,;t t
23912 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23913 s,@builddir@,$ac_builddir,;t t
23914 s,@abs_builddir@,$ac_abs_builddir,;t t
23915 s,@top_builddir@,$ac_top_builddir,;t t
23916 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23917 s,@INSTALL@,$ac_INSTALL,;t t
23918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23919 rm -f $tmp/stdin
23920 if test x"$ac_file" != x-; then
23921 mv $tmp/out $ac_file
23922 else
23923 cat $tmp/out
23924 rm -f $tmp/out
23925 fi
23926
23927 done
23928 _ACEOF
23929 cat >>$CONFIG_STATUS <<\_ACEOF
23930
23931 #
23932 # CONFIG_HEADER section.
23933 #
23934
23935 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23936 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23937 #
23938 # ac_d sets the value in "#define NAME VALUE" lines.
23939 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23940 ac_dB='[ ].*$,\1#\2'
23941 ac_dC=' '
23942 ac_dD=',;t'
23943 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23944 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23945 ac_uB='$,\1#\2define\3'
23946 ac_uC=' '
23947 ac_uD=',;t'
23948
23949 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23951 case $ac_file in
23952 - | *:- | *:-:* ) # input from stdin
23953 cat >$tmp/stdin
23954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23958 * ) ac_file_in=$ac_file.in ;;
23959 esac
23960
23961 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23962 echo "$as_me: creating $ac_file" >&6;}
23963
23964 # First look for the input files in the build tree, otherwise in the
23965 # src tree.
23966 ac_file_inputs=`IFS=:
23967 for f in $ac_file_in; do
23968 case $f in
23969 -) echo $tmp/stdin ;;
23970 [\\/$]*)
23971 # Absolute (can't be DOS-style, as IFS=:)
23972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23973 echo "$as_me: error: cannot find input file: $f" >&2;}
23974 { (exit 1); exit 1; }; }
23975 # Do quote $f, to prevent DOS paths from being IFS'd.
23976 echo "$f";;
23977 *) # Relative
23978 if test -f "$f"; then
23979 # Build tree
23980 echo "$f"
23981 elif test -f "$srcdir/$f"; then
23982 # Source tree
23983 echo "$srcdir/$f"
23984 else
23985 # /dev/null tree
23986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23987 echo "$as_me: error: cannot find input file: $f" >&2;}
23988 { (exit 1); exit 1; }; }
23989 fi;;
23990 esac
23991 done` || { (exit 1); exit 1; }
23992 # Remove the trailing spaces.
23993 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23994
23995 _ACEOF
23996
23997 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23998 # `conftest.undefs', that substitutes the proper values into
23999 # config.h.in to produce config.h. The first handles `#define'
24000 # templates, and the second `#undef' templates.
24001 # And first: Protect against being on the right side of a sed subst in
24002 # config.status. Protect against being in an unquoted here document
24003 # in config.status.
24004 rm -f conftest.defines conftest.undefs
24005 # Using a here document instead of a string reduces the quoting nightmare.
24006 # Putting comments in sed scripts is not portable.
24007 #
24008 # `end' is used to avoid that the second main sed command (meant for
24009 # 0-ary CPP macros) applies to n-ary macro definitions.
24010 # See the Autoconf documentation for `clear'.
24011 cat >confdef2sed.sed <<\_ACEOF
24012 s/[\\&,]/\\&/g
24013 s,[\\$`],\\&,g
24014 t clear
24015 : clear
24016 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24017 t end
24018 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24019 : end
24020 _ACEOF
24021 # If some macros were called several times there might be several times
24022 # the same #defines, which is useless. Nevertheless, we may not want to
24023 # sort them, since we want the *last* AC-DEFINE to be honored.
24024 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24025 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24026 rm -f confdef2sed.sed
24027
24028 # This sed command replaces #undef with comments. This is necessary, for
24029 # example, in the case of _POSIX_SOURCE, which is predefined and required
24030 # on some systems where configure will not decide to define it.
24031 cat >>conftest.undefs <<\_ACEOF
24032 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24033 _ACEOF
24034
24035 # Break up conftest.defines because some shells have a limit on the size
24036 # of here documents, and old seds have small limits too (100 cmds).
24037 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24038 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24039 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24040 echo ' :' >>$CONFIG_STATUS
24041 rm -f conftest.tail
24042 while grep . conftest.defines >/dev/null
24043 do
24044 # Write a limited-size here document to $tmp/defines.sed.
24045 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24046 # Speed up: don't consider the non `#define' lines.
24047 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24048 # Work around the forget-to-reset-the-flag bug.
24049 echo 't clr' >>$CONFIG_STATUS
24050 echo ': clr' >>$CONFIG_STATUS
24051 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24052 echo 'CEOF
24053 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24054 rm -f $tmp/in
24055 mv $tmp/out $tmp/in
24056 ' >>$CONFIG_STATUS
24057 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24058 rm -f conftest.defines
24059 mv conftest.tail conftest.defines
24060 done
24061 rm -f conftest.defines
24062 echo ' fi # grep' >>$CONFIG_STATUS
24063 echo >>$CONFIG_STATUS
24064
24065 # Break up conftest.undefs because some shells have a limit on the size
24066 # of here documents, and old seds have small limits too (100 cmds).
24067 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24068 rm -f conftest.tail
24069 while grep . conftest.undefs >/dev/null
24070 do
24071 # Write a limited-size here document to $tmp/undefs.sed.
24072 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24073 # Speed up: don't consider the non `#undef'
24074 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24075 # Work around the forget-to-reset-the-flag bug.
24076 echo 't clr' >>$CONFIG_STATUS
24077 echo ': clr' >>$CONFIG_STATUS
24078 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24079 echo 'CEOF
24080 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24081 rm -f $tmp/in
24082 mv $tmp/out $tmp/in
24083 ' >>$CONFIG_STATUS
24084 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24085 rm -f conftest.undefs
24086 mv conftest.tail conftest.undefs
24087 done
24088 rm -f conftest.undefs
24089
24090 cat >>$CONFIG_STATUS <<\_ACEOF
24091 # Let's still pretend it is `configure' which instantiates (i.e., don't
24092 # use $as_me), people would be surprised to read:
24093 # /* config.h. Generated by config.status. */
24094 if test x"$ac_file" = x-; then
24095 echo "/* Generated by configure. */" >$tmp/config.h
24096 else
24097 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24098 fi
24099 cat $tmp/in >>$tmp/config.h
24100 rm -f $tmp/in
24101 if test x"$ac_file" != x-; then
24102 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24104 echo "$as_me: $ac_file is unchanged" >&6;}
24105 else
24106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$ac_file" : 'X\(//\)[^/]' \| \
24109 X"$ac_file" : 'X\(//\)$' \| \
24110 X"$ac_file" : 'X\(/\)' \| \
24111 . : '\(.\)' 2>/dev/null ||
24112 echo X"$ac_file" |
24113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24115 /^X\(\/\/\)$/{ s//\1/; q; }
24116 /^X\(\/\).*/{ s//\1/; q; }
24117 s/.*/./; q'`
24118 { if $as_mkdir_p; then
24119 mkdir -p "$ac_dir"
24120 else
24121 as_dir="$ac_dir"
24122 as_dirs=
24123 while test ! -d "$as_dir"; do
24124 as_dirs="$as_dir $as_dirs"
24125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24127 X"$as_dir" : 'X\(//\)[^/]' \| \
24128 X"$as_dir" : 'X\(//\)$' \| \
24129 X"$as_dir" : 'X\(/\)' \| \
24130 . : '\(.\)' 2>/dev/null ||
24131 echo X"$as_dir" |
24132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24134 /^X\(\/\/\)$/{ s//\1/; q; }
24135 /^X\(\/\).*/{ s//\1/; q; }
24136 s/.*/./; q'`
24137 done
24138 test ! -n "$as_dirs" || mkdir $as_dirs
24139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24141 { (exit 1); exit 1; }; }; }
24142
24143 rm -f $ac_file
24144 mv $tmp/config.h $ac_file
24145 fi
24146 else
24147 cat $tmp/config.h
24148 rm -f $tmp/config.h
24149 fi
24150 done
24151 _ACEOF
24152 cat >>$CONFIG_STATUS <<\_ACEOF
24153
24154 #
24155 # CONFIG_COMMANDS section.
24156 #
24157 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24158 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24159 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24160 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24161 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24162 X"$ac_dest" : 'X\(//\)[^/]' \| \
24163 X"$ac_dest" : 'X\(//\)$' \| \
24164 X"$ac_dest" : 'X\(/\)' \| \
24165 . : '\(.\)' 2>/dev/null ||
24166 echo X"$ac_dest" |
24167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24169 /^X\(\/\/\)$/{ s//\1/; q; }
24170 /^X\(\/\).*/{ s//\1/; q; }
24171 s/.*/./; q'`
24172 { if $as_mkdir_p; then
24173 mkdir -p "$ac_dir"
24174 else
24175 as_dir="$ac_dir"
24176 as_dirs=
24177 while test ! -d "$as_dir"; do
24178 as_dirs="$as_dir $as_dirs"
24179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24181 X"$as_dir" : 'X\(//\)[^/]' \| \
24182 X"$as_dir" : 'X\(//\)$' \| \
24183 X"$as_dir" : 'X\(/\)' \| \
24184 . : '\(.\)' 2>/dev/null ||
24185 echo X"$as_dir" |
24186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24188 /^X\(\/\/\)$/{ s//\1/; q; }
24189 /^X\(\/\).*/{ s//\1/; q; }
24190 s/.*/./; q'`
24191 done
24192 test ! -n "$as_dirs" || mkdir $as_dirs
24193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24195 { (exit 1); exit 1; }; }; }
24196
24197 ac_builddir=.
24198
24199 if test "$ac_dir" != .; then
24200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24201 # A "../" for each directory in $ac_dir_suffix.
24202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24203 else
24204 ac_dir_suffix= ac_top_builddir=
24205 fi
24206
24207 case $srcdir in
24208 .) # No --srcdir option. We are building in place.
24209 ac_srcdir=.
24210 if test -z "$ac_top_builddir"; then
24211 ac_top_srcdir=.
24212 else
24213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24214 fi ;;
24215 [\\/]* | ?:[\\/]* ) # Absolute path.
24216 ac_srcdir=$srcdir$ac_dir_suffix;
24217 ac_top_srcdir=$srcdir ;;
24218 *) # Relative path.
24219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24221 esac
24222
24223 # Do not use `cd foo && pwd` to compute absolute paths, because
24224 # the directories may not exist.
24225 case `pwd` in
24226 .) ac_abs_builddir="$ac_dir";;
24227 *)
24228 case "$ac_dir" in
24229 .) ac_abs_builddir=`pwd`;;
24230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24232 esac;;
24233 esac
24234 case $ac_abs_builddir in
24235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24236 *)
24237 case ${ac_top_builddir}. in
24238 .) ac_abs_top_builddir=$ac_abs_builddir;;
24239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24241 esac;;
24242 esac
24243 case $ac_abs_builddir in
24244 .) ac_abs_srcdir=$ac_srcdir;;
24245 *)
24246 case $ac_srcdir in
24247 .) ac_abs_srcdir=$ac_abs_builddir;;
24248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24250 esac;;
24251 esac
24252 case $ac_abs_builddir in
24253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24254 *)
24255 case $ac_top_srcdir in
24256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24259 esac;;
24260 esac
24261
24262
24263 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24264 echo "$as_me: executing $ac_dest commands" >&6;}
24265 case $ac_dest in
24266 default )
24267
24268 ### Make the necessary directories, if they don't exist.
24269 for dir in etc lisp ; do
24270 test -d ${dir} || mkdir ${dir}
24271 done
24272
24273 # Build src/Makefile from ${srcdir}/src/Makefile.c
24274 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24275 # This must be done after src/config.h is built, since we rely on that file.
24276
24277 # Now get this: Some word that is part of the ${srcdir} directory name
24278 # or the ${configuration} value might, just might, happen to be an
24279 # identifier like `sun4' or `i386' or something, and be predefined by
24280 # the C preprocessor to some helpful value like 1, or maybe the empty
24281 # string. Needless to say consequent macro substitutions are less
24282 # than conducive to the makefile finding the correct directory.
24283 undefs="`echo $top_srcdir $configuration $canonical |
24284 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24285 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24286 `"
24287
24288 echo creating src/epaths.h
24289 ${MAKE-make} epaths-force
24290
24291 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24292 # `..' to `. .' unless invoked with -traditional
24293
24294 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24295 CPPFLAGS="$CPPFLAGS -traditional"
24296 fi
24297
24298 echo creating lib-src/Makefile
24299 ( cd lib-src
24300 rm -f junk.c junk1.c junk2.c
24301 sed -e '/start of cpp stuff/q' \
24302 < Makefile.c > junk1.c
24303 sed -e '1,/start of cpp stuff/d'\
24304 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24305 < Makefile.c > junk.c
24306 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24307 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24308 cat junk1.c junk2.c > Makefile.new
24309 rm -f junk.c junk1.c junk2.c
24310 chmod 444 Makefile.new
24311 mv -f Makefile.new Makefile
24312 )
24313
24314 echo creating src/Makefile
24315 ( cd src
24316 rm -f junk.c junk1.c junk2.c
24317 sed -e '/start of cpp stuff/q' \
24318 < Makefile.c > junk1.c
24319 sed -e '1,/start of cpp stuff/d'\
24320 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24321 < Makefile.c > junk.c
24322 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24323 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24324 cat junk1.c junk2.c > Makefile.new
24325 rm -f junk.c junk1.c junk2.c
24326 chmod 444 Makefile.new
24327 mv -f Makefile.new Makefile
24328 )
24329
24330 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24331 echo creating src/.gdbinit
24332 echo source $srcdir/src/.gdbinit > src/.gdbinit
24333 fi
24334
24335 # This is how we know whether to re-run configure in certain cases.
24336 touch src/config.stamp
24337
24338 ;;
24339 esac
24340 done
24341 _ACEOF
24342
24343 cat >>$CONFIG_STATUS <<\_ACEOF
24344
24345 { (exit 0); exit 0; }
24346 _ACEOF
24347 chmod +x $CONFIG_STATUS
24348 ac_clean_files=$ac_clean_files_save
24349
24350
24351 # configure is writing to config.log, and then calls config.status.
24352 # config.status does its own redirection, appending to config.log.
24353 # Unfortunately, on DOS this fails, as config.log is still kept open
24354 # by configure, so config.status won't be able to write to it; its
24355 # output is simply discarded. So we exec the FD to /dev/null,
24356 # effectively closing config.log, so it can be properly (re)opened and
24357 # appended to by config.status. When coming back to configure, we
24358 # need to make the FD available again.
24359 if test "$no_create" != yes; then
24360 ac_cs_success=:
24361 ac_config_status_args=
24362 test "$silent" = yes &&
24363 ac_config_status_args="$ac_config_status_args --quiet"
24364 exec 5>/dev/null
24365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24366 exec 5>>config.log
24367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24368 # would make configure fail if this is the last instruction.
24369 $ac_cs_success || { (exit 1); exit 1; }
24370 fi
24371
24372