]> code.delx.au - gnu-emacs/blob - configure
(case table): Do nothing special for i and I.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 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
13209 tmp_CFLAGS="$CFLAGS"
13210 CFLAGS="$CFLAGS -framework Carbon"
13211 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13212 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13213 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13224 #define CancelMenuTracking innocuous_CancelMenuTracking
13225
13226 /* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char CancelMenuTracking (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13230
13231 #ifdef __STDC__
13232 # include <limits.h>
13233 #else
13234 # include <assert.h>
13235 #endif
13236
13237 #undef CancelMenuTracking
13238
13239 /* Override any gcc2 internal prototype to avoid an error. */
13240 #ifdef __cplusplus
13241 extern "C"
13242 {
13243 #endif
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char CancelMenuTracking ();
13247 /* The GNU C library defines this for functions which it implements
13248 to always fail with ENOSYS. Some functions are actually named
13249 something starting with __ and the normal name is an alias. */
13250 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13251 choke me
13252 #else
13253 char (*f) () = CancelMenuTracking;
13254 #endif
13255 #ifdef __cplusplus
13256 }
13257 #endif
13258
13259 int
13260 main ()
13261 {
13262 return f != CancelMenuTracking;
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest$ac_exeext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_func_CancelMenuTracking=yes
13290 else
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 ac_cv_func_CancelMenuTracking=no
13295 fi
13296 rm -f conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298 fi
13299 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13300 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13301 if test $ac_cv_func_CancelMenuTracking = yes; then
13302 have_cmt=yes
13303 else
13304 have_cmt=no
13305 fi
13306
13307 if test "$have_cmt" = yes; then
13308
13309 cat >>confdefs.h <<\_ACEOF
13310 #define HAVE_CANCELMENUTRACKING 1
13311 _ACEOF
13312
13313 fi
13314 CFLAGS="$tmp_CFLAGS"
13315 fi
13316
13317 ### Use session management (-lSM -lICE) if available
13318 HAVE_X_SM=no
13319 if test "${HAVE_X11}" = "yes"; then
13320 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13321 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13322 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13323 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 fi
13326 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13327 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13328 else
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13331 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h. */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 $ac_includes_default
13339 #include <X11/SM/SMlib.h>
13340 _ACEOF
13341 rm -f conftest.$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -z "$ac_c_werror_flag"
13351 || test ! -s conftest.err'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest.$ac_objext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_header_compiler=yes
13364 else
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 ac_header_compiler=no
13369 fi
13370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372 echo "${ECHO_T}$ac_header_compiler" >&6
13373
13374 # Is the header present?
13375 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13376 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <X11/SM/SMlib.h>
13384 _ACEOF
13385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } >/dev/null; then
13393 if test -s conftest.err; then
13394 ac_cpp_err=$ac_c_preproc_warn_flag
13395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13396 else
13397 ac_cpp_err=
13398 fi
13399 else
13400 ac_cpp_err=yes
13401 fi
13402 if test -z "$ac_cpp_err"; then
13403 ac_header_preproc=yes
13404 else
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_header_preproc=no
13409 fi
13410 rm -f conftest.err conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412 echo "${ECHO_T}$ac_header_preproc" >&6
13413
13414 # So? What about this header?
13415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13416 yes:no: )
13417 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13418 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13420 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13421 ac_header_preproc=yes
13422 ;;
13423 no:yes:* )
13424 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13425 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13427 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13429 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13431 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13433 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13435 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13436 (
13437 cat <<\_ASBOX
13438 ## ------------------------------------------ ##
13439 ## Report this to the AC_PACKAGE_NAME lists. ##
13440 ## ------------------------------------------ ##
13441 _ASBOX
13442 ) |
13443 sed "s/^/$as_me: WARNING: /" >&2
13444 ;;
13445 esac
13446 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13447 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13448 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13452 fi
13453 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13454 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13455
13456 fi
13457 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13458 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13459 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13460 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463 ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lSM -lICE $LIBS"
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471
13472 /* Override any gcc2 internal prototype to avoid an error. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char SmcOpenConnection ();
13479 int
13480 main ()
13481 {
13482 SmcOpenConnection ();
13483 ;
13484 return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest$ac_exeext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_lib_SM_SmcOpenConnection=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_lib_SM_SmcOpenConnection=no
13515 fi
13516 rm -f conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13519 fi
13520 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13521 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13522 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13523 HAVE_X_SM=yes
13524 fi
13525
13526 fi
13527
13528
13529
13530 if test "${HAVE_X_SM}" = "yes"; then
13531
13532 cat >>confdefs.h <<\_ACEOF
13533 #define HAVE_X_SM 1
13534 _ACEOF
13535
13536 case "$LIBS" in
13537 *-lSM*) ;;
13538 *) LIBS="-lSM -lICE $LIBS" ;;
13539 esac
13540 fi
13541 fi
13542
13543 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13544 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13545 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13546 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <netdb.h>
13556 int
13557 main ()
13558 {
13559 return h_errno;
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566 (eval $ac_link) 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 emacs_cv_netdb_declares_h_errno=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 emacs_cv_netdb_declares_h_errno=no
13592 fi
13593 rm -f conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 fi
13596 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13597 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13598 if test $emacs_cv_netdb_declares_h_errno = yes; then
13599
13600 cat >>confdefs.h <<\_ACEOF
13601 #define HAVE_H_ERRNO 1
13602 _ACEOF
13603
13604 fi
13605
13606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13607 # for constant arguments. Useless!
13608 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13609 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13610 if test "${ac_cv_working_alloca_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <alloca.h>
13620 int
13621 main ()
13622 {
13623 char *p = (char *) alloca (2 * sizeof (int));
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 rm -f conftest.$ac_objext conftest$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_working_alloca_h=yes
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 ac_cv_working_alloca_h=no
13656 fi
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 fi
13660 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13662 if test $ac_cv_working_alloca_h = yes; then
13663
13664 cat >>confdefs.h <<\_ACEOF
13665 #define HAVE_ALLOCA_H 1
13666 _ACEOF
13667
13668 fi
13669
13670 echo "$as_me:$LINENO: checking for alloca" >&5
13671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13672 if test "${ac_cv_func_alloca_works+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 #ifdef __GNUC__
13682 # define alloca __builtin_alloca
13683 #else
13684 # ifdef _MSC_VER
13685 # include <malloc.h>
13686 # define alloca _alloca
13687 # else
13688 # if HAVE_ALLOCA_H
13689 # include <alloca.h>
13690 # else
13691 # ifdef _AIX
13692 #pragma alloca
13693 # else
13694 # ifndef alloca /* predefined by HP cc +Olibcalls */
13695 char *alloca ();
13696 # endif
13697 # endif
13698 # endif
13699 # endif
13700 #endif
13701
13702 int
13703 main ()
13704 {
13705 char *p = (char *) alloca (1);
13706 ;
13707 return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_func_alloca_works=yes
13733 else
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_cv_func_alloca_works=no
13738 fi
13739 rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13743 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13744
13745 if test $ac_cv_func_alloca_works = yes; then
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_ALLOCA 1
13749 _ACEOF
13750
13751 else
13752 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13753 # that cause trouble. Some versions do not even contain alloca or
13754 # contain a buggy version. If you still want to use their alloca,
13755 # use ar to extract alloca.o from them instead of compiling alloca.c.
13756
13757 ALLOCA=alloca.$ac_objext
13758
13759 cat >>confdefs.h <<\_ACEOF
13760 #define C_ALLOCA 1
13761 _ACEOF
13762
13763
13764 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13765 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13766 if test "${ac_cv_os_cray+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #if defined(CRAY) && ! defined(CRAY2)
13776 webecray
13777 #else
13778 wenotbecray
13779 #endif
13780
13781 _ACEOF
13782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13783 $EGREP "webecray" >/dev/null 2>&1; then
13784 ac_cv_os_cray=yes
13785 else
13786 ac_cv_os_cray=no
13787 fi
13788 rm -f conftest*
13789
13790 fi
13791 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13792 echo "${ECHO_T}$ac_cv_os_cray" >&6
13793 if test $ac_cv_os_cray = yes; then
13794 for ac_func in _getb67 GETB67 getb67; do
13795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13796 echo "$as_me:$LINENO: checking for $ac_func" >&5
13797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13798 if eval "test \"\${$as_ac_var+set}\" = set"; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13809 #define $ac_func innocuous_$ac_func
13810
13811 /* System header to define __stub macros and hopefully few prototypes,
13812 which can conflict with char $ac_func (); below.
13813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13814 <limits.h> exists even on freestanding compilers. */
13815
13816 #ifdef __STDC__
13817 # include <limits.h>
13818 #else
13819 # include <assert.h>
13820 #endif
13821
13822 #undef $ac_func
13823
13824 /* Override any gcc2 internal prototype to avoid an error. */
13825 #ifdef __cplusplus
13826 extern "C"
13827 {
13828 #endif
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13831 char $ac_func ();
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13836 choke me
13837 #else
13838 char (*f) () = $ac_func;
13839 #endif
13840 #ifdef __cplusplus
13841 }
13842 #endif
13843
13844 int
13845 main ()
13846 {
13847 return f != $ac_func;
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 eval "$as_ac_var=yes"
13875 else
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 eval "$as_ac_var=no"
13880 fi
13881 rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 fi
13884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13886 if test `eval echo '${'$as_ac_var'}'` = yes; then
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define CRAY_STACKSEG_END $ac_func
13890 _ACEOF
13891
13892 break
13893 fi
13894
13895 done
13896 fi
13897
13898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13900 if test "${ac_cv_c_stack_direction+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 if test "$cross_compiling" = yes; then
13904 ac_cv_c_stack_direction=0
13905 else
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h. */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 int
13913 find_stack_direction ()
13914 {
13915 static char *addr = 0;
13916 auto char dummy;
13917 if (addr == 0)
13918 {
13919 addr = &dummy;
13920 return find_stack_direction ();
13921 }
13922 else
13923 return (&dummy > addr) ? 1 : -1;
13924 }
13925
13926 int
13927 main ()
13928 {
13929 exit (find_stack_direction () < 0);
13930 }
13931 _ACEOF
13932 rm -f conftest$ac_exeext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934 (eval $ac_link) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_c_stack_direction=1
13944 else
13945 echo "$as_me: program exited with status $ac_status" >&5
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949 ( exit $ac_status )
13950 ac_cv_c_stack_direction=-1
13951 fi
13952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 fi
13955 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13956 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13957
13958 cat >>confdefs.h <<_ACEOF
13959 #define STACK_DIRECTION $ac_cv_c_stack_direction
13960 _ACEOF
13961
13962
13963 fi
13964
13965
13966 # fmod, logb, and frexp are found in -lm on most systems.
13967 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13968
13969 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13970 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13971 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974 ac_check_lib_save_LIBS=$LIBS
13975 LIBS="-lm $LIBS"
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982
13983 /* Override any gcc2 internal prototype to avoid an error. */
13984 #ifdef __cplusplus
13985 extern "C"
13986 #endif
13987 /* We use char because int might match the return type of a gcc2
13988 builtin and then its argument prototype would still apply. */
13989 char sqrt ();
13990 int
13991 main ()
13992 {
13993 sqrt ();
13994 ;
13995 return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000 (eval $ac_link) 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag"
14008 || test ! -s conftest.err'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest$ac_exeext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_cv_lib_m_sqrt=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_cv_lib_m_sqrt=no
14026 fi
14027 rm -f conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 LIBS=$ac_check_lib_save_LIBS
14030 fi
14031 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14032 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14033 if test $ac_cv_lib_m_sqrt = yes; then
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_LIBM 1
14036 _ACEOF
14037
14038 LIBS="-lm $LIBS"
14039
14040 fi
14041
14042
14043 # Check for mail-locking functions in a "mail" library. Probably this should
14044 # have the same check as for liblockfile below.
14045
14046 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14047 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14048 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051 ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-lmail $LIBS"
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059
14060 /* Override any gcc2 internal prototype to avoid an error. */
14061 #ifdef __cplusplus
14062 extern "C"
14063 #endif
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066 char maillock ();
14067 int
14068 main ()
14069 {
14070 maillock ();
14071 ;
14072 return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext conftest$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_lib_mail_maillock=yes
14098 else
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 ac_cv_lib_mail_maillock=no
14103 fi
14104 rm -f conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14107 fi
14108 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14109 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14110 if test $ac_cv_lib_mail_maillock = yes; then
14111 cat >>confdefs.h <<_ACEOF
14112 #define HAVE_LIBMAIL 1
14113 _ACEOF
14114
14115 LIBS="-lmail $LIBS"
14116
14117 fi
14118
14119
14120 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14121 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14122 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125 ac_check_lib_save_LIBS=$LIBS
14126 LIBS="-llockfile $LIBS"
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133
14134 /* Override any gcc2 internal prototype to avoid an error. */
14135 #ifdef __cplusplus
14136 extern "C"
14137 #endif
14138 /* We use char because int might match the return type of a gcc2
14139 builtin and then its argument prototype would still apply. */
14140 char maillock ();
14141 int
14142 main ()
14143 {
14144 maillock ();
14145 ;
14146 return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext conftest$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151 (eval $ac_link) 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag"
14159 || test ! -s conftest.err'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest$ac_exeext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_lib_lockfile_maillock=yes
14172 else
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 ac_cv_lib_lockfile_maillock=no
14177 fi
14178 rm -f conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14180 LIBS=$ac_check_lib_save_LIBS
14181 fi
14182 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14183 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14184 if test $ac_cv_lib_lockfile_maillock = yes; then
14185 cat >>confdefs.h <<_ACEOF
14186 #define HAVE_LIBLOCKFILE 1
14187 _ACEOF
14188
14189 LIBS="-llockfile $LIBS"
14190
14191 fi
14192
14193 # If we have the shared liblockfile, assume we must use it for mail
14194 # locking (e.g. Debian). If we couldn't link against liblockfile
14195 # (no liblockfile.a installed), ensure that we don't need to.
14196 if test "$ac_cv_lib_lockfile_maillock" = no; then
14197 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14198 set dummy liblockfile.so; ac_word=$2
14199 echo "$as_me:$LINENO: checking for $ac_word" >&5
14200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14201 if test "${ac_cv_prog_liblockfile+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 if test -n "$liblockfile"; then
14205 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14209 for as_dir in $as_dummy
14210 do
14211 IFS=$as_save_IFS
14212 test -z "$as_dir" && as_dir=.
14213 for ac_exec_ext in '' $ac_executable_extensions; do
14214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14215 ac_cv_prog_liblockfile="yes"
14216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14217 break 2
14218 fi
14219 done
14220 done
14221
14222 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14223 fi
14224 fi
14225 liblockfile=$ac_cv_prog_liblockfile
14226 if test -n "$liblockfile"; then
14227 echo "$as_me:$LINENO: result: $liblockfile" >&5
14228 echo "${ECHO_T}$liblockfile" >&6
14229 else
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14232 fi
14233
14234 if test $ac_cv_prog_liblockfile = yes; then
14235 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14236 This probably means that movemail could lose mail.
14237 There may be a \`development' package to install containing liblockfile." >&5
14238 echo "$as_me: error: Shared liblockfile found but can't link against it.
14239 This probably means that movemail could lose mail.
14240 There may be a \`development' package to install containing liblockfile." >&2;}
14241 { (exit 1); exit 1; }; }
14242 else :
14243 fi
14244 fi
14245
14246 for ac_func in touchlock
14247 do
14248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 echo "$as_me:$LINENO: checking for $ac_func" >&5
14250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_var+set}\" = set"; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14263
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14268
14269 #ifdef __STDC__
14270 # include <limits.h>
14271 #else
14272 # include <assert.h>
14273 #endif
14274
14275 #undef $ac_func
14276
14277 /* Override any gcc2 internal prototype to avoid an error. */
14278 #ifdef __cplusplus
14279 extern "C"
14280 {
14281 #endif
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14284 char $ac_func ();
14285 /* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
14288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14289 choke me
14290 #else
14291 char (*f) () = $ac_func;
14292 #endif
14293 #ifdef __cplusplus
14294 }
14295 #endif
14296
14297 int
14298 main ()
14299 {
14300 return f != $ac_func;
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_var=yes"
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 eval "$as_ac_var=no"
14333 fi
14334 rm -f conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 fi
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14339 if test `eval echo '${'$as_ac_var'}'` = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14342 _ACEOF
14343
14344 fi
14345 done
14346
14347
14348 for ac_header in maillock.h
14349 do
14350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo "$as_me:$LINENO: checking for $ac_header" >&5
14353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 fi
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 else
14360 # Is the header compilable?
14361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 #include <$ac_header>
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_header_compiler=yes
14395 else
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399 ac_header_compiler=no
14400 fi
14401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6
14404
14405 # Is the header present?
14406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <$ac_header>
14415 _ACEOF
14416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } >/dev/null; then
14424 if test -s conftest.err; then
14425 ac_cpp_err=$ac_c_preproc_warn_flag
14426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14427 else
14428 ac_cpp_err=
14429 fi
14430 else
14431 ac_cpp_err=yes
14432 fi
14433 if test -z "$ac_cpp_err"; then
14434 ac_header_preproc=yes
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ac_header_preproc=no
14440 fi
14441 rm -f conftest.err conftest.$ac_ext
14442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14443 echo "${ECHO_T}$ac_header_preproc" >&6
14444
14445 # So? What about this header?
14446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447 yes:no: )
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14452 ac_header_preproc=yes
14453 ;;
14454 no:yes:* )
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14467 (
14468 cat <<\_ASBOX
14469 ## ------------------------------------------ ##
14470 ## Report this to the AC_PACKAGE_NAME lists. ##
14471 ## ------------------------------------------ ##
14472 _ASBOX
14473 ) |
14474 sed "s/^/$as_me: WARNING: /" >&2
14475 ;;
14476 esac
14477 echo "$as_me:$LINENO: checking for $ac_header" >&5
14478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482 eval "$as_ac_Header=\$ac_header_preproc"
14483 fi
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486
14487 fi
14488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14491 _ACEOF
14492
14493 fi
14494
14495 done
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566 for ac_func in gethostname getdomainname dup2 \
14567 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14568 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14569 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14570 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14571 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14572 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14573 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14574 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14575 do
14576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 echo "$as_me:$LINENO: checking for $ac_func" >&5
14578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14579 if eval "test \"\${$as_ac_var+set}\" = set"; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14590 #define $ac_func innocuous_$ac_func
14591
14592 /* System header to define __stub macros and hopefully few prototypes,
14593 which can conflict with char $ac_func (); below.
14594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14595 <limits.h> exists even on freestanding compilers. */
14596
14597 #ifdef __STDC__
14598 # include <limits.h>
14599 #else
14600 # include <assert.h>
14601 #endif
14602
14603 #undef $ac_func
14604
14605 /* Override any gcc2 internal prototype to avoid an error. */
14606 #ifdef __cplusplus
14607 extern "C"
14608 {
14609 #endif
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14612 char $ac_func ();
14613 /* The GNU C library defines this for functions which it implements
14614 to always fail with ENOSYS. Some functions are actually named
14615 something starting with __ and the normal name is an alias. */
14616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14617 choke me
14618 #else
14619 char (*f) () = $ac_func;
14620 #endif
14621 #ifdef __cplusplus
14622 }
14623 #endif
14624
14625 int
14626 main ()
14627 {
14628 return f != $ac_func;
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14635 (eval $ac_link) 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -z "$ac_c_werror_flag"
14643 || test ! -s conftest.err'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest$ac_exeext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 eval "$as_ac_var=yes"
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660 eval "$as_ac_var=no"
14661 fi
14662 rm -f conftest.err conftest.$ac_objext \
14663 conftest$ac_exeext conftest.$ac_ext
14664 fi
14665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14667 if test `eval echo '${'$as_ac_var'}'` = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670 _ACEOF
14671
14672 fi
14673 done
14674
14675
14676
14677 for ac_header in sys/un.h
14678 do
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 fi
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14688 else
14689 # Is the header compilable?
14690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <$ac_header>
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_compiler=no
14729 fi
14730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734 # Is the header present?
14735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <$ac_header>
14744 _ACEOF
14745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756 else
14757 ac_cpp_err=
14758 fi
14759 else
14760 ac_cpp_err=yes
14761 fi
14762 if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769 fi
14770 rm -f conftest.err conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774 # So? What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
14782 ;;
14783 no:yes:* )
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14796 (
14797 cat <<\_ASBOX
14798 ## ------------------------------------------ ##
14799 ## Report this to the AC_PACKAGE_NAME lists. ##
14800 ## ------------------------------------------ ##
14801 _ASBOX
14802 ) |
14803 sed "s/^/$as_me: WARNING: /" >&2
14804 ;;
14805 esac
14806 echo "$as_me:$LINENO: checking for $ac_header" >&5
14807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811 eval "$as_ac_Header=\$ac_header_preproc"
14812 fi
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
14816 fi
14817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 _ACEOF
14821
14822 fi
14823
14824 done
14825
14826
14827
14828
14829
14830 for ac_header in stdlib.h sys/time.h unistd.h
14831 do
14832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14834 echo "$as_me:$LINENO: checking for $ac_header" >&5
14835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 fi
14839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14841 else
14842 # Is the header compilable?
14843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 #include <$ac_header>
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856 (eval $ac_compile) 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try='test -z "$ac_c_werror_flag"
14864 || test ! -s conftest.err'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest.$ac_objext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler=yes
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_header_compiler=no
14882 fi
14883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14885 echo "${ECHO_T}$ac_header_compiler" >&6
14886
14887 # Is the header present?
14888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14890 cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h. */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14896 #include <$ac_header>
14897 _ACEOF
14898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev/null; then
14906 if test -s conftest.err; then
14907 ac_cpp_err=$ac_c_preproc_warn_flag
14908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14909 else
14910 ac_cpp_err=
14911 fi
14912 else
14913 ac_cpp_err=yes
14914 fi
14915 if test -z "$ac_cpp_err"; then
14916 ac_header_preproc=yes
14917 else
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_header_preproc=no
14922 fi
14923 rm -f conftest.err conftest.$ac_ext
14924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14925 echo "${ECHO_T}$ac_header_preproc" >&6
14926
14927 # So? What about this header?
14928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14929 yes:no: )
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14934 ac_header_preproc=yes
14935 ;;
14936 no:yes:* )
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14949 (
14950 cat <<\_ASBOX
14951 ## ------------------------------------------ ##
14952 ## Report this to the AC_PACKAGE_NAME lists. ##
14953 ## ------------------------------------------ ##
14954 _ASBOX
14955 ) |
14956 sed "s/^/$as_me: WARNING: /" >&2
14957 ;;
14958 esac
14959 echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964 eval "$as_ac_Header=\$ac_header_preproc"
14965 fi
14966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14968
14969 fi
14970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971 cat >>confdefs.h <<_ACEOF
14972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14973 _ACEOF
14974
14975 fi
14976
14977 done
14978
14979
14980 for ac_func in alarm
14981 do
14982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14983 echo "$as_me:$LINENO: checking for $ac_func" >&5
14984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14985 if eval "test \"\${$as_ac_var+set}\" = set"; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14996 #define $ac_func innocuous_$ac_func
14997
14998 /* System header to define __stub macros and hopefully few prototypes,
14999 which can conflict with char $ac_func (); below.
15000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001 <limits.h> exists even on freestanding compilers. */
15002
15003 #ifdef __STDC__
15004 # include <limits.h>
15005 #else
15006 # include <assert.h>
15007 #endif
15008
15009 #undef $ac_func
15010
15011 /* Override any gcc2 internal prototype to avoid an error. */
15012 #ifdef __cplusplus
15013 extern "C"
15014 {
15015 #endif
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15018 char $ac_func ();
15019 /* The GNU C library defines this for functions which it implements
15020 to always fail with ENOSYS. Some functions are actually named
15021 something starting with __ and the normal name is an alias. */
15022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15023 choke me
15024 #else
15025 char (*f) () = $ac_func;
15026 #endif
15027 #ifdef __cplusplus
15028 }
15029 #endif
15030
15031 int
15032 main ()
15033 {
15034 return f != $ac_func;
15035 ;
15036 return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 eval "$as_ac_var=no"
15067 fi
15068 rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 fi
15071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15076 _ACEOF
15077
15078 fi
15079 done
15080
15081 echo "$as_me:$LINENO: checking for working mktime" >&5
15082 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15083 if test "${ac_cv_func_working_mktime+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 if test "$cross_compiling" = yes; then
15087 ac_cv_func_working_mktime=no
15088 else
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h. */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15095 /* Test program from Paul Eggert and Tony Leneis. */
15096 #if TIME_WITH_SYS_TIME
15097 # include <sys/time.h>
15098 # include <time.h>
15099 #else
15100 # if HAVE_SYS_TIME_H
15101 # include <sys/time.h>
15102 # else
15103 # include <time.h>
15104 # endif
15105 #endif
15106
15107 #if HAVE_STDLIB_H
15108 # include <stdlib.h>
15109 #endif
15110
15111 #if HAVE_UNISTD_H
15112 # include <unistd.h>
15113 #endif
15114
15115 #if !HAVE_ALARM
15116 # define alarm(X) /* empty */
15117 #endif
15118
15119 /* Work around redefinition to rpl_putenv by other config tests. */
15120 #undef putenv
15121
15122 static time_t time_t_max;
15123 static time_t time_t_min;
15124
15125 /* Values we'll use to set the TZ environment variable. */
15126 static char *tz_strings[] = {
15127 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15128 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15129 };
15130 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15131
15132 /* Fail if mktime fails to convert a date in the spring-forward gap.
15133 Based on a problem report from Andreas Jaeger. */
15134 static void
15135 spring_forward_gap ()
15136 {
15137 /* glibc (up to about 1998-10-07) failed this test. */
15138 struct tm tm;
15139
15140 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15141 instead of "TZ=America/Vancouver" in order to detect the bug even
15142 on systems that don't support the Olson extension, or don't have the
15143 full zoneinfo tables installed. */
15144 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15145
15146 tm.tm_year = 98;
15147 tm.tm_mon = 3;
15148 tm.tm_mday = 5;
15149 tm.tm_hour = 2;
15150 tm.tm_min = 0;
15151 tm.tm_sec = 0;
15152 tm.tm_isdst = -1;
15153 if (mktime (&tm) == (time_t)-1)
15154 exit (1);
15155 }
15156
15157 static void
15158 mktime_test1 (now)
15159 time_t now;
15160 {
15161 struct tm *lt;
15162 if ((lt = localtime (&now)) && mktime (lt) != now)
15163 exit (1);
15164 }
15165
15166 static void
15167 mktime_test (now)
15168 time_t now;
15169 {
15170 mktime_test1 (now);
15171 mktime_test1 ((time_t) (time_t_max - now));
15172 mktime_test1 ((time_t) (time_t_min + now));
15173 }
15174
15175 static void
15176 irix_6_4_bug ()
15177 {
15178 /* Based on code from Ariel Faigon. */
15179 struct tm tm;
15180 tm.tm_year = 96;
15181 tm.tm_mon = 3;
15182 tm.tm_mday = 0;
15183 tm.tm_hour = 0;
15184 tm.tm_min = 0;
15185 tm.tm_sec = 0;
15186 tm.tm_isdst = -1;
15187 mktime (&tm);
15188 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15189 exit (1);
15190 }
15191
15192 static void
15193 bigtime_test (j)
15194 int j;
15195 {
15196 struct tm tm;
15197 time_t now;
15198 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15199 now = mktime (&tm);
15200 if (now != (time_t) -1)
15201 {
15202 struct tm *lt = localtime (&now);
15203 if (! (lt
15204 && lt->tm_year == tm.tm_year
15205 && lt->tm_mon == tm.tm_mon
15206 && lt->tm_mday == tm.tm_mday
15207 && lt->tm_hour == tm.tm_hour
15208 && lt->tm_min == tm.tm_min
15209 && lt->tm_sec == tm.tm_sec
15210 && lt->tm_yday == tm.tm_yday
15211 && lt->tm_wday == tm.tm_wday
15212 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15213 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15214 exit (1);
15215 }
15216 }
15217
15218 int
15219 main ()
15220 {
15221 time_t t, delta;
15222 int i, j;
15223
15224 /* This test makes some buggy mktime implementations loop.
15225 Give up after 60 seconds; a mktime slower than that
15226 isn't worth using anyway. */
15227 alarm (60);
15228
15229 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15230 continue;
15231 time_t_max--;
15232 if ((time_t) -1 < 0)
15233 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15234 continue;
15235 delta = time_t_max / 997; /* a suitable prime number */
15236 for (i = 0; i < N_STRINGS; i++)
15237 {
15238 if (tz_strings[i])
15239 putenv (tz_strings[i]);
15240
15241 for (t = 0; t <= time_t_max - delta; t += delta)
15242 mktime_test (t);
15243 mktime_test ((time_t) 1);
15244 mktime_test ((time_t) (60 * 60));
15245 mktime_test ((time_t) (60 * 60 * 24));
15246
15247 for (j = 1; 0 < j; j *= 2)
15248 bigtime_test (j);
15249 bigtime_test (j - 1);
15250 }
15251 irix_6_4_bug ();
15252 spring_forward_gap ();
15253 exit (0);
15254 }
15255 _ACEOF
15256 rm -f conftest$ac_exeext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_func_working_mktime=yes
15268 else
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15272
15273 ( exit $ac_status )
15274 ac_cv_func_working_mktime=no
15275 fi
15276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15277 fi
15278 fi
15279 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15280 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15281 if test $ac_cv_func_working_mktime = no; then
15282 case $LIBOBJS in
15283 "mktime.$ac_objext" | \
15284 *" mktime.$ac_objext" | \
15285 "mktime.$ac_objext "* | \
15286 *" mktime.$ac_objext "* ) ;;
15287 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15288 esac
15289
15290 fi
15291
15292 if test "$ac_cv_func_working_mktime" = no; then
15293
15294 cat >>confdefs.h <<\_ACEOF
15295 #define BROKEN_MKTIME 1
15296 _ACEOF
15297
15298 fi
15299
15300 ac_have_func=no # yes means we've found a way to get the load average.
15301
15302 # Make sure getloadavg.c is where it belongs, at configure-time.
15303 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15304 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15305 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15306 { (exit 1); exit 1; }; }
15307
15308 ac_save_LIBS=$LIBS
15309
15310 # Check for getloadavg, but be sure not to touch the cache variable.
15311 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15312 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15313 if test "${ac_cv_func_getloadavg+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15324 #define getloadavg innocuous_getloadavg
15325
15326 /* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char getloadavg (); below.
15328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15329 <limits.h> exists even on freestanding compilers. */
15330
15331 #ifdef __STDC__
15332 # include <limits.h>
15333 #else
15334 # include <assert.h>
15335 #endif
15336
15337 #undef getloadavg
15338
15339 /* Override any gcc2 internal prototype to avoid an error. */
15340 #ifdef __cplusplus
15341 extern "C"
15342 {
15343 #endif
15344 /* We use char because int might match the return type of a gcc2
15345 builtin and then its argument prototype would still apply. */
15346 char getloadavg ();
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15351 choke me
15352 #else
15353 char (*f) () = getloadavg;
15354 #endif
15355 #ifdef __cplusplus
15356 }
15357 #endif
15358
15359 int
15360 main ()
15361 {
15362 return f != getloadavg;
15363 ;
15364 return 0;
15365 }
15366 _ACEOF
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369 (eval $ac_link) 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_func_getloadavg=yes
15390 else
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 ac_cv_func_getloadavg=no
15395 fi
15396 rm -f conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 fi
15399 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15400 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15401 if test $ac_cv_func_getloadavg = yes; then
15402 exit 0
15403 else
15404 exit 1
15405 fi
15406 ) && ac_have_func=yes
15407
15408 # On HPUX9, an unprivileged user can get load averages through this function.
15409
15410 for ac_func in pstat_getdynamic
15411 do
15412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15413 echo "$as_me:$LINENO: checking for $ac_func" >&5
15414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15415 if eval "test \"\${$as_ac_var+set}\" = set"; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h. */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15426 #define $ac_func innocuous_$ac_func
15427
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char $ac_func (); below.
15430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15431 <limits.h> exists even on freestanding compilers. */
15432
15433 #ifdef __STDC__
15434 # include <limits.h>
15435 #else
15436 # include <assert.h>
15437 #endif
15438
15439 #undef $ac_func
15440
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 #ifdef __cplusplus
15443 extern "C"
15444 {
15445 #endif
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15448 char $ac_func ();
15449 /* The GNU C library defines this for functions which it implements
15450 to always fail with ENOSYS. Some functions are actually named
15451 something starting with __ and the normal name is an alias. */
15452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15453 choke me
15454 #else
15455 char (*f) () = $ac_func;
15456 #endif
15457 #ifdef __cplusplus
15458 }
15459 #endif
15460
15461 int
15462 main ()
15463 {
15464 return f != $ac_func;
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 eval "$as_ac_var=yes"
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 eval "$as_ac_var=no"
15497 fi
15498 rm -f conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500 fi
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15503 if test `eval echo '${'$as_ac_var'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15506 _ACEOF
15507
15508 fi
15509 done
15510
15511
15512 # Solaris has libkstat which does not require root.
15513
15514 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15515 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15516 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519 ac_check_lib_save_LIBS=$LIBS
15520 LIBS="-lkstat $LIBS"
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h. */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527
15528 /* Override any gcc2 internal prototype to avoid an error. */
15529 #ifdef __cplusplus
15530 extern "C"
15531 #endif
15532 /* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15534 char kstat_open ();
15535 int
15536 main ()
15537 {
15538 kstat_open ();
15539 ;
15540 return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_lib_kstat_kstat_open=yes
15566 else
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 ac_cv_lib_kstat_kstat_open=no
15571 fi
15572 rm -f conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15574 LIBS=$ac_check_lib_save_LIBS
15575 fi
15576 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15577 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15578 if test $ac_cv_lib_kstat_kstat_open = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580 #define HAVE_LIBKSTAT 1
15581 _ACEOF
15582
15583 LIBS="-lkstat $LIBS"
15584
15585 fi
15586
15587 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15588
15589 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15590 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15591 # to get the right answer into the cache.
15592 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15593 if test $ac_have_func = no; then
15594 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15595 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15596 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599 ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lelf $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h. */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607
15608 /* Override any gcc2 internal prototype to avoid an error. */
15609 #ifdef __cplusplus
15610 extern "C"
15611 #endif
15612 /* We use char because int might match the return type of a gcc2
15613 builtin and then its argument prototype would still apply. */
15614 char elf_begin ();
15615 int
15616 main ()
15617 {
15618 elf_begin ();
15619 ;
15620 return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15625 (eval $ac_link) 2>conftest.er1
15626 ac_status=$?
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
15632 { ac_try='test -z "$ac_c_werror_flag"
15633 || test ! -s conftest.err'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; } &&
15639 { ac_try='test -s conftest$ac_exeext'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_lib_elf_elf_begin=yes
15646 else
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 ac_cv_lib_elf_elf_begin=no
15651 fi
15652 rm -f conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15654 LIBS=$ac_check_lib_save_LIBS
15655 fi
15656 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15657 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15658 if test $ac_cv_lib_elf_elf_begin = yes; then
15659 LIBS="-lelf $LIBS"
15660 fi
15661
15662 fi
15663 if test $ac_have_func = no; then
15664 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15665 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15666 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669 ac_check_lib_save_LIBS=$LIBS
15670 LIBS="-lkvm $LIBS"
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677
15678 /* Override any gcc2 internal prototype to avoid an error. */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 /* We use char because int might match the return type of a gcc2
15683 builtin and then its argument prototype would still apply. */
15684 char kvm_open ();
15685 int
15686 main ()
15687 {
15688 kvm_open ();
15689 ;
15690 return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_lib_kvm_kvm_open=yes
15716 else
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 ac_cv_lib_kvm_kvm_open=no
15721 fi
15722 rm -f conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15724 LIBS=$ac_check_lib_save_LIBS
15725 fi
15726 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15727 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15728 if test $ac_cv_lib_kvm_kvm_open = yes; then
15729 LIBS="-lkvm $LIBS"
15730 fi
15731
15732 # Check for the 4.4BSD definition of getloadavg.
15733 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15734 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15735 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 else
15738 ac_check_lib_save_LIBS=$LIBS
15739 LIBS="-lutil $LIBS"
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746
15747 /* Override any gcc2 internal prototype to avoid an error. */
15748 #ifdef __cplusplus
15749 extern "C"
15750 #endif
15751 /* We use char because int might match the return type of a gcc2
15752 builtin and then its argument prototype would still apply. */
15753 char getloadavg ();
15754 int
15755 main ()
15756 {
15757 getloadavg ();
15758 ;
15759 return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_cv_lib_util_getloadavg=yes
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ac_cv_lib_util_getloadavg=no
15790 fi
15791 rm -f conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15794 fi
15795 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15796 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15797 if test $ac_cv_lib_util_getloadavg = yes; then
15798 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15799 fi
15800
15801 fi
15802
15803 if test $ac_have_func = no; then
15804 # There is a commonly available library for RS/6000 AIX.
15805 # Since it is not a standard part of AIX, it might be installed locally.
15806 ac_getloadavg_LIBS=$LIBS
15807 LIBS="-L/usr/local/lib $LIBS"
15808 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15809 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15810 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813 ac_check_lib_save_LIBS=$LIBS
15814 LIBS="-lgetloadavg $LIBS"
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821
15822 /* Override any gcc2 internal prototype to avoid an error. */
15823 #ifdef __cplusplus
15824 extern "C"
15825 #endif
15826 /* We use char because int might match the return type of a gcc2
15827 builtin and then its argument prototype would still apply. */
15828 char getloadavg ();
15829 int
15830 main ()
15831 {
15832 getloadavg ();
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try='test -s conftest$ac_exeext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_cv_lib_getloadavg_getloadavg=yes
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 ac_cv_lib_getloadavg_getloadavg=no
15865 fi
15866 rm -f conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15869 fi
15870 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15871 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15872 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15873 LIBS="-lgetloadavg $LIBS"
15874 else
15875 LIBS=$ac_getloadavg_LIBS
15876 fi
15877
15878 fi
15879
15880 # Make sure it is really in the library, if we think we found it,
15881 # otherwise set up the replacement function.
15882
15883 for ac_func in getloadavg
15884 do
15885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15886 echo "$as_me:$LINENO: checking for $ac_func" >&5
15887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15888 if eval "test \"\${$as_ac_var+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15899 #define $ac_func innocuous_$ac_func
15900
15901 /* System header to define __stub macros and hopefully few prototypes,
15902 which can conflict with char $ac_func (); below.
15903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15904 <limits.h> exists even on freestanding compilers. */
15905
15906 #ifdef __STDC__
15907 # include <limits.h>
15908 #else
15909 # include <assert.h>
15910 #endif
15911
15912 #undef $ac_func
15913
15914 /* Override any gcc2 internal prototype to avoid an error. */
15915 #ifdef __cplusplus
15916 extern "C"
15917 {
15918 #endif
15919 /* We use char because int might match the return type of a gcc2
15920 builtin and then its argument prototype would still apply. */
15921 char $ac_func ();
15922 /* The GNU C library defines this for functions which it implements
15923 to always fail with ENOSYS. Some functions are actually named
15924 something starting with __ and the normal name is an alias. */
15925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15926 choke me
15927 #else
15928 char (*f) () = $ac_func;
15929 #endif
15930 #ifdef __cplusplus
15931 }
15932 #endif
15933
15934 int
15935 main ()
15936 {
15937 return f != $ac_func;
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext conftest$ac_exeext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15944 (eval $ac_link) 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest$ac_exeext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 eval "$as_ac_var=yes"
15965 else
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 eval "$as_ac_var=no"
15970 fi
15971 rm -f conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext conftest.$ac_ext
15973 fi
15974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15976 if test `eval echo '${'$as_ac_var'}'` = yes; then
15977 cat >>confdefs.h <<_ACEOF
15978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15979 _ACEOF
15980
15981 else
15982 case $LIBOBJS in
15983 "getloadavg.$ac_objext" | \
15984 *" getloadavg.$ac_objext" | \
15985 "getloadavg.$ac_objext "* | \
15986 *" getloadavg.$ac_objext "* ) ;;
15987 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15988 esac
15989
15990
15991 cat >>confdefs.h <<\_ACEOF
15992 #define C_GETLOADAVG 1
15993 _ACEOF
15994
15995 # Figure out what our getloadavg.c needs.
15996 ac_have_func=no
15997 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15998 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15999 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16000 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 fi
16003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16005 else
16006 # Is the header compilable?
16007 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16008 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <sys/dg_sys_info.h>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020 (eval $ac_compile) 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag"
16028 || test ! -s conftest.err'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16041 else
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_header_compiler=no
16046 fi
16047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16050
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16053 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <sys/dg_sys_info.h>
16061 _ACEOF
16062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } >/dev/null; then
16070 if test -s conftest.err; then
16071 ac_cpp_err=$ac_c_preproc_warn_flag
16072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16073 else
16074 ac_cpp_err=
16075 fi
16076 else
16077 ac_cpp_err=yes
16078 fi
16079 if test -z "$ac_cpp_err"; then
16080 ac_header_preproc=yes
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 ac_header_preproc=no
16086 fi
16087 rm -f conftest.err conftest.$ac_ext
16088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6
16090
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 yes:no: )
16094 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16099 ;;
16100 no:yes:* )
16101 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16113 (
16114 cat <<\_ASBOX
16115 ## ------------------------------------------ ##
16116 ## Report this to the AC_PACKAGE_NAME lists. ##
16117 ## ------------------------------------------ ##
16118 _ASBOX
16119 ) |
16120 sed "s/^/$as_me: WARNING: /" >&2
16121 ;;
16122 esac
16123 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16124 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16125 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16129 fi
16130 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16131 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16132
16133 fi
16134 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16135 ac_have_func=yes
16136
16137 cat >>confdefs.h <<\_ACEOF
16138 #define DGUX 1
16139 _ACEOF
16140
16141
16142 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16143 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16144 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-ldgc $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155
16156 /* Override any gcc2 internal prototype to avoid an error. */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 /* We use char because int might match the return type of a gcc2
16161 builtin and then its argument prototype would still apply. */
16162 char dg_sys_info ();
16163 int
16164 main ()
16165 {
16166 dg_sys_info ();
16167 ;
16168 return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest$ac_exeext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_cv_lib_dgc_dg_sys_info=yes
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_cv_lib_dgc_dg_sys_info=no
16199 fi
16200 rm -f conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202 LIBS=$ac_check_lib_save_LIBS
16203 fi
16204 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16205 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16206 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16207 cat >>confdefs.h <<_ACEOF
16208 #define HAVE_LIBDGC 1
16209 _ACEOF
16210
16211 LIBS="-ldgc $LIBS"
16212
16213 fi
16214
16215 fi
16216
16217
16218
16219 if test "${ac_cv_header_locale_h+set}" = set; then
16220 echo "$as_me:$LINENO: checking for locale.h" >&5
16221 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16222 if test "${ac_cv_header_locale_h+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16226 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16227 else
16228 # Is the header compilable?
16229 echo "$as_me:$LINENO: checking locale.h usability" >&5
16230 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 $ac_includes_default
16238 #include <locale.h>
16239 _ACEOF
16240 rm -f conftest.$ac_objext
16241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16242 (eval $ac_compile) 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -z "$ac_c_werror_flag"
16250 || test ! -s conftest.err'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest.$ac_objext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_header_compiler=yes
16263 else
16264 echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16266
16267 ac_header_compiler=no
16268 fi
16269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 echo "${ECHO_T}$ac_header_compiler" >&6
16272
16273 # Is the header present?
16274 echo "$as_me:$LINENO: checking locale.h presence" >&5
16275 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h. */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <locale.h>
16283 _ACEOF
16284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } >/dev/null; then
16292 if test -s conftest.err; then
16293 ac_cpp_err=$ac_c_preproc_warn_flag
16294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16295 else
16296 ac_cpp_err=
16297 fi
16298 else
16299 ac_cpp_err=yes
16300 fi
16301 if test -z "$ac_cpp_err"; then
16302 ac_header_preproc=yes
16303 else
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_header_preproc=no
16308 fi
16309 rm -f conftest.err conftest.$ac_ext
16310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 echo "${ECHO_T}$ac_header_preproc" >&6
16312
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 yes:no: )
16316 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16317 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16319 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16321 ;;
16322 no:yes:* )
16323 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16324 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16326 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16328 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16330 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16334 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16335 (
16336 cat <<\_ASBOX
16337 ## ------------------------------------------ ##
16338 ## Report this to the AC_PACKAGE_NAME lists. ##
16339 ## ------------------------------------------ ##
16340 _ASBOX
16341 ) |
16342 sed "s/^/$as_me: WARNING: /" >&2
16343 ;;
16344 esac
16345 echo "$as_me:$LINENO: checking for locale.h" >&5
16346 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16347 if test "${ac_cv_header_locale_h+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 ac_cv_header_locale_h=$ac_header_preproc
16351 fi
16352 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16353 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16354
16355 fi
16356
16357
16358
16359 for ac_func in setlocale
16360 do
16361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16362 echo "$as_me:$LINENO: checking for $ac_func" >&5
16363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16364 if eval "test \"\${$as_ac_var+set}\" = set"; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16375 #define $ac_func innocuous_$ac_func
16376
16377 /* System header to define __stub macros and hopefully few prototypes,
16378 which can conflict with char $ac_func (); below.
16379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16380 <limits.h> exists even on freestanding compilers. */
16381
16382 #ifdef __STDC__
16383 # include <limits.h>
16384 #else
16385 # include <assert.h>
16386 #endif
16387
16388 #undef $ac_func
16389
16390 /* Override any gcc2 internal prototype to avoid an error. */
16391 #ifdef __cplusplus
16392 extern "C"
16393 {
16394 #endif
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397 char $ac_func ();
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402 choke me
16403 #else
16404 char (*f) () = $ac_func;
16405 #endif
16406 #ifdef __cplusplus
16407 }
16408 #endif
16409
16410 int
16411 main ()
16412 {
16413 return f != $ac_func;
16414 ;
16415 return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 eval "$as_ac_var=yes"
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 eval "$as_ac_var=no"
16446 fi
16447 rm -f conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16449 fi
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 _ACEOF
16456
16457 fi
16458 done
16459
16460
16461 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16462 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16463 # Irix 4.0.5F has the header but not the library.
16464 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16465 ac_have_func=yes
16466
16467 cat >>confdefs.h <<\_ACEOF
16468 #define SVR4 1
16469 _ACEOF
16470
16471 fi
16472
16473 if test $ac_have_func = no; then
16474 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16475 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16476 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16477 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 fi
16480 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16482 else
16483 # Is the header compilable?
16484 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16485 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 $ac_includes_default
16493 #include <inq_stats/cpustats.h>
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497 (eval $ac_compile) 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag"
16505 || test ! -s conftest.err'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest.$ac_objext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_header_compiler=yes
16518 else
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_header_compiler=no
16523 fi
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16526 echo "${ECHO_T}$ac_header_compiler" >&6
16527
16528 # Is the header present?
16529 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16530 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h. */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <inq_stats/cpustats.h>
16538 _ACEOF
16539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } >/dev/null; then
16547 if test -s conftest.err; then
16548 ac_cpp_err=$ac_c_preproc_warn_flag
16549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16550 else
16551 ac_cpp_err=
16552 fi
16553 else
16554 ac_cpp_err=yes
16555 fi
16556 if test -z "$ac_cpp_err"; then
16557 ac_header_preproc=yes
16558 else
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ac_header_preproc=no
16563 fi
16564 rm -f conftest.err conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16566 echo "${ECHO_T}$ac_header_preproc" >&6
16567
16568 # So? What about this header?
16569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16570 yes:no: )
16571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16572 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16574 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16575 ac_header_preproc=yes
16576 ;;
16577 no:yes:* )
16578 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16579 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16581 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16583 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16585 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16587 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16588 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16589 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16590 (
16591 cat <<\_ASBOX
16592 ## ------------------------------------------ ##
16593 ## Report this to the AC_PACKAGE_NAME lists. ##
16594 ## ------------------------------------------ ##
16595 _ASBOX
16596 ) |
16597 sed "s/^/$as_me: WARNING: /" >&2
16598 ;;
16599 esac
16600 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16601 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16602 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16608 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16609
16610 fi
16611 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16612 ac_have_func=yes
16613
16614 cat >>confdefs.h <<\_ACEOF
16615 #define UMAX 1
16616 _ACEOF
16617
16618
16619 cat >>confdefs.h <<\_ACEOF
16620 #define UMAX4_3 1
16621 _ACEOF
16622
16623 fi
16624
16625
16626 fi
16627
16628 if test $ac_have_func = no; then
16629 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16630 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16631 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16632 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16637 else
16638 # Is the header compilable?
16639 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16640 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 #include <sys/cpustats.h>
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>conftest.er1
16653 ac_status=$?
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest.$ac_objext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_header_compiler=yes
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_header_compiler=no
16678 fi
16679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16681 echo "${ECHO_T}$ac_header_compiler" >&6
16682
16683 # Is the header present?
16684 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16685 echo $ECHO_N "checking sys/cpustats.h presence... $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 #include <sys/cpustats.h>
16693 _ACEOF
16694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } >/dev/null; then
16702 if test -s conftest.err; then
16703 ac_cpp_err=$ac_c_preproc_warn_flag
16704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16705 else
16706 ac_cpp_err=
16707 fi
16708 else
16709 ac_cpp_err=yes
16710 fi
16711 if test -z "$ac_cpp_err"; then
16712 ac_header_preproc=yes
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 ac_header_preproc=no
16718 fi
16719 rm -f conftest.err conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6
16722
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16731 ;;
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16745 (
16746 cat <<\_ASBOX
16747 ## ------------------------------------------ ##
16748 ## Report this to the AC_PACKAGE_NAME lists. ##
16749 ## ------------------------------------------ ##
16750 _ASBOX
16751 ) |
16752 sed "s/^/$as_me: WARNING: /" >&2
16753 ;;
16754 esac
16755 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16756 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16757 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16761 fi
16762 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16763 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16764
16765 fi
16766 if test $ac_cv_header_sys_cpustats_h = yes; then
16767 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16768 #define UMAX 1
16769 _ACEOF
16770
16771 fi
16772
16773
16774 fi
16775
16776 if test $ac_have_func = no; then
16777
16778 for ac_header in mach/mach.h
16779 do
16780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16782 echo "$as_me:$LINENO: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 fi
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16789 else
16790 # Is the header compilable?
16791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h. */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 $ac_includes_default
16800 #include <$ac_header>
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_header_compiler=yes
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ac_header_compiler=no
16830 fi
16831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833 echo "${ECHO_T}$ac_header_compiler" >&6
16834
16835 # Is the header present?
16836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16837 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
16845 _ACEOF
16846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } >/dev/null; then
16854 if test -s conftest.err; then
16855 ac_cpp_err=$ac_c_preproc_warn_flag
16856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16857 else
16858 ac_cpp_err=
16859 fi
16860 else
16861 ac_cpp_err=yes
16862 fi
16863 if test -z "$ac_cpp_err"; then
16864 ac_header_preproc=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_header_preproc=no
16870 fi
16871 rm -f conftest.err conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873 echo "${ECHO_T}$ac_header_preproc" >&6
16874
16875 # So? What about this header?
16876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16877 yes:no: )
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16882 ac_header_preproc=yes
16883 ;;
16884 no:yes:* )
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16897 (
16898 cat <<\_ASBOX
16899 ## ------------------------------------------ ##
16900 ## Report this to the AC_PACKAGE_NAME lists. ##
16901 ## ------------------------------------------ ##
16902 _ASBOX
16903 ) |
16904 sed "s/^/$as_me: WARNING: /" >&2
16905 ;;
16906 esac
16907 echo "$as_me:$LINENO: checking for $ac_header" >&5
16908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912 eval "$as_ac_Header=\$ac_header_preproc"
16913 fi
16914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16916
16917 fi
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16921 _ACEOF
16922
16923 fi
16924
16925 done
16926
16927 fi
16928
16929
16930 for ac_header in nlist.h
16931 do
16932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934 echo "$as_me:$LINENO: checking for $ac_header" >&5
16935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 fi
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16941 else
16942 # Is the header compilable?
16943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 $ac_includes_default
16952 #include <$ac_header>
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_header_compiler=yes
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 ac_header_compiler=no
16982 fi
16983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16985 echo "${ECHO_T}$ac_header_compiler" >&6
16986
16987 # Is the header present?
16988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <$ac_header>
16997 _ACEOF
16998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } >/dev/null; then
17006 if test -s conftest.err; then
17007 ac_cpp_err=$ac_c_preproc_warn_flag
17008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17009 else
17010 ac_cpp_err=
17011 fi
17012 else
17013 ac_cpp_err=yes
17014 fi
17015 if test -z "$ac_cpp_err"; then
17016 ac_header_preproc=yes
17017 else
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_header_preproc=no
17022 fi
17023 rm -f conftest.err conftest.$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17025 echo "${ECHO_T}$ac_header_preproc" >&6
17026
17027 # So? What about this header?
17028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17029 yes:no: )
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17034 ac_header_preproc=yes
17035 ;;
17036 no:yes:* )
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17049 (
17050 cat <<\_ASBOX
17051 ## ------------------------------------------ ##
17052 ## Report this to the AC_PACKAGE_NAME lists. ##
17053 ## ------------------------------------------ ##
17054 _ASBOX
17055 ) |
17056 sed "s/^/$as_me: WARNING: /" >&2
17057 ;;
17058 esac
17059 echo "$as_me:$LINENO: checking for $ac_header" >&5
17060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 eval "$as_ac_Header=\$ac_header_preproc"
17065 fi
17066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17068
17069 fi
17070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17073 _ACEOF
17074 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17075 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17076 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h. */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 #include <nlist.h>
17086
17087 int
17088 main ()
17089 {
17090 static struct nlist ac_aggr;
17091 if (ac_aggr.n_un.n_name)
17092 return 0;
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext
17098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17099 (eval $ac_compile) 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag"
17107 || test ! -s conftest.err'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } &&
17113 { ac_try='test -s conftest.$ac_objext'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 ac_cv_member_struct_nlist_n_un_n_name=yes
17120 else
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 #include <nlist.h>
17131
17132 int
17133 main ()
17134 {
17135 static struct nlist ac_aggr;
17136 if (sizeof ac_aggr.n_un.n_name)
17137 return 0;
17138 ;
17139 return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144 (eval $ac_compile) 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try='test -z "$ac_c_werror_flag"
17152 || test ! -s conftest.err'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest.$ac_objext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_member_struct_nlist_n_un_n_name=yes
17165 else
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169 ac_cv_member_struct_nlist_n_un_n_name=no
17170 fi
17171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17172 fi
17173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17174 fi
17175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17176 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17177 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17178
17179 cat >>confdefs.h <<_ACEOF
17180 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17181 _ACEOF
17182
17183
17184 cat >>confdefs.h <<\_ACEOF
17185 #define NLIST_NAME_UNION 1
17186 _ACEOF
17187
17188 fi
17189
17190
17191 fi
17192
17193 done
17194
17195 fi
17196 done
17197
17198
17199 # Some definitions of getloadavg require that the program be installed setgid.
17200 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17201 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17202 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17212 #ifdef LDAV_PRIVILEGED
17213 Yowza Am I SETGID yet
17214 #endif
17215 _ACEOF
17216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17217 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17218 ac_cv_func_getloadavg_setgid=yes
17219 else
17220 ac_cv_func_getloadavg_setgid=no
17221 fi
17222 rm -f conftest*
17223
17224 fi
17225 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17226 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17227 if test $ac_cv_func_getloadavg_setgid = yes; then
17228 NEED_SETGID=true
17229
17230 cat >>confdefs.h <<\_ACEOF
17231 #define GETLOADAVG_PRIVILEGED 1
17232 _ACEOF
17233
17234 else
17235 NEED_SETGID=false
17236 fi
17237
17238 if test $ac_cv_func_getloadavg_setgid = yes; then
17239 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17240 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17241 if test "${ac_cv_group_kmem+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17245 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17246 # If we got an error (system does not support symlinks), try without -L.
17247 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17248 ac_cv_group_kmem=`echo $ac_ls_output \
17249 | sed -ne 's/[ ][ ]*/ /g;
17250 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17251 / /s/.* //;p;'`
17252
17253 fi
17254 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17255 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17256 KMEM_GROUP=$ac_cv_group_kmem
17257 fi
17258 if test "x$ac_save_LIBS" = x; then
17259 GETLOADAVG_LIBS=$LIBS
17260 else
17261 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17262 fi
17263 LIBS=$ac_save_LIBS
17264
17265
17266
17267 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17268 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17269 if test "${ac_cv_sys_largefile_source+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 while :; do
17273 ac_cv_sys_largefile_source=no
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <stdio.h>
17281 int
17282 main ()
17283 {
17284 return !fseeko;
17285 ;
17286 return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291 (eval $ac_compile) 2>conftest.er1
17292 ac_status=$?
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -z "$ac_c_werror_flag"
17299 || test ! -s conftest.err'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 break
17312 else
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316 fi
17317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 #define _LARGEFILE_SOURCE 1
17325 #include <stdio.h>
17326 int
17327 main ()
17328 {
17329 return !fseeko;
17330 ;
17331 return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 (eval $ac_compile) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try='test -s conftest.$ac_objext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_sys_largefile_source=1; break
17357 else
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 fi
17362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17363 break
17364 done
17365 fi
17366 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17368 if test "$ac_cv_sys_largefile_source" != no; then
17369
17370 cat >>confdefs.h <<_ACEOF
17371 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17372 _ACEOF
17373
17374 fi
17375 rm -f conftest*
17376
17377 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17378 # in glibc 2.1.3, but that breaks too many other things.
17379 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17380 echo "$as_me:$LINENO: checking for fseeko" >&5
17381 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17382 if test "${ac_cv_func_fseeko+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 #include <stdio.h>
17392 int
17393 main ()
17394 {
17395 return fseeko && fseeko (stdin, 0, 0);
17396 ;
17397 return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>conftest.er1
17403 ac_status=$?
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_fseeko=yes
17423 else
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ac_cv_func_fseeko=no
17428 fi
17429 rm -f conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17431 fi
17432 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17433 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17434 if test $ac_cv_func_fseeko = yes; then
17435
17436 cat >>confdefs.h <<\_ACEOF
17437 #define HAVE_FSEEKO 1
17438 _ACEOF
17439
17440 fi
17441
17442
17443 # Configure getopt.
17444 # getopt.m4 serial 10
17445
17446 # The getopt module assume you want GNU getopt, with getopt_long etc,
17447 # rather than vanilla POSIX getopt. This means your your code should
17448 # always include <getopt.h> for the getopt prototypes.
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460 # Prerequisites of lib/getopt*.
17461
17462
17463
17464
17465 GETOPT_H=
17466
17467 for ac_header in getopt.h
17468 do
17469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17471 echo "$as_me:$LINENO: checking for $ac_header" >&5
17472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 fi
17476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17478 else
17479 # Is the header compilable?
17480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17489 #include <$ac_header>
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_header_compiler=yes
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_header_compiler=no
17519 fi
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17522 echo "${ECHO_T}$ac_header_compiler" >&6
17523
17524 # Is the header present?
17525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17527 cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h. */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 #include <$ac_header>
17534 _ACEOF
17535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } >/dev/null; then
17543 if test -s conftest.err; then
17544 ac_cpp_err=$ac_c_preproc_warn_flag
17545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17546 else
17547 ac_cpp_err=
17548 fi
17549 else
17550 ac_cpp_err=yes
17551 fi
17552 if test -z "$ac_cpp_err"; then
17553 ac_header_preproc=yes
17554 else
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 ac_header_preproc=no
17559 fi
17560 rm -f conftest.err conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17562 echo "${ECHO_T}$ac_header_preproc" >&6
17563
17564 # So? What about this header?
17565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17566 yes:no: )
17567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17571 ac_header_preproc=yes
17572 ;;
17573 no:yes:* )
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17586 (
17587 cat <<\_ASBOX
17588 ## ------------------------------------------ ##
17589 ## Report this to the AC_PACKAGE_NAME lists. ##
17590 ## ------------------------------------------ ##
17591 _ASBOX
17592 ) |
17593 sed "s/^/$as_me: WARNING: /" >&2
17594 ;;
17595 esac
17596 echo "$as_me:$LINENO: checking for $ac_header" >&5
17597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601 eval "$as_ac_Header=\$ac_header_preproc"
17602 fi
17603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17605
17606 fi
17607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17610 _ACEOF
17611
17612 else
17613 GETOPT_H=getopt.h
17614 fi
17615
17616 done
17617
17618 if test -z "$GETOPT_H"; then
17619
17620 for ac_func in getopt_long_only
17621 do
17622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17623 echo "$as_me:$LINENO: checking for $ac_func" >&5
17624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_var+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h. */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17636 #define $ac_func innocuous_$ac_func
17637
17638 /* System header to define __stub macros and hopefully few prototypes,
17639 which can conflict with char $ac_func (); below.
17640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17641 <limits.h> exists even on freestanding compilers. */
17642
17643 #ifdef __STDC__
17644 # include <limits.h>
17645 #else
17646 # include <assert.h>
17647 #endif
17648
17649 #undef $ac_func
17650
17651 /* Override any gcc2 internal prototype to avoid an error. */
17652 #ifdef __cplusplus
17653 extern "C"
17654 {
17655 #endif
17656 /* We use char because int might match the return type of a gcc2
17657 builtin and then its argument prototype would still apply. */
17658 char $ac_func ();
17659 /* The GNU C library defines this for functions which it implements
17660 to always fail with ENOSYS. Some functions are actually named
17661 something starting with __ and the normal name is an alias. */
17662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17663 choke me
17664 #else
17665 char (*f) () = $ac_func;
17666 #endif
17667 #ifdef __cplusplus
17668 }
17669 #endif
17670
17671 int
17672 main ()
17673 {
17674 return f != $ac_func;
17675 ;
17676 return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest.$ac_objext conftest$ac_exeext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17681 (eval $ac_link) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest$ac_exeext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 eval "$as_ac_var=yes"
17702 else
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 eval "$as_ac_var=no"
17707 fi
17708 rm -f conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17710 fi
17711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17713 if test `eval echo '${'$as_ac_var'}'` = yes; then
17714 cat >>confdefs.h <<_ACEOF
17715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17716 _ACEOF
17717
17718 else
17719 GETOPT_H=getopt.h
17720 fi
17721 done
17722
17723 fi
17724
17725 if test -z "$GETOPT_H"; then
17726 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17727 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17728 if test "${ac_cv_have_decl_optreset+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731 cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 #include <getopt.h>
17738
17739 int
17740 main ()
17741 {
17742 #ifndef optreset
17743 char *p = (char *) optreset;
17744 #endif
17745
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_have_decl_optreset=yes
17773 else
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_have_decl_optreset=no
17778 fi
17779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17780 fi
17781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17782 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17783 if test $ac_cv_have_decl_optreset = yes; then
17784 GETOPT_H=getopt.h
17785 fi
17786
17787 fi
17788
17789 if test -z "$GETOPT_H"; then
17790 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17791 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17792 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 if test "$cross_compiling" = yes; then
17796 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17797 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17798 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <getopt.h>
17808
17809 int
17810 main ()
17811 {
17812 #ifndef getopt_clip
17813 char *p = (char *) getopt_clip;
17814 #endif
17815
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest.$ac_objext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_have_decl_getopt_clip=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_have_decl_getopt_clip=no
17848 fi
17849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17852 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17853 if test $ac_cv_have_decl_getopt_clip = yes; then
17854 gl_cv_func_gnu_getopt=no
17855 else
17856 gl_cv_func_gnu_getopt=yes
17857 fi
17858
17859 else
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 #include <getopt.h>
17867 int
17868 main ()
17869 {
17870
17871 char *myargv[3];
17872 myargv[0] = "conftest";
17873 myargv[1] = "-+";
17874 myargv[2] = 0;
17875 return getopt (2, myargv, "+a") != '?';
17876
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest$ac_exeext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17883 (eval $ac_link) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 gl_cv_func_gnu_getopt=yes
17893 else
17894 echo "$as_me: program exited with status $ac_status" >&5
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 ( exit $ac_status )
17899 gl_cv_func_gnu_getopt=no
17900 fi
17901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17902 fi
17903 fi
17904 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17905 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17906 if test "$gl_cv_func_gnu_getopt" = "no"; then
17907 GETOPT_H=getopt.h
17908 fi
17909 fi
17910
17911
17912
17913 if test -n "$GETOPT_H"; then
17914
17915
17916 GETOPT_H=getopt.h
17917
17918 cat >>confdefs.h <<\_ACEOF
17919 #define __GETOPT_PREFIX rpl_
17920 _ACEOF
17921
17922
17923
17924 :
17925 GETOPTOBJS='getopt.o getopt1.o'
17926
17927 fi
17928
17929
17930
17931
17932 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17933 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17934 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937 # Use it with a single arg.
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 $ac_includes_default
17945 int
17946 main ()
17947 {
17948 getpgrp (0);
17949 ;
17950 return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955 (eval $ac_compile) 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag"
17963 || test ! -s conftest.err'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_cv_func_getpgrp_void=no
17976 else
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 ac_cv_func_getpgrp_void=yes
17981 fi
17982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17983
17984 fi
17985 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17986 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17987 if test $ac_cv_func_getpgrp_void = yes; then
17988
17989 cat >>confdefs.h <<\_ACEOF
17990 #define GETPGRP_VOID 1
17991 _ACEOF
17992
17993 fi
17994
17995
17996
17997 for ac_func in strftime
17998 do
17999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18000 echo "$as_me:$LINENO: checking for $ac_func" >&5
18001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18002 if eval "test \"\${$as_ac_var+set}\" = set"; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h. */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18013 #define $ac_func innocuous_$ac_func
18014
18015 /* System header to define __stub macros and hopefully few prototypes,
18016 which can conflict with char $ac_func (); below.
18017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18018 <limits.h> exists even on freestanding compilers. */
18019
18020 #ifdef __STDC__
18021 # include <limits.h>
18022 #else
18023 # include <assert.h>
18024 #endif
18025
18026 #undef $ac_func
18027
18028 /* Override any gcc2 internal prototype to avoid an error. */
18029 #ifdef __cplusplus
18030 extern "C"
18031 {
18032 #endif
18033 /* We use char because int might match the return type of a gcc2
18034 builtin and then its argument prototype would still apply. */
18035 char $ac_func ();
18036 /* The GNU C library defines this for functions which it implements
18037 to always fail with ENOSYS. Some functions are actually named
18038 something starting with __ and the normal name is an alias. */
18039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18040 choke me
18041 #else
18042 char (*f) () = $ac_func;
18043 #endif
18044 #ifdef __cplusplus
18045 }
18046 #endif
18047
18048 int
18049 main ()
18050 {
18051 return f != $ac_func;
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest$ac_exeext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 eval "$as_ac_var=yes"
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 eval "$as_ac_var=no"
18084 fi
18085 rm -f conftest.err conftest.$ac_objext \
18086 conftest$ac_exeext conftest.$ac_ext
18087 fi
18088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18093 _ACEOF
18094
18095 else
18096 # strftime is in -lintl on SCO UNIX.
18097 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18098 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18099 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102 ac_check_lib_save_LIBS=$LIBS
18103 LIBS="-lintl $LIBS"
18104 cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110
18111 /* Override any gcc2 internal prototype to avoid an error. */
18112 #ifdef __cplusplus
18113 extern "C"
18114 #endif
18115 /* We use char because int might match the return type of a gcc2
18116 builtin and then its argument prototype would still apply. */
18117 char strftime ();
18118 int
18119 main ()
18120 {
18121 strftime ();
18122 ;
18123 return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext conftest$ac_exeext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag"
18136 || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest$ac_exeext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_lib_intl_strftime=yes
18149 else
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 ac_cv_lib_intl_strftime=no
18154 fi
18155 rm -f conftest.err conftest.$ac_objext \
18156 conftest$ac_exeext conftest.$ac_ext
18157 LIBS=$ac_check_lib_save_LIBS
18158 fi
18159 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18160 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18161 if test $ac_cv_lib_intl_strftime = yes; then
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_STRFTIME 1
18164 _ACEOF
18165
18166 LIBS="-lintl $LIBS"
18167 fi
18168
18169 fi
18170 done
18171
18172
18173 # UNIX98 PTYs.
18174
18175 for ac_func in grantpt
18176 do
18177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18178 echo "$as_me:$LINENO: checking for $ac_func" >&5
18179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18180 if eval "test \"\${$as_ac_var+set}\" = set"; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18191 #define $ac_func innocuous_$ac_func
18192
18193 /* System header to define __stub macros and hopefully few prototypes,
18194 which can conflict with char $ac_func (); below.
18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 <limits.h> exists even on freestanding compilers. */
18197
18198 #ifdef __STDC__
18199 # include <limits.h>
18200 #else
18201 # include <assert.h>
18202 #endif
18203
18204 #undef $ac_func
18205
18206 /* Override any gcc2 internal prototype to avoid an error. */
18207 #ifdef __cplusplus
18208 extern "C"
18209 {
18210 #endif
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213 char $ac_func ();
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18218 choke me
18219 #else
18220 char (*f) () = $ac_func;
18221 #endif
18222 #ifdef __cplusplus
18223 }
18224 #endif
18225
18226 int
18227 main ()
18228 {
18229 return f != $ac_func;
18230 ;
18231 return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 eval "$as_ac_var=yes"
18257 else
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 eval "$as_ac_var=no"
18262 fi
18263 rm -f conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 fi
18266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269 cat >>confdefs.h <<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 _ACEOF
18272
18273 fi
18274 done
18275
18276
18277 # PTY-related GNU extensions.
18278
18279 for ac_func in getpt
18280 do
18281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18282 echo "$as_me:$LINENO: checking for $ac_func" >&5
18283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18284 if eval "test \"\${$as_ac_var+set}\" = set"; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18295 #define $ac_func innocuous_$ac_func
18296
18297 /* System header to define __stub macros and hopefully few prototypes,
18298 which can conflict with char $ac_func (); below.
18299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18300 <limits.h> exists even on freestanding compilers. */
18301
18302 #ifdef __STDC__
18303 # include <limits.h>
18304 #else
18305 # include <assert.h>
18306 #endif
18307
18308 #undef $ac_func
18309
18310 /* Override any gcc2 internal prototype to avoid an error. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 {
18314 #endif
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317 char $ac_func ();
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 choke me
18323 #else
18324 char (*f) () = $ac_func;
18325 #endif
18326 #ifdef __cplusplus
18327 }
18328 #endif
18329
18330 int
18331 main ()
18332 {
18333 return f != $ac_func;
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340 (eval $ac_link) 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 eval "$as_ac_var=yes"
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365 eval "$as_ac_var=no"
18366 fi
18367 rm -f conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369 fi
18370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375 _ACEOF
18376
18377 fi
18378 done
18379
18380
18381 # Check this now, so that we will NOT find the above functions in ncurses.
18382 # That is because we have not set up to link ncurses in lib-src.
18383 # It's better to believe a function is not available
18384 # than to expect to find it in ncurses.
18385
18386 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18387 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18388 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391 ac_check_lib_save_LIBS=$LIBS
18392 LIBS="-lncurses $LIBS"
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18399
18400 /* Override any gcc2 internal prototype to avoid an error. */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 /* We use char because int might match the return type of a gcc2
18405 builtin and then its argument prototype would still apply. */
18406 char tparm ();
18407 int
18408 main ()
18409 {
18410 tparm ();
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417 (eval $ac_link) 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_c_werror_flag"
18425 || test ! -s conftest.err'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest$ac_exeext'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_cv_lib_ncurses_tparm=yes
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 ac_cv_lib_ncurses_tparm=no
18443 fi
18444 rm -f conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446 LIBS=$ac_check_lib_save_LIBS
18447 fi
18448 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18449 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18450 if test $ac_cv_lib_ncurses_tparm = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define HAVE_LIBNCURSES 1
18453 _ACEOF
18454
18455 LIBS="-lncurses $LIBS"
18456
18457 fi
18458
18459
18460 # Do we need the Hesiod library to provide the support routines?
18461 if test "$with_hesiod" = yes ; then
18462 # Don't set $LIBS here -- see comments above.
18463 resolv=no
18464 echo "$as_me:$LINENO: checking for res_send" >&5
18465 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18466 if test "${ac_cv_func_res_send+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477 #define res_send innocuous_res_send
18478
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char res_send (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18483
18484 #ifdef __STDC__
18485 # include <limits.h>
18486 #else
18487 # include <assert.h>
18488 #endif
18489
18490 #undef res_send
18491
18492 /* Override any gcc2 internal prototype to avoid an error. */
18493 #ifdef __cplusplus
18494 extern "C"
18495 {
18496 #endif
18497 /* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18499 char res_send ();
18500 /* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503 #if defined (__stub_res_send) || defined (__stub___res_send)
18504 choke me
18505 #else
18506 char (*f) () = res_send;
18507 #endif
18508 #ifdef __cplusplus
18509 }
18510 #endif
18511
18512 int
18513 main ()
18514 {
18515 return f != res_send;
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_func_res_send=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_cv_func_res_send=no
18548 fi
18549 rm -f conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18553 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18554 if test $ac_cv_func_res_send = yes; then
18555 :
18556 else
18557 echo "$as_me:$LINENO: checking for __res_send" >&5
18558 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18559 if test "${ac_cv_func___res_send+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define __res_send innocuous___res_send
18571
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char __res_send (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18576
18577 #ifdef __STDC__
18578 # include <limits.h>
18579 #else
18580 # include <assert.h>
18581 #endif
18582
18583 #undef __res_send
18584
18585 /* Override any gcc2 internal prototype to avoid an error. */
18586 #ifdef __cplusplus
18587 extern "C"
18588 {
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char __res_send ();
18593 /* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596 #if defined (__stub___res_send) || defined (__stub_____res_send)
18597 choke me
18598 #else
18599 char (*f) () = __res_send;
18600 #endif
18601 #ifdef __cplusplus
18602 }
18603 #endif
18604
18605 int
18606 main ()
18607 {
18608 return f != __res_send;
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_func___res_send=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640 ac_cv_func___res_send=no
18641 fi
18642 rm -f conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18644 fi
18645 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18646 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18647 if test $ac_cv_func___res_send = yes; then
18648 :
18649 else
18650 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18651 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18652 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655 ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-lresolv $LIBS"
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663
18664 /* Override any gcc2 internal prototype to avoid an error. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 /* We use char because int might match the return type of a gcc2
18669 builtin and then its argument prototype would still apply. */
18670 char res_send ();
18671 int
18672 main ()
18673 {
18674 res_send ();
18675 ;
18676 return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag"
18689 || test ! -s conftest.err'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest$ac_exeext'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; }; then
18701 ac_cv_lib_resolv_res_send=yes
18702 else
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706 ac_cv_lib_resolv_res_send=no
18707 fi
18708 rm -f conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18710 LIBS=$ac_check_lib_save_LIBS
18711 fi
18712 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18713 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18714 if test $ac_cv_lib_resolv_res_send = yes; then
18715 resolv=yes
18716 else
18717 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18718 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18719 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722 ac_check_lib_save_LIBS=$LIBS
18723 LIBS="-lresolv $LIBS"
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730
18731 /* Override any gcc2 internal prototype to avoid an error. */
18732 #ifdef __cplusplus
18733 extern "C"
18734 #endif
18735 /* We use char because int might match the return type of a gcc2
18736 builtin and then its argument prototype would still apply. */
18737 char __res_send ();
18738 int
18739 main ()
18740 {
18741 __res_send ();
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest.$ac_objext conftest$ac_exeext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18748 (eval $ac_link) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest$ac_exeext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_lib_resolv___res_send=yes
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18772
18773 ac_cv_lib_resolv___res_send=no
18774 fi
18775 rm -f conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18778 fi
18779 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18780 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18781 if test $ac_cv_lib_resolv___res_send = yes; then
18782 resolv=yes
18783 fi
18784
18785 fi
18786
18787 fi
18788
18789 fi
18790
18791 if test "$resolv" = yes ; then
18792 RESOLVLIB=-lresolv
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define HAVE_LIBRESOLV 1
18796 _ACEOF
18797
18798 else
18799 RESOLVLIB=
18800 fi
18801 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18802 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18803 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18814 #define hes_getmailhost innocuous_hes_getmailhost
18815
18816 /* System header to define __stub macros and hopefully few prototypes,
18817 which can conflict with char hes_getmailhost (); below.
18818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18819 <limits.h> exists even on freestanding compilers. */
18820
18821 #ifdef __STDC__
18822 # include <limits.h>
18823 #else
18824 # include <assert.h>
18825 #endif
18826
18827 #undef hes_getmailhost
18828
18829 /* Override any gcc2 internal prototype to avoid an error. */
18830 #ifdef __cplusplus
18831 extern "C"
18832 {
18833 #endif
18834 /* We use char because int might match the return type of a gcc2
18835 builtin and then its argument prototype would still apply. */
18836 char hes_getmailhost ();
18837 /* The GNU C library defines this for functions which it implements
18838 to always fail with ENOSYS. Some functions are actually named
18839 something starting with __ and the normal name is an alias. */
18840 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18841 choke me
18842 #else
18843 char (*f) () = hes_getmailhost;
18844 #endif
18845 #ifdef __cplusplus
18846 }
18847 #endif
18848
18849 int
18850 main ()
18851 {
18852 return f != hes_getmailhost;
18853 ;
18854 return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag"
18867 || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_func_hes_getmailhost=yes
18880 else
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_func_hes_getmailhost=no
18885 fi
18886 rm -f conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 fi
18889 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18890 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18891 if test $ac_cv_func_hes_getmailhost = yes; then
18892 :
18893 else
18894 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18895 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18896 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lhesiod $RESOLVLIB $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907
18908 /* Override any gcc2 internal prototype to avoid an error. */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914 char hes_getmailhost ();
18915 int
18916 main ()
18917 {
18918 hes_getmailhost ();
18919 ;
18920 return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag"
18933 || test ! -s conftest.err'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_hesiod_hes_getmailhost=yes
18946 else
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950 ac_cv_lib_hesiod_hes_getmailhost=no
18951 fi
18952 rm -f conftest.err conftest.$ac_objext \
18953 conftest$ac_exeext conftest.$ac_ext
18954 LIBS=$ac_check_lib_save_LIBS
18955 fi
18956 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18957 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18958 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define HAVE_LIBHESIOD 1
18962 _ACEOF
18963
18964 else
18965 :
18966 fi
18967
18968 fi
18969
18970 fi
18971
18972 # These tell us which Kerberos-related libraries to use.
18973 if test "${with_kerberos+set}" = set; then
18974
18975 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18976 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18977 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980 ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-lcom_err $LIBS"
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h. */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988
18989 /* Override any gcc2 internal prototype to avoid an error. */
18990 #ifdef __cplusplus
18991 extern "C"
18992 #endif
18993 /* We use char because int might match the return type of a gcc2
18994 builtin and then its argument prototype would still apply. */
18995 char com_err ();
18996 int
18997 main ()
18998 {
18999 com_err ();
19000 ;
19001 return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006 (eval $ac_link) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag"
19014 || test ! -s conftest.err'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_com_err_com_err=yes
19027 else
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_cv_lib_com_err_com_err=no
19032 fi
19033 rm -f conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_check_lib_save_LIBS
19036 fi
19037 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19038 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19039 if test $ac_cv_lib_com_err_com_err = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define HAVE_LIBCOM_ERR 1
19042 _ACEOF
19043
19044 LIBS="-lcom_err $LIBS"
19045
19046 fi
19047
19048
19049 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19050 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19051 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054 ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lk5crypto $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h. */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062
19063 /* Override any gcc2 internal prototype to avoid an error. */
19064 #ifdef __cplusplus
19065 extern "C"
19066 #endif
19067 /* We use char because int might match the return type of a gcc2
19068 builtin and then its argument prototype would still apply. */
19069 char mit_des_cbc_encrypt ();
19070 int
19071 main ()
19072 {
19073 mit_des_cbc_encrypt ();
19074 ;
19075 return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19080 (eval $ac_link) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag"
19088 || test ! -s conftest.err'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; } &&
19094 { ac_try='test -s conftest$ac_exeext'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19101 else
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19106 fi
19107 rm -f conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19110 fi
19111 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19112 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19113 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_LIBK5CRYPTO 1
19116 _ACEOF
19117
19118 LIBS="-lk5crypto $LIBS"
19119
19120 fi
19121
19122
19123 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19124 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19125 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128 ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-lcrypto $LIBS"
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136
19137 /* Override any gcc2 internal prototype to avoid an error. */
19138 #ifdef __cplusplus
19139 extern "C"
19140 #endif
19141 /* We use char because int might match the return type of a gcc2
19142 builtin and then its argument prototype would still apply. */
19143 char mit_des_cbc_encrypt ();
19144 int
19145 main ()
19146 {
19147 mit_des_cbc_encrypt ();
19148 ;
19149 return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154 (eval $ac_link) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag"
19162 || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest$ac_exeext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19180 fi
19181 rm -f conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19184 fi
19185 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19186 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19187 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_LIBCRYPTO 1
19190 _ACEOF
19191
19192 LIBS="-lcrypto $LIBS"
19193
19194 fi
19195
19196
19197 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19198 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19199 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202 ac_check_lib_save_LIBS=$LIBS
19203 LIBS="-lkrb5 $LIBS"
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210
19211 /* Override any gcc2 internal prototype to avoid an error. */
19212 #ifdef __cplusplus
19213 extern "C"
19214 #endif
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19217 char krb5_init_context ();
19218 int
19219 main ()
19220 {
19221 krb5_init_context ();
19222 ;
19223 return 0;
19224 }
19225 _ACEOF
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19228 (eval $ac_link) 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag"
19236 || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_lib_krb5_krb5_init_context=yes
19249 else
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 ac_cv_lib_krb5_krb5_init_context=no
19254 fi
19255 rm -f conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 LIBS=$ac_check_lib_save_LIBS
19258 fi
19259 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19260 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19261 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19262 cat >>confdefs.h <<_ACEOF
19263 #define HAVE_LIBKRB5 1
19264 _ACEOF
19265
19266 LIBS="-lkrb5 $LIBS"
19267
19268 fi
19269
19270 if test "${with_kerberos5+set}" != set; then
19271
19272 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19273 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19274 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277 ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-ldes425 $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h. */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285
19286 /* Override any gcc2 internal prototype to avoid an error. */
19287 #ifdef __cplusplus
19288 extern "C"
19289 #endif
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19292 char des_cbc_encrypt ();
19293 int
19294 main ()
19295 {
19296 des_cbc_encrypt ();
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_des425_des_cbc_encrypt=yes
19324 else
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_cv_lib_des425_des_cbc_encrypt=no
19329 fi
19330 rm -f conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19333 fi
19334 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19335 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19336 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19337 cat >>confdefs.h <<_ACEOF
19338 #define HAVE_LIBDES425 1
19339 _ACEOF
19340
19341 LIBS="-ldes425 $LIBS"
19342
19343 else
19344
19345 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19346 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19347 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350 ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-ldes $LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358
19359 /* Override any gcc2 internal prototype to avoid an error. */
19360 #ifdef __cplusplus
19361 extern "C"
19362 #endif
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char des_cbc_encrypt ();
19366 int
19367 main ()
19368 {
19369 des_cbc_encrypt ();
19370 ;
19371 return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_des_des_cbc_encrypt=yes
19397 else
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_des_des_cbc_encrypt=no
19402 fi
19403 rm -f conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19406 fi
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19408 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19409 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19410 cat >>confdefs.h <<_ACEOF
19411 #define HAVE_LIBDES 1
19412 _ACEOF
19413
19414 LIBS="-ldes $LIBS"
19415
19416 fi
19417
19418 fi
19419
19420
19421 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19422 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19423 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426 ac_check_lib_save_LIBS=$LIBS
19427 LIBS="-lkrb4 $LIBS"
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434
19435 /* Override any gcc2 internal prototype to avoid an error. */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19441 char krb_get_cred ();
19442 int
19443 main ()
19444 {
19445 krb_get_cred ();
19446 ;
19447 return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>conftest.er1
19453 ac_status=$?
19454 grep -v '^ *+' conftest.er1 >conftest.err
19455 rm -f conftest.er1
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_c_werror_flag"
19460 || test ! -s conftest.err'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_lib_krb4_krb_get_cred=yes
19473 else
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_lib_krb4_krb_get_cred=no
19478 fi
19479 rm -f conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19481 LIBS=$ac_check_lib_save_LIBS
19482 fi
19483 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19484 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19485 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_LIBKRB4 1
19488 _ACEOF
19489
19490 LIBS="-lkrb4 $LIBS"
19491
19492 else
19493
19494 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19495 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19496 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 ac_check_lib_save_LIBS=$LIBS
19500 LIBS="-lkrb $LIBS"
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507
19508 /* Override any gcc2 internal prototype to avoid an error. */
19509 #ifdef __cplusplus
19510 extern "C"
19511 #endif
19512 /* We use char because int might match the return type of a gcc2
19513 builtin and then its argument prototype would still apply. */
19514 char krb_get_cred ();
19515 int
19516 main ()
19517 {
19518 krb_get_cred ();
19519 ;
19520 return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19525 (eval $ac_link) 2>conftest.er1
19526 ac_status=$?
19527 grep -v '^ *+' conftest.er1 >conftest.err
19528 rm -f conftest.er1
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } &&
19532 { ac_try='test -z "$ac_c_werror_flag"
19533 || test ! -s conftest.err'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest$ac_exeext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_lib_krb_krb_get_cred=yes
19546 else
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_cv_lib_krb_krb_get_cred=no
19551 fi
19552 rm -f conftest.err conftest.$ac_objext \
19553 conftest$ac_exeext conftest.$ac_ext
19554 LIBS=$ac_check_lib_save_LIBS
19555 fi
19556 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19557 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19558 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_LIBKRB 1
19561 _ACEOF
19562
19563 LIBS="-lkrb $LIBS"
19564
19565 fi
19566
19567 fi
19568
19569 fi
19570
19571 if test "${with_kerberos5+set}" = set; then
19572
19573 for ac_header in krb5.h
19574 do
19575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 fi
19582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19584 else
19585 # Is the header compilable?
19586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h. */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 $ac_includes_default
19595 #include <$ac_header>
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599 (eval $ac_compile) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
19606 { ac_try='test -z "$ac_c_werror_flag"
19607 || test ! -s conftest.err'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_header_compiler=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 ac_header_compiler=no
19625 fi
19626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19628 echo "${ECHO_T}$ac_header_compiler" >&6
19629
19630 # Is the header present?
19631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <$ac_header>
19640 _ACEOF
19641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } >/dev/null; then
19649 if test -s conftest.err; then
19650 ac_cpp_err=$ac_c_preproc_warn_flag
19651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19652 else
19653 ac_cpp_err=
19654 fi
19655 else
19656 ac_cpp_err=yes
19657 fi
19658 if test -z "$ac_cpp_err"; then
19659 ac_header_preproc=yes
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_header_preproc=no
19665 fi
19666 rm -f conftest.err conftest.$ac_ext
19667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19668 echo "${ECHO_T}$ac_header_preproc" >&6
19669
19670 # So? What about this header?
19671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19672 yes:no: )
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19677 ac_header_preproc=yes
19678 ;;
19679 no:yes:* )
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19692 (
19693 cat <<\_ASBOX
19694 ## ------------------------------------------ ##
19695 ## Report this to the AC_PACKAGE_NAME lists. ##
19696 ## ------------------------------------------ ##
19697 _ASBOX
19698 ) |
19699 sed "s/^/$as_me: WARNING: /" >&2
19700 ;;
19701 esac
19702 echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 eval "$as_ac_Header=\$ac_header_preproc"
19708 fi
19709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19711
19712 fi
19713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19716 _ACEOF
19717
19718 fi
19719
19720 done
19721
19722 else
19723
19724 for ac_header in des.h
19725 do
19726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19728 echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 fi
19733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19735 else
19736 # Is the header compilable?
19737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19746 #include <$ac_header>
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19750 (eval $ac_compile) 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -z "$ac_c_werror_flag"
19758 || test ! -s conftest.err'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; } &&
19764 { ac_try='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_header_compiler=yes
19771 else
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 ac_header_compiler=no
19776 fi
19777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 echo "${ECHO_T}$ac_header_compiler" >&6
19780
19781 # Is the header present?
19782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <$ac_header>
19791 _ACEOF
19792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev/null; then
19800 if test -s conftest.err; then
19801 ac_cpp_err=$ac_c_preproc_warn_flag
19802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19803 else
19804 ac_cpp_err=
19805 fi
19806 else
19807 ac_cpp_err=yes
19808 fi
19809 if test -z "$ac_cpp_err"; then
19810 ac_header_preproc=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 ac_header_preproc=no
19816 fi
19817 rm -f conftest.err conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 echo "${ECHO_T}$ac_header_preproc" >&6
19820
19821 # So? What about this header?
19822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19823 yes:no: )
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19828 ac_header_preproc=yes
19829 ;;
19830 no:yes:* )
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19843 (
19844 cat <<\_ASBOX
19845 ## ------------------------------------------ ##
19846 ## Report this to the AC_PACKAGE_NAME lists. ##
19847 ## ------------------------------------------ ##
19848 _ASBOX
19849 ) |
19850 sed "s/^/$as_me: WARNING: /" >&2
19851 ;;
19852 esac
19853 echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858 eval "$as_ac_Header=\$ac_header_preproc"
19859 fi
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862
19863 fi
19864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19865 cat >>confdefs.h <<_ACEOF
19866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 _ACEOF
19868
19869 else
19870
19871 for ac_header in kerberosIV/des.h
19872 do
19873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875 echo "$as_me:$LINENO: checking for $ac_header" >&5
19876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 fi
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882 else
19883 # Is the header compilable?
19884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 $ac_includes_default
19893 #include <$ac_header>
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897 (eval $ac_compile) 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_header_compiler=yes
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922 ac_header_compiler=no
19923 fi
19924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19926 echo "${ECHO_T}$ac_header_compiler" >&6
19927
19928 # Is the header present?
19929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 #include <$ac_header>
19938 _ACEOF
19939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } >/dev/null; then
19947 if test -s conftest.err; then
19948 ac_cpp_err=$ac_c_preproc_warn_flag
19949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19950 else
19951 ac_cpp_err=
19952 fi
19953 else
19954 ac_cpp_err=yes
19955 fi
19956 if test -z "$ac_cpp_err"; then
19957 ac_header_preproc=yes
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ac_header_preproc=no
19963 fi
19964 rm -f conftest.err conftest.$ac_ext
19965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19966 echo "${ECHO_T}$ac_header_preproc" >&6
19967
19968 # So? What about this header?
19969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19970 yes:no: )
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19975 ac_header_preproc=yes
19976 ;;
19977 no:yes:* )
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19990 (
19991 cat <<\_ASBOX
19992 ## ------------------------------------------ ##
19993 ## Report this to the AC_PACKAGE_NAME lists. ##
19994 ## ------------------------------------------ ##
19995 _ASBOX
19996 ) |
19997 sed "s/^/$as_me: WARNING: /" >&2
19998 ;;
19999 esac
20000 echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 eval "$as_ac_Header=\$ac_header_preproc"
20006 fi
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20009
20010 fi
20011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20014 _ACEOF
20015
20016 else
20017
20018 for ac_header in kerberos/des.h
20019 do
20020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20022 echo "$as_me:$LINENO: checking for $ac_header" >&5
20023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 fi
20027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20029 else
20030 # Is the header compilable?
20031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 $ac_includes_default
20040 #include <$ac_header>
20041 _ACEOF
20042 rm -f conftest.$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044 (eval $ac_compile) 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest.$ac_objext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_header_compiler=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20068
20069 ac_header_compiler=no
20070 fi
20071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20073 echo "${ECHO_T}$ac_header_compiler" >&6
20074
20075 # Is the header present?
20076 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 #include <$ac_header>
20085 _ACEOF
20086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } >/dev/null; then
20094 if test -s conftest.err; then
20095 ac_cpp_err=$ac_c_preproc_warn_flag
20096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20097 else
20098 ac_cpp_err=
20099 fi
20100 else
20101 ac_cpp_err=yes
20102 fi
20103 if test -z "$ac_cpp_err"; then
20104 ac_header_preproc=yes
20105 else
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 ac_header_preproc=no
20110 fi
20111 rm -f conftest.err conftest.$ac_ext
20112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20113 echo "${ECHO_T}$ac_header_preproc" >&6
20114
20115 # So? What about this header?
20116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20117 yes:no: )
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20122 ac_header_preproc=yes
20123 ;;
20124 no:yes:* )
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20137 (
20138 cat <<\_ASBOX
20139 ## ------------------------------------------ ##
20140 ## Report this to the AC_PACKAGE_NAME lists. ##
20141 ## ------------------------------------------ ##
20142 _ASBOX
20143 ) |
20144 sed "s/^/$as_me: WARNING: /" >&2
20145 ;;
20146 esac
20147 echo "$as_me:$LINENO: checking for $ac_header" >&5
20148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152 eval "$as_ac_Header=\$ac_header_preproc"
20153 fi
20154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20156
20157 fi
20158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20159 cat >>confdefs.h <<_ACEOF
20160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20161 _ACEOF
20162
20163 fi
20164
20165 done
20166
20167 fi
20168
20169 done
20170
20171 fi
20172
20173 done
20174
20175
20176 for ac_header in krb.h
20177 do
20178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20180 echo "$as_me:$LINENO: checking for $ac_header" >&5
20181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 fi
20185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20187 else
20188 # Is the header compilable?
20189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 #include <$ac_header>
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20202 (eval $ac_compile) 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_header_compiler=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_header_compiler=no
20228 fi
20229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20231 echo "${ECHO_T}$ac_header_compiler" >&6
20232
20233 # Is the header present?
20234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <$ac_header>
20243 _ACEOF
20244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } >/dev/null; then
20252 if test -s conftest.err; then
20253 ac_cpp_err=$ac_c_preproc_warn_flag
20254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20255 else
20256 ac_cpp_err=
20257 fi
20258 else
20259 ac_cpp_err=yes
20260 fi
20261 if test -z "$ac_cpp_err"; then
20262 ac_header_preproc=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_header_preproc=no
20268 fi
20269 rm -f conftest.err conftest.$ac_ext
20270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20271 echo "${ECHO_T}$ac_header_preproc" >&6
20272
20273 # So? What about this header?
20274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20275 yes:no: )
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20280 ac_header_preproc=yes
20281 ;;
20282 no:yes:* )
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20295 (
20296 cat <<\_ASBOX
20297 ## ------------------------------------------ ##
20298 ## Report this to the AC_PACKAGE_NAME lists. ##
20299 ## ------------------------------------------ ##
20300 _ASBOX
20301 ) |
20302 sed "s/^/$as_me: WARNING: /" >&2
20303 ;;
20304 esac
20305 echo "$as_me:$LINENO: checking for $ac_header" >&5
20306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310 eval "$as_ac_Header=\$ac_header_preproc"
20311 fi
20312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20314
20315 fi
20316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20317 cat >>confdefs.h <<_ACEOF
20318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20319 _ACEOF
20320
20321 else
20322
20323 for ac_header in kerberosIV/krb.h
20324 do
20325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20327 echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 fi
20332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20334 else
20335 # Is the header compilable?
20336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h. */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 $ac_includes_default
20345 #include <$ac_header>
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest.$ac_objext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_header_compiler=yes
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 ac_header_compiler=no
20375 fi
20376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20378 echo "${ECHO_T}$ac_header_compiler" >&6
20379
20380 # Is the header present?
20381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include <$ac_header>
20390 _ACEOF
20391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } >/dev/null; then
20399 if test -s conftest.err; then
20400 ac_cpp_err=$ac_c_preproc_warn_flag
20401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20402 else
20403 ac_cpp_err=
20404 fi
20405 else
20406 ac_cpp_err=yes
20407 fi
20408 if test -z "$ac_cpp_err"; then
20409 ac_header_preproc=yes
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_header_preproc=no
20415 fi
20416 rm -f conftest.err conftest.$ac_ext
20417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6
20419
20420 # So? What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422 yes:no: )
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427 ac_header_preproc=yes
20428 ;;
20429 no:yes:* )
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20442 (
20443 cat <<\_ASBOX
20444 ## ------------------------------------------ ##
20445 ## Report this to the AC_PACKAGE_NAME lists. ##
20446 ## ------------------------------------------ ##
20447 _ASBOX
20448 ) |
20449 sed "s/^/$as_me: WARNING: /" >&2
20450 ;;
20451 esac
20452 echo "$as_me:$LINENO: checking for $ac_header" >&5
20453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457 eval "$as_ac_Header=\$ac_header_preproc"
20458 fi
20459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20461
20462 fi
20463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20464 cat >>confdefs.h <<_ACEOF
20465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20466 _ACEOF
20467
20468 else
20469
20470 for ac_header in kerberos/krb.h
20471 do
20472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20474 echo "$as_me:$LINENO: checking for $ac_header" >&5
20475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 fi
20479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20481 else
20482 # Is the header compilable?
20483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20492 #include <$ac_header>
20493 _ACEOF
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_header_compiler=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ac_header_compiler=no
20522 fi
20523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20525 echo "${ECHO_T}$ac_header_compiler" >&6
20526
20527 # Is the header present?
20528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <$ac_header>
20537 _ACEOF
20538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } >/dev/null; then
20546 if test -s conftest.err; then
20547 ac_cpp_err=$ac_c_preproc_warn_flag
20548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20549 else
20550 ac_cpp_err=
20551 fi
20552 else
20553 ac_cpp_err=yes
20554 fi
20555 if test -z "$ac_cpp_err"; then
20556 ac_header_preproc=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_header_preproc=no
20562 fi
20563 rm -f conftest.err conftest.$ac_ext
20564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565 echo "${ECHO_T}$ac_header_preproc" >&6
20566
20567 # So? What about this header?
20568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20569 yes:no: )
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc=yes
20575 ;;
20576 no:yes:* )
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20589 (
20590 cat <<\_ASBOX
20591 ## ------------------------------------------ ##
20592 ## Report this to the AC_PACKAGE_NAME lists. ##
20593 ## ------------------------------------------ ##
20594 _ASBOX
20595 ) |
20596 sed "s/^/$as_me: WARNING: /" >&2
20597 ;;
20598 esac
20599 echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604 eval "$as_ac_Header=\$ac_header_preproc"
20605 fi
20606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20608
20609 fi
20610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613 _ACEOF
20614
20615 fi
20616
20617 done
20618
20619 fi
20620
20621 done
20622
20623 fi
20624
20625 done
20626
20627 fi
20628
20629 for ac_header in com_err.h
20630 do
20631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20633 echo "$as_me:$LINENO: checking for $ac_header" >&5
20634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 fi
20638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20640 else
20641 # Is the header compilable?
20642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h. */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20651 #include <$ac_header>
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_header_compiler=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_header_compiler=no
20681 fi
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20684 echo "${ECHO_T}$ac_header_compiler" >&6
20685
20686 # Is the header present?
20687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20689 cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h. */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 #include <$ac_header>
20696 _ACEOF
20697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } >/dev/null; then
20705 if test -s conftest.err; then
20706 ac_cpp_err=$ac_c_preproc_warn_flag
20707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20708 else
20709 ac_cpp_err=
20710 fi
20711 else
20712 ac_cpp_err=yes
20713 fi
20714 if test -z "$ac_cpp_err"; then
20715 ac_header_preproc=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ac_header_preproc=no
20721 fi
20722 rm -f conftest.err conftest.$ac_ext
20723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20724 echo "${ECHO_T}$ac_header_preproc" >&6
20725
20726 # So? What about this header?
20727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20728 yes:no: )
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20733 ac_header_preproc=yes
20734 ;;
20735 no:yes:* )
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20748 (
20749 cat <<\_ASBOX
20750 ## ------------------------------------------ ##
20751 ## Report this to the AC_PACKAGE_NAME lists. ##
20752 ## ------------------------------------------ ##
20753 _ASBOX
20754 ) |
20755 sed "s/^/$as_me: WARNING: /" >&2
20756 ;;
20757 esac
20758 echo "$as_me:$LINENO: checking for $ac_header" >&5
20759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763 eval "$as_ac_Header=\$ac_header_preproc"
20764 fi
20765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20767
20768 fi
20769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20772 _ACEOF
20773
20774 fi
20775
20776 done
20777
20778 fi
20779
20780 # Solaris requires -lintl if you want strerror (which calls dgettext)
20781 # to return localized messages.
20782
20783 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20784 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20785 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788 ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-lintl $LIBS"
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h. */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796
20797 /* Override any gcc2 internal prototype to avoid an error. */
20798 #ifdef __cplusplus
20799 extern "C"
20800 #endif
20801 /* We use char because int might match the return type of a gcc2
20802 builtin and then its argument prototype would still apply. */
20803 char dgettext ();
20804 int
20805 main ()
20806 {
20807 dgettext ();
20808 ;
20809 return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20814 (eval $ac_link) 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } &&
20821 { ac_try='test -z "$ac_c_werror_flag"
20822 || test ! -s conftest.err'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; } &&
20828 { ac_try='test -s conftest$ac_exeext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_lib_intl_dgettext=yes
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 ac_cv_lib_intl_dgettext=no
20840 fi
20841 rm -f conftest.err conftest.$ac_objext \
20842 conftest$ac_exeext conftest.$ac_ext
20843 LIBS=$ac_check_lib_save_LIBS
20844 fi
20845 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20846 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20847 if test $ac_cv_lib_intl_dgettext = yes; then
20848 cat >>confdefs.h <<_ACEOF
20849 #define HAVE_LIBINTL 1
20850 _ACEOF
20851
20852 LIBS="-lintl $LIBS"
20853
20854 fi
20855
20856
20857 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20858 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20859 if test "${emacs_cv_localtime_cache+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 if test x$ac_cv_func_tzset = xyes; then
20863 if test "$cross_compiling" = yes; then
20864 # If we have tzset, assume the worst when cross-compiling.
20865 emacs_cv_localtime_cache=yes
20866 else
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <time.h>
20874 extern char **environ;
20875 unset_TZ ()
20876 {
20877 char **from, **to;
20878 for (to = from = environ; (*to = *from); from++)
20879 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20880 to++;
20881 }
20882 char TZ_GMT0[] = "TZ=GMT0";
20883 char TZ_PST8[] = "TZ=PST8";
20884 main()
20885 {
20886 time_t now = time ((time_t *) 0);
20887 int hour_GMT0, hour_unset;
20888 if (putenv (TZ_GMT0) != 0)
20889 exit (1);
20890 hour_GMT0 = localtime (&now)->tm_hour;
20891 unset_TZ ();
20892 hour_unset = localtime (&now)->tm_hour;
20893 if (putenv (TZ_PST8) != 0)
20894 exit (1);
20895 if (localtime (&now)->tm_hour == hour_GMT0)
20896 exit (1);
20897 unset_TZ ();
20898 if (localtime (&now)->tm_hour != hour_unset)
20899 exit (1);
20900 exit (0);
20901 }
20902 _ACEOF
20903 rm -f conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 emacs_cv_localtime_cache=no
20915 else
20916 echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 ( exit $ac_status )
20921 emacs_cv_localtime_cache=yes
20922 fi
20923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 fi
20925 else
20926 # If we lack tzset, report that localtime does not cache TZ,
20927 # since we can't invalidate the cache if we don't have tzset.
20928 emacs_cv_localtime_cache=no
20929 fi
20930 fi
20931 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20932 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20933 if test $emacs_cv_localtime_cache = yes; then
20934
20935 cat >>confdefs.h <<\_ACEOF
20936 #define LOCALTIME_CACHE 1
20937 _ACEOF
20938
20939 fi
20940
20941 if test "x$HAVE_TIMEVAL" = xyes; then
20942
20943 for ac_func in gettimeofday
20944 do
20945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20948 if eval "test \"\${$as_ac_var+set}\" = set"; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define $ac_func innocuous_$ac_func
20960
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20965
20966 #ifdef __STDC__
20967 # include <limits.h>
20968 #else
20969 # include <assert.h>
20970 #endif
20971
20972 #undef $ac_func
20973
20974 /* Override any gcc2 internal prototype to avoid an error. */
20975 #ifdef __cplusplus
20976 extern "C"
20977 {
20978 #endif
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20981 char $ac_func ();
20982 /* The GNU C library defines this for functions which it implements
20983 to always fail with ENOSYS. Some functions are actually named
20984 something starting with __ and the normal name is an alias. */
20985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20986 choke me
20987 #else
20988 char (*f) () = $ac_func;
20989 #endif
20990 #ifdef __cplusplus
20991 }
20992 #endif
20993
20994 int
20995 main ()
20996 {
20997 return f != $ac_func;
20998 ;
20999 return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 eval "$as_ac_var=yes"
21025 else
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 eval "$as_ac_var=no"
21030 fi
21031 rm -f conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21033 fi
21034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21036 if test `eval echo '${'$as_ac_var'}'` = yes; then
21037 cat >>confdefs.h <<_ACEOF
21038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21039 _ACEOF
21040
21041 fi
21042 done
21043
21044 if test $ac_cv_func_gettimeofday = yes; then
21045 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21046 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21047 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056
21057 #ifdef TIME_WITH_SYS_TIME
21058 #include <sys/time.h>
21059 #include <time.h>
21060 #else
21061 #ifdef HAVE_SYS_TIME_H
21062 #include <sys/time.h>
21063 #else
21064 #include <time.h>
21065 #endif
21066 #endif
21067 int
21068 main ()
21069 {
21070 struct timeval time;
21071 gettimeofday (&time, 0);
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 emacs_cv_gettimeofday_two_arguments=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 emacs_cv_gettimeofday_two_arguments=no
21104 fi
21105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106 fi
21107 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21108 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21109 if test $emacs_cv_gettimeofday_two_arguments = no; then
21110
21111 cat >>confdefs.h <<\_ACEOF
21112 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21113 _ACEOF
21114
21115 fi
21116 fi
21117 fi
21118
21119 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21120 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <sys/types.h>
21132 #include <$ac_cv_struct_tm>
21133
21134
21135 int
21136 main ()
21137 {
21138 static struct tm ac_aggr;
21139 if (ac_aggr.tm_zone)
21140 return 0;
21141 ;
21142 return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21147 (eval $ac_compile) 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -z "$ac_c_werror_flag"
21155 || test ! -s conftest.err'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } &&
21161 { ac_try='test -s conftest.$ac_objext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_member_struct_tm_tm_zone=yes
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <sys/types.h>
21179 #include <$ac_cv_struct_tm>
21180
21181
21182 int
21183 main ()
21184 {
21185 static struct tm ac_aggr;
21186 if (sizeof ac_aggr.tm_zone)
21187 return 0;
21188 ;
21189 return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_member_struct_tm_tm_zone=yes
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219 ac_cv_member_struct_tm_tm_zone=no
21220 fi
21221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21222 fi
21223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21224 fi
21225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21226 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21227 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21228
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_STRUCT_TM_TM_ZONE 1
21231 _ACEOF
21232
21233
21234 fi
21235
21236 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21237
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_TM_ZONE 1
21240 _ACEOF
21241
21242 else
21243 echo "$as_me:$LINENO: checking for tzname" >&5
21244 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21245 if test "${ac_cv_var_tzname+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <time.h>
21255 #ifndef tzname /* For SGI. */
21256 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21257 #endif
21258
21259 int
21260 main ()
21261 {
21262 atoi(*tzname);
21263 ;
21264 return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269 (eval $ac_link) 2>conftest.er1
21270 ac_status=$?
21271 grep -v '^ *+' conftest.er1 >conftest.err
21272 rm -f conftest.er1
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_var_tzname=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_cv_var_tzname=no
21295 fi
21296 rm -f conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21298 fi
21299 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21300 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21301 if test $ac_cv_var_tzname = yes; then
21302
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_TZNAME 1
21305 _ACEOF
21306
21307 fi
21308 fi
21309
21310
21311 if test "$ac_cv_func_gettimeofday" = yes; then
21312 echo "$as_me:$LINENO: checking for struct timezone" >&5
21313 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21314 if test "${emacs_cv_struct_timezone+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <sys/time.h>
21324 int
21325 main ()
21326 {
21327 struct timezone tz;
21328 ;
21329 return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21334 (eval $ac_compile) 2>conftest.er1
21335 ac_status=$?
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -z "$ac_c_werror_flag"
21342 || test ! -s conftest.err'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try='test -s conftest.$ac_objext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
21354 if test "$cross_compiling" = yes; then
21355 emacs_cv_struct_timezone=yes
21356 else
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363
21364 #ifdef TIME_WITH_SYS_TIME
21365 #include <sys/time.h>
21366 #include <time.h>
21367 #else
21368 #ifdef HAVE_SYS_TIME_H
21369 #include <sys/time.h>
21370 #else
21371 #include <time.h>
21372 #endif
21373 #endif
21374 main () {
21375 struct timeval time;
21376 struct timezone dummy;
21377 exit (gettimeofday (&time, &dummy));
21378 }
21379 _ACEOF
21380 rm -f conftest$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 emacs_cv_struct_timezone=yes
21392 else
21393 echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ( exit $ac_status )
21398 emacs_cv_struct_timezone=no
21399 fi
21400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21401 fi
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 emacs_cv_struct_timezone=no
21407 fi
21408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21411 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21412 fi
21413
21414 ok_so_far=yes
21415 echo "$as_me:$LINENO: checking for socket" >&5
21416 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21417 if test "${ac_cv_func_socket+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21428 #define socket innocuous_socket
21429
21430 /* System header to define __stub macros and hopefully few prototypes,
21431 which can conflict with char socket (); below.
21432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433 <limits.h> exists even on freestanding compilers. */
21434
21435 #ifdef __STDC__
21436 # include <limits.h>
21437 #else
21438 # include <assert.h>
21439 #endif
21440
21441 #undef socket
21442
21443 /* Override any gcc2 internal prototype to avoid an error. */
21444 #ifdef __cplusplus
21445 extern "C"
21446 {
21447 #endif
21448 /* We use char because int might match the return type of a gcc2
21449 builtin and then its argument prototype would still apply. */
21450 char socket ();
21451 /* The GNU C library defines this for functions which it implements
21452 to always fail with ENOSYS. Some functions are actually named
21453 something starting with __ and the normal name is an alias. */
21454 #if defined (__stub_socket) || defined (__stub___socket)
21455 choke me
21456 #else
21457 char (*f) () = socket;
21458 #endif
21459 #ifdef __cplusplus
21460 }
21461 #endif
21462
21463 int
21464 main ()
21465 {
21466 return f != socket;
21467 ;
21468 return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>conftest.er1
21474 ac_status=$?
21475 grep -v '^ *+' conftest.er1 >conftest.err
21476 rm -f conftest.er1
21477 cat conftest.err >&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } &&
21480 { ac_try='test -z "$ac_c_werror_flag"
21481 || test ! -s conftest.err'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try='test -s conftest$ac_exeext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ac_cv_func_socket=yes
21494 else
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21497
21498 ac_cv_func_socket=no
21499 fi
21500 rm -f conftest.err conftest.$ac_objext \
21501 conftest$ac_exeext conftest.$ac_ext
21502 fi
21503 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21504 echo "${ECHO_T}$ac_cv_func_socket" >&6
21505 if test $ac_cv_func_socket = yes; then
21506 :
21507 else
21508 ok_so_far=no
21509 fi
21510
21511 if test $ok_so_far = yes; then
21512 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21513 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21514 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21515 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 fi
21518 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21519 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21520 else
21521 # Is the header compilable?
21522 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21523 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 $ac_includes_default
21531 #include <netinet/in.h>
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21535 (eval $ac_compile) 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try='test -z "$ac_c_werror_flag"
21543 || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_header_compiler=yes
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_header_compiler=no
21561 fi
21562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21564 echo "${ECHO_T}$ac_header_compiler" >&6
21565
21566 # Is the header present?
21567 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21568 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 #include <netinet/in.h>
21576 _ACEOF
21577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } >/dev/null; then
21585 if test -s conftest.err; then
21586 ac_cpp_err=$ac_c_preproc_warn_flag
21587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21588 else
21589 ac_cpp_err=
21590 fi
21591 else
21592 ac_cpp_err=yes
21593 fi
21594 if test -z "$ac_cpp_err"; then
21595 ac_header_preproc=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ac_header_preproc=no
21601 fi
21602 rm -f conftest.err conftest.$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21604 echo "${ECHO_T}$ac_header_preproc" >&6
21605
21606 # So? What about this header?
21607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21608 yes:no: )
21609 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21610 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21612 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21613 ac_header_preproc=yes
21614 ;;
21615 no:yes:* )
21616 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21617 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21618 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21619 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21621 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21623 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21625 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21627 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21628 (
21629 cat <<\_ASBOX
21630 ## ------------------------------------------ ##
21631 ## Report this to the AC_PACKAGE_NAME lists. ##
21632 ## ------------------------------------------ ##
21633 _ASBOX
21634 ) |
21635 sed "s/^/$as_me: WARNING: /" >&2
21636 ;;
21637 esac
21638 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21639 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21640 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643 ac_cv_header_netinet_in_h=$ac_header_preproc
21644 fi
21645 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21647
21648 fi
21649 if test $ac_cv_header_netinet_in_h = yes; then
21650 :
21651 else
21652 ok_so_far=no
21653 fi
21654
21655
21656 fi
21657 if test $ok_so_far = yes; then
21658 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21659 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21660 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21661 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 fi
21664 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21665 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21666 else
21667 # Is the header compilable?
21668 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21669 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <arpa/inet.h>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681 (eval $ac_compile) 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
21688 { ac_try='test -z "$ac_c_werror_flag"
21689 || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_header_compiler=yes
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 ac_header_compiler=no
21707 fi
21708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6
21711
21712 # Is the header present?
21713 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21714 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <arpa/inet.h>
21722 _ACEOF
21723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } >/dev/null; then
21731 if test -s conftest.err; then
21732 ac_cpp_err=$ac_c_preproc_warn_flag
21733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21734 else
21735 ac_cpp_err=
21736 fi
21737 else
21738 ac_cpp_err=yes
21739 fi
21740 if test -z "$ac_cpp_err"; then
21741 ac_header_preproc=yes
21742 else
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ac_header_preproc=no
21747 fi
21748 rm -f conftest.err conftest.$ac_ext
21749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6
21751
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 yes:no: )
21755 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
21760 ;;
21761 no:yes:* )
21762 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21774 (
21775 cat <<\_ASBOX
21776 ## ------------------------------------------ ##
21777 ## Report this to the AC_PACKAGE_NAME lists. ##
21778 ## ------------------------------------------ ##
21779 _ASBOX
21780 ) |
21781 sed "s/^/$as_me: WARNING: /" >&2
21782 ;;
21783 esac
21784 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21785 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21786 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 ac_cv_header_arpa_inet_h=$ac_header_preproc
21790 fi
21791 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21792 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21793
21794 fi
21795 if test $ac_cv_header_arpa_inet_h = yes; then
21796 :
21797 else
21798 ok_so_far=no
21799 fi
21800
21801
21802 fi
21803 if test $ok_so_far = yes; then
21804
21805 cat >>confdefs.h <<\_ACEOF
21806 #define HAVE_INET_SOCKETS 1
21807 _ACEOF
21808
21809 fi
21810
21811
21812 for ac_header in sys/ioctl.h
21813 do
21814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21816 echo "$as_me:$LINENO: checking for $ac_header" >&5
21817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 fi
21821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21823 else
21824 # Is the header compilable?
21825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21835 _ACEOF
21836 rm -f conftest.$ac_objext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21838 (eval $ac_compile) 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try='test -z "$ac_c_werror_flag"
21846 || test ! -s conftest.err'
21847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21848 (eval $ac_try) 2>&5
21849 ac_status=$?
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; } &&
21852 { ac_try='test -s conftest.$ac_objext'
21853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21854 (eval $ac_try) 2>&5
21855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21858 ac_header_compiler=yes
21859 else
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863 ac_header_compiler=no
21864 fi
21865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21867 echo "${ECHO_T}$ac_header_compiler" >&6
21868
21869 # Is the header present?
21870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 #include <$ac_header>
21879 _ACEOF
21880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } >/dev/null; then
21888 if test -s conftest.err; then
21889 ac_cpp_err=$ac_c_preproc_warn_flag
21890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21891 else
21892 ac_cpp_err=
21893 fi
21894 else
21895 ac_cpp_err=yes
21896 fi
21897 if test -z "$ac_cpp_err"; then
21898 ac_header_preproc=yes
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 ac_header_preproc=no
21904 fi
21905 rm -f conftest.err conftest.$ac_ext
21906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21907 echo "${ECHO_T}$ac_header_preproc" >&6
21908
21909 # So? What about this header?
21910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21911 yes:no: )
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21916 ac_header_preproc=yes
21917 ;;
21918 no:yes:* )
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21931 (
21932 cat <<\_ASBOX
21933 ## ------------------------------------------ ##
21934 ## Report this to the AC_PACKAGE_NAME lists. ##
21935 ## ------------------------------------------ ##
21936 _ASBOX
21937 ) |
21938 sed "s/^/$as_me: WARNING: /" >&2
21939 ;;
21940 esac
21941 echo "$as_me:$LINENO: checking for $ac_header" >&5
21942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946 eval "$as_ac_Header=\$ac_header_preproc"
21947 fi
21948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21950
21951 fi
21952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21953 cat >>confdefs.h <<_ACEOF
21954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21955 _ACEOF
21956
21957 fi
21958
21959 done
21960
21961
21962 if test -f /usr/lpp/X11/bin/smt.exp; then
21963
21964 cat >>confdefs.h <<\_ACEOF
21965 #define HAVE_AIX_SMT_EXP 1
21966 _ACEOF
21967
21968 fi
21969
21970 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21971 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21972 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21973 echo "$as_me:$LINENO: result: yes" >&5
21974 echo "${ECHO_T}yes" >&6
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define HAVE_DEV_PTMX 1
21978 _ACEOF
21979
21980 else
21981 echo "$as_me:$LINENO: result: no" >&5
21982 echo "${ECHO_T}no" >&6
21983 fi
21984
21985 echo "$as_me:$LINENO: checking for pid_t" >&5
21986 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21987 if test "${ac_cv_type_pid_t+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
21997 int
21998 main ()
21999 {
22000 if ((pid_t *) 0)
22001 return 0;
22002 if (sizeof (pid_t))
22003 return 0;
22004 ;
22005 return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22010 (eval $ac_compile) 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
22017 { ac_try='test -z "$ac_c_werror_flag"
22018 || test ! -s conftest.err'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest.$ac_objext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 ac_cv_type_pid_t=yes
22031 else
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 ac_cv_type_pid_t=no
22036 fi
22037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22038 fi
22039 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22040 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22041 if test $ac_cv_type_pid_t = yes; then
22042 :
22043 else
22044
22045 cat >>confdefs.h <<_ACEOF
22046 #define pid_t int
22047 _ACEOF
22048
22049 fi
22050
22051
22052
22053 for ac_header in unistd.h vfork.h
22054 do
22055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22057 echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 fi
22062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22064 else
22065 # Is the header compilable?
22066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22079 (eval $ac_compile) 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try='test -z "$ac_c_werror_flag"
22087 || test ! -s conftest.err'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; } &&
22093 { ac_try='test -s conftest.$ac_objext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 ac_header_compiler=yes
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104 ac_header_compiler=no
22105 fi
22106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22108 echo "${ECHO_T}$ac_header_compiler" >&6
22109
22110 # Is the header present?
22111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h. */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <$ac_header>
22120 _ACEOF
22121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22123 ac_status=$?
22124 grep -v '^ *+' conftest.er1 >conftest.err
22125 rm -f conftest.er1
22126 cat conftest.err >&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } >/dev/null; then
22129 if test -s conftest.err; then
22130 ac_cpp_err=$ac_c_preproc_warn_flag
22131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22132 else
22133 ac_cpp_err=
22134 fi
22135 else
22136 ac_cpp_err=yes
22137 fi
22138 if test -z "$ac_cpp_err"; then
22139 ac_header_preproc=yes
22140 else
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ac_header_preproc=no
22145 fi
22146 rm -f conftest.err conftest.$ac_ext
22147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22148 echo "${ECHO_T}$ac_header_preproc" >&6
22149
22150 # So? What about this header?
22151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22152 yes:no: )
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22157 ac_header_preproc=yes
22158 ;;
22159 no:yes:* )
22160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22172 (
22173 cat <<\_ASBOX
22174 ## ------------------------------------------ ##
22175 ## Report this to the AC_PACKAGE_NAME lists. ##
22176 ## ------------------------------------------ ##
22177 _ASBOX
22178 ) |
22179 sed "s/^/$as_me: WARNING: /" >&2
22180 ;;
22181 esac
22182 echo "$as_me:$LINENO: checking for $ac_header" >&5
22183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 else
22187 eval "$as_ac_Header=\$ac_header_preproc"
22188 fi
22189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22191
22192 fi
22193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22194 cat >>confdefs.h <<_ACEOF
22195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22196 _ACEOF
22197
22198 fi
22199
22200 done
22201
22202
22203
22204 for ac_func in fork vfork
22205 do
22206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22207 echo "$as_me:$LINENO: checking for $ac_func" >&5
22208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22209 if eval "test \"\${$as_ac_var+set}\" = set"; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h. */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define $ac_func innocuous_$ac_func
22221
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char $ac_func (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22226
22227 #ifdef __STDC__
22228 # include <limits.h>
22229 #else
22230 # include <assert.h>
22231 #endif
22232
22233 #undef $ac_func
22234
22235 /* Override any gcc2 internal prototype to avoid an error. */
22236 #ifdef __cplusplus
22237 extern "C"
22238 {
22239 #endif
22240 /* We use char because int might match the return type of a gcc2
22241 builtin and then its argument prototype would still apply. */
22242 char $ac_func ();
22243 /* The GNU C library defines this for functions which it implements
22244 to always fail with ENOSYS. Some functions are actually named
22245 something starting with __ and the normal name is an alias. */
22246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22247 choke me
22248 #else
22249 char (*f) () = $ac_func;
22250 #endif
22251 #ifdef __cplusplus
22252 }
22253 #endif
22254
22255 int
22256 main ()
22257 {
22258 return f != $ac_func;
22259 ;
22260 return 0;
22261 }
22262 _ACEOF
22263 rm -f conftest.$ac_objext conftest$ac_exeext
22264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22265 (eval $ac_link) 2>conftest.er1
22266 ac_status=$?
22267 grep -v '^ *+' conftest.er1 >conftest.err
22268 rm -f conftest.er1
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try='test -z "$ac_c_werror_flag"
22273 || test ! -s conftest.err'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; } &&
22279 { ac_try='test -s conftest$ac_exeext'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 eval "$as_ac_var=yes"
22286 else
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290 eval "$as_ac_var=no"
22291 fi
22292 rm -f conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext conftest.$ac_ext
22294 fi
22295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22297 if test `eval echo '${'$as_ac_var'}'` = yes; then
22298 cat >>confdefs.h <<_ACEOF
22299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22300 _ACEOF
22301
22302 fi
22303 done
22304
22305 if test "x$ac_cv_func_fork" = xyes; then
22306 echo "$as_me:$LINENO: checking for working fork" >&5
22307 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22308 if test "${ac_cv_func_fork_works+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311 if test "$cross_compiling" = yes; then
22312 ac_cv_func_fork_works=cross
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* By Ruediger Kuhlmann. */
22316 #include <sys/types.h>
22317 #if HAVE_UNISTD_H
22318 # include <unistd.h>
22319 #endif
22320 /* Some systems only have a dummy stub for fork() */
22321 int main ()
22322 {
22323 if (fork() < 0)
22324 exit (1);
22325 exit (0);
22326 }
22327 _ACEOF
22328 rm -f conftest$ac_exeext
22329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22330 (eval $ac_link) 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_func_fork_works=yes
22340 else
22341 echo "$as_me: program exited with status $ac_status" >&5
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345 ( exit $ac_status )
22346 ac_cv_func_fork_works=no
22347 fi
22348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22349 fi
22350 fi
22351 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22352 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22353
22354 else
22355 ac_cv_func_fork_works=$ac_cv_func_fork
22356 fi
22357 if test "x$ac_cv_func_fork_works" = xcross; then
22358 case $host in
22359 *-*-amigaos* | *-*-msdosdjgpp*)
22360 # Override, as these systems have only a dummy fork() stub
22361 ac_cv_func_fork_works=no
22362 ;;
22363 *)
22364 ac_cv_func_fork_works=yes
22365 ;;
22366 esac
22367 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22368 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22369 fi
22370 ac_cv_func_vfork_works=$ac_cv_func_vfork
22371 if test "x$ac_cv_func_vfork" = xyes; then
22372 echo "$as_me:$LINENO: checking for working vfork" >&5
22373 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22374 if test "${ac_cv_func_vfork_works+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377 if test "$cross_compiling" = yes; then
22378 ac_cv_func_vfork_works=cross
22379 else
22380 cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h. */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 /* Thanks to Paul Eggert for this test. */
22387 #include <stdio.h>
22388 #include <stdlib.h>
22389 #include <sys/types.h>
22390 #include <sys/stat.h>
22391 #include <sys/wait.h>
22392 #if HAVE_UNISTD_H
22393 # include <unistd.h>
22394 #endif
22395 #if HAVE_VFORK_H
22396 # include <vfork.h>
22397 #endif
22398 /* On some sparc systems, changes by the child to local and incoming
22399 argument registers are propagated back to the parent. The compiler
22400 is told about this with #include <vfork.h>, but some compilers
22401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22402 static variable whose address is put into a register that is
22403 clobbered by the vfork. */
22404 static void
22405 #ifdef __cplusplus
22406 sparc_address_test (int arg)
22407 # else
22408 sparc_address_test (arg) int arg;
22409 #endif
22410 {
22411 static pid_t child;
22412 if (!child) {
22413 child = vfork ();
22414 if (child < 0) {
22415 perror ("vfork");
22416 _exit(2);
22417 }
22418 if (!child) {
22419 arg = getpid();
22420 write(-1, "", 0);
22421 _exit (arg);
22422 }
22423 }
22424 }
22425
22426 int
22427 main ()
22428 {
22429 pid_t parent = getpid ();
22430 pid_t child;
22431
22432 sparc_address_test (0);
22433
22434 child = vfork ();
22435
22436 if (child == 0) {
22437 /* Here is another test for sparc vfork register problems. This
22438 test uses lots of local variables, at least as many local
22439 variables as main has allocated so far including compiler
22440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22442 reuse the register of parent for one of the local variables,
22443 since it will think that parent can't possibly be used any more
22444 in this routine. Assigning to the local variable will thus
22445 munge parent in the parent process. */
22446 pid_t
22447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22449 /* Convince the compiler that p..p7 are live; otherwise, it might
22450 use the same hardware register for all 8 local variables. */
22451 if (p != p1 || p != p2 || p != p3 || p != p4
22452 || p != p5 || p != p6 || p != p7)
22453 _exit(1);
22454
22455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22456 from child file descriptors. If the child closes a descriptor
22457 before it execs or exits, this munges the parent's descriptor
22458 as well. Test for this by closing stdout in the child. */
22459 _exit(close(fileno(stdout)) != 0);
22460 } else {
22461 int status;
22462 struct stat st;
22463
22464 while (wait(&status) != child)
22465 ;
22466 exit(
22467 /* Was there some problem with vforking? */
22468 child < 0
22469
22470 /* Did the child fail? (This shouldn't happen.) */
22471 || status
22472
22473 /* Did the vfork/compiler bug occur? */
22474 || parent != getpid()
22475
22476 /* Did the file descriptor bug occur? */
22477 || fstat(fileno(stdout), &st) != 0
22478 );
22479 }
22480 }
22481 _ACEOF
22482 rm -f conftest$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_cv_func_vfork_works=yes
22494 else
22495 echo "$as_me: program exited with status $ac_status" >&5
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499 ( exit $ac_status )
22500 ac_cv_func_vfork_works=no
22501 fi
22502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 fi
22505 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22506 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22507
22508 fi;
22509 if test "x$ac_cv_func_fork_works" = xcross; then
22510 ac_cv_func_vfork_works=$ac_cv_func_vfork
22511 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22512 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22513 fi
22514
22515 if test "x$ac_cv_func_vfork_works" = xyes; then
22516
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_WORKING_VFORK 1
22519 _ACEOF
22520
22521 else
22522
22523 cat >>confdefs.h <<\_ACEOF
22524 #define vfork fork
22525 _ACEOF
22526
22527 fi
22528 if test "x$ac_cv_func_fork_works" = xyes; then
22529
22530 cat >>confdefs.h <<\_ACEOF
22531 #define HAVE_WORKING_FORK 1
22532 _ACEOF
22533
22534 fi
22535
22536
22537 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22538 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22539 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 #include <langinfo.h>
22549 int
22550 main ()
22551 {
22552 char* cs = nl_langinfo(CODESET);
22553 ;
22554 return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext conftest$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -z "$ac_c_werror_flag"
22567 || test ! -s conftest.err'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; } &&
22573 { ac_try='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 emacs_cv_langinfo_codeset=yes
22580 else
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 emacs_cv_langinfo_codeset=no
22585 fi
22586 rm -f conftest.err conftest.$ac_objext \
22587 conftest$ac_exeext conftest.$ac_ext
22588
22589 fi
22590 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22591 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22592 if test $emacs_cv_langinfo_codeset = yes; then
22593
22594 cat >>confdefs.h <<\_ACEOF
22595 #define HAVE_LANGINFO_CODESET 1
22596 _ACEOF
22597
22598 fi
22599
22600 echo "$as_me:$LINENO: checking for size_t" >&5
22601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22602 if test "${ac_cv_type_size_t+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h. */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 $ac_includes_default
22612 int
22613 main ()
22614 {
22615 if ((size_t *) 0)
22616 return 0;
22617 if (sizeof (size_t))
22618 return 0;
22619 ;
22620 return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22625 (eval $ac_compile) 2>conftest.er1
22626 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try='test -z "$ac_c_werror_flag"
22633 || test ! -s conftest.err'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; } &&
22639 { ac_try='test -s conftest.$ac_objext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ac_cv_type_size_t=yes
22646 else
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ac_cv_type_size_t=no
22651 fi
22652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22653 fi
22654 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22655 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22656 if test $ac_cv_type_size_t = yes; then
22657
22658 cat >>confdefs.h <<_ACEOF
22659 #define HAVE_SIZE_T 1
22660 _ACEOF
22661
22662
22663 fi
22664
22665
22666 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22667 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22668 if test "${ac_cv_type_mbstate_t+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 # include <wchar.h>
22679 int
22680 main ()
22681 {
22682 mbstate_t x; return sizeof x;
22683 ;
22684 return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689 (eval $ac_compile) 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest.$ac_objext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 ac_cv_type_mbstate_t=yes
22710 else
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ac_cv_type_mbstate_t=no
22715 fi
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717 fi
22718 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22719 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22720 if test $ac_cv_type_mbstate_t = yes; then
22721
22722 cat >>confdefs.h <<\_ACEOF
22723 #define HAVE_MBSTATE_T 1
22724 _ACEOF
22725
22726 else
22727
22728 cat >>confdefs.h <<\_ACEOF
22729 #define mbstate_t int
22730 _ACEOF
22731
22732 fi
22733
22734 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22735 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22736 if test "${emacs_cv_c_restrict+set}" = set; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 void fred (int *restrict x);
22746 int
22747 main ()
22748 {
22749
22750 ;
22751 return 0;
22752 }
22753 _ACEOF
22754 rm -f conftest.$ac_objext
22755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22756 (eval $ac_compile) 2>conftest.er1
22757 ac_status=$?
22758 grep -v '^ *+' conftest.er1 >conftest.err
22759 rm -f conftest.er1
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } &&
22763 { ac_try='test -z "$ac_c_werror_flag"
22764 || test ! -s conftest.err'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; } &&
22770 { ac_try='test -s conftest.$ac_objext'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }; then
22776 emacs_cv_c_restrict=yes
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h. */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 void fred (int *__restrict x);
22788 int
22789 main ()
22790 {
22791
22792 ;
22793 return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
22805 { ac_try='test -z "$ac_c_werror_flag"
22806 || test ! -s conftest.err'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try='test -s conftest.$ac_objext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22815 ac_status=$?
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 emacs_cv_c_restrict=__restrict
22819 else
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 emacs_cv_c_restrict=no
22824 fi
22825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22826 fi
22827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22828 fi
22829 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22830 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22831 case "$emacs_cv_c_restrict" in
22832 yes) emacs_restrict=restrict;;
22833 no) emacs_restrict="";;
22834 *) emacs_restrict="$emacs_cv_c_restrict";;
22835 esac
22836 if test "$emacs_restrict" != __restrict; then
22837
22838 cat >>confdefs.h <<_ACEOF
22839 #define __restrict $emacs_restrict
22840 _ACEOF
22841
22842 fi
22843
22844 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22845 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22846 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 void fred (int x[__restrict]);
22856 int
22857 main ()
22858 {
22859
22860 ;
22861 return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22866 (eval $ac_compile) 2>conftest.er1
22867 ac_status=$?
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } &&
22873 { ac_try='test -z "$ac_c_werror_flag"
22874 || test ! -s conftest.err'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; } &&
22880 { ac_try='test -s conftest.$ac_objext'
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; }; then
22886 emacs_cv_c_restrict_arr=yes
22887 else
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891 emacs_cv_c_restrict_arr=no
22892 fi
22893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22894 fi
22895 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22896 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22897 if test "$emacs_cv_c_restrict_arr" = yes; then
22898
22899 cat >>confdefs.h <<\_ACEOF
22900 #define __restrict_arr __restrict
22901 _ACEOF
22902
22903 fi
22904
22905
22906
22907 # Set up the CFLAGS for real compilation, so we can substitute it.
22908 CFLAGS="$REAL_CFLAGS"
22909 CPPFLAGS="$REAL_CPPFLAGS"
22910
22911 #### Find out which version of Emacs this is.
22912 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22913 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22914 if test x"${version}" = x; then
22915 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22916 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22917 { (exit 1); exit 1; }; }
22918 fi
22919
22920 ### Specify what sort of things we'll be editing into Makefile and config.h.
22921 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957 cat >>confdefs.h <<_ACEOF
22958 #define EMACS_CONFIGURATION "${canonical}"
22959 _ACEOF
22960
22961
22962 cat >>confdefs.h <<_ACEOF
22963 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22964 _ACEOF
22965
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define config_machfile "${machfile}"
22969 _ACEOF
22970
22971
22972 cat >>confdefs.h <<_ACEOF
22973 #define config_opsysfile "${opsysfile}"
22974 _ACEOF
22975
22976
22977 cat >>confdefs.h <<_ACEOF
22978 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22979 _ACEOF
22980
22981
22982 cat >>confdefs.h <<_ACEOF
22983 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22984 _ACEOF
22985
22986
22987 cat >>confdefs.h <<_ACEOF
22988 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22989 _ACEOF
22990
22991
22992 cat >>confdefs.h <<_ACEOF
22993 #define UNEXEC_SRC ${UNEXEC_SRC}
22994 _ACEOF
22995
22996
22997 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22998
22999 cat >>confdefs.h <<\_ACEOF
23000 #define HAVE_X_WINDOWS 1
23001 _ACEOF
23002
23003 fi
23004 if test "${USE_X_TOOLKIT}" != "none" ; then
23005
23006 cat >>confdefs.h <<\_ACEOF
23007 #define USE_X_TOOLKIT 1
23008 _ACEOF
23009
23010 fi
23011 if test "${HAVE_X11}" = "yes" ; then
23012
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_X11 1
23015 _ACEOF
23016
23017 fi
23018 if test "${HAVE_XFREE386}" = "yes" ; then
23019
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_XFREE386 1
23022 _ACEOF
23023
23024 fi
23025 if test "${HAVE_MENUS}" = "yes" ; then
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_MENUS 1
23029 _ACEOF
23030
23031 fi
23032 if test "${GNU_MALLOC}" = "yes" ; then
23033
23034 cat >>confdefs.h <<\_ACEOF
23035 #define GNU_MALLOC 1
23036 _ACEOF
23037
23038 fi
23039 if test "${REL_ALLOC}" = "yes" ; then
23040
23041 cat >>confdefs.h <<\_ACEOF
23042 #define REL_ALLOC 1
23043 _ACEOF
23044
23045 fi
23046
23047
23048
23049
23050
23051 #### Report on what we decided to do.
23052 #### Report GTK as a toolkit, even if it doesn't use Xt.
23053 #### It makes printing result more understandable as using GTK sets
23054 #### toolkit_scroll_bars to yes by default.
23055 if test "${HAVE_GTK}" = "yes"; then
23056 USE_X_TOOLKIT=GTK
23057 fi
23058
23059 echo "
23060 Configured for \`${canonical}'.
23061
23062 Where should the build process find the source code? ${srcdir}
23063 What operating system and machine description files should Emacs use?
23064 \`${opsysfile}' and \`${machfile}'
23065 What compiler should emacs be built with? ${CC} ${CFLAGS}
23066 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23067 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23068 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23069 What window system should Emacs use? ${window_system}
23070 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23071
23072 if test -n "${x_includes}"; then
23073 echo " Where do we find X Windows header files? ${x_includes}"
23074 else
23075 echo " Where do we find X Windows header files? Standard dirs"
23076 fi
23077 if test -n "${x_libraries}"; then
23078 echo " Where do we find X Windows libraries? ${x_libraries}"
23079 else
23080 echo " Where do we find X Windows libraries? Standard dirs"
23081 fi
23082
23083 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23084 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23085 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23086 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23087 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23088 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23089 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23090 echo
23091
23092 if test $USE_XASSERTS = yes; then
23093 echo " Compiling with asserts turned on."
23094 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23095 echo
23096 fi
23097
23098
23099
23100 # Remove any trailing slashes in these variables.
23101 test "${prefix}" != NONE &&
23102 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23103 test "${exec_prefix}" != NONE &&
23104 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23105
23106 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23107 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23108 ## from Makefile.c can correctly provide the arg `-traditional' to the
23109 ## C preprocessor.
23110
23111 cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h. */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 yes..yes
23118 _ACEOF
23119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23120 $EGREP "yes..yes" >/dev/null 2>&1; then
23121 CPP_NEED_TRADITIONAL=no
23122 else
23123 CPP_NEED_TRADITIONAL=yes
23124 fi
23125 rm -f conftest*
23126
23127
23128 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"
23129 ac_config_commands="$ac_config_commands default"
23130 cat >confcache <<\_ACEOF
23131 # This file is a shell script that caches the results of configure
23132 # tests run on this system so they can be shared between configure
23133 # scripts and configure runs, see configure's option --config-cache.
23134 # It is not useful on other systems. If it contains results you don't
23135 # want to keep, you may remove or edit it.
23136 #
23137 # config.status only pays attention to the cache file if you give it
23138 # the --recheck option to rerun configure.
23139 #
23140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23142 # following values.
23143
23144 _ACEOF
23145
23146 # The following way of writing the cache mishandles newlines in values,
23147 # but we know of no workaround that is simple, portable, and efficient.
23148 # So, don't put newlines in cache variables' values.
23149 # Ultrix sh set writes to stderr and can't be redirected directly,
23150 # and sets the high bit in the cache file unless we assign to the vars.
23151 {
23152 (set) 2>&1 |
23153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23154 *ac_space=\ *)
23155 # `set' does not quote correctly, so add quotes (double-quote
23156 # substitution turns \\\\ into \\, and sed turns \\ into \).
23157 sed -n \
23158 "s/'/'\\\\''/g;
23159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23160 ;;
23161 *)
23162 # `set' quotes correctly as required by POSIX, so do not add quotes.
23163 sed -n \
23164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23165 ;;
23166 esac;
23167 } |
23168 sed '
23169 t clear
23170 : clear
23171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23172 t end
23173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23174 : end' >>confcache
23175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23176 if test -w $cache_file; then
23177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23178 cat confcache >$cache_file
23179 else
23180 echo "not updating unwritable cache $cache_file"
23181 fi
23182 fi
23183 rm -f confcache
23184
23185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23186 # Let make expand exec_prefix.
23187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23188
23189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23191 # trailing colons and then remove the whole line if VPATH becomes empty
23192 # (actually we leave an empty line to preserve line numbers).
23193 if test "x$srcdir" = x.; then
23194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23195 s/:*\$(srcdir):*/:/;
23196 s/:*\${srcdir}:*/:/;
23197 s/:*@srcdir@:*/:/;
23198 s/^\([^=]*=[ ]*\):*/\1/;
23199 s/:*$//;
23200 s/^[^=]*=[ ]*$//;
23201 }'
23202 fi
23203
23204 DEFS=-DHAVE_CONFIG_H
23205
23206 ac_libobjs=
23207 ac_ltlibobjs=
23208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23209 # 1. Remove the extension, and $U if already installed.
23210 ac_i=`echo "$ac_i" |
23211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23212 # 2. Add them.
23213 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23214 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23215 done
23216 LIBOBJS=$ac_libobjs
23217
23218 LTLIBOBJS=$ac_ltlibobjs
23219
23220
23221
23222 : ${CONFIG_STATUS=./config.status}
23223 ac_clean_files_save=$ac_clean_files
23224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23227 cat >$CONFIG_STATUS <<_ACEOF
23228 #! $SHELL
23229 # Generated by $as_me.
23230 # Run this file to recreate the current configuration.
23231 # Compiler output produced by configure, useful for debugging
23232 # configure, is in config.log if it exists.
23233
23234 debug=false
23235 ac_cs_recheck=false
23236 ac_cs_silent=false
23237 SHELL=\${CONFIG_SHELL-$SHELL}
23238 _ACEOF
23239
23240 cat >>$CONFIG_STATUS <<\_ACEOF
23241 ## --------------------- ##
23242 ## M4sh Initialization. ##
23243 ## --------------------- ##
23244
23245 # Be Bourne compatible
23246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23247 emulate sh
23248 NULLCMD=:
23249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23250 # is contrary to our usage. Disable this feature.
23251 alias -g '${1+"$@"}'='"$@"'
23252 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23253 set -o posix
23254 fi
23255 DUALCASE=1; export DUALCASE # for MKS sh
23256
23257 # Support unset when possible.
23258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23259 as_unset=unset
23260 else
23261 as_unset=false
23262 fi
23263
23264
23265 # Work around bugs in pre-3.0 UWIN ksh.
23266 $as_unset ENV MAIL MAILPATH
23267 PS1='$ '
23268 PS2='> '
23269 PS4='+ '
23270
23271 # NLS nuisances.
23272 for as_var in \
23273 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23274 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23275 LC_TELEPHONE LC_TIME
23276 do
23277 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23278 eval $as_var=C; export $as_var
23279 else
23280 $as_unset $as_var
23281 fi
23282 done
23283
23284 # Required to use basename.
23285 if expr a : '\(a\)' >/dev/null 2>&1; then
23286 as_expr=expr
23287 else
23288 as_expr=false
23289 fi
23290
23291 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23292 as_basename=basename
23293 else
23294 as_basename=false
23295 fi
23296
23297
23298 # Name of the executable.
23299 as_me=`$as_basename "$0" ||
23300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23301 X"$0" : 'X\(//\)$' \| \
23302 X"$0" : 'X\(/\)$' \| \
23303 . : '\(.\)' 2>/dev/null ||
23304 echo X/"$0" |
23305 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23306 /^X\/\(\/\/\)$/{ s//\1/; q; }
23307 /^X\/\(\/\).*/{ s//\1/; q; }
23308 s/.*/./; q'`
23309
23310
23311 # PATH needs CR, and LINENO needs CR and PATH.
23312 # Avoid depending upon Character Ranges.
23313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23316 as_cr_digits='0123456789'
23317 as_cr_alnum=$as_cr_Letters$as_cr_digits
23318
23319 # The user is always right.
23320 if test "${PATH_SEPARATOR+set}" != set; then
23321 echo "#! /bin/sh" >conf$$.sh
23322 echo "exit 0" >>conf$$.sh
23323 chmod +x conf$$.sh
23324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23325 PATH_SEPARATOR=';'
23326 else
23327 PATH_SEPARATOR=:
23328 fi
23329 rm -f conf$$.sh
23330 fi
23331
23332
23333 as_lineno_1=$LINENO
23334 as_lineno_2=$LINENO
23335 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23336 test "x$as_lineno_1" != "x$as_lineno_2" &&
23337 test "x$as_lineno_3" = "x$as_lineno_2" || {
23338 # Find who we are. Look in the path if we contain no path at all
23339 # relative or not.
23340 case $0 in
23341 *[\\/]* ) as_myself=$0 ;;
23342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23343 for as_dir in $PATH
23344 do
23345 IFS=$as_save_IFS
23346 test -z "$as_dir" && as_dir=.
23347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23348 done
23349
23350 ;;
23351 esac
23352 # We did not find ourselves, most probably we were run as `sh COMMAND'
23353 # in which case we are not to be found in the path.
23354 if test "x$as_myself" = x; then
23355 as_myself=$0
23356 fi
23357 if test ! -f "$as_myself"; then
23358 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23359 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23360 { (exit 1); exit 1; }; }
23361 fi
23362 case $CONFIG_SHELL in
23363 '')
23364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23365 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23366 do
23367 IFS=$as_save_IFS
23368 test -z "$as_dir" && as_dir=.
23369 for as_base in sh bash ksh sh5; do
23370 case $as_dir in
23371 /*)
23372 if ("$as_dir/$as_base" -c '
23373 as_lineno_1=$LINENO
23374 as_lineno_2=$LINENO
23375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23376 test "x$as_lineno_1" != "x$as_lineno_2" &&
23377 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23378 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23379 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23380 CONFIG_SHELL=$as_dir/$as_base
23381 export CONFIG_SHELL
23382 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23383 fi;;
23384 esac
23385 done
23386 done
23387 ;;
23388 esac
23389
23390 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23391 # uniformly replaced by the line number. The first 'sed' inserts a
23392 # line-number line before each line; the second 'sed' does the real
23393 # work. The second script uses 'N' to pair each line-number line
23394 # with the numbered line, and appends trailing '-' during
23395 # substitution so that $LINENO is not a special case at line end.
23396 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23397 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23398 sed '=' <$as_myself |
23399 sed '
23400 N
23401 s,$,-,
23402 : loop
23403 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23404 t loop
23405 s,-$,,
23406 s,^['$as_cr_digits']*\n,,
23407 ' >$as_me.lineno &&
23408 chmod +x $as_me.lineno ||
23409 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23410 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23411 { (exit 1); exit 1; }; }
23412
23413 # Don't try to exec as it changes $[0], causing all sort of problems
23414 # (the dirname of $[0] is not the place where we might find the
23415 # original and so on. Autoconf is especially sensible to this).
23416 . ./$as_me.lineno
23417 # Exit status is that of the last command.
23418 exit
23419 }
23420
23421
23422 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23423 *c*,-n*) ECHO_N= ECHO_C='
23424 ' ECHO_T=' ' ;;
23425 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23426 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23427 esac
23428
23429 if expr a : '\(a\)' >/dev/null 2>&1; then
23430 as_expr=expr
23431 else
23432 as_expr=false
23433 fi
23434
23435 rm -f conf$$ conf$$.exe conf$$.file
23436 echo >conf$$.file
23437 if ln -s conf$$.file conf$$ 2>/dev/null; then
23438 # We could just check for DJGPP; but this test a) works b) is more generic
23439 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23440 if test -f conf$$.exe; then
23441 # Don't use ln at all; we don't have any links
23442 as_ln_s='cp -p'
23443 else
23444 as_ln_s='ln -s'
23445 fi
23446 elif ln conf$$.file conf$$ 2>/dev/null; then
23447 as_ln_s=ln
23448 else
23449 as_ln_s='cp -p'
23450 fi
23451 rm -f conf$$ conf$$.exe conf$$.file
23452
23453 if mkdir -p . 2>/dev/null; then
23454 as_mkdir_p=:
23455 else
23456 test -d ./-p && rmdir ./-p
23457 as_mkdir_p=false
23458 fi
23459
23460 as_executable_p="test -f"
23461
23462 # Sed expression to map a string onto a valid CPP name.
23463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23464
23465 # Sed expression to map a string onto a valid variable name.
23466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23467
23468
23469 # IFS
23470 # We need space, tab and new line, in precisely that order.
23471 as_nl='
23472 '
23473 IFS=" $as_nl"
23474
23475 # CDPATH.
23476 $as_unset CDPATH
23477
23478 exec 6>&1
23479
23480 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23481 # report actual input values of CONFIG_FILES etc. instead of their
23482 # values after options handling. Logging --version etc. is OK.
23483 exec 5>>config.log
23484 {
23485 echo
23486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23487 ## Running $as_me. ##
23488 _ASBOX
23489 } >&5
23490 cat >&5 <<_CSEOF
23491
23492 This file was extended by $as_me, which was
23493 generated by GNU Autoconf 2.59. Invocation command line was
23494
23495 CONFIG_FILES = $CONFIG_FILES
23496 CONFIG_HEADERS = $CONFIG_HEADERS
23497 CONFIG_LINKS = $CONFIG_LINKS
23498 CONFIG_COMMANDS = $CONFIG_COMMANDS
23499 $ $0 $@
23500
23501 _CSEOF
23502 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23503 echo >&5
23504 _ACEOF
23505
23506 # Files that config.status was made for.
23507 if test -n "$ac_config_files"; then
23508 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23509 fi
23510
23511 if test -n "$ac_config_headers"; then
23512 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23513 fi
23514
23515 if test -n "$ac_config_links"; then
23516 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23517 fi
23518
23519 if test -n "$ac_config_commands"; then
23520 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23521 fi
23522
23523 cat >>$CONFIG_STATUS <<\_ACEOF
23524
23525 ac_cs_usage="\
23526 \`$as_me' instantiates files from templates according to the
23527 current configuration.
23528
23529 Usage: $0 [OPTIONS] [FILE]...
23530
23531 -h, --help print this help, then exit
23532 -V, --version print version number, then exit
23533 -q, --quiet do not print progress messages
23534 -d, --debug don't remove temporary files
23535 --recheck update $as_me by reconfiguring in the same conditions
23536 --file=FILE[:TEMPLATE]
23537 instantiate the configuration file FILE
23538 --header=FILE[:TEMPLATE]
23539 instantiate the configuration header FILE
23540
23541 Configuration files:
23542 $config_files
23543
23544 Configuration headers:
23545 $config_headers
23546
23547 Configuration commands:
23548 $config_commands
23549
23550 Report bugs to <bug-autoconf@gnu.org>."
23551 _ACEOF
23552
23553 cat >>$CONFIG_STATUS <<_ACEOF
23554 ac_cs_version="\\
23555 config.status
23556 configured by $0, generated by GNU Autoconf 2.59,
23557 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23558
23559 Copyright (C) 2003 Free Software Foundation, Inc.
23560 This config.status script is free software; the Free Software Foundation
23561 gives unlimited permission to copy, distribute and modify it."
23562 srcdir=$srcdir
23563 INSTALL="$INSTALL"
23564 _ACEOF
23565
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567 # If no file are specified by the user, then we need to provide default
23568 # value. By we need to know if files were specified by the user.
23569 ac_need_defaults=:
23570 while test $# != 0
23571 do
23572 case $1 in
23573 --*=*)
23574 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23575 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23576 ac_shift=:
23577 ;;
23578 -*)
23579 ac_option=$1
23580 ac_optarg=$2
23581 ac_shift=shift
23582 ;;
23583 *) # This is not an option, so the user has probably given explicit
23584 # arguments.
23585 ac_option=$1
23586 ac_need_defaults=false;;
23587 esac
23588
23589 case $ac_option in
23590 # Handling of the options.
23591 _ACEOF
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23594 ac_cs_recheck=: ;;
23595 --version | --vers* | -V )
23596 echo "$ac_cs_version"; exit 0 ;;
23597 --he | --h)
23598 # Conflict between --help and --header
23599 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23600 Try \`$0 --help' for more information." >&5
23601 echo "$as_me: error: ambiguous option: $1
23602 Try \`$0 --help' for more information." >&2;}
23603 { (exit 1); exit 1; }; };;
23604 --help | --hel | -h )
23605 echo "$ac_cs_usage"; exit 0 ;;
23606 --debug | --d* | -d )
23607 debug=: ;;
23608 --file | --fil | --fi | --f )
23609 $ac_shift
23610 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23611 ac_need_defaults=false;;
23612 --header | --heade | --head | --hea )
23613 $ac_shift
23614 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23615 ac_need_defaults=false;;
23616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23618 ac_cs_silent=: ;;
23619
23620 # This is an error.
23621 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23622 Try \`$0 --help' for more information." >&5
23623 echo "$as_me: error: unrecognized option: $1
23624 Try \`$0 --help' for more information." >&2;}
23625 { (exit 1); exit 1; }; } ;;
23626
23627 *) ac_config_targets="$ac_config_targets $1" ;;
23628
23629 esac
23630 shift
23631 done
23632
23633 ac_configure_extra_args=
23634
23635 if $ac_cs_silent; then
23636 exec 6>/dev/null
23637 ac_configure_extra_args="$ac_configure_extra_args --silent"
23638 fi
23639
23640 _ACEOF
23641 cat >>$CONFIG_STATUS <<_ACEOF
23642 if \$ac_cs_recheck; then
23643 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23644 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23645 fi
23646
23647 _ACEOF
23648
23649 cat >>$CONFIG_STATUS <<_ACEOF
23650 #
23651 # INIT-COMMANDS section.
23652 #
23653
23654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23655
23656 _ACEOF
23657
23658
23659
23660 cat >>$CONFIG_STATUS <<\_ACEOF
23661 for ac_config_target in $ac_config_targets
23662 do
23663 case "$ac_config_target" in
23664 # Handling of arguments.
23665 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23666 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23667 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23668 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23669 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23670 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23671 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23672 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23673 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23674 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23675 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23676 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23677 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23678 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23679 { (exit 1); exit 1; }; };;
23680 esac
23681 done
23682
23683 # If the user did not use the arguments to specify the items to instantiate,
23684 # then the envvar interface is used. Set only those that are not.
23685 # We use the long form for the default assignment because of an extremely
23686 # bizarre bug on SunOS 4.1.3.
23687 if $ac_need_defaults; then
23688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23691 fi
23692
23693 # Have a temporary directory for convenience. Make it in the build tree
23694 # simply because there is no reason to put it here, and in addition,
23695 # creating and moving files from /tmp can sometimes cause problems.
23696 # Create a temporary directory, and hook for its removal unless debugging.
23697 $debug ||
23698 {
23699 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23700 trap '{ (exit 1); exit 1; }' 1 2 13 15
23701 }
23702
23703 # Create a (secure) tmp directory for tmp files.
23704
23705 {
23706 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23707 test -n "$tmp" && test -d "$tmp"
23708 } ||
23709 {
23710 tmp=./confstat$$-$RANDOM
23711 (umask 077 && mkdir $tmp)
23712 } ||
23713 {
23714 echo "$me: cannot create a temporary directory in ." >&2
23715 { (exit 1); exit 1; }
23716 }
23717
23718 _ACEOF
23719
23720 cat >>$CONFIG_STATUS <<_ACEOF
23721
23722 #
23723 # CONFIG_FILES section.
23724 #
23725
23726 # No need to generate the scripts if there are no CONFIG_FILES.
23727 # This happens for instance when ./config.status config.h
23728 if test -n "\$CONFIG_FILES"; then
23729 # Protect against being on the right side of a sed subst in config.status.
23730 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23731 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23732 s,@SHELL@,$SHELL,;t t
23733 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23734 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23735 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23736 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23737 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23738 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23739 s,@exec_prefix@,$exec_prefix,;t t
23740 s,@prefix@,$prefix,;t t
23741 s,@program_transform_name@,$program_transform_name,;t t
23742 s,@bindir@,$bindir,;t t
23743 s,@sbindir@,$sbindir,;t t
23744 s,@libexecdir@,$libexecdir,;t t
23745 s,@datadir@,$datadir,;t t
23746 s,@sysconfdir@,$sysconfdir,;t t
23747 s,@sharedstatedir@,$sharedstatedir,;t t
23748 s,@localstatedir@,$localstatedir,;t t
23749 s,@libdir@,$libdir,;t t
23750 s,@includedir@,$includedir,;t t
23751 s,@oldincludedir@,$oldincludedir,;t t
23752 s,@infodir@,$infodir,;t t
23753 s,@mandir@,$mandir,;t t
23754 s,@build_alias@,$build_alias,;t t
23755 s,@host_alias@,$host_alias,;t t
23756 s,@target_alias@,$target_alias,;t t
23757 s,@DEFS@,$DEFS,;t t
23758 s,@ECHO_C@,$ECHO_C,;t t
23759 s,@ECHO_N@,$ECHO_N,;t t
23760 s,@ECHO_T@,$ECHO_T,;t t
23761 s,@LIBS@,$LIBS,;t t
23762 s,@MAINT@,$MAINT,;t t
23763 s,@build@,$build,;t t
23764 s,@build_cpu@,$build_cpu,;t t
23765 s,@build_vendor@,$build_vendor,;t t
23766 s,@build_os@,$build_os,;t t
23767 s,@host@,$host,;t t
23768 s,@host_cpu@,$host_cpu,;t t
23769 s,@host_vendor@,$host_vendor,;t t
23770 s,@host_os@,$host_os,;t t
23771 s,@CC@,$CC,;t t
23772 s,@CFLAGS@,$CFLAGS,;t t
23773 s,@LDFLAGS@,$LDFLAGS,;t t
23774 s,@CPPFLAGS@,$CPPFLAGS,;t t
23775 s,@ac_ct_CC@,$ac_ct_CC,;t t
23776 s,@EXEEXT@,$EXEEXT,;t t
23777 s,@OBJEXT@,$OBJEXT,;t t
23778 s,@CPP@,$CPP,;t t
23779 s,@EGREP@,$EGREP,;t t
23780 s,@LN_S@,$LN_S,;t t
23781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23784 s,@RANLIB@,$RANLIB,;t t
23785 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23786 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23787 s,@GZIP_PROG@,$GZIP_PROG,;t t
23788 s,@LIBSOUND@,$LIBSOUND,;t t
23789 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23790 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23791 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23792 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23793 s,@SET_MAKE@,$SET_MAKE,;t t
23794 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23795 s,@GTK_LIBS@,$GTK_LIBS,;t t
23796 s,@ALLOCA@,$ALLOCA,;t t
23797 s,@liblockfile@,$liblockfile,;t t
23798 s,@LIBOBJS@,$LIBOBJS,;t t
23799 s,@NEED_SETGID@,$NEED_SETGID,;t t
23800 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23801 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23802 s,@GETOPT_H@,$GETOPT_H,;t t
23803 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23804 s,@version@,$version,;t t
23805 s,@configuration@,$configuration,;t t
23806 s,@canonical@,$canonical,;t t
23807 s,@srcdir@,$srcdir,;t t
23808 s,@lispdir@,$lispdir,;t t
23809 s,@locallisppath@,$locallisppath,;t t
23810 s,@lisppath@,$lisppath,;t t
23811 s,@x_default_search_path@,$x_default_search_path,;t t
23812 s,@etcdir@,$etcdir,;t t
23813 s,@archlibdir@,$archlibdir,;t t
23814 s,@docdir@,$docdir,;t t
23815 s,@bitmapdir@,$bitmapdir,;t t
23816 s,@gamedir@,$gamedir,;t t
23817 s,@gameuser@,$gameuser,;t t
23818 s,@c_switch_system@,$c_switch_system,;t t
23819 s,@c_switch_machine@,$c_switch_machine,;t t
23820 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23821 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23822 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23823 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23824 s,@machfile@,$machfile,;t t
23825 s,@opsysfile@,$opsysfile,;t t
23826 s,@carbon_appdir@,$carbon_appdir,;t t
23827 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23828 CEOF
23829
23830 _ACEOF
23831
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833 # Split the substitutions into bite-sized pieces for seds with
23834 # small command number limits, like on Digital OSF/1 and HP-UX.
23835 ac_max_sed_lines=48
23836 ac_sed_frag=1 # Number of current file.
23837 ac_beg=1 # First line for current file.
23838 ac_end=$ac_max_sed_lines # Line after last line for current file.
23839 ac_more_lines=:
23840 ac_sed_cmds=
23841 while $ac_more_lines; do
23842 if test $ac_beg -gt 1; then
23843 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23844 else
23845 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23846 fi
23847 if test ! -s $tmp/subs.frag; then
23848 ac_more_lines=false
23849 else
23850 # The purpose of the label and of the branching condition is to
23851 # speed up the sed processing (if there are no `@' at all, there
23852 # is no need to browse any of the substitutions).
23853 # These are the two extra sed commands mentioned above.
23854 (echo ':t
23855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23856 if test -z "$ac_sed_cmds"; then
23857 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23858 else
23859 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23860 fi
23861 ac_sed_frag=`expr $ac_sed_frag + 1`
23862 ac_beg=$ac_end
23863 ac_end=`expr $ac_end + $ac_max_sed_lines`
23864 fi
23865 done
23866 if test -z "$ac_sed_cmds"; then
23867 ac_sed_cmds=cat
23868 fi
23869 fi # test -n "$CONFIG_FILES"
23870
23871 _ACEOF
23872 cat >>$CONFIG_STATUS <<\_ACEOF
23873 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23875 case $ac_file in
23876 - | *:- | *:-:* ) # input from stdin
23877 cat >$tmp/stdin
23878 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23880 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23882 * ) ac_file_in=$ac_file.in ;;
23883 esac
23884
23885 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23886 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23888 X"$ac_file" : 'X\(//\)[^/]' \| \
23889 X"$ac_file" : 'X\(//\)$' \| \
23890 X"$ac_file" : 'X\(/\)' \| \
23891 . : '\(.\)' 2>/dev/null ||
23892 echo X"$ac_file" |
23893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23895 /^X\(\/\/\)$/{ s//\1/; q; }
23896 /^X\(\/\).*/{ s//\1/; q; }
23897 s/.*/./; q'`
23898 { if $as_mkdir_p; then
23899 mkdir -p "$ac_dir"
23900 else
23901 as_dir="$ac_dir"
23902 as_dirs=
23903 while test ! -d "$as_dir"; do
23904 as_dirs="$as_dir $as_dirs"
23905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907 X"$as_dir" : 'X\(//\)[^/]' \| \
23908 X"$as_dir" : 'X\(//\)$' \| \
23909 X"$as_dir" : 'X\(/\)' \| \
23910 . : '\(.\)' 2>/dev/null ||
23911 echo X"$as_dir" |
23912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23914 /^X\(\/\/\)$/{ s//\1/; q; }
23915 /^X\(\/\).*/{ s//\1/; q; }
23916 s/.*/./; q'`
23917 done
23918 test ! -n "$as_dirs" || mkdir $as_dirs
23919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23921 { (exit 1); exit 1; }; }; }
23922
23923 ac_builddir=.
23924
23925 if test "$ac_dir" != .; then
23926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23927 # A "../" for each directory in $ac_dir_suffix.
23928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23929 else
23930 ac_dir_suffix= ac_top_builddir=
23931 fi
23932
23933 case $srcdir in
23934 .) # No --srcdir option. We are building in place.
23935 ac_srcdir=.
23936 if test -z "$ac_top_builddir"; then
23937 ac_top_srcdir=.
23938 else
23939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23940 fi ;;
23941 [\\/]* | ?:[\\/]* ) # Absolute path.
23942 ac_srcdir=$srcdir$ac_dir_suffix;
23943 ac_top_srcdir=$srcdir ;;
23944 *) # Relative path.
23945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23947 esac
23948
23949 # Do not use `cd foo && pwd` to compute absolute paths, because
23950 # the directories may not exist.
23951 case `pwd` in
23952 .) ac_abs_builddir="$ac_dir";;
23953 *)
23954 case "$ac_dir" in
23955 .) ac_abs_builddir=`pwd`;;
23956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23958 esac;;
23959 esac
23960 case $ac_abs_builddir in
23961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23962 *)
23963 case ${ac_top_builddir}. in
23964 .) ac_abs_top_builddir=$ac_abs_builddir;;
23965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23967 esac;;
23968 esac
23969 case $ac_abs_builddir in
23970 .) ac_abs_srcdir=$ac_srcdir;;
23971 *)
23972 case $ac_srcdir in
23973 .) ac_abs_srcdir=$ac_abs_builddir;;
23974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23976 esac;;
23977 esac
23978 case $ac_abs_builddir in
23979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23980 *)
23981 case $ac_top_srcdir in
23982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23985 esac;;
23986 esac
23987
23988
23989 case $INSTALL in
23990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23991 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23992 esac
23993
23994 if test x"$ac_file" != x-; then
23995 { echo "$as_me:$LINENO: creating $ac_file" >&5
23996 echo "$as_me: creating $ac_file" >&6;}
23997 rm -f "$ac_file"
23998 fi
23999 # Let's still pretend it is `configure' which instantiates (i.e., don't
24000 # use $as_me), people would be surprised to read:
24001 # /* config.h. Generated by config.status. */
24002 if test x"$ac_file" = x-; then
24003 configure_input=
24004 else
24005 configure_input="$ac_file. "
24006 fi
24007 configure_input=$configure_input"Generated from `echo $ac_file_in |
24008 sed 's,.*/,,'` by configure."
24009
24010 # First look for the input files in the build tree, otherwise in the
24011 # src tree.
24012 ac_file_inputs=`IFS=:
24013 for f in $ac_file_in; do
24014 case $f in
24015 -) echo $tmp/stdin ;;
24016 [\\/$]*)
24017 # Absolute (can't be DOS-style, as IFS=:)
24018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24019 echo "$as_me: error: cannot find input file: $f" >&2;}
24020 { (exit 1); exit 1; }; }
24021 echo "$f";;
24022 *) # Relative
24023 if test -f "$f"; then
24024 # Build tree
24025 echo "$f"
24026 elif test -f "$srcdir/$f"; then
24027 # Source tree
24028 echo "$srcdir/$f"
24029 else
24030 # /dev/null tree
24031 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24032 echo "$as_me: error: cannot find input file: $f" >&2;}
24033 { (exit 1); exit 1; }; }
24034 fi;;
24035 esac
24036 done` || { (exit 1); exit 1; }
24037 _ACEOF
24038 cat >>$CONFIG_STATUS <<_ACEOF
24039 sed "$ac_vpsub
24040 $extrasub
24041 _ACEOF
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24043 :t
24044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24045 s,@configure_input@,$configure_input,;t t
24046 s,@srcdir@,$ac_srcdir,;t t
24047 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24048 s,@top_srcdir@,$ac_top_srcdir,;t t
24049 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24050 s,@builddir@,$ac_builddir,;t t
24051 s,@abs_builddir@,$ac_abs_builddir,;t t
24052 s,@top_builddir@,$ac_top_builddir,;t t
24053 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24054 s,@INSTALL@,$ac_INSTALL,;t t
24055 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24056 rm -f $tmp/stdin
24057 if test x"$ac_file" != x-; then
24058 mv $tmp/out $ac_file
24059 else
24060 cat $tmp/out
24061 rm -f $tmp/out
24062 fi
24063
24064 done
24065 _ACEOF
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24067
24068 #
24069 # CONFIG_HEADER section.
24070 #
24071
24072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24074 #
24075 # ac_d sets the value in "#define NAME VALUE" lines.
24076 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24077 ac_dB='[ ].*$,\1#\2'
24078 ac_dC=' '
24079 ac_dD=',;t'
24080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24082 ac_uB='$,\1#\2define\3'
24083 ac_uC=' '
24084 ac_uD=',;t'
24085
24086 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24088 case $ac_file in
24089 - | *:- | *:-:* ) # input from stdin
24090 cat >$tmp/stdin
24091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24095 * ) ac_file_in=$ac_file.in ;;
24096 esac
24097
24098 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24099 echo "$as_me: creating $ac_file" >&6;}
24100
24101 # First look for the input files in the build tree, otherwise in the
24102 # src tree.
24103 ac_file_inputs=`IFS=:
24104 for f in $ac_file_in; do
24105 case $f in
24106 -) echo $tmp/stdin ;;
24107 [\\/$]*)
24108 # Absolute (can't be DOS-style, as IFS=:)
24109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24110 echo "$as_me: error: cannot find input file: $f" >&2;}
24111 { (exit 1); exit 1; }; }
24112 # Do quote $f, to prevent DOS paths from being IFS'd.
24113 echo "$f";;
24114 *) # Relative
24115 if test -f "$f"; then
24116 # Build tree
24117 echo "$f"
24118 elif test -f "$srcdir/$f"; then
24119 # Source tree
24120 echo "$srcdir/$f"
24121 else
24122 # /dev/null tree
24123 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24124 echo "$as_me: error: cannot find input file: $f" >&2;}
24125 { (exit 1); exit 1; }; }
24126 fi;;
24127 esac
24128 done` || { (exit 1); exit 1; }
24129 # Remove the trailing spaces.
24130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24131
24132 _ACEOF
24133
24134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24135 # `conftest.undefs', that substitutes the proper values into
24136 # config.h.in to produce config.h. The first handles `#define'
24137 # templates, and the second `#undef' templates.
24138 # And first: Protect against being on the right side of a sed subst in
24139 # config.status. Protect against being in an unquoted here document
24140 # in config.status.
24141 rm -f conftest.defines conftest.undefs
24142 # Using a here document instead of a string reduces the quoting nightmare.
24143 # Putting comments in sed scripts is not portable.
24144 #
24145 # `end' is used to avoid that the second main sed command (meant for
24146 # 0-ary CPP macros) applies to n-ary macro definitions.
24147 # See the Autoconf documentation for `clear'.
24148 cat >confdef2sed.sed <<\_ACEOF
24149 s/[\\&,]/\\&/g
24150 s,[\\$`],\\&,g
24151 t clear
24152 : clear
24153 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24154 t end
24155 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24156 : end
24157 _ACEOF
24158 # If some macros were called several times there might be several times
24159 # the same #defines, which is useless. Nevertheless, we may not want to
24160 # sort them, since we want the *last* AC-DEFINE to be honored.
24161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24163 rm -f confdef2sed.sed
24164
24165 # This sed command replaces #undef with comments. This is necessary, for
24166 # example, in the case of _POSIX_SOURCE, which is predefined and required
24167 # on some systems where configure will not decide to define it.
24168 cat >>conftest.undefs <<\_ACEOF
24169 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24170 _ACEOF
24171
24172 # Break up conftest.defines because some shells have a limit on the size
24173 # of here documents, and old seds have small limits too (100 cmds).
24174 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24175 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24176 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24177 echo ' :' >>$CONFIG_STATUS
24178 rm -f conftest.tail
24179 while grep . conftest.defines >/dev/null
24180 do
24181 # Write a limited-size here document to $tmp/defines.sed.
24182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24183 # Speed up: don't consider the non `#define' lines.
24184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24185 # Work around the forget-to-reset-the-flag bug.
24186 echo 't clr' >>$CONFIG_STATUS
24187 echo ': clr' >>$CONFIG_STATUS
24188 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24189 echo 'CEOF
24190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24191 rm -f $tmp/in
24192 mv $tmp/out $tmp/in
24193 ' >>$CONFIG_STATUS
24194 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24195 rm -f conftest.defines
24196 mv conftest.tail conftest.defines
24197 done
24198 rm -f conftest.defines
24199 echo ' fi # grep' >>$CONFIG_STATUS
24200 echo >>$CONFIG_STATUS
24201
24202 # Break up conftest.undefs because some shells have a limit on the size
24203 # of here documents, and old seds have small limits too (100 cmds).
24204 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24205 rm -f conftest.tail
24206 while grep . conftest.undefs >/dev/null
24207 do
24208 # Write a limited-size here document to $tmp/undefs.sed.
24209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24210 # Speed up: don't consider the non `#undef'
24211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24212 # Work around the forget-to-reset-the-flag bug.
24213 echo 't clr' >>$CONFIG_STATUS
24214 echo ': clr' >>$CONFIG_STATUS
24215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24216 echo 'CEOF
24217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24218 rm -f $tmp/in
24219 mv $tmp/out $tmp/in
24220 ' >>$CONFIG_STATUS
24221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24222 rm -f conftest.undefs
24223 mv conftest.tail conftest.undefs
24224 done
24225 rm -f conftest.undefs
24226
24227 cat >>$CONFIG_STATUS <<\_ACEOF
24228 # Let's still pretend it is `configure' which instantiates (i.e., don't
24229 # use $as_me), people would be surprised to read:
24230 # /* config.h. Generated by config.status. */
24231 if test x"$ac_file" = x-; then
24232 echo "/* Generated by configure. */" >$tmp/config.h
24233 else
24234 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24235 fi
24236 cat $tmp/in >>$tmp/config.h
24237 rm -f $tmp/in
24238 if test x"$ac_file" != x-; then
24239 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24241 echo "$as_me: $ac_file is unchanged" >&6;}
24242 else
24243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245 X"$ac_file" : 'X\(//\)[^/]' \| \
24246 X"$ac_file" : 'X\(//\)$' \| \
24247 X"$ac_file" : 'X\(/\)' \| \
24248 . : '\(.\)' 2>/dev/null ||
24249 echo X"$ac_file" |
24250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24252 /^X\(\/\/\)$/{ s//\1/; q; }
24253 /^X\(\/\).*/{ s//\1/; q; }
24254 s/.*/./; q'`
24255 { if $as_mkdir_p; then
24256 mkdir -p "$ac_dir"
24257 else
24258 as_dir="$ac_dir"
24259 as_dirs=
24260 while test ! -d "$as_dir"; do
24261 as_dirs="$as_dir $as_dirs"
24262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24264 X"$as_dir" : 'X\(//\)[^/]' \| \
24265 X"$as_dir" : 'X\(//\)$' \| \
24266 X"$as_dir" : 'X\(/\)' \| \
24267 . : '\(.\)' 2>/dev/null ||
24268 echo X"$as_dir" |
24269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24271 /^X\(\/\/\)$/{ s//\1/; q; }
24272 /^X\(\/\).*/{ s//\1/; q; }
24273 s/.*/./; q'`
24274 done
24275 test ! -n "$as_dirs" || mkdir $as_dirs
24276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24278 { (exit 1); exit 1; }; }; }
24279
24280 rm -f $ac_file
24281 mv $tmp/config.h $ac_file
24282 fi
24283 else
24284 cat $tmp/config.h
24285 rm -f $tmp/config.h
24286 fi
24287 done
24288 _ACEOF
24289 cat >>$CONFIG_STATUS <<\_ACEOF
24290
24291 #
24292 # CONFIG_COMMANDS section.
24293 #
24294 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24295 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24296 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24297 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24298 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24299 X"$ac_dest" : 'X\(//\)[^/]' \| \
24300 X"$ac_dest" : 'X\(//\)$' \| \
24301 X"$ac_dest" : 'X\(/\)' \| \
24302 . : '\(.\)' 2>/dev/null ||
24303 echo X"$ac_dest" |
24304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24306 /^X\(\/\/\)$/{ s//\1/; q; }
24307 /^X\(\/\).*/{ s//\1/; q; }
24308 s/.*/./; q'`
24309 { if $as_mkdir_p; then
24310 mkdir -p "$ac_dir"
24311 else
24312 as_dir="$ac_dir"
24313 as_dirs=
24314 while test ! -d "$as_dir"; do
24315 as_dirs="$as_dir $as_dirs"
24316 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24318 X"$as_dir" : 'X\(//\)[^/]' \| \
24319 X"$as_dir" : 'X\(//\)$' \| \
24320 X"$as_dir" : 'X\(/\)' \| \
24321 . : '\(.\)' 2>/dev/null ||
24322 echo X"$as_dir" |
24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24325 /^X\(\/\/\)$/{ s//\1/; q; }
24326 /^X\(\/\).*/{ s//\1/; q; }
24327 s/.*/./; q'`
24328 done
24329 test ! -n "$as_dirs" || mkdir $as_dirs
24330 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24332 { (exit 1); exit 1; }; }; }
24333
24334 ac_builddir=.
24335
24336 if test "$ac_dir" != .; then
24337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24338 # A "../" for each directory in $ac_dir_suffix.
24339 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24340 else
24341 ac_dir_suffix= ac_top_builddir=
24342 fi
24343
24344 case $srcdir in
24345 .) # No --srcdir option. We are building in place.
24346 ac_srcdir=.
24347 if test -z "$ac_top_builddir"; then
24348 ac_top_srcdir=.
24349 else
24350 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24351 fi ;;
24352 [\\/]* | ?:[\\/]* ) # Absolute path.
24353 ac_srcdir=$srcdir$ac_dir_suffix;
24354 ac_top_srcdir=$srcdir ;;
24355 *) # Relative path.
24356 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24357 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24358 esac
24359
24360 # Do not use `cd foo && pwd` to compute absolute paths, because
24361 # the directories may not exist.
24362 case `pwd` in
24363 .) ac_abs_builddir="$ac_dir";;
24364 *)
24365 case "$ac_dir" in
24366 .) ac_abs_builddir=`pwd`;;
24367 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24368 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24369 esac;;
24370 esac
24371 case $ac_abs_builddir in
24372 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24373 *)
24374 case ${ac_top_builddir}. in
24375 .) ac_abs_top_builddir=$ac_abs_builddir;;
24376 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24377 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24378 esac;;
24379 esac
24380 case $ac_abs_builddir in
24381 .) ac_abs_srcdir=$ac_srcdir;;
24382 *)
24383 case $ac_srcdir in
24384 .) ac_abs_srcdir=$ac_abs_builddir;;
24385 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24386 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24387 esac;;
24388 esac
24389 case $ac_abs_builddir in
24390 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24391 *)
24392 case $ac_top_srcdir in
24393 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24394 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24395 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24396 esac;;
24397 esac
24398
24399
24400 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24401 echo "$as_me: executing $ac_dest commands" >&6;}
24402 case $ac_dest in
24403 default )
24404
24405 ### Make the necessary directories, if they don't exist.
24406 for dir in etc lisp ; do
24407 test -d ${dir} || mkdir ${dir}
24408 done
24409
24410 # Build src/Makefile from ${srcdir}/src/Makefile.c
24411 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24412 # This must be done after src/config.h is built, since we rely on that file.
24413
24414 # Now get this: Some word that is part of the ${srcdir} directory name
24415 # or the ${configuration} value might, just might, happen to be an
24416 # identifier like `sun4' or `i386' or something, and be predefined by
24417 # the C preprocessor to some helpful value like 1, or maybe the empty
24418 # string. Needless to say consequent macro substitutions are less
24419 # than conducive to the makefile finding the correct directory.
24420 undefs="`echo $top_srcdir $configuration $canonical |
24421 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24422 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24423 `"
24424
24425 echo creating src/epaths.h
24426 ${MAKE-make} epaths-force
24427
24428 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24429 # `..' to `. .' unless invoked with -traditional
24430
24431 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24432 CPPFLAGS="$CPPFLAGS -traditional"
24433 fi
24434
24435 echo creating lib-src/Makefile
24436 ( cd lib-src
24437 rm -f junk.c junk1.c junk2.c
24438 sed -e '/start of cpp stuff/q' \
24439 < Makefile.c > junk1.c
24440 sed -e '1,/start of cpp stuff/d'\
24441 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24442 < Makefile.c > junk.c
24443 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24444 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24445 cat junk1.c junk2.c > Makefile.new
24446 rm -f junk.c junk1.c junk2.c
24447 chmod 444 Makefile.new
24448 mv -f Makefile.new Makefile
24449 )
24450
24451 echo creating src/Makefile
24452 ( cd src
24453 rm -f junk.c junk1.c junk2.c
24454 sed -e '/start of cpp stuff/q' \
24455 < Makefile.c > junk1.c
24456 sed -e '1,/start of cpp stuff/d'\
24457 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24458 < Makefile.c > junk.c
24459 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24460 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24461 cat junk1.c junk2.c > Makefile.new
24462 rm -f junk.c junk1.c junk2.c
24463 chmod 444 Makefile.new
24464 mv -f Makefile.new Makefile
24465 )
24466
24467 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24468 echo creating src/.gdbinit
24469 echo source $srcdir/src/.gdbinit > src/.gdbinit
24470 fi
24471
24472 # This is how we know whether to re-run configure in certain cases.
24473 touch src/config.stamp
24474
24475 ;;
24476 esac
24477 done
24478 _ACEOF
24479
24480 cat >>$CONFIG_STATUS <<\_ACEOF
24481
24482 { (exit 0); exit 0; }
24483 _ACEOF
24484 chmod +x $CONFIG_STATUS
24485 ac_clean_files=$ac_clean_files_save
24486
24487
24488 # configure is writing to config.log, and then calls config.status.
24489 # config.status does its own redirection, appending to config.log.
24490 # Unfortunately, on DOS this fails, as config.log is still kept open
24491 # by configure, so config.status won't be able to write to it; its
24492 # output is simply discarded. So we exec the FD to /dev/null,
24493 # effectively closing config.log, so it can be properly (re)opened and
24494 # appended to by config.status. When coming back to configure, we
24495 # need to make the FD available again.
24496 if test "$no_create" != yes; then
24497 ac_cs_success=:
24498 ac_config_status_args=
24499 test "$silent" = yes &&
24500 ac_config_status_args="$ac_config_status_args --quiet"
24501 exec 5>/dev/null
24502 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24503 exec 5>>config.log
24504 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24505 # would make configure fail if this is the last instruction.
24506 $ac_cs_success || { (exit 1); exit 1; }
24507 fi
24508
24509