*** empty log message ***
[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 PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 ia64-*-freebsd*) machine=ia64 ;;
1721 sparc64-*-freebsd*) machine=sparc ;;
1722 powerpc-*-freebsd*) machine=macppc ;;
1723 i[3456]86-*-freebsd*) machine=intel386 ;;
1724 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1725 esac
1726 ;;
1727
1728 ## NetBSD ports
1729 *-*-netbsd* )
1730 opsys=netbsd
1731 if test -f /usr/lib/crti.o; then
1732
1733 cat >>confdefs.h <<\_ACEOF
1734 #define HAVE_CRTIN
1735 _ACEOF
1736
1737 fi
1738
1739 case "${canonical}" in
1740 alpha*-*-netbsd*) machine=alpha ;;
1741 i[3456]86-*-netbsd*) machine=intel386 ;;
1742 m68k-*-netbsd*)
1743 # This is somewhat bogus.
1744 machine=hp9000s300 ;;
1745 powerpc-apple-netbsd*) machine=macppc ;;
1746 mips-*-netbsd*) machine=pmax ;;
1747 mipsel-*-netbsd*) machine=pmax ;;
1748 mipseb-*-netbsd*) machine=pmax ;;
1749 ns32k-*-netbsd*) machine=ns32000 ;;
1750 powerpc-*-netbsd*) machine=macppc ;;
1751 sparc*-*-netbsd*) machine=sparc ;;
1752 vax-*-netbsd*) machine=vax ;;
1753 arm-*-netbsd*) machine=arm ;;
1754 esac
1755 ;;
1756
1757 ## OpenBSD ports
1758 *-*-openbsd* )
1759 opsys=openbsd
1760 case "${canonical}" in
1761 alpha*-*-openbsd*) machine=alpha ;;
1762 i386-*-openbsd*) machine=intel386 ;;
1763 x86_64-*-openbsd*) machine=amdx86-64 ;;
1764 m68k-*-openbsd*) machine=hp9000s300 ;;
1765 mipsel-*-openbsd*) machine=pmax ;;
1766 ns32k-*-openbsd*) machine=ns32000 ;;
1767 sparc-*-openbsd*) machine=sparc ;;
1768 vax-*-openbsd*) machine=vax ;;
1769 esac
1770 ;;
1771
1772 ## LynxOS ports
1773 *-*-lynxos* )
1774 opsys=lynxos
1775 case "${canonical}" in
1776 i[3456]86-*-lynxos*) machine=intel386 ;;
1777 powerpc-*-lynxos*) machine=powerpc ;;
1778 esac
1779 ;;
1780
1781 ## Acorn RISCiX:
1782 arm-acorn-riscix1.1* )
1783 machine=acorn opsys=riscix1-1
1784 ;;
1785 arm-acorn-riscix1.2* | arm-acorn-riscix )
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine=acorn opsys=riscix12
1789 ;;
1790
1791 ## BSDI ports
1792 *-*-bsdi* )
1793 opsys=bsdi
1794 case "${canonical}" in
1795 i[345]86-*-bsdi*) machine=intel386 ;;
1796 sparc-*-bsdi*) machine=sparc ;;
1797 powerpc-*-bsdi*) machine=macppc ;;
1798 esac
1799 case "${canonical}" in
1800 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1801 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1802 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1803 *-*-bsdi3* ) opsys=bsdos3 ;;
1804 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1805 esac
1806 ;;
1807
1808 ## Alliant machines
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1814 fx80-alliant-* )
1815 machine=alliant4 opsys=bsd4-2
1816 ;;
1817 i860-alliant-* )
1818 machine=alliant-2800 opsys=bsd4-3
1819 ;;
1820
1821 ## Alpha (DEC) machines.
1822 alpha*-dec-osf* )
1823 machine=alpha opsys=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1826 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP=/usr/bin/cpp
1832 case "${canonical}" in
1833 alpha*-dec-osf[5-9]*)
1834 opsys=osf5-0 ;;
1835 esac
1836 ;;
1837
1838 alpha*-*-linux-gnu* )
1839 machine=alpha opsys=gnu-linux
1840 ;;
1841
1842 arm*-*-linux-gnu* )
1843 machine=arm opsys=gnu-linux
1844 ;;
1845
1846 ## Altos 3068
1847 m68*-altos-sysv* )
1848 machine=altos opsys=usg5-2
1849 ;;
1850
1851 ## Amdahl UTS
1852 580-amdahl-sysv* )
1853 machine=amdahl opsys=usg5-2-2
1854 ;;
1855
1856 ## Apollo, Domain/OS
1857 m68*-apollo-* )
1858 machine=apollo opsys=bsd4-3
1859 ;;
1860
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1862 we32k-att-sysv* )
1863 machine=att3b opsys=usg5-2-2
1864 ;;
1865
1866 ## AT&T 3b1 - The Mighty Unix PC!
1867 m68*-att-sysv* )
1868 machine=7300 opsys=usg5-2-2
1869 ;;
1870
1871 ## Bull dpx20
1872 rs6000-bull-bosx* )
1873 machine=ibmrs6000 opsys=aix3-2
1874 ;;
1875
1876 ## Bull dpx2
1877 m68*-bull-sysv3* )
1878 machine=dpx2 opsys=usg5-3
1879 ;;
1880
1881 ## Bull sps7
1882 m68*-bull-sysv2* )
1883 machine=sps7 opsys=usg5-2
1884 ;;
1885
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1887
1888 ## Celerity
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd* )
1893 machine=celerity opsys=bsd4-2
1894 ;;
1895
1896 ## Clipper
1897 ## What operating systems does this chip run that Emacs has been
1898 ## tested on?
1899 clipper-* )
1900 machine=clipper
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1903 ;;
1904
1905 ## Compaq Nonstop
1906 mips-compaq-nonstopux* )
1907 machine=nonstopux opsys=nonstopux
1908 ;;
1909
1910 ## Convex
1911 *-convex-bsd* | *-convex-convexos* )
1912 machine=convex opsys=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP="cc -E -P"
1915 ;;
1916
1917 ## Cubix QBx/386
1918 i[3456]86-cubix-sysv* )
1919 machine=intel386 opsys=usg5-3
1920 ;;
1921
1922 ## Cydra 5
1923 cydra*-cydrome-sysv* )
1924 machine=cydra5 opsys=usg5-3
1925 ;;
1926
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1934 machine=aviion opsys=dgux4
1935 ;;
1936 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine=aviion opsys=dgux5-4-3
1940 ;;
1941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1942 machine=aviion opsys=dgux5-4r2
1943 ;;
1944 m88k-dg-dgux* )
1945 machine=aviion opsys=dgux
1946 ;;
1947
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i[345]86-dg-dguxR4* )
1952 machine=aviion-intel opsys=dgux4
1953 ;;
1954
1955 ## DECstations
1956 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1957 machine=pmax opsys=bsd4-2
1958 ;;
1959 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1960 machine=pmax opsys=bsd4-3
1961 ;;
1962 mips-dec-ultrix* )
1963 machine=pmax opsys=ultrix4-3
1964 ;;
1965 mips-dec-osf* )
1966 machine=pmax opsys=osf1
1967 ;;
1968 mips-dec-mach_bsd4.3* )
1969 machine=pmax opsys=mach-bsd4-3
1970 ;;
1971
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv* | m68000-motorola-sysv* )
1974 machine=delta opsys=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1976 then
1977 if test -s /etc/167config
1978 then CC="gnucc -m68040"
1979 else CC="gnucc -m68881"
1980 fi
1981 else
1982 if test -z "`type gcc | grep 'not found'`"
1983 then CC=gcc
1984 else CC=cc
1985 fi
1986 fi
1987 ;;
1988 m88k-motorola-sysv4* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine=delta88k opsys=usg5-4-2
1994 ;;
1995 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1996 machine=delta88k opsys=usg5-3
1997 ;;
1998
1999 ## Dual machines
2000 m68*-dual-sysv* )
2001 machine=dual opsys=usg5-2
2002 ;;
2003 m68*-dual-uniplus* )
2004 machine=dual opsys=unipl5-2
2005 ;;
2006
2007 ## Elxsi 6400
2008 elxsi-elxsi-sysv* )
2009 machine=elxsi opsys=usg5-2
2010 ;;
2011
2012 ## Encore machines
2013 ns16k-encore-bsd* )
2014 machine=ns16000 opsys=umax
2015 ;;
2016
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2019
2020 ## Gould Power Node and NP1
2021 pn-gould-bsd4.2* )
2022 machine=gould opsys=bsd4-2
2023 ;;
2024 pn-gould-bsd4.3* )
2025 machine=gould opsys=bsd4-3
2026 ;;
2027 np1-gould-bsd* )
2028 machine=gould-np1 opsys=bsd4-3
2029 ;;
2030
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2033 m88k-harris-cxux* )
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2037 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2038 esac
2039 NON_GNU_CPP="/lib/cpp"
2040 ;;
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2042 m68k-harris-cxux* )
2043 machine=nh3000 opsys=cxux
2044 ;;
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix )
2047 machine=nh6000 opsys=powerunix
2048 NON_GNU_CPP="cc -Xo -E -P"
2049 ;;
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1-hitachi-hiuxmpp* )
2052 machine=sr2k opsys=hiuxmpp
2053 ;;
2054 hppa1.1-hitachi-hiuxwe2* )
2055 machine=sr2k opsys=hiuxwe2
2056 ;;
2057 ## Honeywell XPS100
2058 xps*-honeywell-sysv* )
2059 machine=xps100 opsys=usg5-2
2060 ;;
2061
2062 ## HP 9000 series 200 or 300
2063 m68*-hp-bsd* )
2064 machine=hp9000s300 opsys=bsd4-3
2065 ;;
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2067 m68*-hp-hpux* )
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2072 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2073 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2074 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2075 *) machine=hp9000s300 opsys=hpux ;;
2076 esac
2077 ;;
2078
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux7* )
2081 machine=hp800 opsys=hpux
2082 ;;
2083 hppa*-hp-hpux8* )
2084 machine=hp800 opsys=hpux8
2085 ;;
2086 hppa*-hp-hpux9shr* )
2087 machine=hp800 opsys=hpux9shr
2088 ;;
2089 hppa*-hp-hpux9* )
2090 machine=hp800 opsys=hpux9
2091 ;;
2092 hppa*-hp-hpux10.2* )
2093 machine=hp800 opsys=hpux10-20
2094 ;;
2095 hppa*-hp-hpux10* )
2096 machine=hp800 opsys=hpux10
2097 ;;
2098 hppa*-hp-hpux1[1-9]* )
2099 machine=hp800 opsys=hpux11
2100 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2101 ;;
2102
2103 hppa*-*-linux-gnu* )
2104 machine=hp800 opsys=gnu-linux
2105 ;;
2106
2107 ## HP 9000 series 700 and 800, running HP/UX
2108 hppa*-hp-hpux* )
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2114 *.08.* ) machine=hp800 opsys=hpux8 ;;
2115 *.09.* ) machine=hp800 opsys=hpux9 ;;
2116 *) machine=hp800 opsys=hpux10 ;;
2117 esac
2118 ;;
2119 hppa*-*-nextstep* )
2120 machine=hp800 opsys=nextstep
2121 ;;
2122
2123 ## Orion machines
2124 orion-orion-bsd* )
2125 machine=orion opsys=bsd4-2
2126 ;;
2127 clipper-orion-bsd* )
2128 machine=orion105 opsys=bsd4-2
2129 ;;
2130
2131 ## IBM machines
2132 i[3456]86-ibm-aix1.1* )
2133 machine=ibmps2-aix opsys=usg5-2-2
2134 ;;
2135 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2136 machine=ibmps2-aix opsys=usg5-3
2137 ;;
2138 i370-ibm-aix*)
2139 machine=ibm370aix opsys=usg5-3
2140 ;;
2141 s390-*-linux-gnu* )
2142 machine=ibms390 opsys=gnu-linux
2143 ;;
2144 s390x-*-linux-gnu* )
2145 machine=ibms390x opsys=gnu-linux
2146 ;;
2147 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2148 machine=ibmrs6000 opsys=aix3-1
2149 ;;
2150 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2151 machine=ibmrs6000 opsys=aix3-2-5
2152 ;;
2153 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2154 machine=ibmrs6000 opsys=aix4-1
2155 ;;
2156 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2157 machine=ibmrs6000 opsys=aix4-2
2158 ;;
2159 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2160 machine=ibmrs6000 opsys=aix4-2
2161 ;;
2162 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2163 machine=ibmrs6000 opsys=aix4
2164 ;;
2165 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2166 machine=ibmrs6000 opsys=aix4-1
2167 ;;
2168 rs6000-ibm-aix* | powerpc-ibm-aix* )
2169 machine=ibmrs6000 opsys=aix3-2
2170 ;;
2171 romp-ibm-bsd4.3* )
2172 machine=ibmrt opsys=bsd4-3
2173 ;;
2174 romp-ibm-bsd4.2* )
2175 machine=ibmrt opsys=bsd4-2
2176 ;;
2177 romp-ibm-aos4.3* )
2178 machine=ibmrt opsys=bsd4-3
2179 ;;
2180 romp-ibm-aos4.2* )
2181 machine=ibmrt opsys=bsd4-2
2182 ;;
2183 romp-ibm-aos* )
2184 machine=ibmrt opsys=bsd4-3
2185 ;;
2186 romp-ibm-bsd* )
2187 machine=ibmrt opsys=bsd4-3
2188 ;;
2189 romp-ibm-aix* )
2190 machine=ibmrt-aix opsys=usg5-2-2
2191 ;;
2192
2193 ## Integrated Solutions `Optimum V'
2194 m68*-isi-bsd4.2* )
2195 machine=isi-ov opsys=bsd4-2
2196 ;;
2197 m68*-isi-bsd4.3* )
2198 machine=isi-ov opsys=bsd4-3
2199 ;;
2200
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i[3456]86-intsys-sysv* )
2203 machine=is386 opsys=usg5-2-2
2204 ;;
2205
2206 ## Prime EXL
2207 i[3456]86-prime-sysv* )
2208 machine=i386 opsys=usg5-3
2209 ;;
2210
2211 ## Sequent Symmetry running Dynix
2212 i[3456]86-sequent-bsd* )
2213 machine=symmetry opsys=bsd4-3
2214 ;;
2215
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2218 machine=sequent-ptx opsys=ptx4
2219 NON_GNU_CPP=/lib/cpp
2220 ;;
2221
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i[3456]86-sequent-ptx* )
2225 machine=sequent-ptx opsys=ptx
2226 NON_GNU_CPP="/lib/cpp"
2227 ;;
2228
2229 ## ncr machine running svr4.3.
2230 i[3456]86-ncr-sysv4.3 )
2231 machine=ncr386 opsys=usg5-4-3
2232 ;;
2233
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i[3456]86-ncr-sysv* )
2237 machine=ncr386 opsys=usg5-4-2
2238 ;;
2239
2240 ## Intel Paragon OSF/1
2241 i860-intel-osf1* )
2242 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2243 ;;
2244
2245 ## Intel 860
2246 i860-*-sysv4* )
2247 machine=i860 opsys=usg5-4
2248 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2250 ;;
2251
2252 ## Macintosh PowerPC
2253 powerpc*-*-linux-gnu* )
2254 machine=macppc opsys=gnu-linux
2255 ;;
2256
2257 ## Masscomp machines
2258 m68*-masscomp-rtu* )
2259 machine=masscomp opsys=rtu
2260 ;;
2261
2262 ## Megatest machines
2263 m68*-megatest-bsd* )
2264 machine=mega68 opsys=bsd4-2
2265 ;;
2266
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2270
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2278 mips-mips-usg* )
2279 machine=mips4
2280 ## Fall through to the general code at the bottom to decide on the OS.
2281 ;;
2282 mips-mips-riscos4* )
2283 machine=mips4 opsys=bsd4-3
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2286 ;;
2287 mips-mips-riscos5* )
2288 machine=mips4 opsys=riscos5
2289 NON_GNU_CC="cc -systype bsd43"
2290 NON_GNU_CPP="cc -systype bsd43 -E"
2291 ;;
2292 mips-mips-bsd* )
2293 machine=mips opsys=bsd4-3
2294 ;;
2295 mips-mips-* )
2296 machine=mips opsys=usg5-2-2
2297 ;;
2298
2299 ## NeXT
2300 m68*-next-* | m68k-*-nextstep* )
2301 machine=m68k opsys=nextstep
2302 ;;
2303
2304 ## The complete machine from National Semiconductor
2305 ns32k-ns-genix* )
2306 machine=ns32000 opsys=usg5-2
2307 ;;
2308
2309 ## NCR machines
2310 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2311 machine=tower32 opsys=usg5-2-2
2312 ;;
2313 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2314 machine=tower32v3 opsys=usg5-3
2315 ;;
2316
2317 ## NEC EWS4800
2318 mips-nec-sysv4*)
2319 machine=ews4800 opsys=ux4800
2320 ;;
2321
2322 ## Nixdorf Targon 31
2323 m68*-nixdorf-sysv* )
2324 machine=targon31 opsys=usg5-2-2
2325 ;;
2326
2327 ## Nu (TI or LMI)
2328 m68*-nu-sysv* )
2329 machine=nu opsys=usg5-2
2330 ;;
2331
2332 ## Plexus
2333 m68*-plexus-sysv* )
2334 machine=plexus opsys=usg5-2
2335 ;;
2336
2337 ## Pyramid machines
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd* )
2341 machine=pyramid opsys=bsd4-2
2342 ;;
2343
2344 ## Sequent Balance
2345 ns32k-sequent-bsd4.2* )
2346 machine=sequent opsys=bsd4-2
2347 ;;
2348 ns32k-sequent-bsd4.3* )
2349 machine=sequent opsys=bsd4-3
2350 ;;
2351
2352 ## Siemens Nixdorf
2353 mips-siemens-sysv* | mips-sni-sysv*)
2354 machine=mips-siemens opsys=usg5-4
2355 NON_GNU_CC=/usr/ccs/bin/cc
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2357 ;;
2358
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2361 m68*-sgi-iris3.5* )
2362 machine=irist opsys=iris3-5
2363 ;;
2364 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2365 machine=irist opsys=iris3-6
2366 ;;
2367 ## Iris 4D
2368 mips-sgi-irix3* )
2369 machine=iris4d opsys=irix3-3
2370 ;;
2371 mips-sgi-irix4* )
2372 machine=iris4d opsys=irix4-0
2373 ;;
2374 mips-sgi-irix6.5 )
2375 machine=iris4d opsys=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2381 ;;
2382 mips-sgi-irix6* )
2383 machine=iris4d opsys=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS=-32
2389 ;;
2390 mips-sgi-irix5.[01]* )
2391 machine=iris4d opsys=irix5-0
2392 ;;
2393 mips-sgi-irix5* | mips-sgi-irix* )
2394 machine=iris4d opsys=irix5-2
2395 ;;
2396
2397 ## SONY machines
2398 m68*-sony-bsd4.2* )
2399 machine=news opsys=bsd4-2
2400 ;;
2401 m68*-sony-bsd4.3* )
2402 machine=news opsys=bsd4-3
2403 ;;
2404 m68*-sony-newsos3* | m68*-sony-news3*)
2405 machine=news opsys=bsd4-3
2406 ;;
2407 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2408 machine=news-risc opsys=bsd4-3
2409 ;;
2410 mips-sony-newsos6* )
2411 machine=news-r6 opsys=newsos6
2412 ;;
2413 mips-sony-news* )
2414 machine=news-risc opsys=newsos5
2415 ;;
2416
2417 ## Stride
2418 m68*-stride-sysv* )
2419 machine=stride opsys=usg5-2
2420 ;;
2421
2422 ## Suns
2423 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2424 machine=sparc opsys=gnu-linux
2425 ;;
2426
2427 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2428 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2429 | rs6000-*-solaris2*)
2430 case "${canonical}" in
2431 m68*-sunos1* ) machine=sun1 ;;
2432 m68*-sunos2* ) machine=sun2 ;;
2433 m68* ) machine=sun3 ;;
2434 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2435 i[3456]86-*-* ) machine=intel386 ;;
2436 powerpcle* ) machine=powerpcle ;;
2437 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2438 sparc* ) machine=sparc ;;
2439 * ) unported=yes ;;
2440 esac
2441 case "${canonical}" in
2442 ## The Sun386 didn't get past 4.0.
2443 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2444 *-sunos4.0* ) opsys=sunos4-0 ;;
2445 *-sunos4.1.[3-9]*noshare )
2446 ## This name is sunos413 instead of sunos4-1-3
2447 ## to avoid a file name conflict on MSDOS.
2448 opsys=sunos413
2449 NON_GNU_CPP=/usr/lib/cpp
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2452 ;;
2453 *-sunos4.1.[3-9]* | *-sunos4shr*)
2454 opsys=sunos4shr
2455 NON_GNU_CPP=/usr/lib/cpp
2456 ;;
2457 *-sunos4* | *-sunos )
2458 opsys=sunos4-1
2459 NON_GCC_TEST_OPTIONS=-Bstatic
2460 GCC_TEST_OPTIONS=-static
2461 ;;
2462 *-sunos5.3* | *-solaris2.3* )
2463 opsys=sol2-3
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 ;;
2466 *-sunos5.4* | *-solaris2.4* )
2467 opsys=sol2-4
2468 NON_GNU_CPP=/usr/ccs/lib/cpp
2469 RANLIB="ar -ts"
2470 ;;
2471 *-sunos5.5* | *-solaris2.5* )
2472 opsys=sol2-5
2473 NON_GNU_CPP=/usr/ccs/lib/cpp
2474 RANLIB="ar -ts"
2475 ;;
2476 *-sunos5.6* | *-solaris2.6* )
2477 opsys=sol2-6
2478 NON_GNU_CPP=/usr/ccs/lib/cpp
2479 RANLIB="ar -ts"
2480 ;;
2481 *-sunos5* | *-solaris* )
2482 opsys=sol2-6
2483 NON_GNU_CPP=/usr/ccs/lib/cpp
2484 ;;
2485 * ) opsys=bsd4-2 ;;
2486 esac
2487 ## Watch out for a compiler that we know will not work.
2488 case "${canonical}" in
2489 *-solaris* | *-sunos5* )
2490 if [ "x$CC" = x/usr/ucb/cc ]; then
2491 ## /usr/ucb/cc doesn't work;
2492 ## we should find some other compiler that does work.
2493 unset CC
2494 fi
2495 ;;
2496 *) ;;
2497 esac
2498 ;;
2499 sparc-*-nextstep* )
2500 machine=sparc opsys=nextstep
2501 ;;
2502
2503 ## Tadpole 68k
2504 m68*-tadpole-sysv* )
2505 machine=tad68k opsys=usg5-3
2506 ;;
2507
2508 ## Tahoe machines
2509 tahoe-tahoe-bsd4.2* )
2510 machine=tahoe opsys=bsd4-2
2511 ;;
2512 tahoe-tahoe-bsd4.3* )
2513 machine=tahoe opsys=bsd4-3
2514 ;;
2515
2516 ## Tandem Integrity S2
2517 mips-tandem-sysv* )
2518 machine=tandem-s2 opsys=usg5-3
2519 ;;
2520
2521 ## Tektronix XD88
2522 m88k-tektronix-sysv3* )
2523 machine=tekxd88 opsys=usg5-3
2524 ;;
2525
2526 ## Tektronix 16000 box (6130?)
2527 ns16k-tektronix-bsd* )
2528 machine=ns16000 opsys=bsd4-2
2529 ;;
2530 ## Tektronix 4300
2531 ## src/m/tek4300.h hints that this is a m68k machine.
2532 m68*-tektronix-bsd* )
2533 machine=tek4300 opsys=bsd4-3
2534 ;;
2535
2536 ## Titan P2 or P3
2537 ## We seem to have lost the machine-description file titan.h!
2538 titan-titan-sysv* )
2539 machine=titan opsys=usg5-3
2540 ;;
2541
2542 ## Ustation E30 (SS5E)
2543 m68*-unisys-uniplus* )
2544 machine=ustation opsystem=unipl5-2
2545 ;;
2546
2547 ## Vaxen.
2548 vax-dec-* )
2549 machine=vax
2550 case "${canonical}" in
2551 *-bsd4.1* ) opsys=bsd4-1 ;;
2552 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2553 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2554 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2555 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2556 *-vms* ) opsys=vms ;;
2557 * ) unported=yes
2558 esac
2559 ;;
2560
2561 ## Whitechapel MG1
2562 ns16k-whitechapel-* )
2563 machine=mg1
2564 ## We don't know what sort of OS runs on these; we'll let the
2565 ## operating system guessing code below try.
2566 ;;
2567
2568 ## Wicat
2569 m68*-wicat-sysv* )
2570 machine=wicat opsys=usg5-2
2571 ;;
2572
2573 ## IA-64
2574 ia64*-*-linux* )
2575 machine=ia64 opsys=gnu-linux
2576 ;;
2577
2578 ## Intel 386 machines where we don't care about the manufacturer
2579 i[3456]86-*-* )
2580 machine=intel386
2581 case "${canonical}" in
2582 *-cygwin ) opsys=cygwin ;;
2583 *-darwin* ) opsys=darwin
2584 CPP="${CC-cc} -E -no-cpp-precomp"
2585 ;;
2586 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2587 *-isc2.2* ) opsys=isc2-2 ;;
2588 *-isc4.0* ) opsys=isc4-0 ;;
2589 *-isc4.* ) opsys=isc4-1
2590 GCC_TEST_OPTIONS=-posix
2591 NON_GCC_TEST_OPTIONS=-Xp
2592 ;;
2593 *-isc* ) opsys=isc3-0 ;;
2594 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2595 *-esix* ) opsys=esix ;;
2596 *-xenix* ) opsys=xenix ;;
2597 *-linux-gnu* ) opsys=gnu-linux ;;
2598 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2599 *-sco3.2v5* ) opsys=sco5
2600 NON_GNU_CPP=/lib/cpp
2601 # Prevent -belf from being passed to $CPP.
2602 # /lib/cpp does not accept it.
2603 OVERRIDE_CPPFLAGS=" "
2604 ;;
2605 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2606 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 *-386bsd* ) opsys=386bsd ;;
2609 *-nextstep* ) opsys=nextstep ;;
2610 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2611 esac
2612 ;;
2613
2614 ## m68k Linux-based GNU system
2615 m68k-*-linux-gnu* )
2616 machine=m68k opsys=gnu-linux
2617 ;;
2618
2619 ## Mips Linux-based GNU system
2620 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2621 machine=mips opsys=gnu-linux
2622 ;;
2623
2624 ## UXP/DS
2625 sparc-fujitsu-sysv4* )
2626 machine=sparc opsys=uxpds
2627 NON_GNU_CPP=/usr/ccs/lib/cpp
2628 RANLIB="ar -ts"
2629 ;;
2630
2631 ## UXP/V
2632 f301-fujitsu-uxpv4.1)
2633 machine=f301 opsys=uxpv
2634 ;;
2635
2636 ## Darwin / Mac OS X
2637 powerpc-apple-darwin* )
2638 machine=powermac opsys=darwin
2639 # Define CPP as follows to make autoconf work correctly.
2640 CPP="${CC-cc} -E -no-cpp-precomp"
2641 # Use fink packages if available.
2642 if test -d /sw/include && test -d /sw/lib; then
2643 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2644 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2645 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2646 fi
2647 ;;
2648
2649 ## AMD x86-64 Linux-based GNU system
2650 x86_64-*-linux-gnu* )
2651 machine=amdx86-64 opsys=gnu-linux
2652 ;;
2653
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658
2659 ### If the code above didn't choose an operating system, just choose
2660 ### an operating system based on the configuration name. You really
2661 ### only want to use this when you have no idea what the right
2662 ### operating system is; if you know what operating systems a machine
2663 ### runs, it's cleaner to make it explicit in the case statement
2664 ### above.
2665 if test x"${opsys}" = x; then
2666 case "${canonical}" in
2667 *-gnu* ) opsys=gnu ;;
2668 *-bsd4.[01] ) opsys=bsd4-1 ;;
2669 *-bsd4.2 ) opsys=bsd4-2 ;;
2670 *-bsd4.3 ) opsys=bsd4-3 ;;
2671 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2672 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2673 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2674 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2675 *-sysv4.2uw* ) opsys=unixware ;;
2676 *-sysv5uw* ) opsys=unixware ;;
2677 *-sysv5OpenUNIX* ) opsys=unixware ;;
2678 *-sysv4.1* | *-sysvr4.1* )
2679 NON_GNU_CPP=/usr/lib/cpp
2680 opsys=usg5-4 ;;
2681 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2682 if [ x$NON_GNU_CPP = x ]; then
2683 if [ -f /usr/ccs/lib/cpp ]; then
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 else
2686 NON_GNU_CPP=/lib/cpp
2687 fi
2688 fi
2689 opsys=usg5-4-2 ;;
2690 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2691 * )
2692 unported=yes
2693 ;;
2694 esac
2695 fi
2696
2697
2698
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2705 fi
2706
2707 machfile="m/${machine}.h"
2708 opsysfile="s/${opsys}.h"
2709
2710
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified=yes
2713
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS="$CFLAGS"
2716
2717 case ${with_gcc} in
2718 "yes" ) CC="gcc" GCC=yes ;;
2719 "no" ) : ${CC=cc} ;;
2720 * )
2721 esac
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2761 fi
2762
2763 fi
2764 if test -z "$ac_cv_prog_CC"; then
2765 ac_ct_CC=$CC
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801 CC=$ac_ct_CC
2802 else
2803 CC="$ac_cv_prog_CC"
2804 fi
2805
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843 fi
2844 if test -z "$ac_cv_prog_CC"; then
2845 ac_ct_CC=$CC
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869
2870 fi
2871 fi
2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875 echo "${ECHO_T}$ac_ct_CC" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879 fi
2880
2881 CC=$ac_ct_CC
2882 else
2883 CC="$ac_cv_prog_CC"
2884 fi
2885
2886 fi
2887 if test -z "$CC"; then
2888 # Extract the first word of "cc", so it can be a program name with args.
2889 set dummy cc; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 ac_prog_rejected=no
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907 ac_prog_rejected=yes
2908 continue
2909 fi
2910 ac_cv_prog_CC="cc"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy $ac_cv_prog_CC
2920 shift
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2925 shift
2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 fi
2928 fi
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 echo "$as_me:$LINENO: result: $CC" >&5
2934 echo "${ECHO_T}$CC" >&6
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2938 fi
2939
2940 fi
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6
2975 else
2976 echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6
2978 fi
2979
2980 test -n "$CC" && break
2981 done
2982 fi
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3016 echo "${ECHO_T}$ac_ct_CC" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3020 fi
3021
3022 test -n "$ac_ct_CC" && break
3023 done
3024
3025 CC=$ac_ct_CC
3026 fi
3027
3028 fi
3029
3030
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3036
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO:" \
3039 "checking for C compiler version" >&5
3040 ac_compiler=`set X $ac_compile; echo $2`
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042 (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052 (eval $ac_compiler -V </dev/null >&5) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3056
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063
3064 int
3065 main ()
3066 {
3067
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3078 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3081 (eval $ac_link_default) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # Find the output, starting from the most likely. This scheme is
3086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3087 # resort.
3088
3089 # Be careful to initialize this variable, since it used to be cached.
3090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3091 ac_cv_exeext=
3092 # b.out is created by i960 compilers.
3093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3094 do
3095 test -f "$ac_file" || continue
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3098 ;;
3099 conftest.$ac_ext )
3100 # This is the source file.
3101 ;;
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
3107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # FIXME: I believe we export ac_cv_exeext for Libtool,
3109 # but it would be cool to find out if it's true. Does anybody
3110 # maintain Libtool? --akim.
3111 export ac_cv_exeext
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&2;}
3125 { (exit 77); exit 77; }; }
3126 fi
3127
3128 ac_exeext=$ac_cv_exeext
3129 echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6
3131
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try='./$ac_file'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3157 fi
3158 fi
3159 fi
3160 echo "$as_me:$LINENO: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3162
3163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3164 ac_clean_files=$ac_clean_files_save
3165 # Check the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3170 echo "${ECHO_T}$cross_compiling" >&6
3171
3172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3182 # `rm'.
3183 for ac_file in conftest.exe conftest conftest.*; do
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 export ac_cv_exeext
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3199 fi
3200
3201 rm -f conftest$ac_cv_exeext
3202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203 echo "${ECHO_T}$ac_cv_exeext" >&6
3204
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3210 if test "${ac_cv_objext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.o conftest.obj
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 break;;
3239 esac
3240 done
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3250 fi
3251
3252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255 echo "${ECHO_T}$ac_cv_objext" >&6
3256 OBJEXT=$ac_cv_objext
3257 ac_objext=$OBJEXT
3258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269
3270 int
3271 main ()
3272 {
3273 #ifndef __GNUC__
3274 choke me
3275 #endif
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_compiler_gnu=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 ac_compiler_gnu=no
3309 fi
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3316 GCC=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CFLAGS=${CFLAGS+set}
3318 ac_save_CFLAGS=$CFLAGS
3319 CFLAGS="-g"
3320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_g=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 ac_cv_prog_cc_g=no
3368 fi
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370 fi
3371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3380 fi
3381 else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3386 fi
3387 fi
3388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 ac_cv_prog_cc_stdc=no
3394 ac_save_CC=$CC
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <stdarg.h>
3402 #include <stdio.h>
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3409 char **p;
3410 int i;
3411 {
3412 return p[i];
3413 }
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3415 {
3416 char *s;
3417 va_list v;
3418 va_start (v,p);
3419 s = g (p, va_arg (v,int));
3420 va_end (v);
3421 return s;
3422 }
3423
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std1 is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std1. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3439 int
3440 main ()
3441 {
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 # Don't try gcc -ansi; that turns off useful extensions and
3448 # breaks some systems' header files.
3449 # AIX -qlanglvl=ansi
3450 # Ultrix and OSF/1 -std1
3451 # HP-UX 10.20 and later -Ae
3452 # HP-UX older versions -Aa -D_HPUX_SOURCE
3453 # SVR4 -Xc -D__EXTENSIONS__
3454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3455 do
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_stdc=$ac_arg
3480 break
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 fi
3486 rm -f conftest.err conftest.$ac_objext
3487 done
3488 rm -f conftest.$ac_ext conftest.$ac_objext
3489 CC=$ac_save_CC
3490
3491 fi
3492
3493 case "x$ac_cv_prog_cc_stdc" in
3494 x|xno)
3495 echo "$as_me:$LINENO: result: none needed" >&5
3496 echo "${ECHO_T}none needed" >&6 ;;
3497 *)
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3500 CC="$CC $ac_cv_prog_cc_stdc" ;;
3501 esac
3502
3503 # Some people use a C++ compiler to compile C. Since we use `exit',
3504 # in C++ we need to declare it. In case someone uses the same compiler
3505 # for both compiling C and C++ we need to have the C++ compiler decide
3506 # the declaration of exit, since it's the most demanding environment.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #ifndef __cplusplus
3509 choke me
3510 #endif
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 for ac_declaration in \
3535 '' \
3536 'extern "C" void std::exit (int) throw (); using std::exit;' \
3537 'extern "C" void std::exit (int); using std::exit;' \
3538 'extern "C" void exit (int) throw ();' \
3539 'extern "C" void exit (int);' \
3540 'void exit (int);'
3541 do
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 $ac_declaration
3549 #include <stdlib.h>
3550 int
3551 main ()
3552 {
3553 exit (42);
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 :
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 continue
3586 fi
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 $ac_declaration
3595 int
3596 main ()
3597 {
3598 exit (42);
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 break
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 fi
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 done
3633 rm -f conftest*
3634 if test -n "$ac_declaration"; then
3635 echo '#ifdef __cplusplus' >>confdefs.h
3636 echo $ac_declaration >>confdefs.h
3637 echo '#endif' >>confdefs.h
3638 fi
3639
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3656 fi
3657
3658 #### Some systems specify a CPP to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3662 then
3663 CPP="$NON_GNU_CPP"
3664 fi
3665
3666 #### Some systems specify a CC to use unless we are using GCC.
3667 #### Now that we know whether we are using GCC, we can decide whether
3668 #### to use that one.
3669 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3670 test x$cc_specified != xyes
3671 then
3672 CC="$NON_GNU_CC"
3673 fi
3674
3675 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3676 then
3677 CC="$CC $GCC_TEST_OPTIONS"
3678 fi
3679
3680 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3681 then
3682 CC="$CC $NON_GCC_TEST_OPTIONS"
3683 fi
3684
3685
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3693 # On Suns, sometimes $CPP names a directory.
3694 if test -n "$CPP" && test -d "$CPP"; then
3695 CPP=
3696 fi
3697 if test -z "$CPP"; then
3698 if test "${ac_cv_prog_CPP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 # Double quotes because CPP needs to be expanded
3702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3703 do
3704 ac_preproc_ok=false
3705 for ac_c_preproc_warn_flag in '' yes
3706 do
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3739 fi
3740 else
3741 ac_cpp_err=yes
3742 fi
3743 if test -z "$ac_cpp_err"; then
3744 :
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 # Broken: fails on valid input.
3750 continue
3751 fi
3752 rm -f conftest.err conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether non-existent headers
3755 # can be detected and how.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3763 _ACEOF
3764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev/null; then
3772 if test -s conftest.err; then
3773 ac_cpp_err=$ac_c_preproc_warn_flag
3774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3775 else
3776 ac_cpp_err=
3777 fi
3778 else
3779 ac_cpp_err=yes
3780 fi
3781 if test -z "$ac_cpp_err"; then
3782 # Broken: success on invalid input.
3783 continue
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 # Passes both tests.
3789 ac_preproc_ok=:
3790 break
3791 fi
3792 rm -f conftest.err conftest.$ac_ext
3793
3794 done
3795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796 rm -f conftest.err conftest.$ac_ext
3797 if $ac_preproc_ok; then
3798 break
3799 fi
3800
3801 done
3802 ac_cv_prog_CPP=$CPP
3803
3804 fi
3805 CPP=$ac_cv_prog_CPP
3806 else
3807 ac_cv_prog_CPP=$CPP
3808 fi
3809 echo "$as_me:$LINENO: result: $CPP" >&5
3810 echo "${ECHO_T}$CPP" >&6
3811 ac_preproc_ok=false
3812 for ac_c_preproc_warn_flag in '' yes
3813 do
3814 # Use a header file that comes with gcc, so configuring glibc
3815 # with a fresh cross-compiler works.
3816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 # <limits.h> exists even on freestanding compilers.
3818 # On the NeXT, cc -E runs the code through the compiler's parser,
3819 # not just through cpp. "Syntax error" is here to catch this case.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #ifdef __STDC__
3827 # include <limits.h>
3828 #else
3829 # include <assert.h>
3830 #endif
3831 Syntax error
3832 _ACEOF
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 else
3845 ac_cpp_err=
3846 fi
3847 else
3848 ac_cpp_err=yes
3849 fi
3850 if test -z "$ac_cpp_err"; then
3851 :
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 # Broken: fails on valid input.
3857 continue
3858 fi
3859 rm -f conftest.err conftest.$ac_ext
3860
3861 # OK, works on sane cases. Now check whether non-existent headers
3862 # can be detected and how.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3870 _ACEOF
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev/null; then
3879 if test -s conftest.err; then
3880 ac_cpp_err=$ac_c_preproc_warn_flag
3881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3882 else
3883 ac_cpp_err=
3884 fi
3885 else
3886 ac_cpp_err=yes
3887 fi
3888 if test -z "$ac_cpp_err"; then
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 # Passes both tests.
3896 ac_preproc_ok=:
3897 break
3898 fi
3899 rm -f conftest.err conftest.$ac_ext
3900
3901 done
3902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903 rm -f conftest.err conftest.$ac_ext
3904 if $ac_preproc_ok; then
3905 :
3906 else
3907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3929 fi
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3934
3935
3936
3937 echo "$as_me:$LINENO: checking for AIX" >&5
3938 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #ifdef _AIX
3946 yes
3947 #endif
3948
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev/null 2>&1; then
3952 echo "$as_me:$LINENO: result: yes" >&5
3953 echo "${ECHO_T}yes" >&6
3954 cat >>confdefs.h <<\_ACEOF
3955 #define _ALL_SOURCE 1
3956 _ACEOF
3957
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962 rm -f conftest*
3963
3964
3965
3966 cat >>confdefs.h <<\_ACEOF
3967 #define _GNU_SOURCE 1
3968 _ACEOF
3969
3970
3971
3972 ### Use -Wno-pointer-sign if the compiler supports it
3973 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3974 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3975 SAVE_CFLAGS="$CFLAGS"
3976 CFLAGS="$CFLAGS -Wno-pointer-sign"
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983
3984 int
3985 main ()
3986 {
3987
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 has_option=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 has_option=no
4020 fi
4021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 if test $has_option = yes; then
4023 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4024 fi
4025 echo "$as_me:$LINENO: result: $has_option" >&5
4026 echo "${ECHO_T}$has_option" >&6
4027 CFLAGS="$SAVE_CFLAGS"
4028 unset has_option
4029 unset SAVE_CFLAGS
4030
4031 #### Some other nice autoconf tests.
4032
4033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4035 LN_S=$as_ln_s
4036 if test "$LN_S" = "ln -s"; then
4037 echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041 echo "${ECHO_T}no, using $LN_S" >&6
4042 fi
4043
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4053 CPP=
4054 fi
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 # Double quotes because CPP needs to be expanded
4060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 do
4062 ac_preproc_ok=false
4063 for ac_c_preproc_warn_flag in '' yes
4064 do
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #ifdef __STDC__
4078 # include <limits.h>
4079 #else
4080 # include <assert.h>
4081 #endif
4082 Syntax error
4083 _ACEOF
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098 else
4099 ac_cpp_err=yes
4100 fi
4101 if test -z "$ac_cpp_err"; then
4102 :
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 # Broken: fails on valid input.
4108 continue
4109 fi
4110 rm -f conftest.err conftest.$ac_ext
4111
4112 # OK, works on sane cases. Now check whether non-existent headers
4113 # can be detected and how.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null; then
4130 if test -s conftest.err; then
4131 ac_cpp_err=$ac_c_preproc_warn_flag
4132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4133 else
4134 ac_cpp_err=
4135 fi
4136 else
4137 ac_cpp_err=yes
4138 fi
4139 if test -z "$ac_cpp_err"; then
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4149 fi
4150 rm -f conftest.err conftest.$ac_ext
4151
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then
4156 break
4157 fi
4158
4159 done
4160 ac_cv_prog_CPP=$CPP
4161
4162 fi
4163 CPP=$ac_cv_prog_CPP
4164 else
4165 ac_cv_prog_CPP=$CPP
4166 fi
4167 echo "$as_me:$LINENO: result: $CPP" >&5
4168 echo "${ECHO_T}$CPP" >&6
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4171 do
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189 Syntax error
4190 _ACEOF
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4204 fi
4205 else
4206 ac_cpp_err=yes
4207 fi
4208 if test -z "$ac_cpp_err"; then
4209 :
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # Broken: fails on valid input.
4215 continue
4216 fi
4217 rm -f conftest.err conftest.$ac_ext
4218
4219 # OK, works on sane cases. Now check whether non-existent headers
4220 # can be detected and how.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev/null; then
4237 if test -s conftest.err; then
4238 ac_cpp_err=$ac_c_preproc_warn_flag
4239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4240 else
4241 ac_cpp_err=
4242 fi
4243 else
4244 ac_cpp_err=yes
4245 fi
4246 if test -z "$ac_cpp_err"; then
4247 # Broken: success on invalid input.
4248 continue
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4263 :
4264 else
4265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4266 See \`config.log' for more details." >&5
4267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&2;}
4269 { (exit 1); exit 1; }; }
4270 fi
4271
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278 # Find a good install program. We prefer a C program (faster),
4279 # so one script is as good as another. But avoid the broken or
4280 # incompatible versions:
4281 # SysV /etc/install, /usr/sbin/install
4282 # SunOS /usr/etc/install
4283 # IRIX /sbin/install
4284 # AIX /bin/install
4285 # AmigaOS /C/install, which installs bootblocks on floppy discs
4286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4289 # OS/2's system install, which has a completely different semantic
4290 # ./install, which can be erroneously created by make from ./install.sh.
4291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4293 if test -z "$INSTALL"; then
4294 if test "${ac_cv_path_install+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 # Account for people who put trailing slashes in PATH elements.
4303 case $as_dir/ in
4304 ./ | .// | /cC/* | \
4305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4307 /usr/ucb/* ) ;;
4308 *)
4309 # OSF1 and SCO ODT 3.0 have their own names for install.
4310 # Don't use installbsd from OSF since it installs stuff as root
4311 # by default.
4312 for ac_prog in ginstall scoinst install; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315 if test $ac_prog = install &&
4316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # AIX install. It has an incompatible calling convention.
4318 :
4319 elif test $ac_prog = install &&
4320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4321 # program-specific install script used by HP pwplus--don't use.
4322 :
4323 else
4324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4325 break 3
4326 fi
4327 fi
4328 done
4329 done
4330 ;;
4331 esac
4332 done
4333
4334
4335 fi
4336 if test "${ac_cv_path_install+set}" = set; then
4337 INSTALL=$ac_cv_path_install
4338 else
4339 # As a last resort, use the slow shell script. We don't cache a
4340 # path for INSTALL within a source directory, because that will
4341 # break other packages using the cache if that directory is
4342 # removed, or if the path is relative.
4343 INSTALL=$ac_install_sh
4344 fi
4345 fi
4346 echo "$as_me:$LINENO: result: $INSTALL" >&5
4347 echo "${ECHO_T}$INSTALL" >&6
4348
4349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4350 # It thinks the first close brace ends the variable substitution.
4351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4352
4353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4354
4355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4356
4357 if test "x$RANLIB" = x; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382
4383 fi
4384 fi
4385 RANLIB=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387 echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4389 else
4390 echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392 fi
4393
4394 fi
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 ac_ct_RANLIB=$RANLIB
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib; ac_word=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$ac_ct_RANLIB"; then
4405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_RANLIB="ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420
4421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4422 fi
4423 fi
4424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433 RANLIB=$ac_ct_RANLIB
4434 else
4435 RANLIB="$ac_cv_prog_RANLIB"
4436 fi
4437
4438 fi
4439 # Extract the first word of "install-info", so it can be a program name with args.
4440 set dummy install-info; ac_word=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 case $INSTALL_INFO in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4449 ;;
4450 *)
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464
4465 ;;
4466 esac
4467 fi
4468 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4469
4470 if test -n "$INSTALL_INFO"; then
4471 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4472 echo "${ECHO_T}$INSTALL_INFO" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4476 fi
4477
4478 # Extract the first word of "install-info", so it can be a program name with args.
4479 set dummy install-info; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 case $INSTALL_INFO in
4486 [\\/]* | ?:[\\/]*)
4487 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4488 ;;
4489 *)
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in /usr/sbin
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503
4504 ;;
4505 esac
4506 fi
4507 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4508
4509 if test -n "$INSTALL_INFO"; then
4510 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4511 echo "${ECHO_T}$INSTALL_INFO" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 # Extract the first word of "install-info", so it can be a program name with args.
4518 set dummy install-info; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 case $INSTALL_INFO in
4525 [\\/]* | ?:[\\/]*)
4526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4527 ;;
4528 *)
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in /sbin
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542
4543 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4544 ;;
4545 esac
4546 fi
4547 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4548
4549 if test -n "$INSTALL_INFO"; then
4550 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4551 echo "${ECHO_T}$INSTALL_INFO" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557 # Extract the first word of "gzip", so it can be a program name with args.
4558 set dummy gzip; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 case $GZIP_PROG in
4565 [\\/]* | ?:[\\/]*)
4566 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4567 ;;
4568 *)
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580 done
4581 done
4582
4583 ;;
4584 esac
4585 fi
4586 GZIP_PROG=$ac_cv_path_GZIP_PROG
4587
4588 if test -n "$GZIP_PROG"; then
4589 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4590 echo "${ECHO_T}$GZIP_PROG" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596
4597
4598 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4599 then
4600 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4601 fi
4602
4603 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4604 then
4605 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4606 fi
4607
4608
4609 late_LDFLAGS=$LDFLAGS
4610 if test "$GCC" = yes; then
4611 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4612 else
4613 LDFLAGS="$LDFLAGS -znocombreloc"
4614 fi
4615
4616 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4617 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4619 main(){return 0;}
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644 echo "${ECHO_T}yes" >&6
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 LDFLAGS=$late_LDFLAGS
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653 rm -f conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655
4656 #### Extract some information from the operating system and machine files.
4657
4658 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4659 - which libraries the lib-src programs will want, and
4660 - whether the GNU malloc routines are usable..." >&5
4661 echo "$as_me: checking the machine- and system-dependent files to find out
4662 - which libraries the lib-src programs will want, and
4663 - whether the GNU malloc routines are usable..." >&6;}
4664
4665 ### First figure out CFLAGS (which we use for running the compiler here)
4666 ### and REAL_CFLAGS (which we use for real compilation).
4667 ### The two are the same except on a few systems, where they are made
4668 ### different to work around various lossages. For example,
4669 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4670 ### as implying static linking.
4671
4672 ### If the CFLAGS env var is specified, we use that value
4673 ### instead of the default.
4674
4675 ### It's not important that this name contain the PID; you can't run
4676 ### two configures in the same directory and have anything work
4677 ### anyway.
4678 tempcname="conftest.c"
4679
4680 echo '
4681 #include "'${srcdir}'/src/'${opsysfile}'"
4682 #include "'${srcdir}'/src/'${machfile}'"
4683 #ifndef LIBS_MACHINE
4684 #define LIBS_MACHINE
4685 #endif
4686 #ifndef LIBS_SYSTEM
4687 #define LIBS_SYSTEM
4688 #endif
4689 #ifndef C_SWITCH_SYSTEM
4690 #define C_SWITCH_SYSTEM
4691 #endif
4692 #ifndef C_SWITCH_MACHINE
4693 #define C_SWITCH_MACHINE
4694 #endif
4695 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4696 configure___ c_switch_system=C_SWITCH_SYSTEM
4697 configure___ c_switch_machine=C_SWITCH_MACHINE
4698
4699 #ifndef LIB_X11_LIB
4700 #define LIB_X11_LIB -lX11
4701 #endif
4702
4703 #ifndef LIBX11_MACHINE
4704 #define LIBX11_MACHINE
4705 #endif
4706
4707 #ifndef LIBX11_SYSTEM
4708 #define LIBX11_SYSTEM
4709 #endif
4710 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4711
4712 #ifdef UNEXEC
4713 configure___ unexec=UNEXEC
4714 #else
4715 configure___ unexec=unexec.o
4716 #endif
4717
4718 #ifdef SYSTEM_MALLOC
4719 configure___ system_malloc=yes
4720 #else
4721 configure___ system_malloc=no
4722 #endif
4723
4724 #ifdef USE_MMAP_FOR_BUFFERS
4725 configure___ use_mmap_for_buffers=yes
4726 #else
4727 configure___ use_mmap_for_buffers=no
4728 #endif
4729
4730 #ifndef C_DEBUG_SWITCH
4731 #define C_DEBUG_SWITCH -g
4732 #endif
4733
4734 #ifndef C_OPTIMIZE_SWITCH
4735 #ifdef __GNUC__
4736 #define C_OPTIMIZE_SWITCH -O2
4737 #else
4738 #define C_OPTIMIZE_SWITCH -O
4739 #endif
4740 #endif
4741
4742 #ifndef C_WARNINGS_SWITCH
4743 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4744 #endif
4745
4746 #ifndef LD_SWITCH_MACHINE
4747 #define LD_SWITCH_MACHINE
4748 #endif
4749
4750 #ifndef LD_SWITCH_SYSTEM
4751 #define LD_SWITCH_SYSTEM
4752 #endif
4753
4754 #ifndef LD_SWITCH_X_SITE_AUX
4755 #define LD_SWITCH_X_SITE_AUX
4756 #endif
4757
4758 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4759 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4760
4761 #ifdef THIS_IS_CONFIGURE
4762
4763 /* Get the CFLAGS for tests in configure. */
4764 #ifdef __GNUC__
4765 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else
4767 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4768 #endif
4769
4770 #else /* not THIS_IS_CONFIGURE */
4771
4772 /* Get the CFLAGS for real compilation. */
4773 #ifdef __GNUC__
4774 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4775 #else
4776 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4777 #endif
4778
4779 #endif /* not THIS_IS_CONFIGURE */
4780 ' > ${tempcname}
4781
4782 # The value of CPP is a quoted variable reference, so we need to do this
4783 # to get its actual value...
4784 CPP=`eval "echo $CPP"`
4785 eval `${CPP} -Isrc ${tempcname} \
4786 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 if test "x$SPECIFIED_CFLAGS" = x; then
4788 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4789 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4790 else
4791 REAL_CFLAGS="$CFLAGS"
4792 fi
4793 rm ${tempcname}
4794
4795 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4796
4797 ### Make sure subsequent tests use flags consistent with the build flags.
4798
4799 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4800 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4801 else
4802 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 fi
4804
4805
4806
4807 # Check whether --enable-largefile or --disable-largefile was given.
4808 if test "${enable_largefile+set}" = set; then
4809 enableval="$enable_largefile"
4810
4811 fi;
4812 if test "$enable_largefile" != no; then
4813
4814 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4815 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4816 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 ac_cv_sys_largefile_CC=no
4820 if test "$GCC" != yes; then
4821 ac_save_CC=$CC
4822 while :; do
4823 # IRIX 6.2 and later do not support large files by default,
4824 # so use the C compiler's -n32 option if that helps.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 /* Check that off_t can represent 2**63 - 1 correctly.
4833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4834 since some C++ compilers masquerading as C compilers
4835 incorrectly reject 9223372036854775807. */
4836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4838 && LARGE_OFF_T % 2147483647 == 1)
4839 ? 1 : -1];
4840 int
4841 main ()
4842 {
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 break
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 fi
4876 rm -f conftest.err conftest.$ac_objext
4877 CC="$CC -n32"
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_sys_largefile_CC=' -n32'; break
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 fi
4906 rm -f conftest.err conftest.$ac_objext
4907 break
4908 done
4909 CC=$ac_save_CC
4910 rm -f conftest.$ac_ext
4911 fi
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4915 if test "$ac_cv_sys_largefile_CC" != no; then
4916 CC=$CC$ac_cv_sys_largefile_CC
4917 fi
4918
4919 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 while :; do
4925 ac_cv_sys_file_offset_bits=no
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4940 ? 1 : -1];
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 break
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 fi
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #define _FILE_OFFSET_BITS 64
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
4993 ? 1 : -1];
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_file_offset_bits=64; break
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 fi
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 break
5032 done
5033 fi
5034 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5035 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5036 if test "$ac_cv_sys_file_offset_bits" != no; then
5037
5038 cat >>confdefs.h <<_ACEOF
5039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 _ACEOF
5041
5042 fi
5043 rm -f conftest*
5044 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5045 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5046 if test "${ac_cv_sys_large_files+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 while :; do
5050 ac_cv_sys_large_files=no
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5065 ? 1 : -1];
5066 int
5067 main ()
5068 {
5069
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 break
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 fi
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #define _LARGE_FILES 1
5110 #include <sys/types.h>
5111 /* Check that off_t can represent 2**63 - 1 correctly.
5112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5113 since some C++ compilers masquerading as C compilers
5114 incorrectly reject 9223372036854775807. */
5115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5117 && LARGE_OFF_T % 2147483647 == 1)
5118 ? 1 : -1];
5119 int
5120 main ()
5121 {
5122
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sys_large_files=1; break
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 fi
5155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5156 break
5157 done
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5161 if test "$ac_cv_sys_large_files" != no; then
5162
5163 cat >>confdefs.h <<_ACEOF
5164 #define _LARGE_FILES $ac_cv_sys_large_files
5165 _ACEOF
5166
5167 fi
5168 rm -f conftest*
5169 fi
5170
5171
5172
5173
5174
5175
5176 if test "${with_sound}" != "no"; then
5177 # Sound support for GNU/Linux and the free BSDs.
5178 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5180 if test "${ac_cv_header_stdc+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <stdlib.h>
5190 #include <stdarg.h>
5191 #include <string.h>
5192 #include <float.h>
5193
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_header_stdc=yes
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229 ac_cv_header_stdc=no
5230 fi
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232
5233 if test $ac_cv_header_stdc = yes; then
5234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235 cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h. */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 #include <string.h>
5242
5243 _ACEOF
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245 $EGREP "memchr" >/dev/null 2>&1; then
5246 :
5247 else
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f conftest*
5251
5252 fi
5253
5254 if test $ac_cv_header_stdc = yes; then
5255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <stdlib.h>
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "free" >/dev/null 2>&1; then
5267 :
5268 else
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest*
5272
5273 fi
5274
5275 if test $ac_cv_header_stdc = yes; then
5276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277 if test "$cross_compiling" = yes; then
5278 :
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <ctype.h>
5287 #if ((' ' & 0x0FF) == 0x020)
5288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5290 #else
5291 # define ISLOWER(c) \
5292 (('a' <= (c) && (c) <= 'i') \
5293 || ('j' <= (c) && (c) <= 'r') \
5294 || ('s' <= (c) && (c) <= 'z'))
5295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5296 #endif
5297
5298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5299 int
5300 main ()
5301 {
5302 int i;
5303 for (i = 0; i < 256; i++)
5304 if (XOR (islower (i), ISLOWER (i))
5305 || toupper (i) != TOUPPER (i))
5306 exit(2);
5307 exit (0);
5308 }
5309 _ACEOF
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 :
5322 else
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 ac_cv_header_stdc=no
5329 fi
5330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 fi
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5335 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5336 if test $ac_cv_header_stdc = yes; then
5337
5338 cat >>confdefs.h <<\_ACEOF
5339 #define STDC_HEADERS 1
5340 _ACEOF
5341
5342 fi
5343
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355 inttypes.h stdint.h unistd.h
5356 do
5357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370
5371 #include <$ac_header>
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 eval "$as_ac_Header=yes"
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5399
5400 eval "$as_ac_Header=no"
5401 fi
5402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5403 fi
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407 cat >>confdefs.h <<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 _ACEOF
5410
5411 fi
5412
5413 done
5414
5415
5416
5417
5418
5419 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5420 do
5421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 fi
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430 else
5431 # Is the header compilable?
5432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5441 #include <$ac_header>
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
5452 { ac_try='test -z "$ac_c_werror_flag"
5453 || test ! -s conftest.err'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; } &&
5459 { ac_try='test -s conftest.$ac_objext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_header_compiler=yes
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_header_compiler=no
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 echo "${ECHO_T}$ac_header_compiler" >&6
5475
5476 # Is the header present?
5477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 #include <$ac_header>
5486 _ACEOF
5487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev/null; then
5495 if test -s conftest.err; then
5496 ac_cpp_err=$ac_c_preproc_warn_flag
5497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 else
5499 ac_cpp_err=
5500 fi
5501 else
5502 ac_cpp_err=yes
5503 fi
5504 if test -z "$ac_cpp_err"; then
5505 ac_header_preproc=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_header_preproc=no
5511 fi
5512 rm -f conftest.err conftest.$ac_ext
5513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 echo "${ECHO_T}$ac_header_preproc" >&6
5515
5516 # So? What about this header?
5517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5518 yes:no: )
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 ac_header_preproc=yes
5524 ;;
5525 no:yes:* )
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5538 (
5539 cat <<\_ASBOX
5540 ## ------------------------------------------ ##
5541 ## Report this to the AC_PACKAGE_NAME lists. ##
5542 ## ------------------------------------------ ##
5543 _ASBOX
5544 ) |
5545 sed "s/^/$as_me: WARNING: /" >&2
5546 ;;
5547 esac
5548 echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 eval "$as_ac_Header=\$ac_header_preproc"
5554 fi
5555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557
5558 fi
5559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 _ACEOF
5563
5564 fi
5565
5566 done
5567
5568 # Emulation library used on NetBSD.
5569 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5570 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5571 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 ac_check_lib_save_LIBS=$LIBS
5575 LIBS="-lossaudio $LIBS"
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582
5583 /* Override any gcc2 internal prototype to avoid an error. */
5584 #ifdef __cplusplus
5585 extern "C"
5586 #endif
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5589 char _oss_ioctl ();
5590 int
5591 main ()
5592 {
5593 _oss_ioctl ();
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_lib_ossaudio__oss_ioctl=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ac_cv_lib_ossaudio__oss_ioctl=no
5626 fi
5627 rm -f conftest.err conftest.$ac_objext \
5628 conftest$ac_exeext conftest.$ac_ext
5629 LIBS=$ac_check_lib_save_LIBS
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5632 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5633 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5634 LIBSOUND=-lossaudio
5635 else
5636 LIBSOUND=
5637 fi
5638
5639
5640
5641 ALSA_REQUIRED=1.0.0
5642 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5643 if test "X${with_pkg_config_prog}" != X; then
5644 PKG_CONFIG="${with_pkg_config_prog}"
5645 fi
5646
5647 succeeded=no
5648
5649 if test -z "$PKG_CONFIG"; then
5650 # Extract the first word of "pkg-config", so it can be a program name with args.
5651 set dummy pkg-config; ac_word=$2
5652 echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 case $PKG_CONFIG in
5658 [\\/]* | ?:[\\/]*)
5659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5660 ;;
5661 *)
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675
5676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5677 ;;
5678 esac
5679 fi
5680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5681
5682 if test -n "$PKG_CONFIG"; then
5683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5684 echo "${ECHO_T}$PKG_CONFIG" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688 fi
5689
5690 fi
5691
5692 if test "$PKG_CONFIG" = "no" ; then
5693 HAVE_ALSA=no
5694 else
5695 PKG_CONFIG_MIN_VERSION=0.9.0
5696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5697 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5698 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5699
5700 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5701 echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5703 succeeded=yes
5704
5705 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5706 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5707 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5708 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5709 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5710
5711 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5712 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5713 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5714 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5715 echo "${ECHO_T}$ALSA_LIBS" >&6
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 ALSA_CFLAGS=""
5720 ALSA_LIBS=""
5721 ## If we have a custom action on failure, don't print errors, but
5722 ## do set a variable so people can do so.
5723 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5724
5725 fi
5726
5727
5728
5729 else
5730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5731 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5732 fi
5733 fi
5734
5735 if test $succeeded = yes; then
5736 HAVE_ALSA=yes
5737 else
5738 HAVE_ALSA=no
5739 fi
5740
5741 if test $HAVE_ALSA = yes; then
5742 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5743 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5744
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_ALSA 1
5747 _ACEOF
5748
5749 fi
5750
5751 fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5779 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5780 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5781 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5782 sys/utsname.h pwd.h
5783 do
5784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 fi
5791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5793 else
5794 # Is the header compilable?
5795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <$ac_header>
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_header_compiler=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_header_compiler=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5837 echo "${ECHO_T}$ac_header_compiler" >&6
5838
5839 # Is the header present?
5840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <$ac_header>
5849 _ACEOF
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev/null; then
5858 if test -s conftest.err; then
5859 ac_cpp_err=$ac_c_preproc_warn_flag
5860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5861 else
5862 ac_cpp_err=
5863 fi
5864 else
5865 ac_cpp_err=yes
5866 fi
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_header_preproc=no
5874 fi
5875 rm -f conftest.err conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5877 echo "${ECHO_T}$ac_header_preproc" >&6
5878
5879 # So? What about this header?
5880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5881 yes:no: )
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5886 ac_header_preproc=yes
5887 ;;
5888 no:yes:* )
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5901 (
5902 cat <<\_ASBOX
5903 ## ------------------------------------------ ##
5904 ## Report this to the AC_PACKAGE_NAME lists. ##
5905 ## ------------------------------------------ ##
5906 _ASBOX
5907 ) |
5908 sed "s/^/$as_me: WARNING: /" >&2
5909 ;;
5910 esac
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 eval "$as_ac_Header=\$ac_header_preproc"
5917 fi
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920
5921 fi
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5925 _ACEOF
5926
5927 fi
5928
5929 done
5930
5931
5932 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5933 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/personality.h>
5941 int
5942 main ()
5943 {
5944 personality (PER_LINUX32)
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 emacs_cv_personality_linux32=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 emacs_cv_personality_linux32=no
5977 fi
5978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5980 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5981
5982 if test $emacs_cv_personality_linux32 = yes; then
5983
5984 cat >>confdefs.h <<\_ACEOF
5985 #define HAVE_PERSONALITY_LINUX32 1
5986 _ACEOF
5987
5988 fi
5989
5990
5991 for ac_header in term.h
5992 do
5993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6006 _ACEOF
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null; then
6015 if test -s conftest.err; then
6016 ac_cpp_err=$ac_c_preproc_warn_flag
6017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6018 else
6019 ac_cpp_err=
6020 fi
6021 else
6022 ac_cpp_err=yes
6023 fi
6024 if test -z "$ac_cpp_err"; then
6025 eval "$as_ac_Header=yes"
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 eval "$as_ac_Header=no"
6031 fi
6032 rm -f conftest.err conftest.$ac_ext
6033 fi
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 _ACEOF
6040
6041 fi
6042
6043 done
6044
6045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6047 if test "${ac_cv_header_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <stdlib.h>
6057 #include <stdarg.h>
6058 #include <string.h>
6059 #include <float.h>
6060
6061 int
6062 main ()
6063 {
6064
6065 ;
6066 return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_header_stdc=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_header_stdc=no
6097 fi
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099
6100 if test $ac_cv_header_stdc = yes; then
6101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <string.h>
6109
6110 _ACEOF
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 $EGREP "memchr" >/dev/null 2>&1; then
6113 :
6114 else
6115 ac_cv_header_stdc=no
6116 fi
6117 rm -f conftest*
6118
6119 fi
6120
6121 if test $ac_cv_header_stdc = yes; then
6122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <stdlib.h>
6130
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "free" >/dev/null 2>&1; then
6134 :
6135 else
6136 ac_cv_header_stdc=no
6137 fi
6138 rm -f conftest*
6139
6140 fi
6141
6142 if test $ac_cv_header_stdc = yes; then
6143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6144 if test "$cross_compiling" = yes; then
6145 :
6146 else
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <ctype.h>
6154 #if ((' ' & 0x0FF) == 0x020)
6155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6157 #else
6158 # define ISLOWER(c) \
6159 (('a' <= (c) && (c) <= 'i') \
6160 || ('j' <= (c) && (c) <= 'r') \
6161 || ('s' <= (c) && (c) <= 'z'))
6162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6163 #endif
6164
6165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6166 int
6167 main ()
6168 {
6169 int i;
6170 for (i = 0; i < 256; i++)
6171 if (XOR (islower (i), ISLOWER (i))
6172 || toupper (i) != TOUPPER (i))
6173 exit(2);
6174 exit (0);
6175 }
6176 _ACEOF
6177 rm -f conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 :
6189 else
6190 echo "$as_me: program exited with status $ac_status" >&5
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ( exit $ac_status )
6195 ac_cv_header_stdc=no
6196 fi
6197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6198 fi
6199 fi
6200 fi
6201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6203 if test $ac_cv_header_stdc = yes; then
6204
6205 cat >>confdefs.h <<\_ACEOF
6206 #define STDC_HEADERS 1
6207 _ACEOF
6208
6209 fi
6210
6211 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6212 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6213 if test "${ac_cv_header_time+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <sys/types.h>
6223 #include <sys/time.h>
6224 #include <time.h>
6225
6226 int
6227 main ()
6228 {
6229 if ((struct tm *) 0)
6230 return 0;
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_header_time=yes
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_cv_header_time=no
6263 fi
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6267 echo "${ECHO_T}$ac_cv_header_time" >&6
6268 if test $ac_cv_header_time = yes; then
6269
6270 cat >>confdefs.h <<\_ACEOF
6271 #define TIME_WITH_SYS_TIME 1
6272 _ACEOF
6273
6274 fi
6275
6276 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6277 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6278 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 $ac_includes_default
6288 int
6289 main ()
6290 {
6291 #ifndef sys_siglist
6292 char *p = (char *) sys_siglist;
6293 #endif
6294
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_have_decl_sys_siglist=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_have_decl_sys_siglist=no
6327 fi
6328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329 fi
6330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6331 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6332 if test $ac_cv_have_decl_sys_siglist = yes; then
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_DECL_SYS_SIGLIST 1
6336 _ACEOF
6337
6338
6339 else
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_DECL_SYS_SIGLIST 0
6342 _ACEOF
6343
6344
6345 fi
6346
6347
6348 if test $ac_cv_have_decl_sys_siglist != yes; then
6349 # For Tru64, at least:
6350 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6351 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6352 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 $ac_includes_default
6362 int
6363 main ()
6364 {
6365 #ifndef __sys_siglist
6366 char *p = (char *) __sys_siglist;
6367 #endif
6368
6369 ;
6370 return 0;
6371 }
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_cv_have_decl___sys_siglist=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 ac_cv_have_decl___sys_siglist=no
6401 fi
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6405 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6406 if test $ac_cv_have_decl___sys_siglist = yes; then
6407
6408 cat >>confdefs.h <<_ACEOF
6409 #define HAVE_DECL___SYS_SIGLIST 1
6410 _ACEOF
6411
6412
6413 else
6414 cat >>confdefs.h <<_ACEOF
6415 #define HAVE_DECL___SYS_SIGLIST 0
6416 _ACEOF
6417
6418
6419 fi
6420
6421
6422 if test $ac_cv_have_decl___sys_siglist = yes; then
6423
6424 cat >>confdefs.h <<\_ACEOF
6425 #define sys_siglist __sys_siglist
6426 _ACEOF
6427
6428 fi
6429 fi
6430 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6431 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6432 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6442 #include <sys/wait.h>
6443 #ifndef WEXITSTATUS
6444 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6445 #endif
6446 #ifndef WIFEXITED
6447 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6448 #endif
6449
6450 int
6451 main ()
6452 {
6453 int s;
6454 wait (&s);
6455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_header_sys_wait_h=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 ac_cv_header_sys_wait_h=no
6488 fi
6489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490 fi
6491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6492 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6493 if test $ac_cv_header_sys_wait_h = yes; then
6494
6495 cat >>confdefs.h <<\_ACEOF
6496 #define HAVE_SYS_WAIT_H 1
6497 _ACEOF
6498
6499 fi
6500
6501
6502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6504 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #ifdef TIME_WITH_SYS_TIME
6514 #include <sys/time.h>
6515 #include <time.h>
6516 #else
6517 #ifdef HAVE_SYS_TIME_H
6518 #include <sys/time.h>
6519 #else
6520 #include <time.h>
6521 #endif
6522 #endif
6523 #ifdef HAVE_UTIME_H
6524 #include <utime.h>
6525 #endif
6526 int
6527 main ()
6528 {
6529 static struct utimbuf x; x.actime = x.modtime;
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 emacs_cv_struct_utimbuf=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 emacs_cv_struct_utimbuf=no
6562 fi
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6566 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6567 if test $emacs_cv_struct_utimbuf = yes; then
6568
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_STRUCT_UTIMBUF 1
6571 _ACEOF
6572
6573 fi
6574
6575 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6577 if test "${ac_cv_type_signal+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6587 #include <signal.h>
6588 #ifdef signal
6589 # undef signal
6590 #endif
6591 #ifdef __cplusplus
6592 extern "C" void (*signal (int, void (*)(int)))(int);
6593 #else
6594 void (*signal ()) ();
6595 #endif
6596
6597 int
6598 main ()
6599 {
6600 int i;
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_type_signal=void
6628 else
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 ac_cv_type_signal=int
6633 fi
6634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6637 echo "${ECHO_T}$ac_cv_type_signal" >&6
6638
6639 cat >>confdefs.h <<_ACEOF
6640 #define RETSIGTYPE $ac_cv_type_signal
6641 _ACEOF
6642
6643
6644
6645 echo "$as_me:$LINENO: checking for speed_t" >&5
6646 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6647 if test "${emacs_cv_speed_t+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <termios.h>
6657 int
6658 main ()
6659 {
6660 speed_t x = 1;
6661 ;
6662 return 0;
6663 }
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 emacs_cv_speed_t=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 emacs_cv_speed_t=no
6693 fi
6694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695 fi
6696 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6697 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6698 if test $emacs_cv_speed_t = yes; then
6699
6700 cat >>confdefs.h <<\_ACEOF
6701 #define HAVE_SPEED_T 1
6702 _ACEOF
6703
6704 fi
6705
6706 echo "$as_me:$LINENO: checking for struct timeval" >&5
6707 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6708 if test "${emacs_cv_struct_timeval+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #ifdef TIME_WITH_SYS_TIME
6718 #include <sys/time.h>
6719 #include <time.h>
6720 #else
6721 #ifdef HAVE_SYS_TIME_H
6722 #include <sys/time.h>
6723 #else
6724 #include <time.h>
6725 #endif
6726 #endif
6727 int
6728 main ()
6729 {
6730 static struct timeval x; x.tv_sec = x.tv_usec;
6731 ;
6732 return 0;
6733 }
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 emacs_cv_struct_timeval=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 emacs_cv_struct_timeval=no
6763 fi
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6767 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6768 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6769 if test $emacs_cv_struct_timeval = yes; then
6770
6771 cat >>confdefs.h <<\_ACEOF
6772 #define HAVE_TIMEVAL 1
6773 _ACEOF
6774
6775 fi
6776
6777 echo "$as_me:$LINENO: checking for struct exception" >&5
6778 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6779 if test "${emacs_cv_struct_exception+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <math.h>
6789 int
6790 main ()
6791 {
6792 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 emacs_cv_struct_exception=yes
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 emacs_cv_struct_exception=no
6825 fi
6826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6827 fi
6828 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6829 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6830 HAVE_EXCEPTION=$emacs_cv_struct_exception
6831 if test $emacs_cv_struct_exception != yes; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define NO_MATHERR 1
6835 _ACEOF
6836
6837 fi
6838
6839
6840 for ac_header in sys/socket.h
6841 do
6842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6844 echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 fi
6849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6851 else
6852 # Is the header compilable?
6853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <$ac_header>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_header_compiler=yes
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 ac_header_compiler=no
6892 fi
6893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 echo "${ECHO_T}$ac_header_compiler" >&6
6896
6897 # Is the header present?
6898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6907 _ACEOF
6908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } >/dev/null; then
6916 if test -s conftest.err; then
6917 ac_cpp_err=$ac_c_preproc_warn_flag
6918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6919 else
6920 ac_cpp_err=
6921 fi
6922 else
6923 ac_cpp_err=yes
6924 fi
6925 if test -z "$ac_cpp_err"; then
6926 ac_header_preproc=yes
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ac_header_preproc=no
6932 fi
6933 rm -f conftest.err conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935 echo "${ECHO_T}$ac_header_preproc" >&6
6936
6937 # So? What about this header?
6938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6939 yes:no: )
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944 ac_header_preproc=yes
6945 ;;
6946 no:yes:* )
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6959 (
6960 cat <<\_ASBOX
6961 ## ------------------------------------------ ##
6962 ## Report this to the AC_PACKAGE_NAME lists. ##
6963 ## ------------------------------------------ ##
6964 _ASBOX
6965 ) |
6966 sed "s/^/$as_me: WARNING: /" >&2
6967 ;;
6968 esac
6969 echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 eval "$as_ac_Header=\$ac_header_preproc"
6975 fi
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6978
6979 fi
6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 _ACEOF
6984
6985 fi
6986
6987 done
6988
6989
6990 for ac_header in net/if.h
6991 do
6992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7007 #endif
7008
7009 #include <$ac_header>
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 eval "$as_ac_Header=yes"
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038 eval "$as_ac_Header=no"
7039 fi
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7045 cat >>confdefs.h <<_ACEOF
7046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7047 _ACEOF
7048
7049 fi
7050
7051 done
7052
7053
7054 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7055 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7056 if test "${ac_cv_struct_tm+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7066 #include <time.h>
7067
7068 int
7069 main ()
7070 {
7071 struct tm *tp; tp->tm_sec;
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_struct_tm=time.h
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_struct_tm=sys/time.h
7104 fi
7105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7108 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7109 if test $ac_cv_struct_tm = sys/time.h; then
7110
7111 cat >>confdefs.h <<\_ACEOF
7112 #define TM_IN_SYS_TIME 1
7113 _ACEOF
7114
7115 fi
7116
7117 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7118 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7119 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <$ac_cv_struct_tm>
7130
7131
7132 int
7133 main ()
7134 {
7135 static struct tm ac_aggr;
7136 if (ac_aggr.tm_zone)
7137 return 0;
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 (eval $ac_try) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_member_struct_tm_tm_zone=yes
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <$ac_cv_struct_tm>
7177
7178
7179 int
7180 main ()
7181 {
7182 static struct tm ac_aggr;
7183 if (sizeof ac_aggr.tm_zone)
7184 return 0;
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_member_struct_tm_tm_zone=yes
7212 else
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_cv_member_struct_tm_tm_zone=no
7217 fi
7218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7223 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7224 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define HAVE_STRUCT_TM_TM_ZONE 1
7228 _ACEOF
7229
7230
7231 fi
7232
7233 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7234
7235 cat >>confdefs.h <<\_ACEOF
7236 #define HAVE_TM_ZONE 1
7237 _ACEOF
7238
7239 else
7240 echo "$as_me:$LINENO: checking for tzname" >&5
7241 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7242 if test "${ac_cv_var_tzname+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 #include <time.h>
7252 #ifndef tzname /* For SGI. */
7253 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7254 #endif
7255
7256 int
7257 main ()
7258 {
7259 atoi(*tzname);
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext conftest$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_var_tzname=yes
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 ac_cv_var_tzname=no
7292 fi
7293 rm -f conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
7295 fi
7296 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7297 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7298 if test $ac_cv_var_tzname = yes; then
7299
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_TZNAME 1
7302 _ACEOF
7303
7304 fi
7305 fi
7306
7307 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7308 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7309 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 #include <time.h>
7319
7320 int
7321 main ()
7322 {
7323 static struct tm ac_aggr;
7324 if (ac_aggr.tm_gmtoff)
7325 return 0;
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_member_struct_tm_tm_gmtoff=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 #include <time.h>
7364
7365 int
7366 main ()
7367 {
7368 static struct tm ac_aggr;
7369 if (sizeof ac_aggr.tm_gmtoff)
7370 return 0;
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_member_struct_tm_tm_gmtoff=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_cv_member_struct_tm_tm_gmtoff=no
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7409 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7410 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7411
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_TM_GMTOFF 1
7414 _ACEOF
7415
7416 fi
7417
7418 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7419 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7420 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 #if HAVE_SYS_SOCKET_H
7431 #include <sys/socket.h>
7432 #endif
7433 #if HAVE_NET_IF_H
7434 #include <net/if.h>
7435 #endif
7436
7437 int
7438 main ()
7439 {
7440 static struct ifreq ac_aggr;
7441 if (ac_aggr.ifr_flags)
7442 return 0;
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_member_struct_ifreq_ifr_flags=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 #if HAVE_SYS_SOCKET_H
7482 #include <sys/socket.h>
7483 #endif
7484 #if HAVE_NET_IF_H
7485 #include <net/if.h>
7486 #endif
7487
7488 int
7489 main ()
7490 {
7491 static struct ifreq ac_aggr;
7492 if (sizeof ac_aggr.ifr_flags)
7493 return 0;
7494 ;
7495 return 0;
7496 }
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_member_struct_ifreq_ifr_flags=yes
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_cv_member_struct_ifreq_ifr_flags=no
7526 fi
7527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7528 fi
7529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7532 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7533 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7537 _ACEOF
7538
7539
7540 fi
7541 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7542 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7543 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #if HAVE_SYS_SOCKET_H
7554 #include <sys/socket.h>
7555 #endif
7556 #if HAVE_NET_IF_H
7557 #include <net/if.h>
7558 #endif
7559
7560 int
7561 main ()
7562 {
7563 static struct ifreq ac_aggr;
7564 if (ac_aggr.ifr_hwaddr)
7565 return 0;
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h. */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 #if HAVE_SYS_SOCKET_H
7605 #include <sys/socket.h>
7606 #endif
7607 #if HAVE_NET_IF_H
7608 #include <net/if.h>
7609 #endif
7610
7611 int
7612 main ()
7613 {
7614 static struct ifreq ac_aggr;
7615 if (sizeof ac_aggr.ifr_hwaddr)
7616 return 0;
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7649 fi
7650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7656 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7657
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7660 _ACEOF
7661
7662
7663 fi
7664 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7665 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7666 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 #if HAVE_SYS_SOCKET_H
7677 #include <sys/socket.h>
7678 #endif
7679 #if HAVE_NET_IF_H
7680 #include <net/if.h>
7681 #endif
7682
7683 int
7684 main ()
7685 {
7686 static struct ifreq ac_aggr;
7687 if (ac_aggr.ifr_netmask)
7688 return 0;
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_member_struct_ifreq_ifr_netmask=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7729 #endif
7730 #if HAVE_NET_IF_H
7731 #include <net/if.h>
7732 #endif
7733
7734 int
7735 main ()
7736 {
7737 static struct ifreq ac_aggr;
7738 if (sizeof ac_aggr.ifr_netmask)
7739 return 0;
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_member_struct_ifreq_ifr_netmask=yes
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_cv_member_struct_ifreq_ifr_netmask=no
7772 fi
7773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774 fi
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7779 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7780
7781 cat >>confdefs.h <<_ACEOF
7782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7783 _ACEOF
7784
7785
7786 fi
7787 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7788 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7789 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #if HAVE_SYS_SOCKET_H
7800 #include <sys/socket.h>
7801 #endif
7802 #if HAVE_NET_IF_H
7803 #include <net/if.h>
7804 #endif
7805
7806 int
7807 main ()
7808 {
7809 static struct ifreq ac_aggr;
7810 if (ac_aggr.ifr_broadaddr)
7811 return 0;
7812 ;
7813 return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 #if HAVE_SYS_SOCKET_H
7851 #include <sys/socket.h>
7852 #endif
7853 #if HAVE_NET_IF_H
7854 #include <net/if.h>
7855 #endif
7856
7857 int
7858 main ()
7859 {
7860 static struct ifreq ac_aggr;
7861 if (sizeof ac_aggr.ifr_broadaddr)
7862 return 0;
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7895 fi
7896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7899 fi
7900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7902 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7903
7904 cat >>confdefs.h <<_ACEOF
7905 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7906 _ACEOF
7907
7908
7909 fi
7910 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7911 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7912 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7924 #endif
7925 #if HAVE_NET_IF_H
7926 #include <net/if.h>
7927 #endif
7928
7929 int
7930 main ()
7931 {
7932 static struct ifreq ac_aggr;
7933 if (ac_aggr.ifr_addr)
7934 return 0;
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_member_struct_ifreq_ifr_addr=yes
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 #if HAVE_SYS_SOCKET_H
7974 #include <sys/socket.h>
7975 #endif
7976 #if HAVE_NET_IF_H
7977 #include <net/if.h>
7978 #endif
7979
7980 int
7981 main ()
7982 {
7983 static struct ifreq ac_aggr;
7984 if (sizeof ac_aggr.ifr_addr)
7985 return 0;
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_cv_member_struct_ifreq_ifr_addr=yes
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 ac_cv_member_struct_ifreq_ifr_addr=no
8018 fi
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8025 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8026
8027 cat >>confdefs.h <<_ACEOF
8028 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8029 _ACEOF
8030
8031
8032 fi
8033
8034
8035
8036 echo "$as_me:$LINENO: checking for function prototypes" >&5
8037 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8038 if test "$ac_cv_prog_cc_stdc" != no; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040 echo "${ECHO_T}yes" >&6
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define PROTOTYPES 1
8044 _ACEOF
8045
8046
8047 cat >>confdefs.h <<\_ACEOF
8048 #define __PROTOTYPES 1
8049 _ACEOF
8050
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8054 fi
8055
8056 echo "$as_me:$LINENO: checking for working volatile" >&5
8057 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8058 if test "${ac_cv_c_volatile+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067
8068 int
8069 main ()
8070 {
8071
8072 volatile int x;
8073 int * volatile y;
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest.$ac_objext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_c_volatile=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_c_volatile=no
8106 fi
8107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8110 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8111 if test $ac_cv_c_volatile = no; then
8112
8113 cat >>confdefs.h <<\_ACEOF
8114 #define volatile
8115 _ACEOF
8116
8117 fi
8118
8119 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8120 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8121 if test "${ac_cv_c_const+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130
8131 int
8132 main ()
8133 {
8134 /* FIXME: Include the comments suggested by Paul. */
8135 #ifndef __cplusplus
8136 /* Ultrix mips cc rejects this. */
8137 typedef int charset[2];
8138 const charset x;
8139 /* SunOS 4.1.1 cc rejects this. */
8140 char const *const *ccp;
8141 char **p;
8142 /* NEC SVR4.0.2 mips cc rejects this. */
8143 struct point {int x, y;};
8144 static struct point const zero = {0,0};
8145 /* AIX XL C 1.02.0.0 rejects this.
8146 It does not let you subtract one const X* pointer from another in
8147 an arm of an if-expression whose if-part is not a constant
8148 expression */
8149 const char *g = "string";
8150 ccp = &g + (g ? g-g : 0);
8151 /* HPUX 7.0 cc rejects these. */
8152 ++ccp;
8153 p = (char**) ccp;
8154 ccp = (char const *const *) p;
8155 { /* SCO 3.2v4 cc rejects this. */
8156 char *t;
8157 char const *s = 0 ? (char *) 0 : (char const *) 0;
8158
8159 *t++ = 0;
8160 }
8161 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8162 int x[] = {25, 17};
8163 const int *foo = &x[0];
8164 ++foo;
8165 }
8166 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8167 typedef const int *iptr;
8168 iptr p = 0;
8169 ++p;
8170 }
8171 { /* AIX XL C 1.02.0.0 rejects this saying
8172 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8173 struct s { int j; const int *ap[3]; };
8174 struct s *b; b->j = 5;
8175 }
8176 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8177 const int foo = 10;
8178 }
8179 #endif
8180
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_c_werror_flag"
8195 || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_cv_c_const=yes
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_cv_c_const=no
8213 fi
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8217 echo "${ECHO_T}$ac_cv_c_const" >&6
8218 if test $ac_cv_c_const = no; then
8219
8220 cat >>confdefs.h <<\_ACEOF
8221 #define const
8222 _ACEOF
8223
8224 fi
8225
8226 echo "$as_me:$LINENO: checking for void * support" >&5
8227 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8228 if test "${emacs_cv_void_star+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237
8238 int
8239 main ()
8240 {
8241 void * foo;
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 emacs_cv_void_star=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 emacs_cv_void_star=no
8274 fi
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 fi
8277 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8278 echo "${ECHO_T}$emacs_cv_void_star" >&6
8279 if test $emacs_cv_void_star = yes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define POINTER_TYPE void
8282 _ACEOF
8283
8284 else
8285 cat >>confdefs.h <<\_ACEOF
8286 #define POINTER_TYPE char
8287 _ACEOF
8288
8289 fi
8290
8291
8292
8293
8294
8295 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8296 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8297 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8298 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.make <<\_ACEOF
8302 all:
8303 @echo 'ac_maketemp="$(MAKE)"'
8304 _ACEOF
8305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8306 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8307 if test -n "$ac_maketemp"; then
8308 eval ac_cv_prog_make_${ac_make}_set=yes
8309 else
8310 eval ac_cv_prog_make_${ac_make}_set=no
8311 fi
8312 rm -f conftest.make
8313 fi
8314 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8315 echo "$as_me:$LINENO: result: yes" >&5
8316 echo "${ECHO_T}yes" >&6
8317 SET_MAKE=
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321 SET_MAKE="MAKE=${MAKE-make}"
8322 fi
8323
8324
8325 echo "$as_me:$LINENO: checking for long file names" >&5
8326 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8327 if test "${ac_cv_sys_long_file_names+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 ac_cv_sys_long_file_names=yes
8331 # Test for long file names in all the places we know might matter:
8332 # . the current directory, where building will happen
8333 # $prefix/lib where we will be installing things
8334 # $exec_prefix/lib likewise
8335 # eval it to expand exec_prefix.
8336 # $TMPDIR if set, where it might want to write temporary files
8337 # if $TMPDIR is not set:
8338 # /tmp where it might want to write temporary files
8339 # /var/tmp likewise
8340 # /usr/tmp likewise
8341 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8342 ac_tmpdirs=$TMPDIR
8343 else
8344 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8345 fi
8346 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8347 test -d $ac_dir || continue
8348 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8349 ac_xdir=$ac_dir/cf$$
8350 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8351 ac_tf1=$ac_xdir/conftest9012345
8352 ac_tf2=$ac_xdir/conftest9012346
8353 (echo 1 >$ac_tf1) 2>/dev/null
8354 (echo 2 >$ac_tf2) 2>/dev/null
8355 ac_val=`cat $ac_tf1 2>/dev/null`
8356 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8357 ac_cv_sys_long_file_names=no
8358 rm -rf $ac_xdir 2>/dev/null
8359 break
8360 fi
8361 rm -rf $ac_xdir 2>/dev/null
8362 done
8363 fi
8364 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8365 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8366 if test $ac_cv_sys_long_file_names = yes; then
8367
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_LONG_FILE_NAMES 1
8370 _ACEOF
8371
8372 fi
8373
8374
8375 #### Choose a window system.
8376
8377 echo "$as_me:$LINENO: checking for X" >&5
8378 echo $ECHO_N "checking for X... $ECHO_C" >&6
8379
8380
8381 # Check whether --with-x or --without-x was given.
8382 if test "${with_x+set}" = set; then
8383 withval="$with_x"
8384
8385 fi;
8386 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8387 if test "x$with_x" = xno; then
8388 # The user explicitly disabled X.
8389 have_x=disabled
8390 else
8391 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8392 # Both variables are already set.
8393 have_x=yes
8394 else
8395 if test "${ac_cv_have_x+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398 # One or both of the vars are not set, and there is no cached value.
8399 ac_x_includes=no ac_x_libraries=no
8400 rm -fr conftest.dir
8401 if mkdir conftest.dir; then
8402 cd conftest.dir
8403 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8404 cat >Imakefile <<'_ACEOF'
8405 acfindx:
8406 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8407 _ACEOF
8408 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8409 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8410 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8412 for ac_extension in a so sl; do
8413 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8414 test -f $ac_im_libdir/libX11.$ac_extension; then
8415 ac_im_usrlibdir=$ac_im_libdir; break
8416 fi
8417 done
8418 # Screen out bogus values from the imake configuration. They are
8419 # bogus both because they are the default anyway, and because
8420 # using them would break gcc on systems where it needs fixed includes.
8421 case $ac_im_incroot in
8422 /usr/include) ;;
8423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8424 esac
8425 case $ac_im_usrlibdir in
8426 /usr/lib | /lib) ;;
8427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8428 esac
8429 fi
8430 cd ..
8431 rm -fr conftest.dir
8432 fi
8433
8434 # Standard set of common directories for X headers.
8435 # Check X11 before X11Rn because it is often a symlink to the current release.
8436 ac_x_header_dirs='
8437 /usr/X11/include
8438 /usr/X11R6/include
8439 /usr/X11R5/include
8440 /usr/X11R4/include
8441
8442 /usr/include/X11
8443 /usr/include/X11R6
8444 /usr/include/X11R5
8445 /usr/include/X11R4
8446
8447 /usr/local/X11/include
8448 /usr/local/X11R6/include
8449 /usr/local/X11R5/include
8450 /usr/local/X11R4/include
8451
8452 /usr/local/include/X11
8453 /usr/local/include/X11R6
8454 /usr/local/include/X11R5
8455 /usr/local/include/X11R4
8456
8457 /usr/X386/include
8458 /usr/x386/include
8459 /usr/XFree86/include/X11
8460
8461 /usr/include
8462 /usr/local/include
8463 /usr/unsupported/include
8464 /usr/athena/include
8465 /usr/local/x11r5/include
8466 /usr/lpp/Xamples/include
8467
8468 /usr/openwin/include
8469 /usr/openwin/share/include'
8470
8471 if test "$ac_x_includes" = no; then
8472 # Guess where to find include files, by looking for Intrinsic.h.
8473 # First, try using that file with no special directory specified.
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 #include <X11/Intrinsic.h>
8481 _ACEOF
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } >/dev/null; then
8490 if test -s conftest.err; then
8491 ac_cpp_err=$ac_c_preproc_warn_flag
8492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8493 else
8494 ac_cpp_err=
8495 fi
8496 else
8497 ac_cpp_err=yes
8498 fi
8499 if test -z "$ac_cpp_err"; then
8500 # We can compile using X headers with no special include directory.
8501 ac_x_includes=
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 for ac_dir in $ac_x_header_dirs; do
8507 if test -r "$ac_dir/X11/Intrinsic.h"; then
8508 ac_x_includes=$ac_dir
8509 break
8510 fi
8511 done
8512 fi
8513 rm -f conftest.err conftest.$ac_ext
8514 fi # $ac_x_includes = no
8515
8516 if test "$ac_x_libraries" = no; then
8517 # Check for the libraries.
8518 # See if we find them without any special options.
8519 # Don't add to $LIBS permanently.
8520 ac_save_LIBS=$LIBS
8521 LIBS="-lXt $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <X11/Intrinsic.h>
8529 int
8530 main ()
8531 {
8532 XtMalloc (0)
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag"
8547 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 LIBS=$ac_save_LIBS
8560 # We can link X programs with no special library path.
8561 ac_x_libraries=
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 LIBS=$ac_save_LIBS
8567 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8568 do
8569 # Don't even attempt the hair of trying to link an X program!
8570 for ac_extension in a so sl; do
8571 if test -r $ac_dir/libXt.$ac_extension; then
8572 ac_x_libraries=$ac_dir
8573 break 2
8574 fi
8575 done
8576 done
8577 fi
8578 rm -f conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 fi # $ac_x_libraries = no
8581
8582 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8583 # Didn't find X anywhere. Cache the known absence of X.
8584 ac_cv_have_x="have_x=no"
8585 else
8586 # Record where we found X for the cache.
8587 ac_cv_have_x="have_x=yes \
8588 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8589 fi
8590 fi
8591
8592 fi
8593 eval "$ac_cv_have_x"
8594 fi # $with_x != no
8595
8596 if test "$have_x" != yes; then
8597 echo "$as_me:$LINENO: result: $have_x" >&5
8598 echo "${ECHO_T}$have_x" >&6
8599 no_x=yes
8600 else
8601 # If each of the values was on the command line, it overrides each guess.
8602 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8604 # Update the cache value to reflect the command line values.
8605 ac_cv_have_x="have_x=yes \
8606 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8607 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8608 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8609 fi
8610
8611 if test "$no_x" = yes; then
8612 window_system=none
8613 else
8614 window_system=x11
8615 fi
8616
8617 if test "${x_libraries}" != NONE; then
8618 if test -n "${x_libraries}"; then
8619 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8620 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8621 fi
8622 x_default_search_path=""
8623 x_search_path=${x_libraries}
8624 if test -z "${x_search_path}"; then
8625 x_search_path=/usr/lib
8626 fi
8627 for x_library in `echo ${x_search_path}: | \
8628 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8629 x_search_path="\
8630 ${x_library}/X11/%L/%T/%N%C%S:\
8631 ${x_library}/X11/%l/%T/%N%C%S:\
8632 ${x_library}/X11/%T/%N%C%S:\
8633 ${x_library}/X11/%L/%T/%N%S:\
8634 ${x_library}/X11/%l/%T/%N%S:\
8635 ${x_library}/X11/%T/%N%S"
8636 if test x"${x_default_search_path}" = x; then
8637 x_default_search_path=${x_search_path}
8638 else
8639 x_default_search_path="${x_search_path}:${x_default_search_path}"
8640 fi
8641 done
8642 fi
8643 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8644 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8645 fi
8646
8647 if test x"${x_includes}" = x; then
8648 bitmapdir=/usr/include/X11/bitmaps
8649 else
8650 # accumulate include directories that have X11 bitmap subdirectories
8651 bmd_acc="dummyval"
8652 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8653 if test -d "${bmd}/X11/bitmaps"; then
8654 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8655 fi
8656 if test -d "${bmd}/bitmaps"; then
8657 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8658 fi
8659 done
8660 if test ${bmd_acc} != "dummyval"; then
8661 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8662 fi
8663 fi
8664
8665 HAVE_CARBON=no
8666 if test "${with_carbon}" != no; then
8667 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8668 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8669 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8670 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
8676 # Is the header compilable?
8677 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8678 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #include <Carbon/Carbon.h>
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_header_compiler=no
8716 fi
8717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8720
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8723 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <Carbon/Carbon.h>
8731 _ACEOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743 else
8744 ac_cpp_err=
8745 fi
8746 else
8747 ac_cpp_err=yes
8748 fi
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_preproc=no
8756 fi
8757 rm -f conftest.err conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8760
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8769 ;;
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8783 (
8784 cat <<\_ASBOX
8785 ## ------------------------------------------ ##
8786 ## Report this to the AC_PACKAGE_NAME lists. ##
8787 ## ------------------------------------------ ##
8788 _ASBOX
8789 ) |
8790 sed "s/^/$as_me: WARNING: /" >&2
8791 ;;
8792 esac
8793 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8794 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8799 fi
8800 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8801 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8802
8803 fi
8804 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8805 HAVE_CARBON=yes
8806 fi
8807
8808
8809 fi
8810 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8811 if test "${with_carbon+set}" != set \
8812 && test "${carbon_appdir_x+set}" != set; then
8813 for var in with_x with_x_toolkit with_gtk with_xim \
8814 with_xpm with_jpeg with_tiff with_gif with_png; do
8815 if eval test \"\${$var+set}\" = set; then
8816 HAVE_CARBON=no
8817 break
8818 fi
8819 done
8820 fi
8821 fi
8822 if test "${HAVE_CARBON}" = yes; then
8823 window_system=mac
8824 fi
8825
8826 case "${window_system}" in
8827 x11 )
8828 HAVE_X_WINDOWS=yes
8829 HAVE_X11=yes
8830 case "${with_x_toolkit}" in
8831 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8832 motif ) USE_X_TOOLKIT=MOTIF ;;
8833 gtk ) with_gtk=yes
8834 USE_X_TOOLKIT=none ;;
8835 no ) USE_X_TOOLKIT=none ;;
8836 * ) USE_X_TOOLKIT=maybe ;;
8837 esac
8838 ;;
8839 mac | none )
8840 HAVE_X_WINDOWS=no
8841 HAVE_X11=no
8842 USE_X_TOOLKIT=none
8843 ;;
8844 esac
8845
8846 ### If we're using X11, we should use the X menu package.
8847 HAVE_MENUS=no
8848 case ${HAVE_X11} in
8849 yes ) HAVE_MENUS=yes ;;
8850 esac
8851
8852 if test "${opsys}" = "hpux9"; then
8853 case "${x_libraries}" in
8854 *X11R4* )
8855 opsysfile="s/hpux9-x11r4.h"
8856 ;;
8857 esac
8858 fi
8859
8860 if test "${opsys}" = "hpux9shr"; then
8861 case "${x_libraries}" in
8862 *X11R4* )
8863 opsysfile="s/hpux9shxr4.h"
8864 ;;
8865 esac
8866 fi
8867
8868 ### Compute the unexec source name from the object name.
8869 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8870
8871 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8872 # Assume not, until told otherwise.
8873 GNU_MALLOC=yes
8874 doug_lea_malloc=yes
8875 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8876 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8877 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888 #define malloc_get_state innocuous_malloc_get_state
8889
8890 /* System header to define __stub macros and hopefully few prototypes,
8891 which can conflict with char malloc_get_state (); below.
8892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 <limits.h> exists even on freestanding compilers. */
8894
8895 #ifdef __STDC__
8896 # include <limits.h>
8897 #else
8898 # include <assert.h>
8899 #endif
8900
8901 #undef malloc_get_state
8902
8903 /* Override any gcc2 internal prototype to avoid an error. */
8904 #ifdef __cplusplus
8905 extern "C"
8906 {
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char malloc_get_state ();
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8915 choke me
8916 #else
8917 char (*f) () = malloc_get_state;
8918 #endif
8919 #ifdef __cplusplus
8920 }
8921 #endif
8922
8923 int
8924 main ()
8925 {
8926 return f != malloc_get_state;
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_func_malloc_get_state=yes
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_func_malloc_get_state=no
8959 fi
8960 rm -f conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8964 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8965 if test $ac_cv_func_malloc_get_state = yes; then
8966 :
8967 else
8968 doug_lea_malloc=no
8969 fi
8970
8971 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8972 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8973 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8984 #define malloc_set_state innocuous_malloc_set_state
8985
8986 /* System header to define __stub macros and hopefully few prototypes,
8987 which can conflict with char malloc_set_state (); below.
8988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8989 <limits.h> exists even on freestanding compilers. */
8990
8991 #ifdef __STDC__
8992 # include <limits.h>
8993 #else
8994 # include <assert.h>
8995 #endif
8996
8997 #undef malloc_set_state
8998
8999 /* Override any gcc2 internal prototype to avoid an error. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 {
9003 #endif
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9006 char malloc_set_state ();
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9011 choke me
9012 #else
9013 char (*f) () = malloc_set_state;
9014 #endif
9015 #ifdef __cplusplus
9016 }
9017 #endif
9018
9019 int
9020 main ()
9021 {
9022 return f != malloc_set_state;
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag"
9037 || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_func_malloc_set_state=yes
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_func_malloc_set_state=no
9055 fi
9056 rm -f conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9060 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9061 if test $ac_cv_func_malloc_set_state = yes; then
9062 :
9063 else
9064 doug_lea_malloc=no
9065 fi
9066
9067 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9068 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9069 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 extern void (* __after_morecore_hook)();
9079 int
9080 main ()
9081 {
9082 __after_morecore_hook = 0
9083 ;
9084 return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 emacs_cv_var___after_morecore_hook=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 emacs_cv_var___after_morecore_hook=no
9115 fi
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 fi
9119 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9120 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9121 if test $emacs_cv_var___after_morecore_hook = no; then
9122 doug_lea_malloc=no
9123 fi
9124 if test "${system_malloc}" = "yes"; then
9125 GNU_MALLOC=no
9126 GNU_MALLOC_reason="
9127 (The GNU allocators don't work with this system configuration.)"
9128 fi
9129 if test "$doug_lea_malloc" = "yes" ; then
9130 if test "$GNU_MALLOC" = yes ; then
9131 GNU_MALLOC_reason="
9132 (Using Doug Lea's new malloc from the GNU C Library.)"
9133 fi
9134
9135 cat >>confdefs.h <<\_ACEOF
9136 #define DOUG_LEA_MALLOC 1
9137 _ACEOF
9138
9139 fi
9140
9141 if test x"${REL_ALLOC}" = x; then
9142 REL_ALLOC=${GNU_MALLOC}
9143 fi
9144
9145
9146
9147
9148 for ac_header in stdlib.h unistd.h
9149 do
9150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 fi
9157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9159 else
9160 # Is the header compilable?
9161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 #include <$ac_header>
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9174 (eval $ac_compile) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest.$ac_objext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_header_compiler=yes
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ac_header_compiler=no
9200 fi
9201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9203 echo "${ECHO_T}$ac_header_compiler" >&6
9204
9205 # Is the header present?
9206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h. */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <$ac_header>
9215 _ACEOF
9216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } >/dev/null; then
9224 if test -s conftest.err; then
9225 ac_cpp_err=$ac_c_preproc_warn_flag
9226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9227 else
9228 ac_cpp_err=
9229 fi
9230 else
9231 ac_cpp_err=yes
9232 fi
9233 if test -z "$ac_cpp_err"; then
9234 ac_header_preproc=yes
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239 ac_header_preproc=no
9240 fi
9241 rm -f conftest.err conftest.$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6
9244
9245 # So? What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9247 yes:no: )
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252 ac_header_preproc=yes
9253 ;;
9254 no:yes:* )
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9267 (
9268 cat <<\_ASBOX
9269 ## ------------------------------------------ ##
9270 ## Report this to the AC_PACKAGE_NAME lists. ##
9271 ## ------------------------------------------ ##
9272 _ASBOX
9273 ) |
9274 sed "s/^/$as_me: WARNING: /" >&2
9275 ;;
9276 esac
9277 echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 eval "$as_ac_Header=\$ac_header_preproc"
9283 fi
9284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9286
9287 fi
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289 cat >>confdefs.h <<_ACEOF
9290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9291 _ACEOF
9292
9293 fi
9294
9295 done
9296
9297
9298 for ac_func in getpagesize
9299 do
9300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301 echo "$as_me:$LINENO: checking for $ac_func" >&5
9302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9303 if eval "test \"\${$as_ac_var+set}\" = set"; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9314 #define $ac_func innocuous_$ac_func
9315
9316 /* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char $ac_func (); below.
9318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319 <limits.h> exists even on freestanding compilers. */
9320
9321 #ifdef __STDC__
9322 # include <limits.h>
9323 #else
9324 # include <assert.h>
9325 #endif
9326
9327 #undef $ac_func
9328
9329 /* Override any gcc2 internal prototype to avoid an error. */
9330 #ifdef __cplusplus
9331 extern "C"
9332 {
9333 #endif
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336 char $ac_func ();
9337 /* The GNU C library defines this for functions which it implements
9338 to always fail with ENOSYS. Some functions are actually named
9339 something starting with __ and the normal name is an alias. */
9340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9341 choke me
9342 #else
9343 char (*f) () = $ac_func;
9344 #endif
9345 #ifdef __cplusplus
9346 }
9347 #endif
9348
9349 int
9350 main ()
9351 {
9352 return f != $ac_func;
9353 ;
9354 return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 eval "$as_ac_var=yes"
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 eval "$as_ac_var=no"
9385 fi
9386 rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9391 if test `eval echo '${'$as_ac_var'}'` = yes; then
9392 cat >>confdefs.h <<_ACEOF
9393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9394 _ACEOF
9395
9396 fi
9397 done
9398
9399 echo "$as_me:$LINENO: checking for working mmap" >&5
9400 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9401 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 if test "$cross_compiling" = yes; then
9405 ac_cv_func_mmap_fixed_mapped=no
9406 else
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 $ac_includes_default
9414 /* malloc might have been renamed as rpl_malloc. */
9415 #undef malloc
9416
9417 /* Thanks to Mike Haertel and Jim Avera for this test.
9418 Here is a matrix of mmap possibilities:
9419 mmap private not fixed
9420 mmap private fixed at somewhere currently unmapped
9421 mmap private fixed at somewhere already mapped
9422 mmap shared not fixed
9423 mmap shared fixed at somewhere currently unmapped
9424 mmap shared fixed at somewhere already mapped
9425 For private mappings, we should verify that changes cannot be read()
9426 back from the file, nor mmap's back from the file at a different
9427 address. (There have been systems where private was not correctly
9428 implemented like the infamous i386 svr4.0, and systems where the
9429 VM page cache was not coherent with the file system buffer cache
9430 like early versions of FreeBSD and possibly contemporary NetBSD.)
9431 For shared mappings, we should conversely verify that changes get
9432 propagated back to all the places they're supposed to be.
9433
9434 Grep wants private fixed already mapped.
9435 The main things grep needs to know about mmap are:
9436 * does it exist and is it safe to write into the mmap'd area
9437 * how to use it (BSD variants) */
9438
9439 #include <fcntl.h>
9440 #include <sys/mman.h>
9441
9442 #if !STDC_HEADERS && !HAVE_STDLIB_H
9443 char *malloc ();
9444 #endif
9445
9446 /* This mess was copied from the GNU getpagesize.h. */
9447 #if !HAVE_GETPAGESIZE
9448 /* Assume that all systems that can run configure have sys/param.h. */
9449 # if !HAVE_SYS_PARAM_H
9450 # define HAVE_SYS_PARAM_H 1
9451 # endif
9452
9453 # ifdef _SC_PAGESIZE
9454 # define getpagesize() sysconf(_SC_PAGESIZE)
9455 # else /* no _SC_PAGESIZE */
9456 # if HAVE_SYS_PARAM_H
9457 # include <sys/param.h>
9458 # ifdef EXEC_PAGESIZE
9459 # define getpagesize() EXEC_PAGESIZE
9460 # else /* no EXEC_PAGESIZE */
9461 # ifdef NBPG
9462 # define getpagesize() NBPG * CLSIZE
9463 # ifndef CLSIZE
9464 # define CLSIZE 1
9465 # endif /* no CLSIZE */
9466 # else /* no NBPG */
9467 # ifdef NBPC
9468 # define getpagesize() NBPC
9469 # else /* no NBPC */
9470 # ifdef PAGESIZE
9471 # define getpagesize() PAGESIZE
9472 # endif /* PAGESIZE */
9473 # endif /* no NBPC */
9474 # endif /* no NBPG */
9475 # endif /* no EXEC_PAGESIZE */
9476 # else /* no HAVE_SYS_PARAM_H */
9477 # define getpagesize() 8192 /* punt totally */
9478 # endif /* no HAVE_SYS_PARAM_H */
9479 # endif /* no _SC_PAGESIZE */
9480
9481 #endif /* no HAVE_GETPAGESIZE */
9482
9483 int
9484 main ()
9485 {
9486 char *data, *data2, *data3;
9487 int i, pagesize;
9488 int fd;
9489
9490 pagesize = getpagesize ();
9491
9492 /* First, make a file with some known garbage in it. */
9493 data = (char *) malloc (pagesize);
9494 if (!data)
9495 exit (1);
9496 for (i = 0; i < pagesize; ++i)
9497 *(data + i) = rand ();
9498 umask (0);
9499 fd = creat ("conftest.mmap", 0600);
9500 if (fd < 0)
9501 exit (1);
9502 if (write (fd, data, pagesize) != pagesize)
9503 exit (1);
9504 close (fd);
9505
9506 /* Next, try to mmap the file at a fixed address which already has
9507 something else allocated at it. If we can, also make sure that
9508 we see the same garbage. */
9509 fd = open ("conftest.mmap", O_RDWR);
9510 if (fd < 0)
9511 exit (1);
9512 data2 = (char *) malloc (2 * pagesize);
9513 if (!data2)
9514 exit (1);
9515 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9516 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9517 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9518 exit (1);
9519 for (i = 0; i < pagesize; ++i)
9520 if (*(data + i) != *(data2 + i))
9521 exit (1);
9522
9523 /* Finally, make sure that changes to the mapped area do not
9524 percolate back to the file as seen by read(). (This is a bug on
9525 some variants of i386 svr4.0.) */
9526 for (i = 0; i < pagesize; ++i)
9527 *(data2 + i) = *(data2 + i) + 1;
9528 data3 = (char *) malloc (pagesize);
9529 if (!data3)
9530 exit (1);
9531 if (read (fd, data3, pagesize) != pagesize)
9532 exit (1);
9533 for (i = 0; i < pagesize; ++i)
9534 if (*(data + i) != *(data3 + i))
9535 exit (1);
9536 close (fd);
9537 exit (0);
9538 }
9539 _ACEOF
9540 rm -f conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_func_mmap_fixed_mapped=yes
9552 else
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ( exit $ac_status )
9558 ac_cv_func_mmap_fixed_mapped=no
9559 fi
9560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9561 fi
9562 fi
9563 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9564 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9566
9567 cat >>confdefs.h <<\_ACEOF
9568 #define HAVE_MMAP 1
9569 _ACEOF
9570
9571 fi
9572 rm -f conftest.mmap
9573
9574 if test $use_mmap_for_buffers = yes; then
9575 REL_ALLOC=no
9576 fi
9577
9578 LIBS="$libsrc_libs $LIBS"
9579
9580
9581 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9582 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9583 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-ldnet $LIBS"
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594
9595 /* Override any gcc2 internal prototype to avoid an error. */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9601 char dnet_ntoa ();
9602 int
9603 main ()
9604 {
9605 dnet_ntoa ();
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_lib_dnet_dnet_ntoa=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 ac_cv_lib_dnet_dnet_ntoa=no
9638 fi
9639 rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9642 fi
9643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define HAVE_LIBDNET 1
9648 _ACEOF
9649
9650 LIBS="-ldnet $LIBS"
9651
9652 fi
9653
9654
9655 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9656 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9657 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lXbsd $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668
9669
9670 int
9671 main ()
9672 {
9673 main ();
9674 ;
9675 return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_lib_Xbsd_main=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_cv_lib_Xbsd_main=no
9706 fi
9707 rm -f conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9710 fi
9711 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9712 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9713 if test $ac_cv_lib_Xbsd_main = yes; then
9714 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9715 fi
9716
9717
9718
9719 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9720 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9721 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 ac_check_lib_save_LIBS=$LIBS
9725 LIBS="-lpthreads $LIBS"
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9739 char cma_open ();
9740 int
9741 main ()
9742 {
9743 cma_open ();
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_lib_pthreads_cma_open=yes
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 ac_cv_lib_pthreads_cma_open=no
9776 fi
9777 rm -f conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LIBS=$ac_check_lib_save_LIBS
9780 fi
9781 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9782 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9783 if test $ac_cv_lib_pthreads_cma_open = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_LIBPTHREADS 1
9786 _ACEOF
9787
9788 LIBS="-lpthreads $LIBS"
9789
9790 fi
9791
9792
9793 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9794 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9795 if test -d /usr/X386/include; then
9796 HAVE_XFREE386=yes
9797 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9798 else
9799 HAVE_XFREE386=no
9800 fi
9801 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9802 echo "${ECHO_T}$HAVE_XFREE386" >&6
9803
9804
9805 case ${host_os} in
9806 aix*)
9807 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9808 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9809 if test "${gdb_cv_bigtoc+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812
9813 case $GCC in
9814 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9815 *) gdb_cv_bigtoc=-bbigtoc ;;
9816 esac
9817
9818 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
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 int i;
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 :
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 gdb_cv_bigtoc=
9862 fi
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865
9866 fi
9867 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9868 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9869 ;;
9870 esac
9871
9872 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9873 # used for the tests that follow. We set them back to REAL_CFLAGS and
9874 # REAL_CPPFLAGS later on.
9875
9876 REAL_CPPFLAGS="$CPPFLAGS"
9877
9878 if test "${HAVE_X11}" = "yes"; then
9879 DEFS="$C_SWITCH_X_SITE $DEFS"
9880 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9881 LIBS="$LIBX $LIBS"
9882 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9883 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9884
9885 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9886 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9887 # but it's more convenient here to set LD_RUN_PATH
9888 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9889 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9890 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9891 export LD_RUN_PATH
9892 fi
9893
9894 if test "${opsys}" = "gnu-linux"; then
9895 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9896 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903
9904 int
9905 main ()
9906 {
9907 XOpenDisplay ("foo");
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 xlinux_first_failure=no
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 xlinux_first_failure=yes
9940 fi
9941 rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 if test "${xlinux_first_failure}" = "yes"; then
9944 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9945 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9946 OLD_CPPFLAGS="$CPPFLAGS"
9947 OLD_LIBS="$LIBS"
9948 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9949 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9950 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9951 LIBS="$LIBS -b i486-linuxaout"
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958
9959 int
9960 main ()
9961 {
9962 XOpenDisplay ("foo");
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 xlinux_second_failure=no
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 xlinux_second_failure=yes
9995 fi
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 if test "${xlinux_second_failure}" = "yes"; then
9999 # If we get the same failure with -b, there is no use adding -b.
10000 # So take it out. This plays safe.
10001 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10002 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10003 CPPFLAGS="$OLD_CPPFLAGS"
10004 LIBS="$OLD_LIBS"
10005 echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10007 else
10008 echo "$as_me:$LINENO: result: yes" >&5
10009 echo "${ECHO_T}yes" >&6
10010 fi
10011 else
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10014 fi
10015 fi
10016
10017 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10018 # header files included from there.
10019 echo "$as_me:$LINENO: checking for Xkb" >&5
10020 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <X11/Xlib.h>
10028 #include <X11/XKBlib.h>
10029 int
10030 main ()
10031 {
10032 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 emacs_xkb=yes
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 emacs_xkb=no
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10069 echo "${ECHO_T}$emacs_xkb" >&6
10070 if test $emacs_xkb = yes; then
10071
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_XKBGETKEYBOARD 1
10074 _ACEOF
10075
10076 fi
10077
10078
10079
10080
10081
10082 for ac_func in XrmSetDatabase XScreenResourceString \
10083 XScreenNumberOfScreen XSetWMProtocols
10084 do
10085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10086 echo "$as_me:$LINENO: checking for $ac_func" >&5
10087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10088 if eval "test \"\${$as_ac_var+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10099 #define $ac_func innocuous_$ac_func
10100
10101 /* System header to define __stub macros and hopefully few prototypes,
10102 which can conflict with char $ac_func (); below.
10103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10104 <limits.h> exists even on freestanding compilers. */
10105
10106 #ifdef __STDC__
10107 # include <limits.h>
10108 #else
10109 # include <assert.h>
10110 #endif
10111
10112 #undef $ac_func
10113
10114 /* Override any gcc2 internal prototype to avoid an error. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 {
10118 #endif
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char $ac_func ();
10122 /* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10126 choke me
10127 #else
10128 char (*f) () = $ac_func;
10129 #endif
10130 #ifdef __cplusplus
10131 }
10132 #endif
10133
10134 int
10135 main ()
10136 {
10137 return f != $ac_func;
10138 ;
10139 return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10164 eval "$as_ac_var=yes"
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 eval "$as_ac_var=no"
10170 fi
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 fi
10174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10176 if test `eval echo '${'$as_ac_var'}'` = yes; then
10177 cat >>confdefs.h <<_ACEOF
10178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10179 _ACEOF
10180
10181 fi
10182 done
10183
10184 fi
10185
10186 if test "${window_system}" = "x11"; then
10187 echo "$as_me:$LINENO: checking X11 version 6" >&5
10188 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10189 if test "${emacs_cv_x11_version_6+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10199 int
10200 main ()
10201 {
10202 #if XlibSpecificationRelease < 6
10203 fail;
10204 #endif
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 emacs_cv_x11_version_6=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 emacs_cv_x11_version_6=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 fi
10242
10243 if test $emacs_cv_x11_version_6 = yes; then
10244 echo "$as_me:$LINENO: result: 6 or newer" >&5
10245 echo "${ECHO_T}6 or newer" >&6
10246
10247 cat >>confdefs.h <<\_ACEOF
10248 #define HAVE_X11R6 1
10249 _ACEOF
10250
10251 else
10252 echo "$as_me:$LINENO: result: before 6" >&5
10253 echo "${ECHO_T}before 6" >&6
10254 fi
10255 fi
10256
10257 if test "${window_system}" = "x11"; then
10258 echo "$as_me:$LINENO: checking X11 version 5" >&5
10259 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10260 if test "${emacs_cv_x11_version_5+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 #include <X11/Xlib.h>
10270 int
10271 main ()
10272 {
10273 #if XlibSpecificationRelease < 5
10274 fail;
10275 #endif
10276
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 emacs_cv_x11_version_5=yes
10304 else
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 emacs_cv_x11_version_5=no
10309 fi
10310 rm -f conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312 fi
10313
10314 if test $emacs_cv_x11_version_5 = yes; then
10315 echo "$as_me:$LINENO: result: 5 or newer" >&5
10316 echo "${ECHO_T}5 or newer" >&6
10317 HAVE_X11R5=yes
10318
10319 cat >>confdefs.h <<\_ACEOF
10320 #define HAVE_X11R5 1
10321 _ACEOF
10322
10323 else
10324 HAVE_X11R5=no
10325 echo "$as_me:$LINENO: result: before 5" >&5
10326 echo "${ECHO_T}before 5" >&6
10327 fi
10328 fi
10329
10330 HAVE_GTK=no
10331 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10332 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10333 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10334 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10335 { (exit 1); exit 1; }; };
10336 fi
10337 GLIB_REQUIRED=2.4
10338 GTK_REQUIRED=2.4
10339 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10340
10341 if test "X${with_pkg_config_prog}" != X; then
10342 PKG_CONFIG="${with_pkg_config_prog}"
10343 fi
10344
10345 succeeded=no
10346
10347 if test -z "$PKG_CONFIG"; then
10348 # Extract the first word of "pkg-config", so it can be a program name with args.
10349 set dummy pkg-config; ac_word=$2
10350 echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355 case $PKG_CONFIG in
10356 [\\/]* | ?:[\\/]*)
10357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10358 ;;
10359 *)
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371 done
10372 done
10373
10374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10375 ;;
10376 esac
10377 fi
10378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10379
10380 if test -n "$PKG_CONFIG"; then
10381 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10382 echo "${ECHO_T}$PKG_CONFIG" >&6
10383 else
10384 echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10386 fi
10387
10388 fi
10389
10390 if test "$PKG_CONFIG" = "no" ; then
10391 { { echo "$as_me:$LINENO: error:
10392 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10393 echo "$as_me: error:
10394 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10395 { (exit 1); exit 1; }; }
10396 else
10397 PKG_CONFIG_MIN_VERSION=0.9.0
10398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10399 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10400 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10401
10402 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10403 echo "$as_me:$LINENO: result: yes" >&5
10404 echo "${ECHO_T}yes" >&6
10405 succeeded=yes
10406
10407 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10408 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10409 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10410 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10411 echo "${ECHO_T}$GTK_CFLAGS" >&6
10412
10413 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10414 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10415 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10416 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10417 echo "${ECHO_T}$GTK_LIBS" >&6
10418 else
10419 echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6
10421 GTK_CFLAGS=""
10422 GTK_LIBS=""
10423 ## If we have a custom action on failure, don't print errors, but
10424 ## do set a variable so people can do so.
10425 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10426 echo $GTK_PKG_ERRORS
10427 fi
10428
10429
10430
10431 else
10432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10434 fi
10435 fi
10436
10437 if test $succeeded = yes; then
10438 :
10439 else
10440 { { 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
10441 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;}
10442 { (exit 1); exit 1; }; }
10443 fi
10444
10445
10446
10447 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10448 CFLAGS="$CFLAGS $GTK_CFLAGS"
10449 LIBS="$GTK_LIBS $LIBS"
10450 HAVE_GTK=yes
10451
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_GTK 1
10454 _ACEOF
10455
10456 USE_X_TOOLKIT=none
10457
10458 if test "$with_toolkit_scroll_bars" != no; then
10459 with_toolkit_scroll_bars=yes
10460 fi
10461
10462 HAVE_GTK_MULTIDISPLAY=no
10463
10464 for ac_func in gdk_display_open
10465 do
10466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10467 echo "$as_me:$LINENO: checking for $ac_func" >&5
10468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_var+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480 #define $ac_func innocuous_$ac_func
10481
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char $ac_func (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10486
10487 #ifdef __STDC__
10488 # include <limits.h>
10489 #else
10490 # include <assert.h>
10491 #endif
10492
10493 #undef $ac_func
10494
10495 /* Override any gcc2 internal prototype to avoid an error. */
10496 #ifdef __cplusplus
10497 extern "C"
10498 {
10499 #endif
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502 char $ac_func ();
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10507 choke me
10508 #else
10509 char (*f) () = $ac_func;
10510 #endif
10511 #ifdef __cplusplus
10512 }
10513 #endif
10514
10515 int
10516 main ()
10517 {
10518 return f != $ac_func;
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 eval "$as_ac_var=yes"
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 eval "$as_ac_var=no"
10551 fi
10552 rm -f conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10557 if test `eval echo '${'$as_ac_var'}'` = yes; then
10558 cat >>confdefs.h <<_ACEOF
10559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10560 _ACEOF
10561 HAVE_GTK_MULTIDISPLAY=yes
10562 fi
10563 done
10564
10565 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10566
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_GTK_MULTIDISPLAY 1
10569 _ACEOF
10570
10571 fi
10572 HAVE_GTK_FILE_SELECTION=no
10573
10574 for ac_func in gtk_file_selection_new
10575 do
10576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10579 if eval "test \"\${$as_ac_var+set}\" = set"; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10591
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10596
10597 #ifdef __STDC__
10598 # include <limits.h>
10599 #else
10600 # include <assert.h>
10601 #endif
10602
10603 #undef $ac_func
10604
10605 /* Override any gcc2 internal prototype to avoid an error. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 {
10609 #endif
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10612 char $ac_func ();
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10617 choke me
10618 #else
10619 char (*f) () = $ac_func;
10620 #endif
10621 #ifdef __cplusplus
10622 }
10623 #endif
10624
10625 int
10626 main ()
10627 {
10628 return f != $ac_func;
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 eval "$as_ac_var=yes"
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 eval "$as_ac_var=no"
10661 fi
10662 rm -f conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 fi
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10667 if test `eval echo '${'$as_ac_var'}'` = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10670 _ACEOF
10671 HAVE_GTK_FILE_SELECTION=yes
10672 fi
10673 done
10674
10675
10676 HAVE_GTK_FILE_CHOOSER=no
10677
10678 for ac_func in gtk_file_chooser_dialog_new
10679 do
10680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10681 echo "$as_me:$LINENO: checking for $ac_func" >&5
10682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_var+set}\" = set"; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10694 #define $ac_func innocuous_$ac_func
10695
10696 /* System header to define __stub macros and hopefully few prototypes,
10697 which can conflict with char $ac_func (); below.
10698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10699 <limits.h> exists even on freestanding compilers. */
10700
10701 #ifdef __STDC__
10702 # include <limits.h>
10703 #else
10704 # include <assert.h>
10705 #endif
10706
10707 #undef $ac_func
10708
10709 /* Override any gcc2 internal prototype to avoid an error. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 {
10713 #endif
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char $ac_func ();
10717 /* The GNU C library defines this for functions which it implements
10718 to always fail with ENOSYS. Some functions are actually named
10719 something starting with __ and the normal name is an alias. */
10720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10721 choke me
10722 #else
10723 char (*f) () = $ac_func;
10724 #endif
10725 #ifdef __cplusplus
10726 }
10727 #endif
10728
10729 int
10730 main ()
10731 {
10732 return f != $ac_func;
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 eval "$as_ac_var=yes"
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 eval "$as_ac_var=no"
10765 fi
10766 rm -f conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 fi
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10774 _ACEOF
10775 HAVE_GTK_FILE_CHOOSER=yes
10776 fi
10777 done
10778
10779
10780 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10781 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_GTK_FILE_BOTH 1
10785 _ACEOF
10786
10787 fi
10788
10789 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10790 HAVE_GTK_AND_PTHREAD=no
10791
10792 for ac_header in pthread.h
10793 do
10794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 fi
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803 else
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10814 #include <$ac_header>
10815 _ACEOF
10816 rm -f conftest.$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_header_compiler=yes
10839 else
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10842
10843 ac_header_compiler=no
10844 fi
10845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6
10848
10849 # Is the header present?
10850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <$ac_header>
10859 _ACEOF
10860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } >/dev/null; then
10868 if test -s conftest.err; then
10869 ac_cpp_err=$ac_c_preproc_warn_flag
10870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10871 else
10872 ac_cpp_err=
10873 fi
10874 else
10875 ac_cpp_err=yes
10876 fi
10877 if test -z "$ac_cpp_err"; then
10878 ac_header_preproc=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_header_preproc=no
10884 fi
10885 rm -f conftest.err conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10887 echo "${ECHO_T}$ac_header_preproc" >&6
10888
10889 # So? What about this header?
10890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10891 yes:no: )
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10896 ac_header_preproc=yes
10897 ;;
10898 no:yes:* )
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10911 (
10912 cat <<\_ASBOX
10913 ## ------------------------------------------ ##
10914 ## Report this to the AC_PACKAGE_NAME lists. ##
10915 ## ------------------------------------------ ##
10916 _ASBOX
10917 ) |
10918 sed "s/^/$as_me: WARNING: /" >&2
10919 ;;
10920 esac
10921 echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 eval "$as_ac_Header=\$ac_header_preproc"
10927 fi
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10930
10931 fi
10932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935 _ACEOF
10936
10937 fi
10938
10939 done
10940
10941 if test "$ac_cv_header_pthread_h"; then
10942 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10943 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10944 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-lpthread $LIBS"
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char pthread_self ();
10963 int
10964 main ()
10965 {
10966 pthread_self ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_cv_lib_pthread_pthread_self=yes
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 ac_cv_lib_pthread_pthread_self=no
10999 fi
11000 rm -f conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11006 if test $ac_cv_lib_pthread_pthread_self = yes; then
11007 HAVE_GTK_AND_PTHREAD=yes
11008 fi
11009
11010 fi
11011 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11012 GTK_LIBS="$GTK_LIBS -lpthread"
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_GTK_AND_PTHREAD 1
11016 _ACEOF
11017
11018 fi
11019 fi
11020 fi
11021
11022 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11023 if test x"${HAVE_X11R5}" = xyes; then
11024 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11025 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11026 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035
11036 #include <X11/Intrinsic.h>
11037 #include <X11/Xaw/Simple.h>
11038 int
11039 main ()
11040 {
11041
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -z "$ac_c_werror_flag"
11056 || test ! -s conftest.err'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 emacs_cv_x11_version_5_with_xaw=yes
11069 else
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 emacs_cv_x11_version_5_with_xaw=no
11074 fi
11075 rm -f conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 fi
11078
11079 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11080 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11081 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11082 USE_X_TOOLKIT=LUCID
11083 else
11084 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11085 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11086 USE_X_TOOLKIT=none
11087 fi
11088 else
11089 USE_X_TOOLKIT=none
11090 fi
11091 fi
11092
11093 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11094
11095 if test "${USE_X_TOOLKIT}" != "none"; then
11096 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11097 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11098 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <X11/Intrinsic.h>
11108 int
11109 main ()
11110 {
11111 #if XtSpecificationRelease < 6
11112 fail;
11113 #endif
11114
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 emacs_cv_x11_toolkit_version_6=yes
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 emacs_cv_x11_toolkit_version_6=no
11147 fi
11148 rm -f conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 fi
11151
11152 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11153 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11154 echo "$as_me:$LINENO: result: 6 or newer" >&5
11155 echo "${ECHO_T}6 or newer" >&6
11156
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_X11XTR6 1
11159 _ACEOF
11160
11161 else
11162 echo "$as_me:$LINENO: result: before 6" >&5
11163 echo "${ECHO_T}before 6" >&6
11164 fi
11165
11166 OLDLIBS="$LIBS"
11167 if test x$HAVE_X11XTR6 = xyes; then
11168 LIBS="-lXt -lSM -lICE $LIBS"
11169 else
11170 LIBS="-lXt $LIBS"
11171 fi
11172
11173 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11174 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11175 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-lXmu $LIBS"
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char XmuConvertStandardSelection ();
11194 int
11195 main ()
11196 {
11197 XmuConvertStandardSelection ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11230 fi
11231 rm -f conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11234 fi
11235 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11236 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11237 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_LIBXMU 1
11240 _ACEOF
11241
11242 LIBS="-lXmu $LIBS"
11243
11244 fi
11245
11246 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11247 fi
11248
11249 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11250 if test "${HAVE_X11}" = "yes"; then
11251 if test "${USE_X_TOOLKIT}" != "none"; then
11252
11253 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11254 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11255 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 ac_check_lib_save_LIBS=$LIBS
11259 LIBS="-lXext $LIBS"
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266
11267 /* Override any gcc2 internal prototype to avoid an error. */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11273 char XShapeQueryExtension ();
11274 int
11275 main ()
11276 {
11277 XShapeQueryExtension ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_lib_Xext_XShapeQueryExtension=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 ac_cv_lib_Xext_XShapeQueryExtension=no
11310 fi
11311 rm -f conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11314 fi
11315 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11316 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11317 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_LIBXEXT 1
11320 _ACEOF
11321
11322 LIBS="-lXext $LIBS"
11323
11324 fi
11325
11326 fi
11327 fi
11328
11329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11330 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11331 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11332 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 #include <Xm/Xm.h>
11342 int
11343 main ()
11344 {
11345 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11346 int x = 5;
11347 #else
11348 Motif version prior to 2.1.
11349 #endif
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 rm -f conftest.$ac_objext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356 (eval $ac_compile) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 emacs_cv_motif_version_2_1=yes
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 emacs_cv_motif_version_2_1=no
11382 fi
11383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384 fi
11385 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11386 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11387 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11388 if test $emacs_cv_motif_version_2_1 = yes; then
11389 HAVE_LIBXP=no
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_MOTIF_2_1 1
11393 _ACEOF
11394
11395 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11396 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11397 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-lXp $LIBS"
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408
11409 /* Override any gcc2 internal prototype to avoid an error. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11415 char XpCreateContext ();
11416 int
11417 main ()
11418 {
11419 XpCreateContext ();
11420 ;
11421 return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_cv_lib_Xp_XpCreateContext=yes
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 ac_cv_lib_Xp_XpCreateContext=no
11452 fi
11453 rm -f conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11456 fi
11457 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11458 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11459 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11460 HAVE_LIBXP=yes
11461 fi
11462
11463 if test ${HAVE_LIBXP} = yes; then
11464
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_LIBXP 1
11467 _ACEOF
11468
11469 fi
11470 else
11471 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11472 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11473 if test "${emacs_cv_lesstif+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 # We put this in CFLAGS temporarily to precede other -I options
11477 # that might be in CFLAGS temporarily.
11478 # We put this in CPPFLAGS where it precedes the other -I options.
11479 OLD_CPPFLAGS=$CPPFLAGS
11480 OLD_CFLAGS=$CFLAGS
11481 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11482 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11490 int
11491 main ()
11492 {
11493 int x = 5;
11494 ;
11495 return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag"
11508 || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest.$ac_objext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 emacs_cv_lesstif=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 emacs_cv_lesstif=no
11526 fi
11527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11528 fi
11529 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11530 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11531 if test $emacs_cv_lesstif = yes; then
11532 # Make sure this -I option remains in CPPFLAGS after it is set
11533 # back to REAL_CPPFLAGS.
11534 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11535 # have those other -I options anyway. Ultimately, having this
11536 # directory ultimately in CPPFLAGS will be enough.
11537 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11538 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11539 else
11540 CFLAGS=$OLD_CFLAGS
11541 CPPFLAGS=$OLD_CPPFLAGS
11542 fi
11543 fi
11544 fi
11545
11546 ### Is -lXaw3d available?
11547 HAVE_XAW3D=no
11548 if test "${HAVE_X11}" = "yes"; then
11549 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11550 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11551 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11552 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h. */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <X11/Xaw3d/Scrollbar.h>
11562 _ACEOF
11563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null; then
11571 if test -s conftest.err; then
11572 ac_cpp_err=$ac_c_preproc_warn_flag
11573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11574 else
11575 ac_cpp_err=
11576 fi
11577 else
11578 ac_cpp_err=yes
11579 fi
11580 if test -z "$ac_cpp_err"; then
11581 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11587 fi
11588 rm -f conftest.err conftest.$ac_ext
11589 fi
11590 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11591 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11592 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11593 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11594 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11595 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-lXaw3d $LIBS"
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606
11607 /* Override any gcc2 internal prototype to avoid an error. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11613 char XawScrollbarSetThumb ();
11614 int
11615 main ()
11616 {
11617 XawScrollbarSetThumb ();
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11645 else
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11650 fi
11651 rm -f conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11656 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11657 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11658 HAVE_XAW3D=yes
11659 fi
11660
11661 fi
11662
11663
11664 if test "${HAVE_XAW3D}" = "yes"; then
11665
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_XAW3D 1
11668 _ACEOF
11669
11670 fi
11671 fi
11672 fi
11673
11674
11675
11676 USE_TOOLKIT_SCROLL_BARS=no
11677 if test "${with_toolkit_scroll_bars}" != "no"; then
11678 if test "${USE_X_TOOLKIT}" != "none"; then
11679 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11680 cat >>confdefs.h <<\_ACEOF
11681 #define USE_TOOLKIT_SCROLL_BARS 1
11682 _ACEOF
11683
11684 HAVE_XAW3D=no
11685 USE_TOOLKIT_SCROLL_BARS=yes
11686 elif test "${HAVE_XAW3D}" = "yes"; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define USE_TOOLKIT_SCROLL_BARS 1
11689 _ACEOF
11690
11691 USE_TOOLKIT_SCROLL_BARS=yes
11692 fi
11693 elif test "${HAVE_GTK}" = "yes"; then
11694 cat >>confdefs.h <<\_ACEOF
11695 #define USE_TOOLKIT_SCROLL_BARS 1
11696 _ACEOF
11697
11698 USE_TOOLKIT_SCROLL_BARS=yes
11699 elif test "${HAVE_CARBON}" = "yes"; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11702 _ACEOF
11703
11704 USE_TOOLKIT_SCROLL_BARS=yes
11705 fi
11706 fi
11707
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714
11715 #include <X11/Xlib.h>
11716 #include <X11/Xresource.h>
11717 int
11718 main ()
11719 {
11720 XIMProc callback;
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 HAVE_XIM=yes
11748
11749 cat >>confdefs.h <<\_ACEOF
11750 #define HAVE_XIM 1
11751 _ACEOF
11752
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 HAVE_XIM=no
11758 fi
11759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760
11761
11762 if test "${with_xim}" != "no"; then
11763
11764 cat >>confdefs.h <<\_ACEOF
11765 #define USE_XIM 1
11766 _ACEOF
11767
11768 fi
11769
11770
11771 if test "${HAVE_XIM}" != "no"; then
11772 late_CFLAGS=$CFLAGS
11773 if test "$GCC" = yes; then
11774 CFLAGS="$CFLAGS --pedantic-errors"
11775 fi
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782
11783 #include <X11/Xlib.h>
11784 #include <X11/Xresource.h>
11785 int
11786 main ()
11787 {
11788 Display *display;
11789 XrmDatabase db;
11790 char *res_name;
11791 char *res_class;
11792 XIMProc callback;
11793 XPointer *client_data;
11794 #ifndef __GNUC__
11795 /* If we're not using GCC, it's probably not XFree86, and this is
11796 probably right, but we can't use something like --pedantic-errors. */
11797 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11798 char*, XIMProc, XPointer*);
11799 #endif
11800 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11801 client_data);
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11808 (eval $ac_compile) 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag"
11816 || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 emacs_cv_arg6_star=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 fi
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835
11836 if test "$emacs_cv_arg6_star" = yes; then
11837 cat >>confdefs.h <<\_ACEOF
11838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11839 _ACEOF
11840
11841 else
11842 cat >>confdefs.h <<\_ACEOF
11843 #define XRegisterIMInstantiateCallback_arg6 XPointer
11844 _ACEOF
11845
11846 fi
11847 CFLAGS=$late_CFLAGS
11848 fi
11849
11850 ### Use -lXpm if available, unless `--with-xpm=no'.
11851 HAVE_XPM=no
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_xpm}" != "no"; then
11854 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11855 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11856 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11857 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 fi
11860 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11862 else
11863 # Is the header compilable?
11864 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11865 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 $ac_includes_default
11873 #include <X11/xpm.h>
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_header_compiler=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_header_compiler=no
11903 fi
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11906 echo "${ECHO_T}$ac_header_compiler" >&6
11907
11908 # Is the header present?
11909 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11910 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 #include <X11/xpm.h>
11918 _ACEOF
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev/null; then
11927 if test -s conftest.err; then
11928 ac_cpp_err=$ac_c_preproc_warn_flag
11929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11930 else
11931 ac_cpp_err=
11932 fi
11933 else
11934 ac_cpp_err=yes
11935 fi
11936 if test -z "$ac_cpp_err"; then
11937 ac_header_preproc=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 ac_header_preproc=no
11943 fi
11944 rm -f conftest.err conftest.$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946 echo "${ECHO_T}$ac_header_preproc" >&6
11947
11948 # So? What about this header?
11949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11950 yes:no: )
11951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11952 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11954 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11955 ac_header_preproc=yes
11956 ;;
11957 no:yes:* )
11958 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11959 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11961 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11963 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11965 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11967 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11969 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11970 (
11971 cat <<\_ASBOX
11972 ## ------------------------------------------ ##
11973 ## Report this to the AC_PACKAGE_NAME lists. ##
11974 ## ------------------------------------------ ##
11975 _ASBOX
11976 ) |
11977 sed "s/^/$as_me: WARNING: /" >&2
11978 ;;
11979 esac
11980 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11981 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11982 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 ac_cv_header_X11_xpm_h=$ac_header_preproc
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11988 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11989
11990 fi
11991 if test $ac_cv_header_X11_xpm_h = yes; then
11992 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11993 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11994 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lXpm -lX11 $LIBS"
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char XpmReadFileToPixmap ();
12013 int
12014 main ()
12015 {
12016 XpmReadFileToPixmap ();
12017 ;
12018 return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12044 else
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12049 fi
12050 rm -f conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12053 fi
12054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12055 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12056 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12057 HAVE_XPM=yes
12058 fi
12059
12060 fi
12061
12062
12063 if test "${HAVE_XPM}" = "yes"; then
12064 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12065 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 #include "X11/xpm.h"
12073 #ifndef XpmReturnAllocPixels
12074 no_return_alloc_pixels
12075 #endif
12076
12077 _ACEOF
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12080 HAVE_XPM=no
12081 else
12082 HAVE_XPM=yes
12083 fi
12084 rm -f conftest*
12085
12086
12087 if test "${HAVE_XPM}" = "yes"; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089 echo "${ECHO_T}yes" >&6
12090 else
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12093 fi
12094 fi
12095 fi
12096
12097 if test "${HAVE_XPM}" = "yes"; then
12098
12099 cat >>confdefs.h <<\_ACEOF
12100 #define HAVE_XPM 1
12101 _ACEOF
12102
12103 fi
12104 fi
12105
12106 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12107 HAVE_JPEG=no
12108 if test "${HAVE_X11}" = "yes"; then
12109 if test "${with_jpeg}" != "no"; then
12110 if test "${ac_cv_header_jerror_h+set}" = set; then
12111 echo "$as_me:$LINENO: checking for jerror.h" >&5
12112 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_jerror_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 fi
12116 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12118 else
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12121 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <jerror.h>
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_header_compiler=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 ac_header_compiler=no
12159 fi
12160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 echo "${ECHO_T}$ac_header_compiler" >&6
12163
12164 # Is the header present?
12165 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12166 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <jerror.h>
12174 _ACEOF
12175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } >/dev/null; then
12183 if test -s conftest.err; then
12184 ac_cpp_err=$ac_c_preproc_warn_flag
12185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12186 else
12187 ac_cpp_err=
12188 fi
12189 else
12190 ac_cpp_err=yes
12191 fi
12192 if test -z "$ac_cpp_err"; then
12193 ac_header_preproc=yes
12194 else
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_header_preproc=no
12199 fi
12200 rm -f conftest.err conftest.$ac_ext
12201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6
12203
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12212 ;;
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12226 (
12227 cat <<\_ASBOX
12228 ## ------------------------------------------ ##
12229 ## Report this to the AC_PACKAGE_NAME lists. ##
12230 ## ------------------------------------------ ##
12231 _ASBOX
12232 ) |
12233 sed "s/^/$as_me: WARNING: /" >&2
12234 ;;
12235 esac
12236 echo "$as_me:$LINENO: checking for jerror.h" >&5
12237 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12238 if test "${ac_cv_header_jerror_h+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_cv_header_jerror_h=$ac_header_preproc
12242 fi
12243 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12244 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12245
12246 fi
12247 if test $ac_cv_header_jerror_h = yes; then
12248 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12249 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12250 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ljpeg $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261
12262 /* Override any gcc2 internal prototype to avoid an error. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12268 char jpeg_destroy_compress ();
12269 int
12270 main ()
12271 {
12272 jpeg_destroy_compress ();
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12305 fi
12306 rm -f conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12311 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12312 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12313 HAVE_JPEG=yes
12314 fi
12315
12316 fi
12317
12318
12319 fi
12320
12321
12322 if test "${HAVE_JPEG}" = "yes"; then
12323 cat >>confdefs.h <<\_ACEOF
12324 #define HAVE_JPEG 1
12325 _ACEOF
12326
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <jpeglib.h>
12334 version=JPEG_LIB_VERSION
12335
12336 _ACEOF
12337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12338 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_JPEG 1
12341 _ACEOF
12342
12343 else
12344 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12345 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12346 HAVE_JPEG=no
12347 fi
12348 rm -f conftest*
12349
12350 fi
12351 fi
12352
12353 ### Use -lpng if available, unless `--with-png=no'.
12354 HAVE_PNG=no
12355 if test "${HAVE_X11}" = "yes"; then
12356 if test "${with_png}" != "no"; then
12357 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12358 # in /usr/include/libpng.
12359
12360
12361 for ac_header in png.h libpng/png.h
12362 do
12363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12365 echo "$as_me:$LINENO: checking for $ac_header" >&5
12366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 fi
12370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12372 else
12373 # Is the header compilable?
12374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 $ac_includes_default
12383 #include <$ac_header>
12384 _ACEOF
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_header_compiler=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_header_compiler=no
12413 fi
12414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12416 echo "${ECHO_T}$ac_header_compiler" >&6
12417
12418 # Is the header present?
12419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 #include <$ac_header>
12428 _ACEOF
12429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } >/dev/null; then
12437 if test -s conftest.err; then
12438 ac_cpp_err=$ac_c_preproc_warn_flag
12439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12440 else
12441 ac_cpp_err=
12442 fi
12443 else
12444 ac_cpp_err=yes
12445 fi
12446 if test -z "$ac_cpp_err"; then
12447 ac_header_preproc=yes
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_header_preproc=no
12453 fi
12454 rm -f conftest.err conftest.$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 echo "${ECHO_T}$ac_header_preproc" >&6
12457
12458 # So? What about this header?
12459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12460 yes:no: )
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12465 ac_header_preproc=yes
12466 ;;
12467 no:yes:* )
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12480 (
12481 cat <<\_ASBOX
12482 ## ------------------------------------------ ##
12483 ## Report this to the AC_PACKAGE_NAME lists. ##
12484 ## ------------------------------------------ ##
12485 _ASBOX
12486 ) |
12487 sed "s/^/$as_me: WARNING: /" >&2
12488 ;;
12489 esac
12490 echo "$as_me:$LINENO: checking for $ac_header" >&5
12491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 eval "$as_ac_Header=\$ac_header_preproc"
12496 fi
12497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12499
12500 fi
12501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504 _ACEOF
12505
12506 fi
12507
12508 done
12509
12510 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12511 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12512 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12513 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lpng -lz -lm $LIBS"
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
12525 /* Override any gcc2 internal prototype to avoid an error. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char png_get_channels ();
12532 int
12533 main ()
12534 {
12535 png_get_channels ();
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_lib_png_png_get_channels=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_lib_png_png_get_channels=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12574 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12575 if test $ac_cv_lib_png_png_get_channels = yes; then
12576 HAVE_PNG=yes
12577 fi
12578
12579 fi
12580 fi
12581
12582 if test "${HAVE_PNG}" = "yes"; then
12583
12584 cat >>confdefs.h <<\_ACEOF
12585 #define HAVE_PNG 1
12586 _ACEOF
12587
12588 fi
12589 fi
12590
12591 ### Use -ltiff if available, unless `--with-tiff=no'.
12592 HAVE_TIFF=no
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${with_tiff}" != "no"; then
12595 if test "${ac_cv_header_tiffio_h+set}" = set; then
12596 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12597 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12598 if test "${ac_cv_header_tiffio_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 fi
12601 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12603 else
12604 # Is the header compilable?
12605 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12606 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12607 cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h. */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 #include <tiffio.h>
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_header_compiler=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_header_compiler=no
12644 fi
12645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 echo "${ECHO_T}$ac_header_compiler" >&6
12648
12649 # Is the header present?
12650 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12651 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h. */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <tiffio.h>
12659 _ACEOF
12660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev/null; then
12668 if test -s conftest.err; then
12669 ac_cpp_err=$ac_c_preproc_warn_flag
12670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12671 else
12672 ac_cpp_err=
12673 fi
12674 else
12675 ac_cpp_err=yes
12676 fi
12677 if test -z "$ac_cpp_err"; then
12678 ac_header_preproc=yes
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 ac_header_preproc=no
12684 fi
12685 rm -f conftest.err conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6
12688
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12691 yes:no: )
12692 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc=yes
12697 ;;
12698 no:yes:* )
12699 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12711 (
12712 cat <<\_ASBOX
12713 ## ------------------------------------------ ##
12714 ## Report this to the AC_PACKAGE_NAME lists. ##
12715 ## ------------------------------------------ ##
12716 _ASBOX
12717 ) |
12718 sed "s/^/$as_me: WARNING: /" >&2
12719 ;;
12720 esac
12721 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12723 if test "${ac_cv_header_tiffio_h+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 ac_cv_header_tiffio_h=$ac_header_preproc
12727 fi
12728 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12730
12731 fi
12732 if test $ac_cv_header_tiffio_h = yes; then
12733 tifflibs="-lz -lm"
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12736 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-ltiff $tifflibs $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char TIFFGetVersion ();
12757 int
12758 main ()
12759 {
12760 TIFFGetVersion ();
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_lib_tiff_TIFFGetVersion=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_cv_lib_tiff_TIFFGetVersion=no
12793 fi
12794 rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12797 fi
12798 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12799 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12800 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12801 HAVE_TIFF=yes
12802 fi
12803
12804 fi
12805
12806
12807 fi
12808
12809 if test "${HAVE_TIFF}" = "yes"; then
12810
12811 cat >>confdefs.h <<\_ACEOF
12812 #define HAVE_TIFF 1
12813 _ACEOF
12814
12815 fi
12816 fi
12817
12818 ### Use -lgif if available, unless `--with-gif=no'.
12819 HAVE_GIF=no
12820 if test "${HAVE_X11}" = "yes"; then
12821 if test "${with_gif}" != "no"; then
12822 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12823 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12824 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 fi
12828 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12830 else
12831 # Is the header compilable?
12832 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12833 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 #include <gif_lib.h>
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag"
12853 || test ! -s conftest.err'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest.$ac_objext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_header_compiler=yes
12866 else
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_header_compiler=no
12871 fi
12872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 echo "${ECHO_T}$ac_header_compiler" >&6
12875
12876 # Is the header present?
12877 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12878 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <gif_lib.h>
12886 _ACEOF
12887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null; then
12895 if test -s conftest.err; then
12896 ac_cpp_err=$ac_c_preproc_warn_flag
12897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12898 else
12899 ac_cpp_err=
12900 fi
12901 else
12902 ac_cpp_err=yes
12903 fi
12904 if test -z "$ac_cpp_err"; then
12905 ac_header_preproc=yes
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_preproc=no
12911 fi
12912 rm -f conftest.err conftest.$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914 echo "${ECHO_T}$ac_header_preproc" >&6
12915
12916 # So? What about this header?
12917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 yes:no: )
12919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12920 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12922 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc=yes
12924 ;;
12925 no:yes:* )
12926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12927 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12929 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12931 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12933 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12935 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12937 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12938 (
12939 cat <<\_ASBOX
12940 ## ------------------------------------------ ##
12941 ## Report this to the AC_PACKAGE_NAME lists. ##
12942 ## ------------------------------------------ ##
12943 _ASBOX
12944 ) |
12945 sed "s/^/$as_me: WARNING: /" >&2
12946 ;;
12947 esac
12948 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12949 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12950 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953 ac_cv_header_gif_lib_h=$ac_header_preproc
12954 fi
12955 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12957
12958 fi
12959 if test $ac_cv_header_gif_lib_h = yes; then
12960 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12961 # Earlier versions can crash Emacs.
12962 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12963 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12964 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-lungif $LIBS"
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char EGifPutExtensionLast ();
12983 int
12984 main ()
12985 {
12986 EGifPutExtensionLast ();
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 ac_cv_lib_ungif_EGifPutExtensionLast=no
13019 fi
13020 rm -f conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13023 fi
13024 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13025 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13026 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13027 HAVE_GIF=yes
13028 fi
13029
13030 fi
13031
13032
13033 fi
13034
13035 if test "${HAVE_GIF}" = "yes"; then
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_GIF 1
13039 _ACEOF
13040
13041 fi
13042 fi
13043
13044 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13045 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13046 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13047 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 fi
13050 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13051 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13052 else
13053 # Is the header compilable?
13054 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13055 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 #include <malloc/malloc.h>
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_header_compiler=yes
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 ac_header_compiler=no
13093 fi
13094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13096 echo "${ECHO_T}$ac_header_compiler" >&6
13097
13098 # Is the header present?
13099 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13100 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h. */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 #include <malloc/malloc.h>
13108 _ACEOF
13109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } >/dev/null; then
13117 if test -s conftest.err; then
13118 ac_cpp_err=$ac_c_preproc_warn_flag
13119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13120 else
13121 ac_cpp_err=
13122 fi
13123 else
13124 ac_cpp_err=yes
13125 fi
13126 if test -z "$ac_cpp_err"; then
13127 ac_header_preproc=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132 ac_header_preproc=no
13133 fi
13134 rm -f conftest.err conftest.$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13136 echo "${ECHO_T}$ac_header_preproc" >&6
13137
13138 # So? What about this header?
13139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13140 yes:no: )
13141 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13142 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13144 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13145 ac_header_preproc=yes
13146 ;;
13147 no:yes:* )
13148 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13149 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13151 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13153 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13155 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13157 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13159 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13160 (
13161 cat <<\_ASBOX
13162 ## ------------------------------------------ ##
13163 ## Report this to the AC_PACKAGE_NAME lists. ##
13164 ## ------------------------------------------ ##
13165 _ASBOX
13166 ) |
13167 sed "s/^/$as_me: WARNING: /" >&2
13168 ;;
13169 esac
13170 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13171 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13172 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13176 fi
13177 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13178 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13179
13180 fi
13181 if test $ac_cv_header_malloc_malloc_h = yes; then
13182
13183 cat >>confdefs.h <<\_ACEOF
13184 #define HAVE_MALLOC_MALLOC_H 1
13185 _ACEOF
13186
13187 fi
13188
13189
13190
13191 ### Use Mac OS X Carbon API to implement GUI.
13192 if test "${HAVE_CARBON}" = "yes"; then
13193
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_CARBON 1
13196 _ACEOF
13197
13198 ## Specify the install directory
13199 carbon_appdir=
13200 if test "${carbon_appdir_x}" != ""; then
13201 case ${carbon_appdir_x} in
13202 y | ye | yes) carbon_appdir=/Applications ;;
13203 * ) carbon_appdir=${carbon_appdir_x} ;;
13204 esac
13205 fi
13206 # We also have mouse menus.
13207 HAVE_MENUS=yes
13208 fi
13209
13210 ### Use session management (-lSM -lICE) if available
13211 HAVE_X_SM=no
13212 if test "${HAVE_X11}" = "yes"; then
13213 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13214 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13215 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13216 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 fi
13219 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13220 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13221 else
13222 # Is the header compilable?
13223 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13224 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <X11/SM/SMlib.h>
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_header_compiler=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_header_compiler=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265 echo "${ECHO_T}$ac_header_compiler" >&6
13266
13267 # Is the header present?
13268 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13269 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <X11/SM/SMlib.h>
13277 _ACEOF
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } >/dev/null; then
13286 if test -s conftest.err; then
13287 ac_cpp_err=$ac_c_preproc_warn_flag
13288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13289 else
13290 ac_cpp_err=
13291 fi
13292 else
13293 ac_cpp_err=yes
13294 fi
13295 if test -z "$ac_cpp_err"; then
13296 ac_header_preproc=yes
13297 else
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_header_preproc=no
13302 fi
13303 rm -f conftest.err conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6
13306
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13309 yes:no: )
13310 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc=yes
13315 ;;
13316 no:yes:* )
13317 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13329 (
13330 cat <<\_ASBOX
13331 ## ------------------------------------------ ##
13332 ## Report this to the AC_PACKAGE_NAME lists. ##
13333 ## ------------------------------------------ ##
13334 _ASBOX
13335 ) |
13336 sed "s/^/$as_me: WARNING: /" >&2
13337 ;;
13338 esac
13339 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13340 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13341 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13345 fi
13346 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13347 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13348
13349 fi
13350 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13351 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13352 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13353 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lSM -lICE $LIBS"
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364
13365 /* Override any gcc2 internal prototype to avoid an error. */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 /* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371 char SmcOpenConnection ();
13372 int
13373 main ()
13374 {
13375 SmcOpenConnection ();
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_lib_SM_SmcOpenConnection=yes
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 ac_cv_lib_SM_SmcOpenConnection=no
13408 fi
13409 rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13412 fi
13413 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13414 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13415 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13416 HAVE_X_SM=yes
13417 fi
13418
13419 fi
13420
13421
13422
13423 if test "${HAVE_X_SM}" = "yes"; then
13424
13425 cat >>confdefs.h <<\_ACEOF
13426 #define HAVE_X_SM 1
13427 _ACEOF
13428
13429 case "$LIBS" in
13430 *-lSM*) ;;
13431 *) LIBS="-lSM -lICE $LIBS" ;;
13432 esac
13433 fi
13434 fi
13435
13436 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13437 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13438 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13439 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h. */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <netdb.h>
13449 int
13450 main ()
13451 {
13452 return h_errno;
13453 ;
13454 return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest$ac_exeext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 emacs_cv_netdb_declares_h_errno=yes
13480 else
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 emacs_cv_netdb_declares_h_errno=no
13485 fi
13486 rm -f conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 fi
13489 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13490 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13491 if test $emacs_cv_netdb_declares_h_errno = yes; then
13492
13493 cat >>confdefs.h <<\_ACEOF
13494 #define HAVE_H_ERRNO 1
13495 _ACEOF
13496
13497 fi
13498
13499 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13500 # for constant arguments. Useless!
13501 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13502 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13503 if test "${ac_cv_working_alloca_h+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 else
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h. */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 #include <alloca.h>
13513 int
13514 main ()
13515 {
13516 char *p = (char *) alloca (2 * sizeof (int));
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_working_alloca_h=yes
13544 else
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 ac_cv_working_alloca_h=no
13549 fi
13550 rm -f conftest.err conftest.$ac_objext \
13551 conftest$ac_exeext conftest.$ac_ext
13552 fi
13553 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13554 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13555 if test $ac_cv_working_alloca_h = yes; then
13556
13557 cat >>confdefs.h <<\_ACEOF
13558 #define HAVE_ALLOCA_H 1
13559 _ACEOF
13560
13561 fi
13562
13563 echo "$as_me:$LINENO: checking for alloca" >&5
13564 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13565 if test "${ac_cv_func_alloca_works+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 #ifdef __GNUC__
13575 # define alloca __builtin_alloca
13576 #else
13577 # ifdef _MSC_VER
13578 # include <malloc.h>
13579 # define alloca _alloca
13580 # else
13581 # if HAVE_ALLOCA_H
13582 # include <alloca.h>
13583 # else
13584 # ifdef _AIX
13585 #pragma alloca
13586 # else
13587 # ifndef alloca /* predefined by HP cc +Olibcalls */
13588 char *alloca ();
13589 # endif
13590 # endif
13591 # endif
13592 # endif
13593 #endif
13594
13595 int
13596 main ()
13597 {
13598 char *p = (char *) alloca (1);
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_func_alloca_works=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_func_alloca_works=no
13631 fi
13632 rm -f conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634 fi
13635 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13637
13638 if test $ac_cv_func_alloca_works = yes; then
13639
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_ALLOCA 1
13642 _ACEOF
13643
13644 else
13645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13646 # that cause trouble. Some versions do not even contain alloca or
13647 # contain a buggy version. If you still want to use their alloca,
13648 # use ar to extract alloca.o from them instead of compiling alloca.c.
13649
13650 ALLOCA=alloca.$ac_objext
13651
13652 cat >>confdefs.h <<\_ACEOF
13653 #define C_ALLOCA 1
13654 _ACEOF
13655
13656
13657 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13659 if test "${ac_cv_os_cray+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #if defined(CRAY) && ! defined(CRAY2)
13669 webecray
13670 #else
13671 wenotbecray
13672 #endif
13673
13674 _ACEOF
13675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13676 $EGREP "webecray" >/dev/null 2>&1; then
13677 ac_cv_os_cray=yes
13678 else
13679 ac_cv_os_cray=no
13680 fi
13681 rm -f conftest*
13682
13683 fi
13684 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13685 echo "${ECHO_T}$ac_cv_os_cray" >&6
13686 if test $ac_cv_os_cray = yes; then
13687 for ac_func in _getb67 GETB67 getb67; do
13688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13689 echo "$as_me:$LINENO: checking for $ac_func" >&5
13690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13691 if eval "test \"\${$as_ac_var+set}\" = set"; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13702 #define $ac_func innocuous_$ac_func
13703
13704 /* System header to define __stub macros and hopefully few prototypes,
13705 which can conflict with char $ac_func (); below.
13706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13707 <limits.h> exists even on freestanding compilers. */
13708
13709 #ifdef __STDC__
13710 # include <limits.h>
13711 #else
13712 # include <assert.h>
13713 #endif
13714
13715 #undef $ac_func
13716
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 #ifdef __cplusplus
13719 extern "C"
13720 {
13721 #endif
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13724 char $ac_func ();
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 choke me
13730 #else
13731 char (*f) () = $ac_func;
13732 #endif
13733 #ifdef __cplusplus
13734 }
13735 #endif
13736
13737 int
13738 main ()
13739 {
13740 return f != $ac_func;
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 eval "$as_ac_var=yes"
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 eval "$as_ac_var=no"
13773 fi
13774 rm -f conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
13776 fi
13777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13779 if test `eval echo '${'$as_ac_var'}'` = yes; then
13780
13781 cat >>confdefs.h <<_ACEOF
13782 #define CRAY_STACKSEG_END $ac_func
13783 _ACEOF
13784
13785 break
13786 fi
13787
13788 done
13789 fi
13790
13791 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13792 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13793 if test "${ac_cv_c_stack_direction+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 if test "$cross_compiling" = yes; then
13797 ac_cv_c_stack_direction=0
13798 else
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 int
13806 find_stack_direction ()
13807 {
13808 static char *addr = 0;
13809 auto char dummy;
13810 if (addr == 0)
13811 {
13812 addr = &dummy;
13813 return find_stack_direction ();
13814 }
13815 else
13816 return (&dummy > addr) ? 1 : -1;
13817 }
13818
13819 int
13820 main ()
13821 {
13822 exit (find_stack_direction () < 0);
13823 }
13824 _ACEOF
13825 rm -f conftest$ac_exeext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_c_stack_direction=1
13837 else
13838 echo "$as_me: program exited with status $ac_status" >&5
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ( exit $ac_status )
13843 ac_cv_c_stack_direction=-1
13844 fi
13845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 fi
13848 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13849 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13850
13851 cat >>confdefs.h <<_ACEOF
13852 #define STACK_DIRECTION $ac_cv_c_stack_direction
13853 _ACEOF
13854
13855
13856 fi
13857
13858
13859 # fmod, logb, and frexp are found in -lm on most systems.
13860 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13861
13862 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13863 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13864 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lm $LIBS"
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h. */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875
13876 /* Override any gcc2 internal prototype to avoid an error. */
13877 #ifdef __cplusplus
13878 extern "C"
13879 #endif
13880 /* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13882 char sqrt ();
13883 int
13884 main ()
13885 {
13886 sqrt ();
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 rm -f conftest.$ac_objext conftest$ac_exeext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13893 (eval $ac_link) 2>conftest.er1
13894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try='test -z "$ac_c_werror_flag"
13901 || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_lib_m_sqrt=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_cv_lib_m_sqrt=no
13919 fi
13920 rm -f conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13923 fi
13924 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13925 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13926 if test $ac_cv_lib_m_sqrt = yes; then
13927 cat >>confdefs.h <<_ACEOF
13928 #define HAVE_LIBM 1
13929 _ACEOF
13930
13931 LIBS="-lm $LIBS"
13932
13933 fi
13934
13935
13936 # Check for mail-locking functions in a "mail" library. Probably this should
13937 # have the same check as for liblockfile below.
13938
13939 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13940 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13941 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lmail $LIBS"
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952
13953 /* Override any gcc2 internal prototype to avoid an error. */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 /* We use char because int might match the return type of a gcc2
13958 builtin and then its argument prototype would still apply. */
13959 char maillock ();
13960 int
13961 main ()
13962 {
13963 maillock ();
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13970 (eval $ac_link) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_lib_mail_maillock=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_cv_lib_mail_maillock=no
13996 fi
13997 rm -f conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS=$ac_check_lib_save_LIBS
14000 fi
14001 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14002 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14003 if test $ac_cv_lib_mail_maillock = yes; then
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_LIBMAIL 1
14006 _ACEOF
14007
14008 LIBS="-lmail $LIBS"
14009
14010 fi
14011
14012
14013 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14014 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14015 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-llockfile $LIBS"
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026
14027 /* Override any gcc2 internal prototype to avoid an error. */
14028 #ifdef __cplusplus
14029 extern "C"
14030 #endif
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char maillock ();
14034 int
14035 main ()
14036 {
14037 maillock ();
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_lib_lockfile_maillock=yes
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_lib_lockfile_maillock=no
14070 fi
14071 rm -f conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14074 fi
14075 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14076 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14077 if test $ac_cv_lib_lockfile_maillock = yes; then
14078 cat >>confdefs.h <<_ACEOF
14079 #define HAVE_LIBLOCKFILE 1
14080 _ACEOF
14081
14082 LIBS="-llockfile $LIBS"
14083
14084 fi
14085
14086 # If we have the shared liblockfile, assume we must use it for mail
14087 # locking (e.g. Debian). If we couldn't link against liblockfile
14088 # (no liblockfile.a installed), ensure that we don't need to.
14089 if test "$ac_cv_lib_lockfile_maillock" = no; then
14090 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14091 set dummy liblockfile.so; ac_word=$2
14092 echo "$as_me:$LINENO: checking for $ac_word" >&5
14093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14094 if test "${ac_cv_prog_liblockfile+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097 if test -n "$liblockfile"; then
14098 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14102 for as_dir in $as_dummy
14103 do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_liblockfile="yes"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112 done
14113 done
14114
14115 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14116 fi
14117 fi
14118 liblockfile=$ac_cv_prog_liblockfile
14119 if test -n "$liblockfile"; then
14120 echo "$as_me:$LINENO: result: $liblockfile" >&5
14121 echo "${ECHO_T}$liblockfile" >&6
14122 else
14123 echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14125 fi
14126
14127 if test $ac_cv_prog_liblockfile = yes; then
14128 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14129 This probably means that movemail could lose mail.
14130 There may be a \`development' package to install containing liblockfile." >&5
14131 echo "$as_me: error: Shared liblockfile found but can't link against it.
14132 This probably means that movemail could lose mail.
14133 There may be a \`development' package to install containing liblockfile." >&2;}
14134 { (exit 1); exit 1; }; }
14135 else :
14136 fi
14137 fi
14138
14139 for ac_func in touchlock
14140 do
14141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14142 echo "$as_me:$LINENO: checking for $ac_func" >&5
14143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_var+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14155 #define $ac_func innocuous_$ac_func
14156
14157 /* System header to define __stub macros and hopefully few prototypes,
14158 which can conflict with char $ac_func (); below.
14159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14160 <limits.h> exists even on freestanding compilers. */
14161
14162 #ifdef __STDC__
14163 # include <limits.h>
14164 #else
14165 # include <assert.h>
14166 #endif
14167
14168 #undef $ac_func
14169
14170 /* Override any gcc2 internal prototype to avoid an error. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 {
14174 #endif
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char $ac_func ();
14178 /* The GNU C library defines this for functions which it implements
14179 to always fail with ENOSYS. Some functions are actually named
14180 something starting with __ and the normal name is an alias. */
14181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14182 choke me
14183 #else
14184 char (*f) () = $ac_func;
14185 #endif
14186 #ifdef __cplusplus
14187 }
14188 #endif
14189
14190 int
14191 main ()
14192 {
14193 return f != $ac_func;
14194 ;
14195 return 0;
14196 }
14197 _ACEOF
14198 rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag"
14208 || test ! -s conftest.err'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest$ac_exeext'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 eval "$as_ac_var=yes"
14221 else
14222 echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 eval "$as_ac_var=no"
14226 fi
14227 rm -f conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 fi
14230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14232 if test `eval echo '${'$as_ac_var'}'` = yes; then
14233 cat >>confdefs.h <<_ACEOF
14234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14235 _ACEOF
14236
14237 fi
14238 done
14239
14240
14241 for ac_header in maillock.h
14242 do
14243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 fi
14250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14252 else
14253 # Is the header compilable?
14254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h. */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <$ac_header>
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_header_compiler=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_header_compiler=no
14293 fi
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14296 echo "${ECHO_T}$ac_header_compiler" >&6
14297
14298 # Is the header present?
14299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307 #include <$ac_header>
14308 _ACEOF
14309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev/null; then
14317 if test -s conftest.err; then
14318 ac_cpp_err=$ac_c_preproc_warn_flag
14319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14320 else
14321 ac_cpp_err=
14322 fi
14323 else
14324 ac_cpp_err=yes
14325 fi
14326 if test -z "$ac_cpp_err"; then
14327 ac_header_preproc=yes
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_header_preproc=no
14333 fi
14334 rm -f conftest.err conftest.$ac_ext
14335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336 echo "${ECHO_T}$ac_header_preproc" >&6
14337
14338 # So? What about this header?
14339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14340 yes:no: )
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345 ac_header_preproc=yes
14346 ;;
14347 no:yes:* )
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14360 (
14361 cat <<\_ASBOX
14362 ## ------------------------------------------ ##
14363 ## Report this to the AC_PACKAGE_NAME lists. ##
14364 ## ------------------------------------------ ##
14365 _ASBOX
14366 ) |
14367 sed "s/^/$as_me: WARNING: /" >&2
14368 ;;
14369 esac
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 eval "$as_ac_Header=\$ac_header_preproc"
14376 fi
14377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14379
14380 fi
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384 _ACEOF
14385
14386 fi
14387
14388 done
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 for ac_func in gethostname getdomainname dup2 \
14460 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14461 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14462 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14463 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14464 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14465 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14466 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14467 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14468 do
14469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 echo "$as_me:$LINENO: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_var+set}\" = set"; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14484
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14489
14490 #ifdef __STDC__
14491 # include <limits.h>
14492 #else
14493 # include <assert.h>
14494 #endif
14495
14496 #undef $ac_func
14497
14498 /* Override any gcc2 internal prototype to avoid an error. */
14499 #ifdef __cplusplus
14500 extern "C"
14501 {
14502 #endif
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14505 char $ac_func ();
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14510 choke me
14511 #else
14512 char (*f) () = $ac_func;
14513 #endif
14514 #ifdef __cplusplus
14515 }
14516 #endif
14517
14518 int
14519 main ()
14520 {
14521 return f != $ac_func;
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 eval "$as_ac_var=yes"
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 eval "$as_ac_var=no"
14554 fi
14555 rm -f conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557 fi
14558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14560 if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 _ACEOF
14564
14565 fi
14566 done
14567
14568
14569
14570 for ac_header in sys/un.h
14571 do
14572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14574 echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 fi
14579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14581 else
14582 # Is the header compilable?
14583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 #include <$ac_header>
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -z "$ac_c_werror_flag"
14604 || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_header_compiler=yes
14617 else
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 ac_header_compiler=no
14622 fi
14623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625 echo "${ECHO_T}$ac_header_compiler" >&6
14626
14627 # Is the header present?
14628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h. */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <$ac_header>
14637 _ACEOF
14638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev/null; then
14646 if test -s conftest.err; then
14647 ac_cpp_err=$ac_c_preproc_warn_flag
14648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14649 else
14650 ac_cpp_err=
14651 fi
14652 else
14653 ac_cpp_err=yes
14654 fi
14655 if test -z "$ac_cpp_err"; then
14656 ac_header_preproc=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 ac_header_preproc=no
14662 fi
14663 rm -f conftest.err conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665 echo "${ECHO_T}$ac_header_preproc" >&6
14666
14667 # So? What about this header?
14668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14669 yes:no: )
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14674 ac_header_preproc=yes
14675 ;;
14676 no:yes:* )
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14689 (
14690 cat <<\_ASBOX
14691 ## ------------------------------------------ ##
14692 ## Report this to the AC_PACKAGE_NAME lists. ##
14693 ## ------------------------------------------ ##
14694 _ASBOX
14695 ) |
14696 sed "s/^/$as_me: WARNING: /" >&2
14697 ;;
14698 esac
14699 echo "$as_me:$LINENO: checking for $ac_header" >&5
14700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704 eval "$as_ac_Header=\$ac_header_preproc"
14705 fi
14706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14708
14709 fi
14710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14711 cat >>confdefs.h <<_ACEOF
14712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14713 _ACEOF
14714
14715 fi
14716
14717 done
14718
14719
14720
14721
14722
14723 for ac_header in stdlib.h sys/time.h unistd.h
14724 do
14725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14727 echo "$as_me:$LINENO: checking for $ac_header" >&5
14728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14730 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 fi
14732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14734 else
14735 # Is the header compilable?
14736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h. */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 $ac_includes_default
14745 #include <$ac_header>
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_header_compiler=yes
14770 else
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_header_compiler=no
14775 fi
14776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6
14779
14780 # Is the header present?
14781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <$ac_header>
14790 _ACEOF
14791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } >/dev/null; then
14799 if test -s conftest.err; then
14800 ac_cpp_err=$ac_c_preproc_warn_flag
14801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14802 else
14803 ac_cpp_err=
14804 fi
14805 else
14806 ac_cpp_err=yes
14807 fi
14808 if test -z "$ac_cpp_err"; then
14809 ac_header_preproc=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_header_preproc=no
14815 fi
14816 rm -f conftest.err conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 echo "${ECHO_T}$ac_header_preproc" >&6
14819
14820 # So? What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 yes:no: )
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827 ac_header_preproc=yes
14828 ;;
14829 no:yes:* )
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14842 (
14843 cat <<\_ASBOX
14844 ## ------------------------------------------ ##
14845 ## Report this to the AC_PACKAGE_NAME lists. ##
14846 ## ------------------------------------------ ##
14847 _ASBOX
14848 ) |
14849 sed "s/^/$as_me: WARNING: /" >&2
14850 ;;
14851 esac
14852 echo "$as_me:$LINENO: checking for $ac_header" >&5
14853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 eval "$as_ac_Header=\$ac_header_preproc"
14858 fi
14859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14861
14862 fi
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14866 _ACEOF
14867
14868 fi
14869
14870 done
14871
14872
14873 for ac_func in alarm
14874 do
14875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14876 echo "$as_me:$LINENO: checking for $ac_func" >&5
14877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_var+set}\" = set"; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14889 #define $ac_func innocuous_$ac_func
14890
14891 /* System header to define __stub macros and hopefully few prototypes,
14892 which can conflict with char $ac_func (); below.
14893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14894 <limits.h> exists even on freestanding compilers. */
14895
14896 #ifdef __STDC__
14897 # include <limits.h>
14898 #else
14899 # include <assert.h>
14900 #endif
14901
14902 #undef $ac_func
14903
14904 /* Override any gcc2 internal prototype to avoid an error. */
14905 #ifdef __cplusplus
14906 extern "C"
14907 {
14908 #endif
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char $ac_func ();
14912 /* The GNU C library defines this for functions which it implements
14913 to always fail with ENOSYS. Some functions are actually named
14914 something starting with __ and the normal name is an alias. */
14915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14916 choke me
14917 #else
14918 char (*f) () = $ac_func;
14919 #endif
14920 #ifdef __cplusplus
14921 }
14922 #endif
14923
14924 int
14925 main ()
14926 {
14927 return f != $ac_func;
14928 ;
14929 return 0;
14930 }
14931 _ACEOF
14932 rm -f conftest.$ac_objext conftest$ac_exeext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14934 (eval $ac_link) 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -z "$ac_c_werror_flag"
14942 || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest$ac_exeext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 eval "$as_ac_var=yes"
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 eval "$as_ac_var=no"
14960 fi
14961 rm -f conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
14963 fi
14964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14969 _ACEOF
14970
14971 fi
14972 done
14973
14974 echo "$as_me:$LINENO: checking for working mktime" >&5
14975 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14976 if test "${ac_cv_func_working_mktime+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 if test "$cross_compiling" = yes; then
14980 ac_cv_func_working_mktime=no
14981 else
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 /* Test program from Paul Eggert and Tony Leneis. */
14989 #if TIME_WITH_SYS_TIME
14990 # include <sys/time.h>
14991 # include <time.h>
14992 #else
14993 # if HAVE_SYS_TIME_H
14994 # include <sys/time.h>
14995 # else
14996 # include <time.h>
14997 # endif
14998 #endif
14999
15000 #if HAVE_STDLIB_H
15001 # include <stdlib.h>
15002 #endif
15003
15004 #if HAVE_UNISTD_H
15005 # include <unistd.h>
15006 #endif
15007
15008 #if !HAVE_ALARM
15009 # define alarm(X) /* empty */
15010 #endif
15011
15012 /* Work around redefinition to rpl_putenv by other config tests. */
15013 #undef putenv
15014
15015 static time_t time_t_max;
15016 static time_t time_t_min;
15017
15018 /* Values we'll use to set the TZ environment variable. */
15019 static char *tz_strings[] = {
15020 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15021 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15022 };
15023 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15024
15025 /* Fail if mktime fails to convert a date in the spring-forward gap.
15026 Based on a problem report from Andreas Jaeger. */
15027 static void
15028 spring_forward_gap ()
15029 {
15030 /* glibc (up to about 1998-10-07) failed this test. */
15031 struct tm tm;
15032
15033 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15034 instead of "TZ=America/Vancouver" in order to detect the bug even
15035 on systems that don't support the Olson extension, or don't have the
15036 full zoneinfo tables installed. */
15037 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15038
15039 tm.tm_year = 98;
15040 tm.tm_mon = 3;
15041 tm.tm_mday = 5;
15042 tm.tm_hour = 2;
15043 tm.tm_min = 0;
15044 tm.tm_sec = 0;
15045 tm.tm_isdst = -1;
15046 if (mktime (&tm) == (time_t)-1)
15047 exit (1);
15048 }
15049
15050 static void
15051 mktime_test1 (now)
15052 time_t now;
15053 {
15054 struct tm *lt;
15055 if ((lt = localtime (&now)) && mktime (lt) != now)
15056 exit (1);
15057 }
15058
15059 static void
15060 mktime_test (now)
15061 time_t now;
15062 {
15063 mktime_test1 (now);
15064 mktime_test1 ((time_t) (time_t_max - now));
15065 mktime_test1 ((time_t) (time_t_min + now));
15066 }
15067
15068 static void
15069 irix_6_4_bug ()
15070 {
15071 /* Based on code from Ariel Faigon. */
15072 struct tm tm;
15073 tm.tm_year = 96;
15074 tm.tm_mon = 3;
15075 tm.tm_mday = 0;
15076 tm.tm_hour = 0;
15077 tm.tm_min = 0;
15078 tm.tm_sec = 0;
15079 tm.tm_isdst = -1;
15080 mktime (&tm);
15081 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15082 exit (1);
15083 }
15084
15085 static void
15086 bigtime_test (j)
15087 int j;
15088 {
15089 struct tm tm;
15090 time_t now;
15091 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15092 now = mktime (&tm);
15093 if (now != (time_t) -1)
15094 {
15095 struct tm *lt = localtime (&now);
15096 if (! (lt
15097 && lt->tm_year == tm.tm_year
15098 && lt->tm_mon == tm.tm_mon
15099 && lt->tm_mday == tm.tm_mday
15100 && lt->tm_hour == tm.tm_hour
15101 && lt->tm_min == tm.tm_min
15102 && lt->tm_sec == tm.tm_sec
15103 && lt->tm_yday == tm.tm_yday
15104 && lt->tm_wday == tm.tm_wday
15105 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15106 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15107 exit (1);
15108 }
15109 }
15110
15111 int
15112 main ()
15113 {
15114 time_t t, delta;
15115 int i, j;
15116
15117 /* This test makes some buggy mktime implementations loop.
15118 Give up after 60 seconds; a mktime slower than that
15119 isn't worth using anyway. */
15120 alarm (60);
15121
15122 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15123 continue;
15124 time_t_max--;
15125 if ((time_t) -1 < 0)
15126 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15127 continue;
15128 delta = time_t_max / 997; /* a suitable prime number */
15129 for (i = 0; i < N_STRINGS; i++)
15130 {
15131 if (tz_strings[i])
15132 putenv (tz_strings[i]);
15133
15134 for (t = 0; t <= time_t_max - delta; t += delta)
15135 mktime_test (t);
15136 mktime_test ((time_t) 1);
15137 mktime_test ((time_t) (60 * 60));
15138 mktime_test ((time_t) (60 * 60 * 24));
15139
15140 for (j = 1; 0 < j; j *= 2)
15141 bigtime_test (j);
15142 bigtime_test (j - 1);
15143 }
15144 irix_6_4_bug ();
15145 spring_forward_gap ();
15146 exit (0);
15147 }
15148 _ACEOF
15149 rm -f conftest$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_func_working_mktime=yes
15161 else
15162 echo "$as_me: program exited with status $ac_status" >&5
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ( exit $ac_status )
15167 ac_cv_func_working_mktime=no
15168 fi
15169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15170 fi
15171 fi
15172 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15173 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15174 if test $ac_cv_func_working_mktime = no; then
15175 case $LIBOBJS in
15176 "mktime.$ac_objext" | \
15177 *" mktime.$ac_objext" | \
15178 "mktime.$ac_objext "* | \
15179 *" mktime.$ac_objext "* ) ;;
15180 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15181 esac
15182
15183 fi
15184
15185 if test "$ac_cv_func_working_mktime" = no; then
15186
15187 cat >>confdefs.h <<\_ACEOF
15188 #define BROKEN_MKTIME 1
15189 _ACEOF
15190
15191 fi
15192
15193 ac_have_func=no # yes means we've found a way to get the load average.
15194
15195 # Make sure getloadavg.c is where it belongs, at configure-time.
15196 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15197 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15198 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15199 { (exit 1); exit 1; }; }
15200
15201 ac_save_LIBS=$LIBS
15202
15203 # Check for getloadavg, but be sure not to touch the cache variable.
15204 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15205 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15206 if test "${ac_cv_func_getloadavg+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 else
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15217 #define getloadavg innocuous_getloadavg
15218
15219 /* System header to define __stub macros and hopefully few prototypes,
15220 which can conflict with char getloadavg (); below.
15221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15222 <limits.h> exists even on freestanding compilers. */
15223
15224 #ifdef __STDC__
15225 # include <limits.h>
15226 #else
15227 # include <assert.h>
15228 #endif
15229
15230 #undef getloadavg
15231
15232 /* Override any gcc2 internal prototype to avoid an error. */
15233 #ifdef __cplusplus
15234 extern "C"
15235 {
15236 #endif
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char getloadavg ();
15240 /* The GNU C library defines this for functions which it implements
15241 to always fail with ENOSYS. Some functions are actually named
15242 something starting with __ and the normal name is an alias. */
15243 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15244 choke me
15245 #else
15246 char (*f) () = getloadavg;
15247 #endif
15248 #ifdef __cplusplus
15249 }
15250 #endif
15251
15252 int
15253 main ()
15254 {
15255 return f != getloadavg;
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_func_getloadavg=yes
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_cv_func_getloadavg=no
15288 fi
15289 rm -f conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15291 fi
15292 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15293 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15294 if test $ac_cv_func_getloadavg = yes; then
15295 exit 0
15296 else
15297 exit 1
15298 fi
15299 ) && ac_have_func=yes
15300
15301 # On HPUX9, an unprivileged user can get load averages through this function.
15302
15303 for ac_func in pstat_getdynamic
15304 do
15305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306 echo "$as_me:$LINENO: checking for $ac_func" >&5
15307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_var+set}\" = set"; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311 cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15319 #define $ac_func innocuous_$ac_func
15320
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func (); below.
15323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15324 <limits.h> exists even on freestanding compilers. */
15325
15326 #ifdef __STDC__
15327 # include <limits.h>
15328 #else
15329 # include <assert.h>
15330 #endif
15331
15332 #undef $ac_func
15333
15334 /* Override any gcc2 internal prototype to avoid an error. */
15335 #ifdef __cplusplus
15336 extern "C"
15337 {
15338 #endif
15339 /* We use char because int might match the return type of a gcc2
15340 builtin and then its argument prototype would still apply. */
15341 char $ac_func ();
15342 /* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346 choke me
15347 #else
15348 char (*f) () = $ac_func;
15349 #endif
15350 #ifdef __cplusplus
15351 }
15352 #endif
15353
15354 int
15355 main ()
15356 {
15357 return f != $ac_func;
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>conftest.er1
15365 ac_status=$?
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 eval "$as_ac_var=no"
15390 fi
15391 rm -f conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 fi
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 _ACEOF
15400
15401 fi
15402 done
15403
15404
15405 # Solaris has libkstat which does not require root.
15406
15407 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15408 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15409 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 ac_check_lib_save_LIBS=$LIBS
15413 LIBS="-lkstat $LIBS"
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420
15421 /* Override any gcc2 internal prototype to avoid an error. */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 /* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15427 char kstat_open ();
15428 int
15429 main ()
15430 {
15431 kstat_open ();
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15438 (eval $ac_link) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_kstat_kstat_open=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 ac_cv_lib_kstat_kstat_open=no
15464 fi
15465 rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 LIBS=$ac_check_lib_save_LIBS
15468 fi
15469 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15470 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15471 if test $ac_cv_lib_kstat_kstat_open = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define HAVE_LIBKSTAT 1
15474 _ACEOF
15475
15476 LIBS="-lkstat $LIBS"
15477
15478 fi
15479
15480 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15481
15482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15484 # to get the right answer into the cache.
15485 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15486 if test $ac_have_func = no; then
15487 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15488 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15489 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-lelf $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507 char elf_begin ();
15508 int
15509 main ()
15510 {
15511 elf_begin ();
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518 (eval $ac_link) 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_lib_elf_elf_begin=yes
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_cv_lib_elf_elf_begin=no
15544 fi
15545 rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15548 fi
15549 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15550 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15551 if test $ac_cv_lib_elf_elf_begin = yes; then
15552 LIBS="-lelf $LIBS"
15553 fi
15554
15555 fi
15556 if test $ac_have_func = no; then
15557 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15558 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15559 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562 ac_check_lib_save_LIBS=$LIBS
15563 LIBS="-lkvm $LIBS"
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570
15571 /* Override any gcc2 internal prototype to avoid an error. */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15577 char kvm_open ();
15578 int
15579 main ()
15580 {
15581 kvm_open ();
15582 ;
15583 return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_lib_kvm_kvm_open=yes
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_cv_lib_kvm_kvm_open=no
15614 fi
15615 rm -f conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15618 fi
15619 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15620 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15621 if test $ac_cv_lib_kvm_kvm_open = yes; then
15622 LIBS="-lkvm $LIBS"
15623 fi
15624
15625 # Check for the 4.4BSD definition of getloadavg.
15626 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15627 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15628 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lutil $LIBS"
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 #ifdef __cplusplus
15642 extern "C"
15643 #endif
15644 /* We use char because int might match the return type of a gcc2
15645 builtin and then its argument prototype would still apply. */
15646 char getloadavg ();
15647 int
15648 main ()
15649 {
15650 getloadavg ();
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15657 (eval $ac_link) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest$ac_exeext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_cv_lib_util_getloadavg=yes
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_cv_lib_util_getloadavg=no
15683 fi
15684 rm -f conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 LIBS=$ac_check_lib_save_LIBS
15687 fi
15688 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15689 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15690 if test $ac_cv_lib_util_getloadavg = yes; then
15691 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15692 fi
15693
15694 fi
15695
15696 if test $ac_have_func = no; then
15697 # There is a commonly available library for RS/6000 AIX.
15698 # Since it is not a standard part of AIX, it might be installed locally.
15699 ac_getloadavg_LIBS=$LIBS
15700 LIBS="-L/usr/local/lib $LIBS"
15701 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15702 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15703 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-lgetloadavg $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714
15715 /* Override any gcc2 internal prototype to avoid an error. */
15716 #ifdef __cplusplus
15717 extern "C"
15718 #endif
15719 /* We use char because int might match the return type of a gcc2
15720 builtin and then its argument prototype would still apply. */
15721 char getloadavg ();
15722 int
15723 main ()
15724 {
15725 getloadavg ();
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_cv_lib_getloadavg_getloadavg=yes
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 ac_cv_lib_getloadavg_getloadavg=no
15758 fi
15759 rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 LIBS=$ac_check_lib_save_LIBS
15762 fi
15763 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15764 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15765 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15766 LIBS="-lgetloadavg $LIBS"
15767 else
15768 LIBS=$ac_getloadavg_LIBS
15769 fi
15770
15771 fi
15772
15773 # Make sure it is really in the library, if we think we found it,
15774 # otherwise set up the replacement function.
15775
15776 for ac_func in getloadavg
15777 do
15778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15779 echo "$as_me:$LINENO: checking for $ac_func" >&5
15780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15781 if eval "test \"\${$as_ac_var+set}\" = set"; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15792 #define $ac_func innocuous_$ac_func
15793
15794 /* System header to define __stub macros and hopefully few prototypes,
15795 which can conflict with char $ac_func (); below.
15796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15797 <limits.h> exists even on freestanding compilers. */
15798
15799 #ifdef __STDC__
15800 # include <limits.h>
15801 #else
15802 # include <assert.h>
15803 #endif
15804
15805 #undef $ac_func
15806
15807 /* Override any gcc2 internal prototype to avoid an error. */
15808 #ifdef __cplusplus
15809 extern "C"
15810 {
15811 #endif
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15814 char $ac_func ();
15815 /* The GNU C library defines this for functions which it implements
15816 to always fail with ENOSYS. Some functions are actually named
15817 something starting with __ and the normal name is an alias. */
15818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15819 choke me
15820 #else
15821 char (*f) () = $ac_func;
15822 #endif
15823 #ifdef __cplusplus
15824 }
15825 #endif
15826
15827 int
15828 main ()
15829 {
15830 return f != $ac_func;
15831 ;
15832 return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext conftest$ac_exeext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837 (eval $ac_link) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest$ac_exeext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 eval "$as_ac_var=yes"
15858 else
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15861
15862 eval "$as_ac_var=no"
15863 fi
15864 rm -f conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15866 fi
15867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15869 if test `eval echo '${'$as_ac_var'}'` = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15872 _ACEOF
15873
15874 else
15875 case $LIBOBJS in
15876 "getloadavg.$ac_objext" | \
15877 *" getloadavg.$ac_objext" | \
15878 "getloadavg.$ac_objext "* | \
15879 *" getloadavg.$ac_objext "* ) ;;
15880 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15881 esac
15882
15883
15884 cat >>confdefs.h <<\_ACEOF
15885 #define C_GETLOADAVG 1
15886 _ACEOF
15887
15888 # Figure out what our getloadavg.c needs.
15889 ac_have_func=no
15890 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15891 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15892 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15893 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15897 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15898 else
15899 # Is the header compilable?
15900 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15901 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <sys/dg_sys_info.h>
15910 _ACEOF
15911 rm -f conftest.$ac_objext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913 (eval $ac_compile) 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag"
15921 || test ! -s conftest.err'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_header_compiler=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938 ac_header_compiler=no
15939 fi
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15942 echo "${ECHO_T}$ac_header_compiler" >&6
15943
15944 # Is the header present?
15945 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15946 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <sys/dg_sys_info.h>
15954 _ACEOF
15955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev/null; then
15963 if test -s conftest.err; then
15964 ac_cpp_err=$ac_c_preproc_warn_flag
15965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15966 else
15967 ac_cpp_err=
15968 fi
15969 else
15970 ac_cpp_err=yes
15971 fi
15972 if test -z "$ac_cpp_err"; then
15973 ac_header_preproc=yes
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_header_preproc=no
15979 fi
15980 rm -f conftest.err conftest.$ac_ext
15981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982 echo "${ECHO_T}$ac_header_preproc" >&6
15983
15984 # So? What about this header?
15985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 yes:no: )
15987 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15988 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15990 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15992 ;;
15993 no:yes:* )
15994 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15995 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15997 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15999 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16001 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16003 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16005 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16006 (
16007 cat <<\_ASBOX
16008 ## ------------------------------------------ ##
16009 ## Report this to the AC_PACKAGE_NAME lists. ##
16010 ## ------------------------------------------ ##
16011 _ASBOX
16012 ) |
16013 sed "s/^/$as_me: WARNING: /" >&2
16014 ;;
16015 esac
16016 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16017 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16018 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16022 fi
16023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16024 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16025
16026 fi
16027 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16028 ac_have_func=yes
16029
16030 cat >>confdefs.h <<\_ACEOF
16031 #define DGUX 1
16032 _ACEOF
16033
16034
16035 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16036 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16037 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 ac_check_lib_save_LIBS=$LIBS
16041 LIBS="-ldgc $LIBS"
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048
16049 /* Override any gcc2 internal prototype to avoid an error. */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16055 char dg_sys_info ();
16056 int
16057 main ()
16058 {
16059 dg_sys_info ();
16060 ;
16061 return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_dgc_dg_sys_info=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_cv_lib_dgc_dg_sys_info=no
16092 fi
16093 rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16095 LIBS=$ac_check_lib_save_LIBS
16096 fi
16097 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16098 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16099 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_LIBDGC 1
16102 _ACEOF
16103
16104 LIBS="-ldgc $LIBS"
16105
16106 fi
16107
16108 fi
16109
16110
16111
16112 if test "${ac_cv_header_locale_h+set}" = set; then
16113 echo "$as_me:$LINENO: checking for locale.h" >&5
16114 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_locale_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 fi
16118 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16119 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16120 else
16121 # Is the header compilable?
16122 echo "$as_me:$LINENO: checking locale.h usability" >&5
16123 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h. */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 $ac_includes_default
16131 #include <locale.h>
16132 _ACEOF
16133 rm -f conftest.$ac_objext
16134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16135 (eval $ac_compile) 2>conftest.er1
16136 ac_status=$?
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -z "$ac_c_werror_flag"
16143 || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_header_compiler=yes
16156 else
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_compiler=no
16161 fi
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6
16165
16166 # Is the header present?
16167 echo "$as_me:$LINENO: checking locale.h presence" >&5
16168 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <locale.h>
16176 _ACEOF
16177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } >/dev/null; then
16185 if test -s conftest.err; then
16186 ac_cpp_err=$ac_c_preproc_warn_flag
16187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16188 else
16189 ac_cpp_err=
16190 fi
16191 else
16192 ac_cpp_err=yes
16193 fi
16194 if test -z "$ac_cpp_err"; then
16195 ac_header_preproc=yes
16196 else
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ac_header_preproc=no
16201 fi
16202 rm -f conftest.err conftest.$ac_ext
16203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16204 echo "${ECHO_T}$ac_header_preproc" >&6
16205
16206 # So? What about this header?
16207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16208 yes:no: )
16209 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16210 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16212 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16213 ac_header_preproc=yes
16214 ;;
16215 no:yes:* )
16216 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16217 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16219 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16221 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16223 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16225 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16227 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16228 (
16229 cat <<\_ASBOX
16230 ## ------------------------------------------ ##
16231 ## Report this to the AC_PACKAGE_NAME lists. ##
16232 ## ------------------------------------------ ##
16233 _ASBOX
16234 ) |
16235 sed "s/^/$as_me: WARNING: /" >&2
16236 ;;
16237 esac
16238 echo "$as_me:$LINENO: checking for locale.h" >&5
16239 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16240 if test "${ac_cv_header_locale_h+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 ac_cv_header_locale_h=$ac_header_preproc
16244 fi
16245 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16246 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16247
16248 fi
16249
16250
16251
16252 for ac_func in setlocale
16253 do
16254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16257 if eval "test \"\${$as_ac_var+set}\" = set"; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16269
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16274
16275 #ifdef __STDC__
16276 # include <limits.h>
16277 #else
16278 # include <assert.h>
16279 #endif
16280
16281 #undef $ac_func
16282
16283 /* Override any gcc2 internal prototype to avoid an error. */
16284 #ifdef __cplusplus
16285 extern "C"
16286 {
16287 #endif
16288 /* We use char because int might match the return type of a gcc2
16289 builtin and then its argument prototype would still apply. */
16290 char $ac_func ();
16291 /* The GNU C library defines this for functions which it implements
16292 to always fail with ENOSYS. Some functions are actually named
16293 something starting with __ and the normal name is an alias. */
16294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16295 choke me
16296 #else
16297 char (*f) () = $ac_func;
16298 #endif
16299 #ifdef __cplusplus
16300 }
16301 #endif
16302
16303 int
16304 main ()
16305 {
16306 return f != $ac_func;
16307 ;
16308 return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16313 (eval $ac_link) 2>conftest.er1
16314 ac_status=$?
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -z "$ac_c_werror_flag"
16321 || test ! -s conftest.err'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest$ac_exeext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 eval "$as_ac_var=yes"
16334 else
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 eval "$as_ac_var=no"
16339 fi
16340 rm -f conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
16342 fi
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16345 if test `eval echo '${'$as_ac_var'}'` = yes; then
16346 cat >>confdefs.h <<_ACEOF
16347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16348 _ACEOF
16349
16350 fi
16351 done
16352
16353
16354 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16355 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16356 # Irix 4.0.5F has the header but not the library.
16357 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16358 ac_have_func=yes
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define SVR4 1
16362 _ACEOF
16363
16364 fi
16365
16366 if test $ac_have_func = no; then
16367 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16368 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16369 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16370 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 fi
16373 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16374 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16375 else
16376 # Is the header compilable?
16377 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16378 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 $ac_includes_default
16386 #include <inq_stats/cpustats.h>
16387 _ACEOF
16388 rm -f conftest.$ac_objext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390 (eval $ac_compile) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_header_compiler=no
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419 echo "${ECHO_T}$ac_header_compiler" >&6
16420
16421 # Is the header present?
16422 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16423 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h. */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 #include <inq_stats/cpustats.h>
16431 _ACEOF
16432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null; then
16440 if test -s conftest.err; then
16441 ac_cpp_err=$ac_c_preproc_warn_flag
16442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16443 else
16444 ac_cpp_err=
16445 fi
16446 else
16447 ac_cpp_err=yes
16448 fi
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 ac_header_preproc=no
16456 fi
16457 rm -f conftest.err conftest.$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6
16460
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 yes:no: )
16464 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc=yes
16469 ;;
16470 no:yes:* )
16471 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16483 (
16484 cat <<\_ASBOX
16485 ## ------------------------------------------ ##
16486 ## Report this to the AC_PACKAGE_NAME lists. ##
16487 ## ------------------------------------------ ##
16488 _ASBOX
16489 ) |
16490 sed "s/^/$as_me: WARNING: /" >&2
16491 ;;
16492 esac
16493 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16494 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16495 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16499 fi
16500 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16501 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16502
16503 fi
16504 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16505 ac_have_func=yes
16506
16507 cat >>confdefs.h <<\_ACEOF
16508 #define UMAX 1
16509 _ACEOF
16510
16511
16512 cat >>confdefs.h <<\_ACEOF
16513 #define UMAX4_3 1
16514 _ACEOF
16515
16516 fi
16517
16518
16519 fi
16520
16521 if test $ac_have_func = no; then
16522 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16523 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16524 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16525 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 fi
16528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16529 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16530 else
16531 # Is the header compilable?
16532 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16533 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16541 #include <sys/cpustats.h>
16542 _ACEOF
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_header_compiler=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 ac_header_compiler=no
16571 fi
16572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16574 echo "${ECHO_T}$ac_header_compiler" >&6
16575
16576 # Is the header present?
16577 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16578 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16579 cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <sys/cpustats.h>
16586 _ACEOF
16587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } >/dev/null; then
16595 if test -s conftest.err; then
16596 ac_cpp_err=$ac_c_preproc_warn_flag
16597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16598 else
16599 ac_cpp_err=
16600 fi
16601 else
16602 ac_cpp_err=yes
16603 fi
16604 if test -z "$ac_cpp_err"; then
16605 ac_header_preproc=yes
16606 else
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_header_preproc=no
16611 fi
16612 rm -f conftest.err conftest.$ac_ext
16613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6
16615
16616 # So? What about this header?
16617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16618 yes:no: )
16619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16623 ac_header_preproc=yes
16624 ;;
16625 no:yes:* )
16626 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16638 (
16639 cat <<\_ASBOX
16640 ## ------------------------------------------ ##
16641 ## Report this to the AC_PACKAGE_NAME lists. ##
16642 ## ------------------------------------------ ##
16643 _ASBOX
16644 ) |
16645 sed "s/^/$as_me: WARNING: /" >&2
16646 ;;
16647 esac
16648 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16649 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16650 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16654 fi
16655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16656 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16657
16658 fi
16659 if test $ac_cv_header_sys_cpustats_h = yes; then
16660 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16661 #define UMAX 1
16662 _ACEOF
16663
16664 fi
16665
16666
16667 fi
16668
16669 if test $ac_have_func = no; then
16670
16671 for ac_header in mach/mach.h
16672 do
16673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16675 echo "$as_me:$LINENO: checking for $ac_header" >&5
16676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 fi
16680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16682 else
16683 # Is the header compilable?
16684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16693 #include <$ac_header>
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16697 (eval $ac_compile) 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest.$ac_objext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_header_compiler=yes
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722 ac_header_compiler=no
16723 fi
16724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16726 echo "${ECHO_T}$ac_header_compiler" >&6
16727
16728 # Is the header present?
16729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <$ac_header>
16738 _ACEOF
16739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16741 ac_status=$?
16742 grep -v '^ *+' conftest.er1 >conftest.err
16743 rm -f conftest.er1
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } >/dev/null; then
16747 if test -s conftest.err; then
16748 ac_cpp_err=$ac_c_preproc_warn_flag
16749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16750 else
16751 ac_cpp_err=
16752 fi
16753 else
16754 ac_cpp_err=yes
16755 fi
16756 if test -z "$ac_cpp_err"; then
16757 ac_header_preproc=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ac_header_preproc=no
16763 fi
16764 rm -f conftest.err conftest.$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766 echo "${ECHO_T}$ac_header_preproc" >&6
16767
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16770 yes:no: )
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16775 ac_header_preproc=yes
16776 ;;
16777 no:yes:* )
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16790 (
16791 cat <<\_ASBOX
16792 ## ------------------------------------------ ##
16793 ## Report this to the AC_PACKAGE_NAME lists. ##
16794 ## ------------------------------------------ ##
16795 _ASBOX
16796 ) |
16797 sed "s/^/$as_me: WARNING: /" >&2
16798 ;;
16799 esac
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 else
16805 eval "$as_ac_Header=\$ac_header_preproc"
16806 fi
16807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16809
16810 fi
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812 cat >>confdefs.h <<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16814 _ACEOF
16815
16816 fi
16817
16818 done
16819
16820 fi
16821
16822
16823 for ac_header in nlist.h
16824 do
16825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16827 echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 fi
16832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16834 else
16835 # Is the header compilable?
16836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h. */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 $ac_includes_default
16845 #include <$ac_header>
16846 _ACEOF
16847 rm -f conftest.$ac_objext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16849 (eval $ac_compile) 2>conftest.er1
16850 ac_status=$?
16851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag"
16857 || test ! -s conftest.err'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try='test -s conftest.$ac_objext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_header_compiler=yes
16870 else
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_header_compiler=no
16875 fi
16876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16878 echo "${ECHO_T}$ac_header_compiler" >&6
16879
16880 # Is the header present?
16881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <$ac_header>
16890 _ACEOF
16891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } >/dev/null; then
16899 if test -s conftest.err; then
16900 ac_cpp_err=$ac_c_preproc_warn_flag
16901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16902 else
16903 ac_cpp_err=
16904 fi
16905 else
16906 ac_cpp_err=yes
16907 fi
16908 if test -z "$ac_cpp_err"; then
16909 ac_header_preproc=yes
16910 else
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914 ac_header_preproc=no
16915 fi
16916 rm -f conftest.err conftest.$ac_ext
16917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16918 echo "${ECHO_T}$ac_header_preproc" >&6
16919
16920 # So? What about this header?
16921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16922 yes:no: )
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16927 ac_header_preproc=yes
16928 ;;
16929 no:yes:* )
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16942 (
16943 cat <<\_ASBOX
16944 ## ------------------------------------------ ##
16945 ## Report this to the AC_PACKAGE_NAME lists. ##
16946 ## ------------------------------------------ ##
16947 _ASBOX
16948 ) |
16949 sed "s/^/$as_me: WARNING: /" >&2
16950 ;;
16951 esac
16952 echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 eval "$as_ac_Header=\$ac_header_preproc"
16958 fi
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16961
16962 fi
16963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16966 _ACEOF
16967 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16968 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16969 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 #include <nlist.h>
16979
16980 int
16981 main ()
16982 {
16983 static struct nlist ac_aggr;
16984 if (ac_aggr.n_un.n_name)
16985 return 0;
16986 ;
16987 return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_member_struct_nlist_n_un_n_name=yes
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <nlist.h>
17024
17025 int
17026 main ()
17027 {
17028 static struct nlist ac_aggr;
17029 if (sizeof ac_aggr.n_un.n_name)
17030 return 0;
17031 ;
17032 return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_member_struct_nlist_n_un_n_name=yes
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 ac_cv_member_struct_nlist_n_un_n_name=no
17063 fi
17064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17065 fi
17066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17067 fi
17068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17069 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17070 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17071
17072 cat >>confdefs.h <<_ACEOF
17073 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17074 _ACEOF
17075
17076
17077 cat >>confdefs.h <<\_ACEOF
17078 #define NLIST_NAME_UNION 1
17079 _ACEOF
17080
17081 fi
17082
17083
17084 fi
17085
17086 done
17087
17088 fi
17089 done
17090
17091
17092 # Some definitions of getloadavg require that the program be installed setgid.
17093 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17094 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17095 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17105 #ifdef LDAV_PRIVILEGED
17106 Yowza Am I SETGID yet
17107 #endif
17108 _ACEOF
17109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17110 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17111 ac_cv_func_getloadavg_setgid=yes
17112 else
17113 ac_cv_func_getloadavg_setgid=no
17114 fi
17115 rm -f conftest*
17116
17117 fi
17118 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17119 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17120 if test $ac_cv_func_getloadavg_setgid = yes; then
17121 NEED_SETGID=true
17122
17123 cat >>confdefs.h <<\_ACEOF
17124 #define GETLOADAVG_PRIVILEGED 1
17125 _ACEOF
17126
17127 else
17128 NEED_SETGID=false
17129 fi
17130
17131 if test $ac_cv_func_getloadavg_setgid = yes; then
17132 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17133 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17134 if test "${ac_cv_group_kmem+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17138 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17139 # If we got an error (system does not support symlinks), try without -L.
17140 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17141 ac_cv_group_kmem=`echo $ac_ls_output \
17142 | sed -ne 's/[ ][ ]*/ /g;
17143 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17144 / /s/.* //;p;'`
17145
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17148 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17149 KMEM_GROUP=$ac_cv_group_kmem
17150 fi
17151 if test "x$ac_save_LIBS" = x; then
17152 GETLOADAVG_LIBS=$LIBS
17153 else
17154 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17155 fi
17156 LIBS=$ac_save_LIBS
17157
17158
17159
17160 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17161 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17162 if test "${ac_cv_sys_largefile_source+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165 while :; do
17166 ac_cv_sys_largefile_source=no
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <stdio.h>
17174 int
17175 main ()
17176 {
17177 return !fseeko;
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 break
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 fi
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 #define _LARGEFILE_SOURCE 1
17218 #include <stdio.h>
17219 int
17220 main ()
17221 {
17222 return !fseeko;
17223 ;
17224 return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_cv_sys_largefile_source=1; break
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254 fi
17255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17256 break
17257 done
17258 fi
17259 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17260 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17261 if test "$ac_cv_sys_largefile_source" != no; then
17262
17263 cat >>confdefs.h <<_ACEOF
17264 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17265 _ACEOF
17266
17267 fi
17268 rm -f conftest*
17269
17270 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17271 # in glibc 2.1.3, but that breaks too many other things.
17272 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17273 echo "$as_me:$LINENO: checking for fseeko" >&5
17274 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17275 if test "${ac_cv_func_fseeko+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h. */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 #include <stdio.h>
17285 int
17286 main ()
17287 {
17288 return fseeko && fseeko (stdin, 0, 0);
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag"
17303 || test ! -s conftest.err'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest$ac_exeext'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_cv_func_fseeko=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 ac_cv_func_fseeko=no
17321 fi
17322 rm -f conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17324 fi
17325 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17326 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17327 if test $ac_cv_func_fseeko = yes; then
17328
17329 cat >>confdefs.h <<\_ACEOF
17330 #define HAVE_FSEEKO 1
17331 _ACEOF
17332
17333 fi
17334
17335
17336 # Configure getopt.
17337 # getopt.m4 serial 10
17338
17339 # The getopt module assume you want GNU getopt, with getopt_long etc,
17340 # rather than vanilla POSIX getopt. This means your your code should
17341 # always include <getopt.h> for the getopt prototypes.
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353 # Prerequisites of lib/getopt*.
17354
17355
17356
17357
17358 GETOPT_H=
17359
17360 for ac_header in getopt.h
17361 do
17362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17364 echo "$as_me:$LINENO: checking for $ac_header" >&5
17365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 fi
17369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17371 else
17372 # Is the header compilable?
17373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 $ac_includes_default
17382 #include <$ac_header>
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag"
17394 || test ! -s conftest.err'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest.$ac_objext'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_header_compiler=yes
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411 ac_header_compiler=no
17412 fi
17413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17415 echo "${ECHO_T}$ac_header_compiler" >&6
17416
17417 # Is the header present?
17418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <$ac_header>
17427 _ACEOF
17428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } >/dev/null; then
17436 if test -s conftest.err; then
17437 ac_cpp_err=$ac_c_preproc_warn_flag
17438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17439 else
17440 ac_cpp_err=
17441 fi
17442 else
17443 ac_cpp_err=yes
17444 fi
17445 if test -z "$ac_cpp_err"; then
17446 ac_header_preproc=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_header_preproc=no
17452 fi
17453 rm -f conftest.err conftest.$ac_ext
17454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17455 echo "${ECHO_T}$ac_header_preproc" >&6
17456
17457 # So? What about this header?
17458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17459 yes:no: )
17460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17464 ac_header_preproc=yes
17465 ;;
17466 no:yes:* )
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17479 (
17480 cat <<\_ASBOX
17481 ## ------------------------------------------ ##
17482 ## Report this to the AC_PACKAGE_NAME lists. ##
17483 ## ------------------------------------------ ##
17484 _ASBOX
17485 ) |
17486 sed "s/^/$as_me: WARNING: /" >&2
17487 ;;
17488 esac
17489 echo "$as_me:$LINENO: checking for $ac_header" >&5
17490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 eval "$as_ac_Header=\$ac_header_preproc"
17495 fi
17496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17498
17499 fi
17500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17503 _ACEOF
17504
17505 else
17506 GETOPT_H=getopt.h
17507 fi
17508
17509 done
17510
17511 if test -z "$GETOPT_H"; then
17512
17513 for ac_func in getopt_long_only
17514 do
17515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17518 if eval "test \"\${$as_ac_var+set}\" = set"; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521 cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h. */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define $ac_func innocuous_$ac_func
17530
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17535
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17541
17542 #undef $ac_func
17543
17544 /* Override any gcc2 internal prototype to avoid an error. */
17545 #ifdef __cplusplus
17546 extern "C"
17547 {
17548 #endif
17549 /* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17551 char $ac_func ();
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17556 choke me
17557 #else
17558 char (*f) () = $ac_func;
17559 #endif
17560 #ifdef __cplusplus
17561 }
17562 #endif
17563
17564 int
17565 main ()
17566 {
17567 return f != $ac_func;
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 eval "$as_ac_var=yes"
17595 else
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 eval "$as_ac_var=no"
17600 fi
17601 rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17606 if test `eval echo '${'$as_ac_var'}'` = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17609 _ACEOF
17610
17611 else
17612 GETOPT_H=getopt.h
17613 fi
17614 done
17615
17616 fi
17617
17618 if test -z "$GETOPT_H"; then
17619 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17620 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17621 if test "${ac_cv_have_decl_optreset+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 #include <getopt.h>
17631
17632 int
17633 main ()
17634 {
17635 #ifndef optreset
17636 char *p = (char *) optreset;
17637 #endif
17638
17639 ;
17640 return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_have_decl_optreset=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_have_decl_optreset=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17675 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17676 if test $ac_cv_have_decl_optreset = yes; then
17677 GETOPT_H=getopt.h
17678 fi
17679
17680 fi
17681
17682 if test -z "$GETOPT_H"; then
17683 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17684 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17685 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688 if test "$cross_compiling" = yes; then
17689 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17690 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17691 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 #include <getopt.h>
17701
17702 int
17703 main ()
17704 {
17705 #ifndef getopt_clip
17706 char *p = (char *) getopt_clip;
17707 #endif
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag"
17723 || test ! -s conftest.err'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest.$ac_objext'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_have_decl_getopt_clip=yes
17736 else
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 ac_cv_have_decl_getopt_clip=no
17741 fi
17742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743 fi
17744 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17745 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17746 if test $ac_cv_have_decl_getopt_clip = yes; then
17747 gl_cv_func_gnu_getopt=no
17748 else
17749 gl_cv_func_gnu_getopt=yes
17750 fi
17751
17752 else
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h. */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <getopt.h>
17760 int
17761 main ()
17762 {
17763
17764 char *myargv[3];
17765 myargv[0] = "conftest";
17766 myargv[1] = "-+";
17767 myargv[2] = 0;
17768 return getopt (2, myargv, "+a") != '?';
17769
17770 ;
17771 return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 gl_cv_func_gnu_getopt=yes
17786 else
17787 echo "$as_me: program exited with status $ac_status" >&5
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ( exit $ac_status )
17792 gl_cv_func_gnu_getopt=no
17793 fi
17794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17795 fi
17796 fi
17797 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17798 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17799 if test "$gl_cv_func_gnu_getopt" = "no"; then
17800 GETOPT_H=getopt.h
17801 fi
17802 fi
17803
17804
17805
17806 if test -n "$GETOPT_H"; then
17807
17808
17809 GETOPT_H=getopt.h
17810
17811 cat >>confdefs.h <<\_ACEOF
17812 #define __GETOPT_PREFIX rpl_
17813 _ACEOF
17814
17815
17816
17817 :
17818 GETOPTOBJS='getopt.o getopt1.o'
17819
17820 fi
17821
17822
17823
17824
17825 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17826 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17827 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830 # Use it with a single arg.
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h. */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 $ac_includes_default
17838 int
17839 main ()
17840 {
17841 getpgrp (0);
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_getpgrp_void=no
17869 else
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_func_getpgrp_void=yes
17874 fi
17875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876
17877 fi
17878 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17879 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17880 if test $ac_cv_func_getpgrp_void = yes; then
17881
17882 cat >>confdefs.h <<\_ACEOF
17883 #define GETPGRP_VOID 1
17884 _ACEOF
17885
17886 fi
17887
17888
17889
17890 for ac_func in strftime
17891 do
17892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17893 echo "$as_me:$LINENO: checking for $ac_func" >&5
17894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17895 if eval "test \"\${$as_ac_var+set}\" = set"; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17907
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17912
17913 #ifdef __STDC__
17914 # include <limits.h>
17915 #else
17916 # include <assert.h>
17917 #endif
17918
17919 #undef $ac_func
17920
17921 /* Override any gcc2 internal prototype to avoid an error. */
17922 #ifdef __cplusplus
17923 extern "C"
17924 {
17925 #endif
17926 /* We use char because int might match the return type of a gcc2
17927 builtin and then its argument prototype would still apply. */
17928 char $ac_func ();
17929 /* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17933 choke me
17934 #else
17935 char (*f) () = $ac_func;
17936 #endif
17937 #ifdef __cplusplus
17938 }
17939 #endif
17940
17941 int
17942 main ()
17943 {
17944 return f != $ac_func;
17945 ;
17946 return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17951 (eval $ac_link) 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag"
17959 || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest$ac_exeext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 eval "$as_ac_var=yes"
17972 else
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976 eval "$as_ac_var=no"
17977 fi
17978 rm -f conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext conftest.$ac_ext
17980 fi
17981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17983 if test `eval echo '${'$as_ac_var'}'` = yes; then
17984 cat >>confdefs.h <<_ACEOF
17985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17986 _ACEOF
17987
17988 else
17989 # strftime is in -lintl on SCO UNIX.
17990 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17991 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lintl $LIBS"
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003
18004 /* Override any gcc2 internal prototype to avoid an error. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 /* We use char because int might match the return type of a gcc2
18009 builtin and then its argument prototype would still apply. */
18010 char strftime ();
18011 int
18012 main ()
18013 {
18014 strftime ();
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18022 ac_status=$?
18023 grep -v '^ *+' conftest.er1 >conftest.err
18024 rm -f conftest.er1
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_lib_intl_strftime=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 ac_cv_lib_intl_strftime=no
18047 fi
18048 rm -f conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18050 LIBS=$ac_check_lib_save_LIBS
18051 fi
18052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18053 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18054 if test $ac_cv_lib_intl_strftime = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_STRFTIME 1
18057 _ACEOF
18058
18059 LIBS="-lintl $LIBS"
18060 fi
18061
18062 fi
18063 done
18064
18065
18066 # UNIX98 PTYs.
18067
18068 for ac_func in grantpt
18069 do
18070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18071 echo "$as_me:$LINENO: checking for $ac_func" >&5
18072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18073 if eval "test \"\${$as_ac_var+set}\" = set"; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18084 #define $ac_func innocuous_$ac_func
18085
18086 /* System header to define __stub macros and hopefully few prototypes,
18087 which can conflict with char $ac_func (); below.
18088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18089 <limits.h> exists even on freestanding compilers. */
18090
18091 #ifdef __STDC__
18092 # include <limits.h>
18093 #else
18094 # include <assert.h>
18095 #endif
18096
18097 #undef $ac_func
18098
18099 /* Override any gcc2 internal prototype to avoid an error. */
18100 #ifdef __cplusplus
18101 extern "C"
18102 {
18103 #endif
18104 /* We use char because int might match the return type of a gcc2
18105 builtin and then its argument prototype would still apply. */
18106 char $ac_func ();
18107 /* The GNU C library defines this for functions which it implements
18108 to always fail with ENOSYS. Some functions are actually named
18109 something starting with __ and the normal name is an alias. */
18110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18111 choke me
18112 #else
18113 char (*f) () = $ac_func;
18114 #endif
18115 #ifdef __cplusplus
18116 }
18117 #endif
18118
18119 int
18120 main ()
18121 {
18122 return f != $ac_func;
18123 ;
18124 return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag"
18137 || test ! -s conftest.err'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try='test -s conftest$ac_exeext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 eval "$as_ac_var=yes"
18150 else
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154 eval "$as_ac_var=no"
18155 fi
18156 rm -f conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 fi
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18161 if test `eval echo '${'$as_ac_var'}'` = yes; then
18162 cat >>confdefs.h <<_ACEOF
18163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18164 _ACEOF
18165
18166 fi
18167 done
18168
18169
18170 # PTY-related GNU extensions.
18171
18172 for ac_func in getpt
18173 do
18174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18175 echo "$as_me:$LINENO: checking for $ac_func" >&5
18176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_var+set}\" = set"; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180 cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h. */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18188 #define $ac_func innocuous_$ac_func
18189
18190 /* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func (); below.
18192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18193 <limits.h> exists even on freestanding compilers. */
18194
18195 #ifdef __STDC__
18196 # include <limits.h>
18197 #else
18198 # include <assert.h>
18199 #endif
18200
18201 #undef $ac_func
18202
18203 /* Override any gcc2 internal prototype to avoid an error. */
18204 #ifdef __cplusplus
18205 extern "C"
18206 {
18207 #endif
18208 /* We use char because int might match the return type of a gcc2
18209 builtin and then its argument prototype would still apply. */
18210 char $ac_func ();
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18215 choke me
18216 #else
18217 char (*f) () = $ac_func;
18218 #endif
18219 #ifdef __cplusplus
18220 }
18221 #endif
18222
18223 int
18224 main ()
18225 {
18226 return f != $ac_func;
18227 ;
18228 return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233 (eval $ac_link) 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 eval "$as_ac_var=yes"
18254 else
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18257
18258 eval "$as_ac_var=no"
18259 fi
18260 rm -f conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 _ACEOF
18269
18270 fi
18271 done
18272
18273
18274 # Check this now, so that we will NOT find the above functions in ncurses.
18275 # That is because we have not set up to link ncurses in lib-src.
18276 # It's better to believe a function is not available
18277 # than to expect to find it in ncurses.
18278
18279 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18280 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18281 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284 ac_check_lib_save_LIBS=$LIBS
18285 LIBS="-lncurses $LIBS"
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h. */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292
18293 /* Override any gcc2 internal prototype to avoid an error. */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299 char tparm ();
18300 int
18301 main ()
18302 {
18303 tparm ();
18304 ;
18305 return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest.$ac_objext conftest$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_cv_lib_ncurses_tparm=yes
18331 else
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 ac_cv_lib_ncurses_tparm=no
18336 fi
18337 rm -f conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339 LIBS=$ac_check_lib_save_LIBS
18340 fi
18341 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18342 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18343 if test $ac_cv_lib_ncurses_tparm = yes; then
18344 cat >>confdefs.h <<_ACEOF
18345 #define HAVE_LIBNCURSES 1
18346 _ACEOF
18347
18348 LIBS="-lncurses $LIBS"
18349
18350 fi
18351
18352
18353 # Do we need the Hesiod library to provide the support routines?
18354 if test "$with_hesiod" = yes ; then
18355 # Don't set $LIBS here -- see comments above.
18356 resolv=no
18357 echo "$as_me:$LINENO: checking for res_send" >&5
18358 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18359 if test "${ac_cv_func_res_send+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h. */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18368 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18370 #define res_send innocuous_res_send
18371
18372 /* System header to define __stub macros and hopefully few prototypes,
18373 which can conflict with char res_send (); below.
18374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18375 <limits.h> exists even on freestanding compilers. */
18376
18377 #ifdef __STDC__
18378 # include <limits.h>
18379 #else
18380 # include <assert.h>
18381 #endif
18382
18383 #undef res_send
18384
18385 /* Override any gcc2 internal prototype to avoid an error. */
18386 #ifdef __cplusplus
18387 extern "C"
18388 {
18389 #endif
18390 /* We use char because int might match the return type of a gcc2
18391 builtin and then its argument prototype would still apply. */
18392 char res_send ();
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_res_send) || defined (__stub___res_send)
18397 choke me
18398 #else
18399 char (*f) () = res_send;
18400 #endif
18401 #ifdef __cplusplus
18402 }
18403 #endif
18404
18405 int
18406 main ()
18407 {
18408 return f != res_send;
18409 ;
18410 return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag"
18423 || test ! -s conftest.err'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_func_res_send=yes
18436 else
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_func_res_send=no
18441 fi
18442 rm -f conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18444 fi
18445 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18446 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18447 if test $ac_cv_func_res_send = yes; then
18448 :
18449 else
18450 echo "$as_me:$LINENO: checking for __res_send" >&5
18451 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18452 if test "${ac_cv_func___res_send+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18463 #define __res_send innocuous___res_send
18464
18465 /* System header to define __stub macros and hopefully few prototypes,
18466 which can conflict with char __res_send (); below.
18467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18468 <limits.h> exists even on freestanding compilers. */
18469
18470 #ifdef __STDC__
18471 # include <limits.h>
18472 #else
18473 # include <assert.h>
18474 #endif
18475
18476 #undef __res_send
18477
18478 /* Override any gcc2 internal prototype to avoid an error. */
18479 #ifdef __cplusplus
18480 extern "C"
18481 {
18482 #endif
18483 /* We use char because int might match the return type of a gcc2
18484 builtin and then its argument prototype would still apply. */
18485 char __res_send ();
18486 /* The GNU C library defines this for functions which it implements
18487 to always fail with ENOSYS. Some functions are actually named
18488 something starting with __ and the normal name is an alias. */
18489 #if defined (__stub___res_send) || defined (__stub_____res_send)
18490 choke me
18491 #else
18492 char (*f) () = __res_send;
18493 #endif
18494 #ifdef __cplusplus
18495 }
18496 #endif
18497
18498 int
18499 main ()
18500 {
18501 return f != __res_send;
18502 ;
18503 return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_func___res_send=yes
18529 else
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 ac_cv_func___res_send=no
18534 fi
18535 rm -f conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18537 fi
18538 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18539 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18540 if test $ac_cv_func___res_send = yes; then
18541 :
18542 else
18543 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18544 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18545 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lresolv $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556
18557 /* Override any gcc2 internal prototype to avoid an error. */
18558 #ifdef __cplusplus
18559 extern "C"
18560 #endif
18561 /* We use char because int might match the return type of a gcc2
18562 builtin and then its argument prototype would still apply. */
18563 char res_send ();
18564 int
18565 main ()
18566 {
18567 res_send ();
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574 (eval $ac_link) 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest$ac_exeext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_lib_resolv_res_send=yes
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 ac_cv_lib_resolv_res_send=no
18600 fi
18601 rm -f conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18603 LIBS=$ac_check_lib_save_LIBS
18604 fi
18605 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18606 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18607 if test $ac_cv_lib_resolv_res_send = yes; then
18608 resolv=yes
18609 else
18610 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18611 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18612 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615 ac_check_lib_save_LIBS=$LIBS
18616 LIBS="-lresolv $LIBS"
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623
18624 /* Override any gcc2 internal prototype to avoid an error. */
18625 #ifdef __cplusplus
18626 extern "C"
18627 #endif
18628 /* We use char because int might match the return type of a gcc2
18629 builtin and then its argument prototype would still apply. */
18630 char __res_send ();
18631 int
18632 main ()
18633 {
18634 __res_send ();
18635 ;
18636 return 0;
18637 }
18638 _ACEOF
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_lib_resolv___res_send=yes
18662 else
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18665
18666 ac_cv_lib_resolv___res_send=no
18667 fi
18668 rm -f conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
18670 LIBS=$ac_check_lib_save_LIBS
18671 fi
18672 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18673 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18674 if test $ac_cv_lib_resolv___res_send = yes; then
18675 resolv=yes
18676 fi
18677
18678 fi
18679
18680 fi
18681
18682 fi
18683
18684 if test "$resolv" = yes ; then
18685 RESOLVLIB=-lresolv
18686
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_LIBRESOLV 1
18689 _ACEOF
18690
18691 else
18692 RESOLVLIB=
18693 fi
18694 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18695 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18696 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18707 #define hes_getmailhost innocuous_hes_getmailhost
18708
18709 /* System header to define __stub macros and hopefully few prototypes,
18710 which can conflict with char hes_getmailhost (); below.
18711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712 <limits.h> exists even on freestanding compilers. */
18713
18714 #ifdef __STDC__
18715 # include <limits.h>
18716 #else
18717 # include <assert.h>
18718 #endif
18719
18720 #undef hes_getmailhost
18721
18722 /* Override any gcc2 internal prototype to avoid an error. */
18723 #ifdef __cplusplus
18724 extern "C"
18725 {
18726 #endif
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18729 char hes_getmailhost ();
18730 /* The GNU C library defines this for functions which it implements
18731 to always fail with ENOSYS. Some functions are actually named
18732 something starting with __ and the normal name is an alias. */
18733 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18734 choke me
18735 #else
18736 char (*f) () = hes_getmailhost;
18737 #endif
18738 #ifdef __cplusplus
18739 }
18740 #endif
18741
18742 int
18743 main ()
18744 {
18745 return f != hes_getmailhost;
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_func_hes_getmailhost=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_cv_func_hes_getmailhost=no
18778 fi
18779 rm -f conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 fi
18782 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18783 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18784 if test $ac_cv_func_hes_getmailhost = yes; then
18785 :
18786 else
18787 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18788 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18789 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792 ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lhesiod $RESOLVLIB $LIBS"
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h. */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800
18801 /* Override any gcc2 internal prototype to avoid an error. */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 /* We use char because int might match the return type of a gcc2
18806 builtin and then its argument prototype would still apply. */
18807 char hes_getmailhost ();
18808 int
18809 main ()
18810 {
18811 hes_getmailhost ();
18812 ;
18813 return 0;
18814 }
18815 _ACEOF
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818 (eval $ac_link) 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_cv_lib_hesiod_hes_getmailhost=yes
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843 ac_cv_lib_hesiod_hes_getmailhost=no
18844 fi
18845 rm -f conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18848 fi
18849 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18850 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18851 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_LIBHESIOD 1
18855 _ACEOF
18856
18857 else
18858 :
18859 fi
18860
18861 fi
18862
18863 fi
18864
18865 # These tell us which Kerberos-related libraries to use.
18866 if test "${with_kerberos+set}" = set; then
18867
18868 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18869 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18870 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 else
18873 ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-lcom_err $LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881
18882 /* Override any gcc2 internal prototype to avoid an error. */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 /* We use char because int might match the return type of a gcc2
18887 builtin and then its argument prototype would still apply. */
18888 char com_err ();
18889 int
18890 main ()
18891 {
18892 com_err ();
18893 ;
18894 return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_com_err_com_err=yes
18920 else
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 ac_cv_lib_com_err_com_err=no
18925 fi
18926 rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18929 fi
18930 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18931 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18932 if test $ac_cv_lib_com_err_com_err = yes; then
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_LIBCOM_ERR 1
18935 _ACEOF
18936
18937 LIBS="-lcom_err $LIBS"
18938
18939 fi
18940
18941
18942 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18943 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18944 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 ac_check_lib_save_LIBS=$LIBS
18948 LIBS="-lk5crypto $LIBS"
18949 cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h. */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955
18956 /* Override any gcc2 internal prototype to avoid an error. */
18957 #ifdef __cplusplus
18958 extern "C"
18959 #endif
18960 /* We use char because int might match the return type of a gcc2
18961 builtin and then its argument prototype would still apply. */
18962 char mit_des_cbc_encrypt ();
18963 int
18964 main ()
18965 {
18966 mit_des_cbc_encrypt ();
18967 ;
18968 return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18994 else
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18999 fi
19000 rm -f conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19003 fi
19004 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19005 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19006 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define HAVE_LIBK5CRYPTO 1
19009 _ACEOF
19010
19011 LIBS="-lk5crypto $LIBS"
19012
19013 fi
19014
19015
19016 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19017 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19018 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lcrypto $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029
19030 /* Override any gcc2 internal prototype to avoid an error. */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char mit_des_cbc_encrypt ();
19037 int
19038 main ()
19039 {
19040 mit_des_cbc_encrypt ();
19041 ;
19042 return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19073 fi
19074 rm -f conftest.err conftest.$ac_objext \
19075 conftest$ac_exeext conftest.$ac_ext
19076 LIBS=$ac_check_lib_save_LIBS
19077 fi
19078 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19079 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19080 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_LIBCRYPTO 1
19083 _ACEOF
19084
19085 LIBS="-lcrypto $LIBS"
19086
19087 fi
19088
19089
19090 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19091 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19092 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095 ac_check_lib_save_LIBS=$LIBS
19096 LIBS="-lkrb5 $LIBS"
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h. */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103
19104 /* Override any gcc2 internal prototype to avoid an error. */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 /* We use char because int might match the return type of a gcc2
19109 builtin and then its argument prototype would still apply. */
19110 char krb5_init_context ();
19111 int
19112 main ()
19113 {
19114 krb5_init_context ();
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19121 (eval $ac_link) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_lib_krb5_krb5_init_context=yes
19142 else
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 ac_cv_lib_krb5_krb5_init_context=no
19147 fi
19148 rm -f conftest.err conftest.$ac_objext \
19149 conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19151 fi
19152 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19153 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19154 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156 #define HAVE_LIBKRB5 1
19157 _ACEOF
19158
19159 LIBS="-lkrb5 $LIBS"
19160
19161 fi
19162
19163 if test "${with_kerberos5+set}" != set; then
19164
19165 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19166 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19167 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170 ac_check_lib_save_LIBS=$LIBS
19171 LIBS="-ldes425 $LIBS"
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178
19179 /* Override any gcc2 internal prototype to avoid an error. */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 /* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185 char des_cbc_encrypt ();
19186 int
19187 main ()
19188 {
19189 des_cbc_encrypt ();
19190 ;
19191 return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try='test -z "$ac_c_werror_flag"
19204 || test ! -s conftest.err'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest$ac_exeext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_lib_des425_des_cbc_encrypt=yes
19217 else
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 ac_cv_lib_des425_des_cbc_encrypt=no
19222 fi
19223 rm -f conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
19225 LIBS=$ac_check_lib_save_LIBS
19226 fi
19227 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19228 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19229 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19230 cat >>confdefs.h <<_ACEOF
19231 #define HAVE_LIBDES425 1
19232 _ACEOF
19233
19234 LIBS="-ldes425 $LIBS"
19235
19236 else
19237
19238 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19239 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19240 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243 ac_check_lib_save_LIBS=$LIBS
19244 LIBS="-ldes $LIBS"
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251
19252 /* Override any gcc2 internal prototype to avoid an error. */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258 char des_cbc_encrypt ();
19259 int
19260 main ()
19261 {
19262 des_cbc_encrypt ();
19263 ;
19264 return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269 (eval $ac_link) 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest$ac_exeext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_lib_des_des_cbc_encrypt=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_cv_lib_des_des_cbc_encrypt=no
19295 fi
19296 rm -f conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298 LIBS=$ac_check_lib_save_LIBS
19299 fi
19300 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19301 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19302 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define HAVE_LIBDES 1
19305 _ACEOF
19306
19307 LIBS="-ldes $LIBS"
19308
19309 fi
19310
19311 fi
19312
19313
19314 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19315 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19316 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319 ac_check_lib_save_LIBS=$LIBS
19320 LIBS="-lkrb4 $LIBS"
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h. */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327
19328 /* Override any gcc2 internal prototype to avoid an error. */
19329 #ifdef __cplusplus
19330 extern "C"
19331 #endif
19332 /* We use char because int might match the return type of a gcc2
19333 builtin and then its argument prototype would still apply. */
19334 char krb_get_cred ();
19335 int
19336 main ()
19337 {
19338 krb_get_cred ();
19339 ;
19340 return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_cv_lib_krb4_krb_get_cred=yes
19366 else
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 ac_cv_lib_krb4_krb_get_cred=no
19371 fi
19372 rm -f conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19375 fi
19376 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19377 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19378 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_LIBKRB4 1
19381 _ACEOF
19382
19383 LIBS="-lkrb4 $LIBS"
19384
19385 else
19386
19387 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19388 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19389 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392 ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lkrb $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h. */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400
19401 /* Override any gcc2 internal prototype to avoid an error. */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19407 char krb_get_cred ();
19408 int
19409 main ()
19410 {
19411 krb_get_cred ();
19412 ;
19413 return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_krb_krb_get_cred=yes
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_lib_krb_krb_get_cred=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19450 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19451 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19452 cat >>confdefs.h <<_ACEOF
19453 #define HAVE_LIBKRB 1
19454 _ACEOF
19455
19456 LIBS="-lkrb $LIBS"
19457
19458 fi
19459
19460 fi
19461
19462 fi
19463
19464 if test "${with_kerberos5+set}" = set; then
19465
19466 for ac_header in krb5.h
19467 do
19468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19470 echo "$as_me:$LINENO: checking for $ac_header" >&5
19471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 fi
19475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19477 else
19478 # Is the header compilable?
19479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19488 #include <$ac_header>
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19492 (eval $ac_compile) 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_header_compiler=yes
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517 ac_header_compiler=no
19518 fi
19519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19521 echo "${ECHO_T}$ac_header_compiler" >&6
19522
19523 # Is the header present?
19524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 #include <$ac_header>
19533 _ACEOF
19534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } >/dev/null; then
19542 if test -s conftest.err; then
19543 ac_cpp_err=$ac_c_preproc_warn_flag
19544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19545 else
19546 ac_cpp_err=
19547 fi
19548 else
19549 ac_cpp_err=yes
19550 fi
19551 if test -z "$ac_cpp_err"; then
19552 ac_header_preproc=yes
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ac_header_preproc=no
19558 fi
19559 rm -f conftest.err conftest.$ac_ext
19560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19561 echo "${ECHO_T}$ac_header_preproc" >&6
19562
19563 # So? What about this header?
19564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19565 yes:no: )
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19570 ac_header_preproc=yes
19571 ;;
19572 no:yes:* )
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19585 (
19586 cat <<\_ASBOX
19587 ## ------------------------------------------ ##
19588 ## Report this to the AC_PACKAGE_NAME lists. ##
19589 ## ------------------------------------------ ##
19590 _ASBOX
19591 ) |
19592 sed "s/^/$as_me: WARNING: /" >&2
19593 ;;
19594 esac
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 eval "$as_ac_Header=\$ac_header_preproc"
19601 fi
19602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19604
19605 fi
19606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19607 cat >>confdefs.h <<_ACEOF
19608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19609 _ACEOF
19610
19611 fi
19612
19613 done
19614
19615 else
19616
19617 for ac_header in des.h
19618 do
19619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo "$as_me:$LINENO: checking for $ac_header" >&5
19622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 fi
19626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628 else
19629 # Is the header compilable?
19630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h. */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 $ac_includes_default
19639 #include <$ac_header>
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_header_compiler=yes
19664 else
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ac_header_compiler=no
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19672 echo "${ECHO_T}$ac_header_compiler" >&6
19673
19674 # Is the header present?
19675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h. */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include <$ac_header>
19684 _ACEOF
19685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } >/dev/null; then
19693 if test -s conftest.err; then
19694 ac_cpp_err=$ac_c_preproc_warn_flag
19695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19696 else
19697 ac_cpp_err=
19698 fi
19699 else
19700 ac_cpp_err=yes
19701 fi
19702 if test -z "$ac_cpp_err"; then
19703 ac_header_preproc=yes
19704 else
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_header_preproc=no
19709 fi
19710 rm -f conftest.err conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19712 echo "${ECHO_T}$ac_header_preproc" >&6
19713
19714 # So? What about this header?
19715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19716 yes:no: )
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19721 ac_header_preproc=yes
19722 ;;
19723 no:yes:* )
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19736 (
19737 cat <<\_ASBOX
19738 ## ------------------------------------------ ##
19739 ## Report this to the AC_PACKAGE_NAME lists. ##
19740 ## ------------------------------------------ ##
19741 _ASBOX
19742 ) |
19743 sed "s/^/$as_me: WARNING: /" >&2
19744 ;;
19745 esac
19746 echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751 eval "$as_ac_Header=\$ac_header_preproc"
19752 fi
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755
19756 fi
19757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19760 _ACEOF
19761
19762 else
19763
19764 for ac_header in kerberosIV/des.h
19765 do
19766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19768 echo "$as_me:$LINENO: checking for $ac_header" >&5
19769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 fi
19773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19775 else
19776 # Is the header compilable?
19777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h. */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 $ac_includes_default
19786 #include <$ac_header>
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_header_compiler=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 ac_header_compiler=no
19816 fi
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819 echo "${ECHO_T}$ac_header_compiler" >&6
19820
19821 # Is the header present?
19822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <$ac_header>
19831 _ACEOF
19832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } >/dev/null; then
19840 if test -s conftest.err; then
19841 ac_cpp_err=$ac_c_preproc_warn_flag
19842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19843 else
19844 ac_cpp_err=
19845 fi
19846 else
19847 ac_cpp_err=yes
19848 fi
19849 if test -z "$ac_cpp_err"; then
19850 ac_header_preproc=yes
19851 else
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855 ac_header_preproc=no
19856 fi
19857 rm -f conftest.err conftest.$ac_ext
19858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6
19860
19861 # So? What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19863 yes:no: )
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc=yes
19869 ;;
19870 no:yes:* )
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19883 (
19884 cat <<\_ASBOX
19885 ## ------------------------------------------ ##
19886 ## Report this to the AC_PACKAGE_NAME lists. ##
19887 ## ------------------------------------------ ##
19888 _ASBOX
19889 ) |
19890 sed "s/^/$as_me: WARNING: /" >&2
19891 ;;
19892 esac
19893 echo "$as_me:$LINENO: checking for $ac_header" >&5
19894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898 eval "$as_ac_Header=\$ac_header_preproc"
19899 fi
19900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19902
19903 fi
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19907 _ACEOF
19908
19909 else
19910
19911 for ac_header in kerberos/des.h
19912 do
19913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19915 echo "$as_me:$LINENO: checking for $ac_header" >&5
19916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 fi
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19922 else
19923 # Is the header compilable?
19924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h. */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19933 #include <$ac_header>
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19937 (eval $ac_compile) 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_header_compiler=yes
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ac_header_compiler=no
19963 fi
19964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19966 echo "${ECHO_T}$ac_header_compiler" >&6
19967
19968 # Is the header present?
19969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h. */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #include <$ac_header>
19978 _ACEOF
19979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } >/dev/null; then
19987 if test -s conftest.err; then
19988 ac_cpp_err=$ac_c_preproc_warn_flag
19989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19990 else
19991 ac_cpp_err=
19992 fi
19993 else
19994 ac_cpp_err=yes
19995 fi
19996 if test -z "$ac_cpp_err"; then
19997 ac_header_preproc=yes
19998 else
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_header_preproc=no
20003 fi
20004 rm -f conftest.err conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20006 echo "${ECHO_T}$ac_header_preproc" >&6
20007
20008 # So? What about this header?
20009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20010 yes:no: )
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20015 ac_header_preproc=yes
20016 ;;
20017 no:yes:* )
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20030 (
20031 cat <<\_ASBOX
20032 ## ------------------------------------------ ##
20033 ## Report this to the AC_PACKAGE_NAME lists. ##
20034 ## ------------------------------------------ ##
20035 _ASBOX
20036 ) |
20037 sed "s/^/$as_me: WARNING: /" >&2
20038 ;;
20039 esac
20040 echo "$as_me:$LINENO: checking for $ac_header" >&5
20041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 eval "$as_ac_Header=\$ac_header_preproc"
20046 fi
20047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20049
20050 fi
20051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20052 cat >>confdefs.h <<_ACEOF
20053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20054 _ACEOF
20055
20056 fi
20057
20058 done
20059
20060 fi
20061
20062 done
20063
20064 fi
20065
20066 done
20067
20068
20069 for ac_header in krb.h
20070 do
20071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073 echo "$as_me:$LINENO: checking for $ac_header" >&5
20074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 fi
20078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20080 else
20081 # Is the header compilable?
20082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20091 #include <$ac_header>
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_header_compiler=yes
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ac_header_compiler=no
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20124 echo "${ECHO_T}$ac_header_compiler" >&6
20125
20126 # Is the header present?
20127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <$ac_header>
20136 _ACEOF
20137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev/null; then
20145 if test -s conftest.err; then
20146 ac_cpp_err=$ac_c_preproc_warn_flag
20147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20148 else
20149 ac_cpp_err=
20150 fi
20151 else
20152 ac_cpp_err=yes
20153 fi
20154 if test -z "$ac_cpp_err"; then
20155 ac_header_preproc=yes
20156 else
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_header_preproc=no
20161 fi
20162 rm -f conftest.err conftest.$ac_ext
20163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20164 echo "${ECHO_T}$ac_header_preproc" >&6
20165
20166 # So? What about this header?
20167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20168 yes:no: )
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20173 ac_header_preproc=yes
20174 ;;
20175 no:yes:* )
20176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20188 (
20189 cat <<\_ASBOX
20190 ## ------------------------------------------ ##
20191 ## Report this to the AC_PACKAGE_NAME lists. ##
20192 ## ------------------------------------------ ##
20193 _ASBOX
20194 ) |
20195 sed "s/^/$as_me: WARNING: /" >&2
20196 ;;
20197 esac
20198 echo "$as_me:$LINENO: checking for $ac_header" >&5
20199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203 eval "$as_ac_Header=\$ac_header_preproc"
20204 fi
20205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20207
20208 fi
20209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20210 cat >>confdefs.h <<_ACEOF
20211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20212 _ACEOF
20213
20214 else
20215
20216 for ac_header in kerberosIV/krb.h
20217 do
20218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20220 echo "$as_me:$LINENO: checking for $ac_header" >&5
20221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 fi
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20227 else
20228 # Is the header compilable?
20229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 $ac_includes_default
20238 #include <$ac_header>
20239 _ACEOF
20240 rm -f conftest.$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_header_compiler=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_header_compiler=no
20268 fi
20269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20271 echo "${ECHO_T}$ac_header_compiler" >&6
20272
20273 # Is the header present?
20274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <$ac_header>
20283 _ACEOF
20284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } >/dev/null; then
20292 if test -s conftest.err; then
20293 ac_cpp_err=$ac_c_preproc_warn_flag
20294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20295 else
20296 ac_cpp_err=
20297 fi
20298 else
20299 ac_cpp_err=yes
20300 fi
20301 if test -z "$ac_cpp_err"; then
20302 ac_header_preproc=yes
20303 else
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307 ac_header_preproc=no
20308 fi
20309 rm -f conftest.err conftest.$ac_ext
20310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20311 echo "${ECHO_T}$ac_header_preproc" >&6
20312
20313 # So? What about this header?
20314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20315 yes:no: )
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20320 ac_header_preproc=yes
20321 ;;
20322 no:yes:* )
20323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20335 (
20336 cat <<\_ASBOX
20337 ## ------------------------------------------ ##
20338 ## Report this to the AC_PACKAGE_NAME lists. ##
20339 ## ------------------------------------------ ##
20340 _ASBOX
20341 ) |
20342 sed "s/^/$as_me: WARNING: /" >&2
20343 ;;
20344 esac
20345 echo "$as_me:$LINENO: checking for $ac_header" >&5
20346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350 eval "$as_ac_Header=\$ac_header_preproc"
20351 fi
20352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20354
20355 fi
20356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20359 _ACEOF
20360
20361 else
20362
20363 for ac_header in kerberos/krb.h
20364 do
20365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20367 echo "$as_me:$LINENO: checking for $ac_header" >&5
20368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 fi
20372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20374 else
20375 # Is the header compilable?
20376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20386 _ACEOF
20387 rm -f conftest.$ac_objext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20389 (eval $ac_compile) 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest.$ac_objext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_header_compiler=yes
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_header_compiler=no
20415 fi
20416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 echo "${ECHO_T}$ac_header_compiler" >&6
20419
20420 # Is the header present?
20421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <$ac_header>
20430 _ACEOF
20431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } >/dev/null; then
20439 if test -s conftest.err; then
20440 ac_cpp_err=$ac_c_preproc_warn_flag
20441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20442 else
20443 ac_cpp_err=
20444 fi
20445 else
20446 ac_cpp_err=yes
20447 fi
20448 if test -z "$ac_cpp_err"; then
20449 ac_header_preproc=yes
20450 else
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_header_preproc=no
20455 fi
20456 rm -f conftest.err conftest.$ac_ext
20457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20458 echo "${ECHO_T}$ac_header_preproc" >&6
20459
20460 # So? What about this header?
20461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20462 yes:no: )
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20467 ac_header_preproc=yes
20468 ;;
20469 no:yes:* )
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20482 (
20483 cat <<\_ASBOX
20484 ## ------------------------------------------ ##
20485 ## Report this to the AC_PACKAGE_NAME lists. ##
20486 ## ------------------------------------------ ##
20487 _ASBOX
20488 ) |
20489 sed "s/^/$as_me: WARNING: /" >&2
20490 ;;
20491 esac
20492 echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 eval "$as_ac_Header=\$ac_header_preproc"
20498 fi
20499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20501
20502 fi
20503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20506 _ACEOF
20507
20508 fi
20509
20510 done
20511
20512 fi
20513
20514 done
20515
20516 fi
20517
20518 done
20519
20520 fi
20521
20522 for ac_header in com_err.h
20523 do
20524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20526 echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 fi
20531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20533 else
20534 # Is the header compilable?
20535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 #include <$ac_header>
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_header_compiler=yes
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_header_compiler=no
20574 fi
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20577 echo "${ECHO_T}$ac_header_compiler" >&6
20578
20579 # Is the header present?
20580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <$ac_header>
20589 _ACEOF
20590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } >/dev/null; then
20598 if test -s conftest.err; then
20599 ac_cpp_err=$ac_c_preproc_warn_flag
20600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20601 else
20602 ac_cpp_err=
20603 fi
20604 else
20605 ac_cpp_err=yes
20606 fi
20607 if test -z "$ac_cpp_err"; then
20608 ac_header_preproc=yes
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_header_preproc=no
20614 fi
20615 rm -f conftest.err conftest.$ac_ext
20616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20617 echo "${ECHO_T}$ac_header_preproc" >&6
20618
20619 # So? What about this header?
20620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20621 yes:no: )
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20626 ac_header_preproc=yes
20627 ;;
20628 no:yes:* )
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20641 (
20642 cat <<\_ASBOX
20643 ## ------------------------------------------ ##
20644 ## Report this to the AC_PACKAGE_NAME lists. ##
20645 ## ------------------------------------------ ##
20646 _ASBOX
20647 ) |
20648 sed "s/^/$as_me: WARNING: /" >&2
20649 ;;
20650 esac
20651 echo "$as_me:$LINENO: checking for $ac_header" >&5
20652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656 eval "$as_ac_Header=\$ac_header_preproc"
20657 fi
20658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20660
20661 fi
20662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20665 _ACEOF
20666
20667 fi
20668
20669 done
20670
20671 fi
20672
20673 # Solaris requires -lintl if you want strerror (which calls dgettext)
20674 # to return localized messages.
20675
20676 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20677 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20678 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681 ac_check_lib_save_LIBS=$LIBS
20682 LIBS="-lintl $LIBS"
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689
20690 /* Override any gcc2 internal prototype to avoid an error. */
20691 #ifdef __cplusplus
20692 extern "C"
20693 #endif
20694 /* We use char because int might match the return type of a gcc2
20695 builtin and then its argument prototype would still apply. */
20696 char dgettext ();
20697 int
20698 main ()
20699 {
20700 dgettext ();
20701 ;
20702 return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest.$ac_objext conftest$ac_exeext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
20714 { ac_try='test -z "$ac_c_werror_flag"
20715 || test ! -s conftest.err'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest$ac_exeext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_lib_intl_dgettext=yes
20728 else
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_cv_lib_intl_dgettext=no
20733 fi
20734 rm -f conftest.err conftest.$ac_objext \
20735 conftest$ac_exeext conftest.$ac_ext
20736 LIBS=$ac_check_lib_save_LIBS
20737 fi
20738 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20739 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20740 if test $ac_cv_lib_intl_dgettext = yes; then
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_LIBINTL 1
20743 _ACEOF
20744
20745 LIBS="-lintl $LIBS"
20746
20747 fi
20748
20749
20750 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20751 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20752 if test "${emacs_cv_localtime_cache+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 if test x$ac_cv_func_tzset = xyes; then
20756 if test "$cross_compiling" = yes; then
20757 # If we have tzset, assume the worst when cross-compiling.
20758 emacs_cv_localtime_cache=yes
20759 else
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <time.h>
20767 extern char **environ;
20768 unset_TZ ()
20769 {
20770 char **from, **to;
20771 for (to = from = environ; (*to = *from); from++)
20772 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20773 to++;
20774 }
20775 char TZ_GMT0[] = "TZ=GMT0";
20776 char TZ_PST8[] = "TZ=PST8";
20777 main()
20778 {
20779 time_t now = time ((time_t *) 0);
20780 int hour_GMT0, hour_unset;
20781 if (putenv (TZ_GMT0) != 0)
20782 exit (1);
20783 hour_GMT0 = localtime (&now)->tm_hour;
20784 unset_TZ ();
20785 hour_unset = localtime (&now)->tm_hour;
20786 if (putenv (TZ_PST8) != 0)
20787 exit (1);
20788 if (localtime (&now)->tm_hour == hour_GMT0)
20789 exit (1);
20790 unset_TZ ();
20791 if (localtime (&now)->tm_hour != hour_unset)
20792 exit (1);
20793 exit (0);
20794 }
20795 _ACEOF
20796 rm -f conftest$ac_exeext
20797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20798 (eval $ac_link) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 emacs_cv_localtime_cache=no
20808 else
20809 echo "$as_me: program exited with status $ac_status" >&5
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ( exit $ac_status )
20814 emacs_cv_localtime_cache=yes
20815 fi
20816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20817 fi
20818 else
20819 # If we lack tzset, report that localtime does not cache TZ,
20820 # since we can't invalidate the cache if we don't have tzset.
20821 emacs_cv_localtime_cache=no
20822 fi
20823 fi
20824 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20825 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20826 if test $emacs_cv_localtime_cache = yes; then
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define LOCALTIME_CACHE 1
20830 _ACEOF
20831
20832 fi
20833
20834 if test "x$HAVE_TIMEVAL" = xyes; then
20835
20836 for ac_func in gettimeofday
20837 do
20838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20839 echo "$as_me:$LINENO: checking for $ac_func" >&5
20840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20841 if eval "test \"\${$as_ac_var+set}\" = set"; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20852 #define $ac_func innocuous_$ac_func
20853
20854 /* System header to define __stub macros and hopefully few prototypes,
20855 which can conflict with char $ac_func (); below.
20856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20857 <limits.h> exists even on freestanding compilers. */
20858
20859 #ifdef __STDC__
20860 # include <limits.h>
20861 #else
20862 # include <assert.h>
20863 #endif
20864
20865 #undef $ac_func
20866
20867 /* Override any gcc2 internal prototype to avoid an error. */
20868 #ifdef __cplusplus
20869 extern "C"
20870 {
20871 #endif
20872 /* We use char because int might match the return type of a gcc2
20873 builtin and then its argument prototype would still apply. */
20874 char $ac_func ();
20875 /* The GNU C library defines this for functions which it implements
20876 to always fail with ENOSYS. Some functions are actually named
20877 something starting with __ and the normal name is an alias. */
20878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20879 choke me
20880 #else
20881 char (*f) () = $ac_func;
20882 #endif
20883 #ifdef __cplusplus
20884 }
20885 #endif
20886
20887 int
20888 main ()
20889 {
20890 return f != $ac_func;
20891 ;
20892 return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest.$ac_objext conftest$ac_exeext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 eval "$as_ac_var=yes"
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922 eval "$as_ac_var=no"
20923 fi
20924 rm -f conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20926 fi
20927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20929 if test `eval echo '${'$as_ac_var'}'` = yes; then
20930 cat >>confdefs.h <<_ACEOF
20931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20932 _ACEOF
20933
20934 fi
20935 done
20936
20937 if test $ac_cv_func_gettimeofday = yes; then
20938 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20939 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20940 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h. */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949
20950 #ifdef TIME_WITH_SYS_TIME
20951 #include <sys/time.h>
20952 #include <time.h>
20953 #else
20954 #ifdef HAVE_SYS_TIME_H
20955 #include <sys/time.h>
20956 #else
20957 #include <time.h>
20958 #endif
20959 #endif
20960 int
20961 main ()
20962 {
20963 struct timeval time;
20964 gettimeofday (&time, 0);
20965 ;
20966 return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 emacs_cv_gettimeofday_two_arguments=yes
20992 else
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 emacs_cv_gettimeofday_two_arguments=no
20997 fi
20998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 fi
21000 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21001 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21002 if test $emacs_cv_gettimeofday_two_arguments = no; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21006 _ACEOF
21007
21008 fi
21009 fi
21010 fi
21011
21012 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21013 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21014 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21015 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h. */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 #include <sys/types.h>
21025 #include <$ac_cv_struct_tm>
21026
21027
21028 int
21029 main ()
21030 {
21031 static struct tm ac_aggr;
21032 if (ac_aggr.tm_zone)
21033 return 0;
21034 ;
21035 return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21041 ac_status=$?
21042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_member_struct_tm_tm_zone=yes
21061 else
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h. */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 #include <sys/types.h>
21072 #include <$ac_cv_struct_tm>
21073
21074
21075 int
21076 main ()
21077 {
21078 static struct tm ac_aggr;
21079 if (sizeof ac_aggr.tm_zone)
21080 return 0;
21081 ;
21082 return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest.$ac_objext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21087 (eval $ac_compile) 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest.$ac_objext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_member_struct_tm_tm_zone=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112 ac_cv_member_struct_tm_tm_zone=no
21113 fi
21114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21115 fi
21116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21117 fi
21118 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21119 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21120 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define HAVE_STRUCT_TM_TM_ZONE 1
21124 _ACEOF
21125
21126
21127 fi
21128
21129 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21130
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_TM_ZONE 1
21133 _ACEOF
21134
21135 else
21136 echo "$as_me:$LINENO: checking for tzname" >&5
21137 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21138 if test "${ac_cv_var_tzname+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h. */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <time.h>
21148 #ifndef tzname /* For SGI. */
21149 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21150 #endif
21151
21152 int
21153 main ()
21154 {
21155 atoi(*tzname);
21156 ;
21157 return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_var_tzname=yes
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_cv_var_tzname=no
21188 fi
21189 rm -f conftest.err conftest.$ac_objext \
21190 conftest$ac_exeext conftest.$ac_ext
21191 fi
21192 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21193 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21194 if test $ac_cv_var_tzname = yes; then
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_TZNAME 1
21198 _ACEOF
21199
21200 fi
21201 fi
21202
21203
21204 if test "$ac_cv_func_gettimeofday" = yes; then
21205 echo "$as_me:$LINENO: checking for struct timezone" >&5
21206 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21207 if test "${emacs_cv_struct_timezone+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h. */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 #include <sys/time.h>
21217 int
21218 main ()
21219 {
21220 struct timezone tz;
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -z "$ac_c_werror_flag"
21235 || test ! -s conftest.err'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 if test "$cross_compiling" = yes; then
21248 emacs_cv_struct_timezone=yes
21249 else
21250 cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h. */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256
21257 #ifdef TIME_WITH_SYS_TIME
21258 #include <sys/time.h>
21259 #include <time.h>
21260 #else
21261 #ifdef HAVE_SYS_TIME_H
21262 #include <sys/time.h>
21263 #else
21264 #include <time.h>
21265 #endif
21266 #endif
21267 main () {
21268 struct timeval time;
21269 struct timezone dummy;
21270 exit (gettimeofday (&time, &dummy));
21271 }
21272 _ACEOF
21273 rm -f conftest$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21284 emacs_cv_struct_timezone=yes
21285 else
21286 echo "$as_me: program exited with status $ac_status" >&5
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ( exit $ac_status )
21291 emacs_cv_struct_timezone=no
21292 fi
21293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21294 fi
21295 else
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 emacs_cv_struct_timezone=no
21300 fi
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 fi
21303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21304 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21305 fi
21306
21307 ok_so_far=yes
21308 echo "$as_me:$LINENO: checking for socket" >&5
21309 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21310 if test "${ac_cv_func_socket+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h. */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21321 #define socket innocuous_socket
21322
21323 /* System header to define __stub macros and hopefully few prototypes,
21324 which can conflict with char socket (); below.
21325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21326 <limits.h> exists even on freestanding compilers. */
21327
21328 #ifdef __STDC__
21329 # include <limits.h>
21330 #else
21331 # include <assert.h>
21332 #endif
21333
21334 #undef socket
21335
21336 /* Override any gcc2 internal prototype to avoid an error. */
21337 #ifdef __cplusplus
21338 extern "C"
21339 {
21340 #endif
21341 /* We use char because int might match the return type of a gcc2
21342 builtin and then its argument prototype would still apply. */
21343 char socket ();
21344 /* The GNU C library defines this for functions which it implements
21345 to always fail with ENOSYS. Some functions are actually named
21346 something starting with __ and the normal name is an alias. */
21347 #if defined (__stub_socket) || defined (__stub___socket)
21348 choke me
21349 #else
21350 char (*f) () = socket;
21351 #endif
21352 #ifdef __cplusplus
21353 }
21354 #endif
21355
21356 int
21357 main ()
21358 {
21359 return f != socket;
21360 ;
21361 return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366 (eval $ac_link) 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_func_socket=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_cv_func_socket=no
21392 fi
21393 rm -f conftest.err conftest.$ac_objext \
21394 conftest$ac_exeext conftest.$ac_ext
21395 fi
21396 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21397 echo "${ECHO_T}$ac_cv_func_socket" >&6
21398 if test $ac_cv_func_socket = yes; then
21399 :
21400 else
21401 ok_so_far=no
21402 fi
21403
21404 if test $ok_so_far = yes; then
21405 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21406 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21407 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21408 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 fi
21411 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21412 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21413 else
21414 # Is the header compilable?
21415 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21416 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 #include <netinet/in.h>
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21428 (eval $ac_compile) 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -z "$ac_c_werror_flag"
21436 || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try='test -s conftest.$ac_objext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 ac_header_compiler=yes
21449 else
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453 ac_header_compiler=no
21454 fi
21455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6
21458
21459 # Is the header present?
21460 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21461 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <netinet/in.h>
21469 _ACEOF
21470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } >/dev/null; then
21478 if test -s conftest.err; then
21479 ac_cpp_err=$ac_c_preproc_warn_flag
21480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21481 else
21482 ac_cpp_err=
21483 fi
21484 else
21485 ac_cpp_err=yes
21486 fi
21487 if test -z "$ac_cpp_err"; then
21488 ac_header_preproc=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 ac_header_preproc=no
21494 fi
21495 rm -f conftest.err conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6
21498
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21501 yes:no: )
21502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21505 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21506 ac_header_preproc=yes
21507 ;;
21508 no:yes:* )
21509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21518 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21521 (
21522 cat <<\_ASBOX
21523 ## ------------------------------------------ ##
21524 ## Report this to the AC_PACKAGE_NAME lists. ##
21525 ## ------------------------------------------ ##
21526 _ASBOX
21527 ) |
21528 sed "s/^/$as_me: WARNING: /" >&2
21529 ;;
21530 esac
21531 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21532 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21533 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536 ac_cv_header_netinet_in_h=$ac_header_preproc
21537 fi
21538 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21539 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21540
21541 fi
21542 if test $ac_cv_header_netinet_in_h = yes; then
21543 :
21544 else
21545 ok_so_far=no
21546 fi
21547
21548
21549 fi
21550 if test $ok_so_far = yes; then
21551 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21552 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21553 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21554 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 fi
21557 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21558 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21559 else
21560 # Is the header compilable?
21561 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21562 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h. */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 #include <arpa/inet.h>
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_header_compiler=yes
21595 else
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 ac_header_compiler=no
21600 fi
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6
21604
21605 # Is the header present?
21606 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21607 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h. */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <arpa/inet.h>
21615 _ACEOF
21616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } >/dev/null; then
21624 if test -s conftest.err; then
21625 ac_cpp_err=$ac_c_preproc_warn_flag
21626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21627 else
21628 ac_cpp_err=
21629 fi
21630 else
21631 ac_cpp_err=yes
21632 fi
21633 if test -z "$ac_cpp_err"; then
21634 ac_header_preproc=yes
21635 else
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_header_preproc=no
21640 fi
21641 rm -f conftest.err conftest.$ac_ext
21642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6
21644
21645 # So? What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21647 yes:no: )
21648 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21652 ac_header_preproc=yes
21653 ;;
21654 no:yes:* )
21655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21667 (
21668 cat <<\_ASBOX
21669 ## ------------------------------------------ ##
21670 ## Report this to the AC_PACKAGE_NAME lists. ##
21671 ## ------------------------------------------ ##
21672 _ASBOX
21673 ) |
21674 sed "s/^/$as_me: WARNING: /" >&2
21675 ;;
21676 esac
21677 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21678 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21679 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682 ac_cv_header_arpa_inet_h=$ac_header_preproc
21683 fi
21684 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21685 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21686
21687 fi
21688 if test $ac_cv_header_arpa_inet_h = yes; then
21689 :
21690 else
21691 ok_so_far=no
21692 fi
21693
21694
21695 fi
21696 if test $ok_so_far = yes; then
21697
21698 cat >>confdefs.h <<\_ACEOF
21699 #define HAVE_INET_SOCKETS 1
21700 _ACEOF
21701
21702 fi
21703
21704
21705 for ac_header in sys/ioctl.h
21706 do
21707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21709 echo "$as_me:$LINENO: checking for $ac_header" >&5
21710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 fi
21714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21716 else
21717 # Is the header compilable?
21718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21727 #include <$ac_header>
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_header_compiler=yes
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_header_compiler=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6
21761
21762 # Is the header present?
21763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <$ac_header>
21772 _ACEOF
21773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } >/dev/null; then
21781 if test -s conftest.err; then
21782 ac_cpp_err=$ac_c_preproc_warn_flag
21783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21784 else
21785 ac_cpp_err=
21786 fi
21787 else
21788 ac_cpp_err=yes
21789 fi
21790 if test -z "$ac_cpp_err"; then
21791 ac_header_preproc=yes
21792 else
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 ac_header_preproc=no
21797 fi
21798 rm -f conftest.err conftest.$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6
21801
21802 # So? What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21804 yes:no: )
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21809 ac_header_preproc=yes
21810 ;;
21811 no:yes:* )
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21824 (
21825 cat <<\_ASBOX
21826 ## ------------------------------------------ ##
21827 ## Report this to the AC_PACKAGE_NAME lists. ##
21828 ## ------------------------------------------ ##
21829 _ASBOX
21830 ) |
21831 sed "s/^/$as_me: WARNING: /" >&2
21832 ;;
21833 esac
21834 echo "$as_me:$LINENO: checking for $ac_header" >&5
21835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839 eval "$as_ac_Header=\$ac_header_preproc"
21840 fi
21841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21843
21844 fi
21845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21848 _ACEOF
21849
21850 fi
21851
21852 done
21853
21854
21855 if test -f /usr/lpp/X11/bin/smt.exp; then
21856
21857 cat >>confdefs.h <<\_ACEOF
21858 #define HAVE_AIX_SMT_EXP 1
21859 _ACEOF
21860
21861 fi
21862
21863 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21864 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21865 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21866 echo "$as_me:$LINENO: result: yes" >&5
21867 echo "${ECHO_T}yes" >&6
21868
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_DEV_PTMX 1
21871 _ACEOF
21872
21873 else
21874 echo "$as_me:$LINENO: result: no" >&5
21875 echo "${ECHO_T}no" >&6
21876 fi
21877
21878 echo "$as_me:$LINENO: checking for pid_t" >&5
21879 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21880 if test "${ac_cv_type_pid_t+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21890 int
21891 main ()
21892 {
21893 if ((pid_t *) 0)
21894 return 0;
21895 if (sizeof (pid_t))
21896 return 0;
21897 ;
21898 return 0;
21899 }
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21903 (eval $ac_compile) 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest.$ac_objext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_type_pid_t=yes
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928 ac_cv_type_pid_t=no
21929 fi
21930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21931 fi
21932 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21934 if test $ac_cv_type_pid_t = yes; then
21935 :
21936 else
21937
21938 cat >>confdefs.h <<_ACEOF
21939 #define pid_t int
21940 _ACEOF
21941
21942 fi
21943
21944
21945
21946 for ac_header in unistd.h vfork.h
21947 do
21948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950 echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 fi
21955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21957 else
21958 # Is the header compilable?
21959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h. */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <$ac_header>
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972 (eval $ac_compile) 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
21979 { ac_try='test -z "$ac_c_werror_flag"
21980 || test ! -s conftest.err'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest.$ac_objext'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 ac_header_compiler=yes
21993 else
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 ac_header_compiler=no
21998 fi
21999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 echo "${ECHO_T}$ac_header_compiler" >&6
22002
22003 # Is the header present?
22004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h. */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <$ac_header>
22013 _ACEOF
22014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } >/dev/null; then
22022 if test -s conftest.err; then
22023 ac_cpp_err=$ac_c_preproc_warn_flag
22024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22025 else
22026 ac_cpp_err=
22027 fi
22028 else
22029 ac_cpp_err=yes
22030 fi
22031 if test -z "$ac_cpp_err"; then
22032 ac_header_preproc=yes
22033 else
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 ac_header_preproc=no
22038 fi
22039 rm -f conftest.err conftest.$ac_ext
22040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 echo "${ECHO_T}$ac_header_preproc" >&6
22042
22043 # So? What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22045 yes:no: )
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050 ac_header_preproc=yes
22051 ;;
22052 no:yes:* )
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22065 (
22066 cat <<\_ASBOX
22067 ## ------------------------------------------ ##
22068 ## Report this to the AC_PACKAGE_NAME lists. ##
22069 ## ------------------------------------------ ##
22070 _ASBOX
22071 ) |
22072 sed "s/^/$as_me: WARNING: /" >&2
22073 ;;
22074 esac
22075 echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22080 eval "$as_ac_Header=\$ac_header_preproc"
22081 fi
22082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22084
22085 fi
22086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22087 cat >>confdefs.h <<_ACEOF
22088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22089 _ACEOF
22090
22091 fi
22092
22093 done
22094
22095
22096
22097 for ac_func in fork vfork
22098 do
22099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22100 echo "$as_me:$LINENO: checking for $ac_func" >&5
22101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22102 if eval "test \"\${$as_ac_var+set}\" = set"; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22113 #define $ac_func innocuous_$ac_func
22114
22115 /* System header to define __stub macros and hopefully few prototypes,
22116 which can conflict with char $ac_func (); below.
22117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22118 <limits.h> exists even on freestanding compilers. */
22119
22120 #ifdef __STDC__
22121 # include <limits.h>
22122 #else
22123 # include <assert.h>
22124 #endif
22125
22126 #undef $ac_func
22127
22128 /* Override any gcc2 internal prototype to avoid an error. */
22129 #ifdef __cplusplus
22130 extern "C"
22131 {
22132 #endif
22133 /* We use char because int might match the return type of a gcc2
22134 builtin and then its argument prototype would still apply. */
22135 char $ac_func ();
22136 /* The GNU C library defines this for functions which it implements
22137 to always fail with ENOSYS. Some functions are actually named
22138 something starting with __ and the normal name is an alias. */
22139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22140 choke me
22141 #else
22142 char (*f) () = $ac_func;
22143 #endif
22144 #ifdef __cplusplus
22145 }
22146 #endif
22147
22148 int
22149 main ()
22150 {
22151 return f != $ac_func;
22152 ;
22153 return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext conftest$ac_exeext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22158 (eval $ac_link) 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 eval "$as_ac_var=yes"
22179 else
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 eval "$as_ac_var=no"
22184 fi
22185 rm -f conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
22187 fi
22188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22190 if test `eval echo '${'$as_ac_var'}'` = yes; then
22191 cat >>confdefs.h <<_ACEOF
22192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22193 _ACEOF
22194
22195 fi
22196 done
22197
22198 if test "x$ac_cv_func_fork" = xyes; then
22199 echo "$as_me:$LINENO: checking for working fork" >&5
22200 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22201 if test "${ac_cv_func_fork_works+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204 if test "$cross_compiling" = yes; then
22205 ac_cv_func_fork_works=cross
22206 else
22207 cat >conftest.$ac_ext <<_ACEOF
22208 /* By Ruediger Kuhlmann. */
22209 #include <sys/types.h>
22210 #if HAVE_UNISTD_H
22211 # include <unistd.h>
22212 #endif
22213 /* Some systems only have a dummy stub for fork() */
22214 int main ()
22215 {
22216 if (fork() < 0)
22217 exit (1);
22218 exit (0);
22219 }
22220 _ACEOF
22221 rm -f conftest$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_func_fork_works=yes
22233 else
22234 echo "$as_me: program exited with status $ac_status" >&5
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ( exit $ac_status )
22239 ac_cv_func_fork_works=no
22240 fi
22241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22242 fi
22243 fi
22244 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22245 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22246
22247 else
22248 ac_cv_func_fork_works=$ac_cv_func_fork
22249 fi
22250 if test "x$ac_cv_func_fork_works" = xcross; then
22251 case $host in
22252 *-*-amigaos* | *-*-msdosdjgpp*)
22253 # Override, as these systems have only a dummy fork() stub
22254 ac_cv_func_fork_works=no
22255 ;;
22256 *)
22257 ac_cv_func_fork_works=yes
22258 ;;
22259 esac
22260 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22261 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22262 fi
22263 ac_cv_func_vfork_works=$ac_cv_func_vfork
22264 if test "x$ac_cv_func_vfork" = xyes; then
22265 echo "$as_me:$LINENO: checking for working vfork" >&5
22266 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22267 if test "${ac_cv_func_vfork_works+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270 if test "$cross_compiling" = yes; then
22271 ac_cv_func_vfork_works=cross
22272 else
22273 cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h. */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 /* Thanks to Paul Eggert for this test. */
22280 #include <stdio.h>
22281 #include <stdlib.h>
22282 #include <sys/types.h>
22283 #include <sys/stat.h>
22284 #include <sys/wait.h>
22285 #if HAVE_UNISTD_H
22286 # include <unistd.h>
22287 #endif
22288 #if HAVE_VFORK_H
22289 # include <vfork.h>
22290 #endif
22291 /* On some sparc systems, changes by the child to local and incoming
22292 argument registers are propagated back to the parent. The compiler
22293 is told about this with #include <vfork.h>, but some compilers
22294 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22295 static variable whose address is put into a register that is
22296 clobbered by the vfork. */
22297 static void
22298 #ifdef __cplusplus
22299 sparc_address_test (int arg)
22300 # else
22301 sparc_address_test (arg) int arg;
22302 #endif
22303 {
22304 static pid_t child;
22305 if (!child) {
22306 child = vfork ();
22307 if (child < 0) {
22308 perror ("vfork");
22309 _exit(2);
22310 }
22311 if (!child) {
22312 arg = getpid();
22313 write(-1, "", 0);
22314 _exit (arg);
22315 }
22316 }
22317 }
22318
22319 int
22320 main ()
22321 {
22322 pid_t parent = getpid ();
22323 pid_t child;
22324
22325 sparc_address_test (0);
22326
22327 child = vfork ();
22328
22329 if (child == 0) {
22330 /* Here is another test for sparc vfork register problems. This
22331 test uses lots of local variables, at least as many local
22332 variables as main has allocated so far including compiler
22333 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22334 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22335 reuse the register of parent for one of the local variables,
22336 since it will think that parent can't possibly be used any more
22337 in this routine. Assigning to the local variable will thus
22338 munge parent in the parent process. */
22339 pid_t
22340 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22341 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22342 /* Convince the compiler that p..p7 are live; otherwise, it might
22343 use the same hardware register for all 8 local variables. */
22344 if (p != p1 || p != p2 || p != p3 || p != p4
22345 || p != p5 || p != p6 || p != p7)
22346 _exit(1);
22347
22348 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22349 from child file descriptors. If the child closes a descriptor
22350 before it execs or exits, this munges the parent's descriptor
22351 as well. Test for this by closing stdout in the child. */
22352 _exit(close(fileno(stdout)) != 0);
22353 } else {
22354 int status;
22355 struct stat st;
22356
22357 while (wait(&status) != child)
22358 ;
22359 exit(
22360 /* Was there some problem with vforking? */
22361 child < 0
22362
22363 /* Did the child fail? (This shouldn't happen.) */
22364 || status
22365
22366 /* Did the vfork/compiler bug occur? */
22367 || parent != getpid()
22368
22369 /* Did the file descriptor bug occur? */
22370 || fstat(fileno(stdout), &st) != 0
22371 );
22372 }
22373 }
22374 _ACEOF
22375 rm -f conftest$ac_exeext
22376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22377 (eval $ac_link) 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 ac_cv_func_vfork_works=yes
22387 else
22388 echo "$as_me: program exited with status $ac_status" >&5
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392 ( exit $ac_status )
22393 ac_cv_func_vfork_works=no
22394 fi
22395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 fi
22398 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22399 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22400
22401 fi;
22402 if test "x$ac_cv_func_fork_works" = xcross; then
22403 ac_cv_func_vfork_works=$ac_cv_func_vfork
22404 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22405 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22406 fi
22407
22408 if test "x$ac_cv_func_vfork_works" = xyes; then
22409
22410 cat >>confdefs.h <<\_ACEOF
22411 #define HAVE_WORKING_VFORK 1
22412 _ACEOF
22413
22414 else
22415
22416 cat >>confdefs.h <<\_ACEOF
22417 #define vfork fork
22418 _ACEOF
22419
22420 fi
22421 if test "x$ac_cv_func_fork_works" = xyes; then
22422
22423 cat >>confdefs.h <<\_ACEOF
22424 #define HAVE_WORKING_FORK 1
22425 _ACEOF
22426
22427 fi
22428
22429
22430 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22431 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22432 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435 cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h. */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 #include <langinfo.h>
22442 int
22443 main ()
22444 {
22445 char* cs = nl_langinfo(CODESET);
22446 ;
22447 return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452 (eval $ac_link) 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_c_werror_flag"
22460 || test ! -s conftest.err'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try='test -s conftest$ac_exeext'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 emacs_cv_langinfo_codeset=yes
22473 else
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 emacs_cv_langinfo_codeset=no
22478 fi
22479 rm -f conftest.err conftest.$ac_objext \
22480 conftest$ac_exeext conftest.$ac_ext
22481
22482 fi
22483 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22484 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22485 if test $emacs_cv_langinfo_codeset = yes; then
22486
22487 cat >>confdefs.h <<\_ACEOF
22488 #define HAVE_LANGINFO_CODESET 1
22489 _ACEOF
22490
22491 fi
22492
22493 echo "$as_me:$LINENO: checking for size_t" >&5
22494 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22495 if test "${ac_cv_type_size_t+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h. */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22505 int
22506 main ()
22507 {
22508 if ((size_t *) 0)
22509 return 0;
22510 if (sizeof (size_t))
22511 return 0;
22512 ;
22513 return 0;
22514 }
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518 (eval $ac_compile) 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_type_size_t=yes
22539 else
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_cv_type_size_t=no
22544 fi
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 fi
22547 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22548 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22549 if test $ac_cv_type_size_t = yes; then
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_SIZE_T 1
22553 _ACEOF
22554
22555
22556 fi
22557
22558
22559 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22560 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22561 if test "${ac_cv_type_mbstate_t+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 # include <wchar.h>
22572 int
22573 main ()
22574 {
22575 mbstate_t x; return sizeof x;
22576 ;
22577 return 0;
22578 }
22579 _ACEOF
22580 rm -f conftest.$ac_objext
22581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22582 (eval $ac_compile) 2>conftest.er1
22583 ac_status=$?
22584 grep -v '^ *+' conftest.er1 >conftest.err
22585 rm -f conftest.er1
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
22589 { ac_try='test -z "$ac_c_werror_flag"
22590 || test ! -s conftest.err'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } &&
22596 { ac_try='test -s conftest.$ac_objext'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }; then
22602 ac_cv_type_mbstate_t=yes
22603 else
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 ac_cv_type_mbstate_t=no
22608 fi
22609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22610 fi
22611 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22612 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22613 if test $ac_cv_type_mbstate_t = yes; then
22614
22615 cat >>confdefs.h <<\_ACEOF
22616 #define HAVE_MBSTATE_T 1
22617 _ACEOF
22618
22619 else
22620
22621 cat >>confdefs.h <<\_ACEOF
22622 #define mbstate_t int
22623 _ACEOF
22624
22625 fi
22626
22627 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22628 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22629 if test "${emacs_cv_c_restrict+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h. */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 void fred (int *restrict x);
22639 int
22640 main ()
22641 {
22642
22643 ;
22644 return 0;
22645 }
22646 _ACEOF
22647 rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649 (eval $ac_compile) 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -z "$ac_c_werror_flag"
22657 || test ! -s conftest.err'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest.$ac_objext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 emacs_cv_c_restrict=yes
22670 else
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22673
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 void fred (int *__restrict x);
22681 int
22682 main ()
22683 {
22684
22685 ;
22686 return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691 (eval $ac_compile) 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
22698 { ac_try='test -z "$ac_c_werror_flag"
22699 || test ! -s conftest.err'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; } &&
22705 { ac_try='test -s conftest.$ac_objext'
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; }; then
22711 emacs_cv_c_restrict=__restrict
22712 else
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716 emacs_cv_c_restrict=no
22717 fi
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22719 fi
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721 fi
22722 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22723 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22724 case "$emacs_cv_c_restrict" in
22725 yes) emacs_restrict=restrict;;
22726 no) emacs_restrict="";;
22727 *) emacs_restrict="$emacs_cv_c_restrict";;
22728 esac
22729 if test "$emacs_restrict" != __restrict; then
22730
22731 cat >>confdefs.h <<_ACEOF
22732 #define __restrict $emacs_restrict
22733 _ACEOF
22734
22735 fi
22736
22737 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22738 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22739 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742 cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h. */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 void fred (int x[__restrict]);
22749 int
22750 main ()
22751 {
22752
22753 ;
22754 return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext
22758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22759 (eval $ac_compile) 2>conftest.er1
22760 ac_status=$?
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
22766 { ac_try='test -z "$ac_c_werror_flag"
22767 || test ! -s conftest.err'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } &&
22773 { ac_try='test -s conftest.$ac_objext'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779 emacs_cv_c_restrict_arr=yes
22780 else
22781 echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22783
22784 emacs_cv_c_restrict_arr=no
22785 fi
22786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22787 fi
22788 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22789 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22790 if test "$emacs_cv_c_restrict_arr" = yes; then
22791
22792 cat >>confdefs.h <<\_ACEOF
22793 #define __restrict_arr __restrict
22794 _ACEOF
22795
22796 fi
22797
22798
22799
22800 # Set up the CFLAGS for real compilation, so we can substitute it.
22801 CFLAGS="$REAL_CFLAGS"
22802 CPPFLAGS="$REAL_CPPFLAGS"
22803
22804 #### Find out which version of Emacs this is.
22805 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22806 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22807 if test x"${version}" = x; then
22808 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22809 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22810 { (exit 1); exit 1; }; }
22811 fi
22812
22813 ### Specify what sort of things we'll be editing into Makefile and config.h.
22814 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850 cat >>confdefs.h <<_ACEOF
22851 #define EMACS_CONFIGURATION "${canonical}"
22852 _ACEOF
22853
22854
22855 cat >>confdefs.h <<_ACEOF
22856 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22857 _ACEOF
22858
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define config_machfile "${machfile}"
22862 _ACEOF
22863
22864
22865 cat >>confdefs.h <<_ACEOF
22866 #define config_opsysfile "${opsysfile}"
22867 _ACEOF
22868
22869
22870 cat >>confdefs.h <<_ACEOF
22871 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22872 _ACEOF
22873
22874
22875 cat >>confdefs.h <<_ACEOF
22876 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22877 _ACEOF
22878
22879
22880 cat >>confdefs.h <<_ACEOF
22881 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22882 _ACEOF
22883
22884
22885 cat >>confdefs.h <<_ACEOF
22886 #define UNEXEC_SRC ${UNEXEC_SRC}
22887 _ACEOF
22888
22889
22890 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_X_WINDOWS 1
22894 _ACEOF
22895
22896 fi
22897 if test "${USE_X_TOOLKIT}" != "none" ; then
22898
22899 cat >>confdefs.h <<\_ACEOF
22900 #define USE_X_TOOLKIT 1
22901 _ACEOF
22902
22903 fi
22904 if test "${HAVE_X11}" = "yes" ; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_X11 1
22908 _ACEOF
22909
22910 fi
22911 if test "${HAVE_XFREE386}" = "yes" ; then
22912
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_XFREE386 1
22915 _ACEOF
22916
22917 fi
22918 if test "${HAVE_MENUS}" = "yes" ; then
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_MENUS 1
22922 _ACEOF
22923
22924 fi
22925 if test "${GNU_MALLOC}" = "yes" ; then
22926
22927 cat >>confdefs.h <<\_ACEOF
22928 #define GNU_MALLOC 1
22929 _ACEOF
22930
22931 fi
22932 if test "${REL_ALLOC}" = "yes" ; then
22933
22934 cat >>confdefs.h <<\_ACEOF
22935 #define REL_ALLOC 1
22936 _ACEOF
22937
22938 fi
22939
22940
22941
22942
22943
22944 #### Report on what we decided to do.
22945 #### Report GTK as a toolkit, even if it doesn't use Xt.
22946 #### It makes printing result more understandable as using GTK sets
22947 #### toolkit_scroll_bars to yes by default.
22948 if test "${HAVE_GTK}" = "yes"; then
22949 USE_X_TOOLKIT=GTK
22950 fi
22951
22952 echo "
22953 Configured for \`${canonical}'.
22954
22955 Where should the build process find the source code? ${srcdir}
22956 What operating system and machine description files should Emacs use?
22957 \`${opsysfile}' and \`${machfile}'
22958 What compiler should emacs be built with? ${CC} ${CFLAGS}
22959 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22960 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22961 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22962 What window system should Emacs use? ${window_system}
22963 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22964
22965 if test -n "${x_includes}"; then
22966 echo " Where do we find X Windows header files? ${x_includes}"
22967 else
22968 echo " Where do we find X Windows header files? Standard dirs"
22969 fi
22970 if test -n "${x_libraries}"; then
22971 echo " Where do we find X Windows libraries? ${x_libraries}"
22972 else
22973 echo " Where do we find X Windows libraries? Standard dirs"
22974 fi
22975
22976 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22977 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22978 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22979 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22980 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22981 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22982 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22983 echo
22984
22985 if test $USE_XASSERTS = yes; then
22986 echo " Compiling with asserts turned on."
22987 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22988 echo
22989 fi
22990
22991
22992
22993 # Remove any trailing slashes in these variables.
22994 test "${prefix}" != NONE &&
22995 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22996 test "${exec_prefix}" != NONE &&
22997 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22998
22999 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23000 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23001 ## from Makefile.c can correctly provide the arg `-traditional' to the
23002 ## C preprocessor.
23003
23004 cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h. */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 yes..yes
23011 _ACEOF
23012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23013 $EGREP "yes..yes" >/dev/null 2>&1; then
23014 CPP_NEED_TRADITIONAL=no
23015 else
23016 CPP_NEED_TRADITIONAL=yes
23017 fi
23018 rm -f conftest*
23019
23020
23021 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"
23022 ac_config_commands="$ac_config_commands default"
23023 cat >confcache <<\_ACEOF
23024 # This file is a shell script that caches the results of configure
23025 # tests run on this system so they can be shared between configure
23026 # scripts and configure runs, see configure's option --config-cache.
23027 # It is not useful on other systems. If it contains results you don't
23028 # want to keep, you may remove or edit it.
23029 #
23030 # config.status only pays attention to the cache file if you give it
23031 # the --recheck option to rerun configure.
23032 #
23033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23035 # following values.
23036
23037 _ACEOF
23038
23039 # The following way of writing the cache mishandles newlines in values,
23040 # but we know of no workaround that is simple, portable, and efficient.
23041 # So, don't put newlines in cache variables' values.
23042 # Ultrix sh set writes to stderr and can't be redirected directly,
23043 # and sets the high bit in the cache file unless we assign to the vars.
23044 {
23045 (set) 2>&1 |
23046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23047 *ac_space=\ *)
23048 # `set' does not quote correctly, so add quotes (double-quote
23049 # substitution turns \\\\ into \\, and sed turns \\ into \).
23050 sed -n \
23051 "s/'/'\\\\''/g;
23052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23053 ;;
23054 *)
23055 # `set' quotes correctly as required by POSIX, so do not add quotes.
23056 sed -n \
23057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23058 ;;
23059 esac;
23060 } |
23061 sed '
23062 t clear
23063 : clear
23064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23065 t end
23066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23067 : end' >>confcache
23068 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23069 if test -w $cache_file; then
23070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23071 cat confcache >$cache_file
23072 else
23073 echo "not updating unwritable cache $cache_file"
23074 fi
23075 fi
23076 rm -f confcache
23077
23078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23079 # Let make expand exec_prefix.
23080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23081
23082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23084 # trailing colons and then remove the whole line if VPATH becomes empty
23085 # (actually we leave an empty line to preserve line numbers).
23086 if test "x$srcdir" = x.; then
23087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23088 s/:*\$(srcdir):*/:/;
23089 s/:*\${srcdir}:*/:/;
23090 s/:*@srcdir@:*/:/;
23091 s/^\([^=]*=[ ]*\):*/\1/;
23092 s/:*$//;
23093 s/^[^=]*=[ ]*$//;
23094 }'
23095 fi
23096
23097 DEFS=-DHAVE_CONFIG_H
23098
23099 ac_libobjs=
23100 ac_ltlibobjs=
23101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23102 # 1. Remove the extension, and $U if already installed.
23103 ac_i=`echo "$ac_i" |
23104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23105 # 2. Add them.
23106 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23107 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23108 done
23109 LIBOBJS=$ac_libobjs
23110
23111 LTLIBOBJS=$ac_ltlibobjs
23112
23113
23114
23115 : ${CONFIG_STATUS=./config.status}
23116 ac_clean_files_save=$ac_clean_files
23117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23118 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23119 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23120 cat >$CONFIG_STATUS <<_ACEOF
23121 #! $SHELL
23122 # Generated by $as_me.
23123 # Run this file to recreate the current configuration.
23124 # Compiler output produced by configure, useful for debugging
23125 # configure, is in config.log if it exists.
23126
23127 debug=false
23128 ac_cs_recheck=false
23129 ac_cs_silent=false
23130 SHELL=\${CONFIG_SHELL-$SHELL}
23131 _ACEOF
23132
23133 cat >>$CONFIG_STATUS <<\_ACEOF
23134 ## --------------------- ##
23135 ## M4sh Initialization. ##
23136 ## --------------------- ##
23137
23138 # Be Bourne compatible
23139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23140 emulate sh
23141 NULLCMD=:
23142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23143 # is contrary to our usage. Disable this feature.
23144 alias -g '${1+"$@"}'='"$@"'
23145 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23146 set -o posix
23147 fi
23148 DUALCASE=1; export DUALCASE # for MKS sh
23149
23150 # Support unset when possible.
23151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23152 as_unset=unset
23153 else
23154 as_unset=false
23155 fi
23156
23157
23158 # Work around bugs in pre-3.0 UWIN ksh.
23159 $as_unset ENV MAIL MAILPATH
23160 PS1='$ '
23161 PS2='> '
23162 PS4='+ '
23163
23164 # NLS nuisances.
23165 for as_var in \
23166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23168 LC_TELEPHONE LC_TIME
23169 do
23170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23171 eval $as_var=C; export $as_var
23172 else
23173 $as_unset $as_var
23174 fi
23175 done
23176
23177 # Required to use basename.
23178 if expr a : '\(a\)' >/dev/null 2>&1; then
23179 as_expr=expr
23180 else
23181 as_expr=false
23182 fi
23183
23184 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23185 as_basename=basename
23186 else
23187 as_basename=false
23188 fi
23189
23190
23191 # Name of the executable.
23192 as_me=`$as_basename "$0" ||
23193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23194 X"$0" : 'X\(//\)$' \| \
23195 X"$0" : 'X\(/\)$' \| \
23196 . : '\(.\)' 2>/dev/null ||
23197 echo X/"$0" |
23198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23199 /^X\/\(\/\/\)$/{ s//\1/; q; }
23200 /^X\/\(\/\).*/{ s//\1/; q; }
23201 s/.*/./; q'`
23202
23203
23204 # PATH needs CR, and LINENO needs CR and PATH.
23205 # Avoid depending upon Character Ranges.
23206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23209 as_cr_digits='0123456789'
23210 as_cr_alnum=$as_cr_Letters$as_cr_digits
23211
23212 # The user is always right.
23213 if test "${PATH_SEPARATOR+set}" != set; then
23214 echo "#! /bin/sh" >conf$$.sh
23215 echo "exit 0" >>conf$$.sh
23216 chmod +x conf$$.sh
23217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23218 PATH_SEPARATOR=';'
23219 else
23220 PATH_SEPARATOR=:
23221 fi
23222 rm -f conf$$.sh
23223 fi
23224
23225
23226 as_lineno_1=$LINENO
23227 as_lineno_2=$LINENO
23228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23229 test "x$as_lineno_1" != "x$as_lineno_2" &&
23230 test "x$as_lineno_3" = "x$as_lineno_2" || {
23231 # Find who we are. Look in the path if we contain no path at all
23232 # relative or not.
23233 case $0 in
23234 *[\\/]* ) as_myself=$0 ;;
23235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23236 for as_dir in $PATH
23237 do
23238 IFS=$as_save_IFS
23239 test -z "$as_dir" && as_dir=.
23240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23241 done
23242
23243 ;;
23244 esac
23245 # We did not find ourselves, most probably we were run as `sh COMMAND'
23246 # in which case we are not to be found in the path.
23247 if test "x$as_myself" = x; then
23248 as_myself=$0
23249 fi
23250 if test ! -f "$as_myself"; then
23251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23252 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23253 { (exit 1); exit 1; }; }
23254 fi
23255 case $CONFIG_SHELL in
23256 '')
23257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23258 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23259 do
23260 IFS=$as_save_IFS
23261 test -z "$as_dir" && as_dir=.
23262 for as_base in sh bash ksh sh5; do
23263 case $as_dir in
23264 /*)
23265 if ("$as_dir/$as_base" -c '
23266 as_lineno_1=$LINENO
23267 as_lineno_2=$LINENO
23268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23269 test "x$as_lineno_1" != "x$as_lineno_2" &&
23270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23273 CONFIG_SHELL=$as_dir/$as_base
23274 export CONFIG_SHELL
23275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23276 fi;;
23277 esac
23278 done
23279 done
23280 ;;
23281 esac
23282
23283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23284 # uniformly replaced by the line number. The first 'sed' inserts a
23285 # line-number line before each line; the second 'sed' does the real
23286 # work. The second script uses 'N' to pair each line-number line
23287 # with the numbered line, and appends trailing '-' during
23288 # substitution so that $LINENO is not a special case at line end.
23289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23291 sed '=' <$as_myself |
23292 sed '
23293 N
23294 s,$,-,
23295 : loop
23296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23297 t loop
23298 s,-$,,
23299 s,^['$as_cr_digits']*\n,,
23300 ' >$as_me.lineno &&
23301 chmod +x $as_me.lineno ||
23302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23303 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23304 { (exit 1); exit 1; }; }
23305
23306 # Don't try to exec as it changes $[0], causing all sort of problems
23307 # (the dirname of $[0] is not the place where we might find the
23308 # original and so on. Autoconf is especially sensible to this).
23309 . ./$as_me.lineno
23310 # Exit status is that of the last command.
23311 exit
23312 }
23313
23314
23315 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23316 *c*,-n*) ECHO_N= ECHO_C='
23317 ' ECHO_T=' ' ;;
23318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23320 esac
23321
23322 if expr a : '\(a\)' >/dev/null 2>&1; then
23323 as_expr=expr
23324 else
23325 as_expr=false
23326 fi
23327
23328 rm -f conf$$ conf$$.exe conf$$.file
23329 echo >conf$$.file
23330 if ln -s conf$$.file conf$$ 2>/dev/null; then
23331 # We could just check for DJGPP; but this test a) works b) is more generic
23332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23333 if test -f conf$$.exe; then
23334 # Don't use ln at all; we don't have any links
23335 as_ln_s='cp -p'
23336 else
23337 as_ln_s='ln -s'
23338 fi
23339 elif ln conf$$.file conf$$ 2>/dev/null; then
23340 as_ln_s=ln
23341 else
23342 as_ln_s='cp -p'
23343 fi
23344 rm -f conf$$ conf$$.exe conf$$.file
23345
23346 if mkdir -p . 2>/dev/null; then
23347 as_mkdir_p=:
23348 else
23349 test -d ./-p && rmdir ./-p
23350 as_mkdir_p=false
23351 fi
23352
23353 as_executable_p="test -f"
23354
23355 # Sed expression to map a string onto a valid CPP name.
23356 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23357
23358 # Sed expression to map a string onto a valid variable name.
23359 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23360
23361
23362 # IFS
23363 # We need space, tab and new line, in precisely that order.
23364 as_nl='
23365 '
23366 IFS=" $as_nl"
23367
23368 # CDPATH.
23369 $as_unset CDPATH
23370
23371 exec 6>&1
23372
23373 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23374 # report actual input values of CONFIG_FILES etc. instead of their
23375 # values after options handling. Logging --version etc. is OK.
23376 exec 5>>config.log
23377 {
23378 echo
23379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23380 ## Running $as_me. ##
23381 _ASBOX
23382 } >&5
23383 cat >&5 <<_CSEOF
23384
23385 This file was extended by $as_me, which was
23386 generated by GNU Autoconf 2.59. Invocation command line was
23387
23388 CONFIG_FILES = $CONFIG_FILES
23389 CONFIG_HEADERS = $CONFIG_HEADERS
23390 CONFIG_LINKS = $CONFIG_LINKS
23391 CONFIG_COMMANDS = $CONFIG_COMMANDS
23392 $ $0 $@
23393
23394 _CSEOF
23395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23396 echo >&5
23397 _ACEOF
23398
23399 # Files that config.status was made for.
23400 if test -n "$ac_config_files"; then
23401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23402 fi
23403
23404 if test -n "$ac_config_headers"; then
23405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23406 fi
23407
23408 if test -n "$ac_config_links"; then
23409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23410 fi
23411
23412 if test -n "$ac_config_commands"; then
23413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23414 fi
23415
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23417
23418 ac_cs_usage="\
23419 \`$as_me' instantiates files from templates according to the
23420 current configuration.
23421
23422 Usage: $0 [OPTIONS] [FILE]...
23423
23424 -h, --help print this help, then exit
23425 -V, --version print version number, then exit
23426 -q, --quiet do not print progress messages
23427 -d, --debug don't remove temporary files
23428 --recheck update $as_me by reconfiguring in the same conditions
23429 --file=FILE[:TEMPLATE]
23430 instantiate the configuration file FILE
23431 --header=FILE[:TEMPLATE]
23432 instantiate the configuration header FILE
23433
23434 Configuration files:
23435 $config_files
23436
23437 Configuration headers:
23438 $config_headers
23439
23440 Configuration commands:
23441 $config_commands
23442
23443 Report bugs to <bug-autoconf@gnu.org>."
23444 _ACEOF
23445
23446 cat >>$CONFIG_STATUS <<_ACEOF
23447 ac_cs_version="\\
23448 config.status
23449 configured by $0, generated by GNU Autoconf 2.59,
23450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23451
23452 Copyright (C) 2003 Free Software Foundation, Inc.
23453 This config.status script is free software; the Free Software Foundation
23454 gives unlimited permission to copy, distribute and modify it."
23455 srcdir=$srcdir
23456 INSTALL="$INSTALL"
23457 _ACEOF
23458
23459 cat >>$CONFIG_STATUS <<\_ACEOF
23460 # If no file are specified by the user, then we need to provide default
23461 # value. By we need to know if files were specified by the user.
23462 ac_need_defaults=:
23463 while test $# != 0
23464 do
23465 case $1 in
23466 --*=*)
23467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23469 ac_shift=:
23470 ;;
23471 -*)
23472 ac_option=$1
23473 ac_optarg=$2
23474 ac_shift=shift
23475 ;;
23476 *) # This is not an option, so the user has probably given explicit
23477 # arguments.
23478 ac_option=$1
23479 ac_need_defaults=false;;
23480 esac
23481
23482 case $ac_option in
23483 # Handling of the options.
23484 _ACEOF
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23487 ac_cs_recheck=: ;;
23488 --version | --vers* | -V )
23489 echo "$ac_cs_version"; exit 0 ;;
23490 --he | --h)
23491 # Conflict between --help and --header
23492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23493 Try \`$0 --help' for more information." >&5
23494 echo "$as_me: error: ambiguous option: $1
23495 Try \`$0 --help' for more information." >&2;}
23496 { (exit 1); exit 1; }; };;
23497 --help | --hel | -h )
23498 echo "$ac_cs_usage"; exit 0 ;;
23499 --debug | --d* | -d )
23500 debug=: ;;
23501 --file | --fil | --fi | --f )
23502 $ac_shift
23503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23504 ac_need_defaults=false;;
23505 --header | --heade | --head | --hea )
23506 $ac_shift
23507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23508 ac_need_defaults=false;;
23509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23511 ac_cs_silent=: ;;
23512
23513 # This is an error.
23514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23515 Try \`$0 --help' for more information." >&5
23516 echo "$as_me: error: unrecognized option: $1
23517 Try \`$0 --help' for more information." >&2;}
23518 { (exit 1); exit 1; }; } ;;
23519
23520 *) ac_config_targets="$ac_config_targets $1" ;;
23521
23522 esac
23523 shift
23524 done
23525
23526 ac_configure_extra_args=
23527
23528 if $ac_cs_silent; then
23529 exec 6>/dev/null
23530 ac_configure_extra_args="$ac_configure_extra_args --silent"
23531 fi
23532
23533 _ACEOF
23534 cat >>$CONFIG_STATUS <<_ACEOF
23535 if \$ac_cs_recheck; then
23536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23538 fi
23539
23540 _ACEOF
23541
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 #
23544 # INIT-COMMANDS section.
23545 #
23546
23547 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23548
23549 _ACEOF
23550
23551
23552
23553 cat >>$CONFIG_STATUS <<\_ACEOF
23554 for ac_config_target in $ac_config_targets
23555 do
23556 case "$ac_config_target" in
23557 # Handling of arguments.
23558 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23559 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23560 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23561 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23562 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23563 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23564 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23565 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23566 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23567 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23568 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23569 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23572 { (exit 1); exit 1; }; };;
23573 esac
23574 done
23575
23576 # If the user did not use the arguments to specify the items to instantiate,
23577 # then the envvar interface is used. Set only those that are not.
23578 # We use the long form for the default assignment because of an extremely
23579 # bizarre bug on SunOS 4.1.3.
23580 if $ac_need_defaults; then
23581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23584 fi
23585
23586 # Have a temporary directory for convenience. Make it in the build tree
23587 # simply because there is no reason to put it here, and in addition,
23588 # creating and moving files from /tmp can sometimes cause problems.
23589 # Create a temporary directory, and hook for its removal unless debugging.
23590 $debug ||
23591 {
23592 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23593 trap '{ (exit 1); exit 1; }' 1 2 13 15
23594 }
23595
23596 # Create a (secure) tmp directory for tmp files.
23597
23598 {
23599 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23600 test -n "$tmp" && test -d "$tmp"
23601 } ||
23602 {
23603 tmp=./confstat$$-$RANDOM
23604 (umask 077 && mkdir $tmp)
23605 } ||
23606 {
23607 echo "$me: cannot create a temporary directory in ." >&2
23608 { (exit 1); exit 1; }
23609 }
23610
23611 _ACEOF
23612
23613 cat >>$CONFIG_STATUS <<_ACEOF
23614
23615 #
23616 # CONFIG_FILES section.
23617 #
23618
23619 # No need to generate the scripts if there are no CONFIG_FILES.
23620 # This happens for instance when ./config.status config.h
23621 if test -n "\$CONFIG_FILES"; then
23622 # Protect against being on the right side of a sed subst in config.status.
23623 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23624 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23625 s,@SHELL@,$SHELL,;t t
23626 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23627 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23628 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23629 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23630 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23631 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23632 s,@exec_prefix@,$exec_prefix,;t t
23633 s,@prefix@,$prefix,;t t
23634 s,@program_transform_name@,$program_transform_name,;t t
23635 s,@bindir@,$bindir,;t t
23636 s,@sbindir@,$sbindir,;t t
23637 s,@libexecdir@,$libexecdir,;t t
23638 s,@datadir@,$datadir,;t t
23639 s,@sysconfdir@,$sysconfdir,;t t
23640 s,@sharedstatedir@,$sharedstatedir,;t t
23641 s,@localstatedir@,$localstatedir,;t t
23642 s,@libdir@,$libdir,;t t
23643 s,@includedir@,$includedir,;t t
23644 s,@oldincludedir@,$oldincludedir,;t t
23645 s,@infodir@,$infodir,;t t
23646 s,@mandir@,$mandir,;t t
23647 s,@build_alias@,$build_alias,;t t
23648 s,@host_alias@,$host_alias,;t t
23649 s,@target_alias@,$target_alias,;t t
23650 s,@DEFS@,$DEFS,;t t
23651 s,@ECHO_C@,$ECHO_C,;t t
23652 s,@ECHO_N@,$ECHO_N,;t t
23653 s,@ECHO_T@,$ECHO_T,;t t
23654 s,@LIBS@,$LIBS,;t t
23655 s,@MAINT@,$MAINT,;t t
23656 s,@build@,$build,;t t
23657 s,@build_cpu@,$build_cpu,;t t
23658 s,@build_vendor@,$build_vendor,;t t
23659 s,@build_os@,$build_os,;t t
23660 s,@host@,$host,;t t
23661 s,@host_cpu@,$host_cpu,;t t
23662 s,@host_vendor@,$host_vendor,;t t
23663 s,@host_os@,$host_os,;t t
23664 s,@CC@,$CC,;t t
23665 s,@CFLAGS@,$CFLAGS,;t t
23666 s,@LDFLAGS@,$LDFLAGS,;t t
23667 s,@CPPFLAGS@,$CPPFLAGS,;t t
23668 s,@ac_ct_CC@,$ac_ct_CC,;t t
23669 s,@EXEEXT@,$EXEEXT,;t t
23670 s,@OBJEXT@,$OBJEXT,;t t
23671 s,@CPP@,$CPP,;t t
23672 s,@EGREP@,$EGREP,;t t
23673 s,@LN_S@,$LN_S,;t t
23674 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23675 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23676 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23677 s,@RANLIB@,$RANLIB,;t t
23678 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23679 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23680 s,@GZIP_PROG@,$GZIP_PROG,;t t
23681 s,@LIBSOUND@,$LIBSOUND,;t t
23682 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23683 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23684 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23685 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23686 s,@SET_MAKE@,$SET_MAKE,;t t
23687 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23688 s,@GTK_LIBS@,$GTK_LIBS,;t t
23689 s,@ALLOCA@,$ALLOCA,;t t
23690 s,@liblockfile@,$liblockfile,;t t
23691 s,@LIBOBJS@,$LIBOBJS,;t t
23692 s,@NEED_SETGID@,$NEED_SETGID,;t t
23693 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23694 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23695 s,@GETOPT_H@,$GETOPT_H,;t t
23696 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23697 s,@version@,$version,;t t
23698 s,@configuration@,$configuration,;t t
23699 s,@canonical@,$canonical,;t t
23700 s,@srcdir@,$srcdir,;t t
23701 s,@lispdir@,$lispdir,;t t
23702 s,@locallisppath@,$locallisppath,;t t
23703 s,@lisppath@,$lisppath,;t t
23704 s,@x_default_search_path@,$x_default_search_path,;t t
23705 s,@etcdir@,$etcdir,;t t
23706 s,@archlibdir@,$archlibdir,;t t
23707 s,@docdir@,$docdir,;t t
23708 s,@bitmapdir@,$bitmapdir,;t t
23709 s,@gamedir@,$gamedir,;t t
23710 s,@gameuser@,$gameuser,;t t
23711 s,@c_switch_system@,$c_switch_system,;t t
23712 s,@c_switch_machine@,$c_switch_machine,;t t
23713 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23714 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23715 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23716 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23717 s,@machfile@,$machfile,;t t
23718 s,@opsysfile@,$opsysfile,;t t
23719 s,@carbon_appdir@,$carbon_appdir,;t t
23720 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23721 CEOF
23722
23723 _ACEOF
23724
23725 cat >>$CONFIG_STATUS <<\_ACEOF
23726 # Split the substitutions into bite-sized pieces for seds with
23727 # small command number limits, like on Digital OSF/1 and HP-UX.
23728 ac_max_sed_lines=48
23729 ac_sed_frag=1 # Number of current file.
23730 ac_beg=1 # First line for current file.
23731 ac_end=$ac_max_sed_lines # Line after last line for current file.
23732 ac_more_lines=:
23733 ac_sed_cmds=
23734 while $ac_more_lines; do
23735 if test $ac_beg -gt 1; then
23736 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23737 else
23738 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23739 fi
23740 if test ! -s $tmp/subs.frag; then
23741 ac_more_lines=false
23742 else
23743 # The purpose of the label and of the branching condition is to
23744 # speed up the sed processing (if there are no `@' at all, there
23745 # is no need to browse any of the substitutions).
23746 # These are the two extra sed commands mentioned above.
23747 (echo ':t
23748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23749 if test -z "$ac_sed_cmds"; then
23750 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23751 else
23752 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23753 fi
23754 ac_sed_frag=`expr $ac_sed_frag + 1`
23755 ac_beg=$ac_end
23756 ac_end=`expr $ac_end + $ac_max_sed_lines`
23757 fi
23758 done
23759 if test -z "$ac_sed_cmds"; then
23760 ac_sed_cmds=cat
23761 fi
23762 fi # test -n "$CONFIG_FILES"
23763
23764 _ACEOF
23765 cat >>$CONFIG_STATUS <<\_ACEOF
23766 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23768 case $ac_file in
23769 - | *:- | *:-:* ) # input from stdin
23770 cat >$tmp/stdin
23771 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23775 * ) ac_file_in=$ac_file.in ;;
23776 esac
23777
23778 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23779 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23781 X"$ac_file" : 'X\(//\)[^/]' \| \
23782 X"$ac_file" : 'X\(//\)$' \| \
23783 X"$ac_file" : 'X\(/\)' \| \
23784 . : '\(.\)' 2>/dev/null ||
23785 echo X"$ac_file" |
23786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23788 /^X\(\/\/\)$/{ s//\1/; q; }
23789 /^X\(\/\).*/{ s//\1/; q; }
23790 s/.*/./; q'`
23791 { if $as_mkdir_p; then
23792 mkdir -p "$ac_dir"
23793 else
23794 as_dir="$ac_dir"
23795 as_dirs=
23796 while test ! -d "$as_dir"; do
23797 as_dirs="$as_dir $as_dirs"
23798 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23800 X"$as_dir" : 'X\(//\)[^/]' \| \
23801 X"$as_dir" : 'X\(//\)$' \| \
23802 X"$as_dir" : 'X\(/\)' \| \
23803 . : '\(.\)' 2>/dev/null ||
23804 echo X"$as_dir" |
23805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23807 /^X\(\/\/\)$/{ s//\1/; q; }
23808 /^X\(\/\).*/{ s//\1/; q; }
23809 s/.*/./; q'`
23810 done
23811 test ! -n "$as_dirs" || mkdir $as_dirs
23812 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23813 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23814 { (exit 1); exit 1; }; }; }
23815
23816 ac_builddir=.
23817
23818 if test "$ac_dir" != .; then
23819 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23820 # A "../" for each directory in $ac_dir_suffix.
23821 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23822 else
23823 ac_dir_suffix= ac_top_builddir=
23824 fi
23825
23826 case $srcdir in
23827 .) # No --srcdir option. We are building in place.
23828 ac_srcdir=.
23829 if test -z "$ac_top_builddir"; then
23830 ac_top_srcdir=.
23831 else
23832 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23833 fi ;;
23834 [\\/]* | ?:[\\/]* ) # Absolute path.
23835 ac_srcdir=$srcdir$ac_dir_suffix;
23836 ac_top_srcdir=$srcdir ;;
23837 *) # Relative path.
23838 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23839 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23840 esac
23841
23842 # Do not use `cd foo && pwd` to compute absolute paths, because
23843 # the directories may not exist.
23844 case `pwd` in
23845 .) ac_abs_builddir="$ac_dir";;
23846 *)
23847 case "$ac_dir" in
23848 .) ac_abs_builddir=`pwd`;;
23849 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23850 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23851 esac;;
23852 esac
23853 case $ac_abs_builddir in
23854 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23855 *)
23856 case ${ac_top_builddir}. in
23857 .) ac_abs_top_builddir=$ac_abs_builddir;;
23858 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23859 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23860 esac;;
23861 esac
23862 case $ac_abs_builddir in
23863 .) ac_abs_srcdir=$ac_srcdir;;
23864 *)
23865 case $ac_srcdir in
23866 .) ac_abs_srcdir=$ac_abs_builddir;;
23867 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23868 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23869 esac;;
23870 esac
23871 case $ac_abs_builddir in
23872 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23873 *)
23874 case $ac_top_srcdir in
23875 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23876 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23877 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23878 esac;;
23879 esac
23880
23881
23882 case $INSTALL in
23883 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23884 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23885 esac
23886
23887 if test x"$ac_file" != x-; then
23888 { echo "$as_me:$LINENO: creating $ac_file" >&5
23889 echo "$as_me: creating $ac_file" >&6;}
23890 rm -f "$ac_file"
23891 fi
23892 # Let's still pretend it is `configure' which instantiates (i.e., don't
23893 # use $as_me), people would be surprised to read:
23894 # /* config.h. Generated by config.status. */
23895 if test x"$ac_file" = x-; then
23896 configure_input=
23897 else
23898 configure_input="$ac_file. "
23899 fi
23900 configure_input=$configure_input"Generated from `echo $ac_file_in |
23901 sed 's,.*/,,'` by configure."
23902
23903 # First look for the input files in the build tree, otherwise in the
23904 # src tree.
23905 ac_file_inputs=`IFS=:
23906 for f in $ac_file_in; do
23907 case $f in
23908 -) echo $tmp/stdin ;;
23909 [\\/$]*)
23910 # Absolute (can't be DOS-style, as IFS=:)
23911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23912 echo "$as_me: error: cannot find input file: $f" >&2;}
23913 { (exit 1); exit 1; }; }
23914 echo "$f";;
23915 *) # Relative
23916 if test -f "$f"; then
23917 # Build tree
23918 echo "$f"
23919 elif test -f "$srcdir/$f"; then
23920 # Source tree
23921 echo "$srcdir/$f"
23922 else
23923 # /dev/null tree
23924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23925 echo "$as_me: error: cannot find input file: $f" >&2;}
23926 { (exit 1); exit 1; }; }
23927 fi;;
23928 esac
23929 done` || { (exit 1); exit 1; }
23930 _ACEOF
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 sed "$ac_vpsub
23933 $extrasub
23934 _ACEOF
23935 cat >>$CONFIG_STATUS <<\_ACEOF
23936 :t
23937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23938 s,@configure_input@,$configure_input,;t t
23939 s,@srcdir@,$ac_srcdir,;t t
23940 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23941 s,@top_srcdir@,$ac_top_srcdir,;t t
23942 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23943 s,@builddir@,$ac_builddir,;t t
23944 s,@abs_builddir@,$ac_abs_builddir,;t t
23945 s,@top_builddir@,$ac_top_builddir,;t t
23946 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23947 s,@INSTALL@,$ac_INSTALL,;t t
23948 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23949 rm -f $tmp/stdin
23950 if test x"$ac_file" != x-; then
23951 mv $tmp/out $ac_file
23952 else
23953 cat $tmp/out
23954 rm -f $tmp/out
23955 fi
23956
23957 done
23958 _ACEOF
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23960
23961 #
23962 # CONFIG_HEADER section.
23963 #
23964
23965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23967 #
23968 # ac_d sets the value in "#define NAME VALUE" lines.
23969 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23970 ac_dB='[ ].*$,\1#\2'
23971 ac_dC=' '
23972 ac_dD=',;t'
23973 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23974 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23975 ac_uB='$,\1#\2define\3'
23976 ac_uC=' '
23977 ac_uD=',;t'
23978
23979 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23981 case $ac_file in
23982 - | *:- | *:-:* ) # input from stdin
23983 cat >$tmp/stdin
23984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988 * ) ac_file_in=$ac_file.in ;;
23989 esac
23990
23991 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23992 echo "$as_me: creating $ac_file" >&6;}
23993
23994 # First look for the input files in the build tree, otherwise in the
23995 # src tree.
23996 ac_file_inputs=`IFS=:
23997 for f in $ac_file_in; do
23998 case $f in
23999 -) echo $tmp/stdin ;;
24000 [\\/$]*)
24001 # Absolute (can't be DOS-style, as IFS=:)
24002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24003 echo "$as_me: error: cannot find input file: $f" >&2;}
24004 { (exit 1); exit 1; }; }
24005 # Do quote $f, to prevent DOS paths from being IFS'd.
24006 echo "$f";;
24007 *) # Relative
24008 if test -f "$f"; then
24009 # Build tree
24010 echo "$f"
24011 elif test -f "$srcdir/$f"; then
24012 # Source tree
24013 echo "$srcdir/$f"
24014 else
24015 # /dev/null tree
24016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24017 echo "$as_me: error: cannot find input file: $f" >&2;}
24018 { (exit 1); exit 1; }; }
24019 fi;;
24020 esac
24021 done` || { (exit 1); exit 1; }
24022 # Remove the trailing spaces.
24023 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24024
24025 _ACEOF
24026
24027 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24028 # `conftest.undefs', that substitutes the proper values into
24029 # config.h.in to produce config.h. The first handles `#define'
24030 # templates, and the second `#undef' templates.
24031 # And first: Protect against being on the right side of a sed subst in
24032 # config.status. Protect against being in an unquoted here document
24033 # in config.status.
24034 rm -f conftest.defines conftest.undefs
24035 # Using a here document instead of a string reduces the quoting nightmare.
24036 # Putting comments in sed scripts is not portable.
24037 #
24038 # `end' is used to avoid that the second main sed command (meant for
24039 # 0-ary CPP macros) applies to n-ary macro definitions.
24040 # See the Autoconf documentation for `clear'.
24041 cat >confdef2sed.sed <<\_ACEOF
24042 s/[\\&,]/\\&/g
24043 s,[\\$`],\\&,g
24044 t clear
24045 : clear
24046 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24047 t end
24048 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24049 : end
24050 _ACEOF
24051 # If some macros were called several times there might be several times
24052 # the same #defines, which is useless. Nevertheless, we may not want to
24053 # sort them, since we want the *last* AC-DEFINE to be honored.
24054 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24055 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24056 rm -f confdef2sed.sed
24057
24058 # This sed command replaces #undef with comments. This is necessary, for
24059 # example, in the case of _POSIX_SOURCE, which is predefined and required
24060 # on some systems where configure will not decide to define it.
24061 cat >>conftest.undefs <<\_ACEOF
24062 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24063 _ACEOF
24064
24065 # Break up conftest.defines 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 #define templates only if necessary.' >>$CONFIG_STATUS
24068 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24069 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24070 echo ' :' >>$CONFIG_STATUS
24071 rm -f conftest.tail
24072 while grep . conftest.defines >/dev/null
24073 do
24074 # Write a limited-size here document to $tmp/defines.sed.
24075 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24076 # Speed up: don't consider the non `#define' lines.
24077 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24078 # Work around the forget-to-reset-the-flag bug.
24079 echo 't clr' >>$CONFIG_STATUS
24080 echo ': clr' >>$CONFIG_STATUS
24081 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24082 echo 'CEOF
24083 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24084 rm -f $tmp/in
24085 mv $tmp/out $tmp/in
24086 ' >>$CONFIG_STATUS
24087 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24088 rm -f conftest.defines
24089 mv conftest.tail conftest.defines
24090 done
24091 rm -f conftest.defines
24092 echo ' fi # grep' >>$CONFIG_STATUS
24093 echo >>$CONFIG_STATUS
24094
24095 # Break up conftest.undefs because some shells have a limit on the size
24096 # of here documents, and old seds have small limits too (100 cmds).
24097 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24098 rm -f conftest.tail
24099 while grep . conftest.undefs >/dev/null
24100 do
24101 # Write a limited-size here document to $tmp/undefs.sed.
24102 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24103 # Speed up: don't consider the non `#undef'
24104 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24105 # Work around the forget-to-reset-the-flag bug.
24106 echo 't clr' >>$CONFIG_STATUS
24107 echo ': clr' >>$CONFIG_STATUS
24108 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24109 echo 'CEOF
24110 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24111 rm -f $tmp/in
24112 mv $tmp/out $tmp/in
24113 ' >>$CONFIG_STATUS
24114 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24115 rm -f conftest.undefs
24116 mv conftest.tail conftest.undefs
24117 done
24118 rm -f conftest.undefs
24119
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 # Let's still pretend it is `configure' which instantiates (i.e., don't
24122 # use $as_me), people would be surprised to read:
24123 # /* config.h. Generated by config.status. */
24124 if test x"$ac_file" = x-; then
24125 echo "/* Generated by configure. */" >$tmp/config.h
24126 else
24127 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24128 fi
24129 cat $tmp/in >>$tmp/config.h
24130 rm -f $tmp/in
24131 if test x"$ac_file" != x-; then
24132 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24133 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24134 echo "$as_me: $ac_file is unchanged" >&6;}
24135 else
24136 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24138 X"$ac_file" : 'X\(//\)[^/]' \| \
24139 X"$ac_file" : 'X\(//\)$' \| \
24140 X"$ac_file" : 'X\(/\)' \| \
24141 . : '\(.\)' 2>/dev/null ||
24142 echo X"$ac_file" |
24143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24145 /^X\(\/\/\)$/{ s//\1/; q; }
24146 /^X\(\/\).*/{ s//\1/; q; }
24147 s/.*/./; q'`
24148 { if $as_mkdir_p; then
24149 mkdir -p "$ac_dir"
24150 else
24151 as_dir="$ac_dir"
24152 as_dirs=
24153 while test ! -d "$as_dir"; do
24154 as_dirs="$as_dir $as_dirs"
24155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24157 X"$as_dir" : 'X\(//\)[^/]' \| \
24158 X"$as_dir" : 'X\(//\)$' \| \
24159 X"$as_dir" : 'X\(/\)' \| \
24160 . : '\(.\)' 2>/dev/null ||
24161 echo X"$as_dir" |
24162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24164 /^X\(\/\/\)$/{ s//\1/; q; }
24165 /^X\(\/\).*/{ s//\1/; q; }
24166 s/.*/./; q'`
24167 done
24168 test ! -n "$as_dirs" || mkdir $as_dirs
24169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24171 { (exit 1); exit 1; }; }; }
24172
24173 rm -f $ac_file
24174 mv $tmp/config.h $ac_file
24175 fi
24176 else
24177 cat $tmp/config.h
24178 rm -f $tmp/config.h
24179 fi
24180 done
24181 _ACEOF
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183
24184 #
24185 # CONFIG_COMMANDS section.
24186 #
24187 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24188 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24189 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24190 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24192 X"$ac_dest" : 'X\(//\)[^/]' \| \
24193 X"$ac_dest" : 'X\(//\)$' \| \
24194 X"$ac_dest" : 'X\(/\)' \| \
24195 . : '\(.\)' 2>/dev/null ||
24196 echo X"$ac_dest" |
24197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24199 /^X\(\/\/\)$/{ s//\1/; q; }
24200 /^X\(\/\).*/{ s//\1/; q; }
24201 s/.*/./; q'`
24202 { if $as_mkdir_p; then
24203 mkdir -p "$ac_dir"
24204 else
24205 as_dir="$ac_dir"
24206 as_dirs=
24207 while test ! -d "$as_dir"; do
24208 as_dirs="$as_dir $as_dirs"
24209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211 X"$as_dir" : 'X\(//\)[^/]' \| \
24212 X"$as_dir" : 'X\(//\)$' \| \
24213 X"$as_dir" : 'X\(/\)' \| \
24214 . : '\(.\)' 2>/dev/null ||
24215 echo X"$as_dir" |
24216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24218 /^X\(\/\/\)$/{ s//\1/; q; }
24219 /^X\(\/\).*/{ s//\1/; q; }
24220 s/.*/./; q'`
24221 done
24222 test ! -n "$as_dirs" || mkdir $as_dirs
24223 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24225 { (exit 1); exit 1; }; }; }
24226
24227 ac_builddir=.
24228
24229 if test "$ac_dir" != .; then
24230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24231 # A "../" for each directory in $ac_dir_suffix.
24232 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24233 else
24234 ac_dir_suffix= ac_top_builddir=
24235 fi
24236
24237 case $srcdir in
24238 .) # No --srcdir option. We are building in place.
24239 ac_srcdir=.
24240 if test -z "$ac_top_builddir"; then
24241 ac_top_srcdir=.
24242 else
24243 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24244 fi ;;
24245 [\\/]* | ?:[\\/]* ) # Absolute path.
24246 ac_srcdir=$srcdir$ac_dir_suffix;
24247 ac_top_srcdir=$srcdir ;;
24248 *) # Relative path.
24249 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24250 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24251 esac
24252
24253 # Do not use `cd foo && pwd` to compute absolute paths, because
24254 # the directories may not exist.
24255 case `pwd` in
24256 .) ac_abs_builddir="$ac_dir";;
24257 *)
24258 case "$ac_dir" in
24259 .) ac_abs_builddir=`pwd`;;
24260 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24261 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24262 esac;;
24263 esac
24264 case $ac_abs_builddir in
24265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24266 *)
24267 case ${ac_top_builddir}. in
24268 .) ac_abs_top_builddir=$ac_abs_builddir;;
24269 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24270 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24271 esac;;
24272 esac
24273 case $ac_abs_builddir in
24274 .) ac_abs_srcdir=$ac_srcdir;;
24275 *)
24276 case $ac_srcdir in
24277 .) ac_abs_srcdir=$ac_abs_builddir;;
24278 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24279 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24280 esac;;
24281 esac
24282 case $ac_abs_builddir in
24283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24284 *)
24285 case $ac_top_srcdir in
24286 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24287 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24288 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24289 esac;;
24290 esac
24291
24292
24293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24294 echo "$as_me: executing $ac_dest commands" >&6;}
24295 case $ac_dest in
24296 default )
24297
24298 ### Make the necessary directories, if they don't exist.
24299 for dir in etc lisp ; do
24300 test -d ${dir} || mkdir ${dir}
24301 done
24302
24303 # Build src/Makefile from ${srcdir}/src/Makefile.c
24304 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24305 # This must be done after src/config.h is built, since we rely on that file.
24306
24307 # Now get this: Some word that is part of the ${srcdir} directory name
24308 # or the ${configuration} value might, just might, happen to be an
24309 # identifier like `sun4' or `i386' or something, and be predefined by
24310 # the C preprocessor to some helpful value like 1, or maybe the empty
24311 # string. Needless to say consequent macro substitutions are less
24312 # than conducive to the makefile finding the correct directory.
24313 undefs="`echo $top_srcdir $configuration $canonical |
24314 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24315 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24316 `"
24317
24318 echo creating src/epaths.h
24319 ${MAKE-make} epaths-force
24320
24321 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24322 # `..' to `. .' unless invoked with -traditional
24323
24324 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24325 CPPFLAGS="$CPPFLAGS -traditional"
24326 fi
24327
24328 echo creating lib-src/Makefile
24329 ( cd lib-src
24330 rm -f junk.c junk1.c junk2.c
24331 sed -e '/start of cpp stuff/q' \
24332 < Makefile.c > junk1.c
24333 sed -e '1,/start of cpp stuff/d'\
24334 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24335 < Makefile.c > junk.c
24336 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24337 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24338 cat junk1.c junk2.c > Makefile.new
24339 rm -f junk.c junk1.c junk2.c
24340 chmod 444 Makefile.new
24341 mv -f Makefile.new Makefile
24342 )
24343
24344 echo creating src/Makefile
24345 ( cd src
24346 rm -f junk.c junk1.c junk2.c
24347 sed -e '/start of cpp stuff/q' \
24348 < Makefile.c > junk1.c
24349 sed -e '1,/start of cpp stuff/d'\
24350 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24351 < Makefile.c > junk.c
24352 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24353 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24354 cat junk1.c junk2.c > Makefile.new
24355 rm -f junk.c junk1.c junk2.c
24356 chmod 444 Makefile.new
24357 mv -f Makefile.new Makefile
24358 )
24359
24360 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24361 echo creating src/.gdbinit
24362 echo source $srcdir/src/.gdbinit > src/.gdbinit
24363 fi
24364
24365 # This is how we know whether to re-run configure in certain cases.
24366 touch src/config.stamp
24367
24368 ;;
24369 esac
24370 done
24371 _ACEOF
24372
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374
24375 { (exit 0); exit 0; }
24376 _ACEOF
24377 chmod +x $CONFIG_STATUS
24378 ac_clean_files=$ac_clean_files_save
24379
24380
24381 # configure is writing to config.log, and then calls config.status.
24382 # config.status does its own redirection, appending to config.log.
24383 # Unfortunately, on DOS this fails, as config.log is still kept open
24384 # by configure, so config.status won't be able to write to it; its
24385 # output is simply discarded. So we exec the FD to /dev/null,
24386 # effectively closing config.log, so it can be properly (re)opened and
24387 # appended to by config.status. When coming back to configure, we
24388 # need to make the FD available again.
24389 if test "$no_create" != yes; then
24390 ac_cs_success=:
24391 ac_config_status_args=
24392 test "$silent" = yes &&
24393 ac_config_status_args="$ac_config_status_args --quiet"
24394 exec 5>/dev/null
24395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24396 exec 5>>config.log
24397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24398 # would make configure fail if this is the last instruction.
24399 $ac_cs_success || { (exit 1); exit 1; }
24400 fi
24401
24402