]> code.delx.au - gnu-emacs/blob - configure
Check for posix_memalign.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS 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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
847 fi
848
849 if test -n "$ac_init_help"; then
850
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
859
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
883
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
958
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
973
974 $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1033 do
1034 for ac_arg
1035 do
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 2)
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1059 ;;
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1062 fi
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1066 ;;
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1080 {
1081 echo
1082
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1090 {
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 ;;
1098 *)
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ;;
1102 esac;
1103 }
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1113 do
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1118
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132 fi
1133
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1143 fi
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1151 ' 0
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1156
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1161
1162 # Predefined preprocessor variables.
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1187
1188
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 fi
1197 fi
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1204 fi
1205 done
1206
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1217 fi
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1222 fi
1223
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1243 *)
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1265 fi
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1273 fi
1274
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300
1301
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1314
1315
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1324
1325 gameuser=games
1326
1327
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1331
1332 fi;
1333
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1341
1342 else :
1343 fi
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1348
1349 fi;
1350
1351
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1358
1359 fi;
1360
1361
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1371
1372 fi
1373 fi
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1378
1379 fi;
1380
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1388
1389 fi;
1390
1391
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1395
1396 fi;
1397
1398
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1409 * )
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1417 ;;
1418 esac
1419 with_x_toolkit=$val
1420
1421 fi;
1422
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1426
1427 fi;
1428
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1432
1433 fi;
1434
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1438
1439 fi;
1440
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1444
1445 fi;
1446
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1450
1451 fi;
1452
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1456
1457 fi;
1458
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1462
1463 fi;
1464
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1468
1469 fi;
1470
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1474
1475 fi;
1476
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1480
1481 fi;
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1486 fi;
1487
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1496 . )
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1507 fi
1508 ;;
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1511
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1527
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1536 fi
1537
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1540
1541 ### Canonicalize the configuration name.
1542
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563 fi
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591 fi
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613 fi
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622 canonical=$host
1623 configuration=${host_alias-$host}
1624
1625
1626
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1630
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1639 ###
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1645 ###
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1649
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1652
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1660 ;;
1661
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 if test -f /usr/lib/crti.o; then
1666 AC_DEFINE(HAVE_CRTIN)
1667 fi
1668
1669 case "${canonical}" in
1670 alpha*-*-netbsd*) machine=alpha ;;
1671 i[3456]86-*-netbsd*) machine=intel386 ;;
1672 m68k-*-netbsd*)
1673 # This is somewhat bogus.
1674 machine=hp9000s300 ;;
1675 powerpc-apple-netbsd*) machine=macppc ;;
1676 mips-*-netbsd*) machine=pmax ;;
1677 mipsel-*-netbsd*) machine=pmax ;;
1678 mipseb-*-netbsd*) machine=pmax ;;
1679 ns32k-*-netbsd*) machine=ns32000 ;;
1680 powerpc-*-netbsd*) machine=macppc ;;
1681 sparc*-*-netbsd*) machine=sparc ;;
1682 vax-*-netbsd*) machine=vax ;;
1683 arm-*-netbsd*) machine=arm ;;
1684 esac
1685 ;;
1686
1687 ## OpenBSD ports
1688 *-*-openbsd* )
1689 opsys=openbsd
1690 case "${canonical}" in
1691 alpha*-*-openbsd*) machine=alpha ;;
1692 i386-*-openbsd*) machine=intel386 ;;
1693 m68k-*-openbsd*) machine=hp9000s300 ;;
1694 mipsel-*-openbsd*) machine=pmax ;;
1695 ns32k-*-openbsd*) machine=ns32000 ;;
1696 sparc-*-openbsd*) machine=sparc ;;
1697 vax-*-openbsd*) machine=vax ;;
1698 esac
1699 ;;
1700
1701 ## Acorn RISCiX:
1702 arm-acorn-riscix1.1* )
1703 machine=acorn opsys=riscix1-1
1704 ;;
1705 arm-acorn-riscix1.2* | arm-acorn-riscix )
1706 ## This name is riscix12 instead of riscix1.2
1707 ## to avoid a file name conflict on MSDOS.
1708 machine=acorn opsys=riscix12
1709 ;;
1710
1711 ## BSDI ports
1712 *-*-bsdi* )
1713 opsys=bsdi
1714 case "${canonical}" in
1715 i[345]86-*-bsdi*) machine=intel386 ;;
1716 sparc-*-bsdi*) machine=sparc ;;
1717 powerpc-*-bsdi*) machine=macppc ;;
1718 esac
1719 case "${canonical}" in
1720 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1721 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1722 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1723 *-*-bsdi3* ) opsys=bsdos3 ;;
1724 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1725 esac
1726 ;;
1727
1728 ## Alliant machines
1729 ## Strictly speaking, we need the version of the alliant operating
1730 ## system to choose the right machine file, but currently the
1731 ## configuration name doesn't tell us enough to choose the right
1732 ## one; we need to give alliants their own operating system name to
1733 ## do this right. When someone cares, they can help us.
1734 fx80-alliant-* )
1735 machine=alliant4 opsys=bsd4-2
1736 ;;
1737 i860-alliant-* )
1738 machine=alliant-2800 opsys=bsd4-3
1739 ;;
1740
1741 ## Alpha (DEC) machines.
1742 alpha*-dec-osf* )
1743 machine=alpha opsys=osf1
1744 # This is needed to find X11R6.1 libraries for certain tests.
1745 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1746 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1747 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1748 # due to non-traditional preprocessing with the current compiler
1749 # defaults. OSF 4 can also have that compiler version, and there
1750 # seems always to have been a usable /usr/bin/cpp.
1751 NON_GNU_CPP=/usr/bin/cpp
1752 case "${canonical}" in
1753 alpha*-dec-osf[5-9]*)
1754 opsys=osf5-0 ;;
1755 esac
1756 ;;
1757
1758 alpha*-*-linux-gnu* )
1759 machine=alpha opsys=gnu-linux
1760 ;;
1761
1762 arm*-*-linux-gnu* )
1763 machine=arm opsys=gnu-linux
1764 ;;
1765
1766 ppc-*-linux | \
1767 powerpc-*-linux* )
1768 machine=macppc opsys=gnu-linux
1769 ;;
1770
1771 ## Altos 3068
1772 m68*-altos-sysv* )
1773 machine=altos opsys=usg5-2
1774 ;;
1775
1776 ## Amdahl UTS
1777 580-amdahl-sysv* )
1778 machine=amdahl opsys=usg5-2-2
1779 ;;
1780
1781 ## Apollo, Domain/OS
1782 m68*-apollo-* )
1783 machine=apollo opsys=bsd4-3
1784 ;;
1785
1786 ## AT&T 3b2, 3b5, 3b15, 3b20
1787 we32k-att-sysv* )
1788 machine=att3b opsys=usg5-2-2
1789 ;;
1790
1791 ## AT&T 3b1 - The Mighty Unix PC!
1792 m68*-att-sysv* )
1793 machine=7300 opsys=usg5-2-2
1794 ;;
1795
1796 ## Bull dpx20
1797 rs6000-bull-bosx* )
1798 machine=ibmrs6000 opsys=aix3-2
1799 ;;
1800
1801 ## Bull dpx2
1802 m68*-bull-sysv3* )
1803 machine=dpx2 opsys=usg5-3
1804 ;;
1805
1806 ## Bull sps7
1807 m68*-bull-sysv2* )
1808 machine=sps7 opsys=usg5-2
1809 ;;
1810
1811 ## CCI 5/32, 6/32 -- see "Tahoe".
1812
1813 ## Celerity
1814 ## I don't know what configuration name to use for this; config.sub
1815 ## doesn't seem to know anything about it. Hey, Celerity users, get
1816 ## in touch with us!
1817 celerity-celerity-bsd* )
1818 machine=celerity opsys=bsd4-2
1819 ;;
1820
1821 ## Clipper
1822 ## What operating systems does this chip run that Emacs has been
1823 ## tested on?
1824 clipper-* )
1825 machine=clipper
1826 ## We'll use the catch-all code at the bottom to guess the
1827 ## operating system.
1828 ;;
1829
1830 ## Compaq Nonstop
1831 mips-compaq-nonstopux* )
1832 machine=nonstopux opsys=nonstopux
1833 ;;
1834
1835 ## Convex
1836 *-convex-bsd* | *-convex-convexos* )
1837 machine=convex opsys=bsd4-3
1838 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1839 NON_GNU_CPP="cc -E -P"
1840 ;;
1841
1842 ## Cubix QBx/386
1843 i[3456]86-cubix-sysv* )
1844 machine=intel386 opsys=usg5-3
1845 ;;
1846
1847 ## Cydra 5
1848 cydra*-cydrome-sysv* )
1849 machine=cydra5 opsys=usg5-3
1850 ;;
1851
1852 ## Data General AViiON Machines
1853 ## DG changed naming conventions with the release of 5.4.4.10, they
1854 ## dropped the initial 5.4 but left the intervening R. Because of the
1855 ## R this shouldn't conflict with older versions of the OS (which I
1856 ## think were named like dgux4.*). In addition, DG new AViiONs series
1857 ## uses either Motorola M88k or Intel Pentium CPUs.
1858 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1859 machine=aviion opsys=dgux4
1860 ;;
1861 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1862 ## This name is dgux5-4-3 instead of dgux5-4r3
1863 ## to avoid a file name conflict on MSDOS.
1864 machine=aviion opsys=dgux5-4-3
1865 ;;
1866 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1867 machine=aviion opsys=dgux5-4r2
1868 ;;
1869 m88k-dg-dgux* )
1870 machine=aviion opsys=dgux
1871 ;;
1872
1873 ## Data General AViiON Intel (x86) Machines
1874 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1875 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1876 i[345]86-dg-dguxR4* )
1877 machine=aviion-intel opsys=dgux4
1878 ;;
1879
1880 ## DECstations
1881 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1882 machine=pmax opsys=bsd4-2
1883 ;;
1884 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1885 machine=pmax opsys=bsd4-3
1886 ;;
1887 mips-dec-ultrix* )
1888 machine=pmax opsys=ultrix4-3
1889 ;;
1890 mips-dec-osf* )
1891 machine=pmax opsys=osf1
1892 ;;
1893 mips-dec-mach_bsd4.3* )
1894 machine=pmax opsys=mach-bsd4-3
1895 ;;
1896
1897 ## Motorola Delta machines
1898 m68k-motorola-sysv* | m68000-motorola-sysv* )
1899 machine=delta opsys=usg5-3
1900 if test -z "`type gnucc | grep 'not found'`"
1901 then
1902 if test -s /etc/167config
1903 then CC="gnucc -m68040"
1904 else CC="gnucc -m68881"
1905 fi
1906 else
1907 if test -z "`type gcc | grep 'not found'`"
1908 then CC=gcc
1909 else CC=cc
1910 fi
1911 fi
1912 ;;
1913 m88k-motorola-sysv4* )
1914 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1915 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1916 # I hope there are not other 4.0 versions for this machine
1917 # which really need usg5-4 instead.
1918 machine=delta88k opsys=usg5-4-2
1919 ;;
1920 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1921 machine=delta88k opsys=usg5-3
1922 ;;
1923
1924 ## Dual machines
1925 m68*-dual-sysv* )
1926 machine=dual opsys=usg5-2
1927 ;;
1928 m68*-dual-uniplus* )
1929 machine=dual opsys=unipl5-2
1930 ;;
1931
1932 ## Elxsi 6400
1933 elxsi-elxsi-sysv* )
1934 machine=elxsi opsys=usg5-2
1935 ;;
1936
1937 ## Encore machines
1938 ns16k-encore-bsd* )
1939 machine=ns16000 opsys=umax
1940 ;;
1941
1942 ## The GEC 63 - apparently, this port isn't really finished yet.
1943 # I'm sure we finished off the last of the machines, though. -- fx
1944
1945 ## Gould Power Node and NP1
1946 pn-gould-bsd4.2* )
1947 machine=gould opsys=bsd4-2
1948 ;;
1949 pn-gould-bsd4.3* )
1950 machine=gould opsys=bsd4-3
1951 ;;
1952 np1-gould-bsd* )
1953 machine=gould-np1 opsys=bsd4-3
1954 ;;
1955
1956 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1957 ## as far as Emacs is concerned).
1958 m88k-harris-cxux* )
1959 # Build needs to be different on 7.0 and later releases
1960 case "`uname -r`" in
1961 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1962 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1963 esac
1964 NON_GNU_CPP="/lib/cpp"
1965 ;;
1966 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1967 m68k-harris-cxux* )
1968 machine=nh3000 opsys=cxux
1969 ;;
1970 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1971 powerpc-harris-powerunix )
1972 machine=nh6000 opsys=powerunix
1973 NON_GNU_CPP="cc -Xo -E -P"
1974 ;;
1975 ## SR2001/SR2201 running HI-UX/MPP
1976 hppa1.1-hitachi-hiuxmpp* )
1977 machine=sr2k opsys=hiuxmpp
1978 ;;
1979 hppa1.1-hitachi-hiuxwe2* )
1980 machine=sr2k opsys=hiuxwe2
1981 ;;
1982 ## Honeywell XPS100
1983 xps*-honeywell-sysv* )
1984 machine=xps100 opsys=usg5-2
1985 ;;
1986
1987 ## HP 9000 series 200 or 300
1988 m68*-hp-bsd* )
1989 machine=hp9000s300 opsys=bsd4-3
1990 ;;
1991 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1992 m68*-hp-hpux* )
1993 case "`uname -r`" in
1994 ## Someone's system reports A.B8.05 for this.
1995 ## I wonder what other possibilities there are.
1996 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1997 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1998 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1999 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2000 *) machine=hp9000s300 opsys=hpux ;;
2001 esac
2002 ;;
2003
2004 ## HP 9000 series 700 and 800, running HP/UX
2005 hppa*-hp-hpux7* )
2006 machine=hp800 opsys=hpux
2007 ;;
2008 hppa*-hp-hpux8* )
2009 machine=hp800 opsys=hpux8
2010 ;;
2011 hppa*-hp-hpux9shr* )
2012 machine=hp800 opsys=hpux9shr
2013 ;;
2014 hppa*-hp-hpux9* )
2015 machine=hp800 opsys=hpux9
2016 ;;
2017 hppa*-hp-hpux10.2* )
2018 machine=hp800 opsys=hpux10-20
2019 ;;
2020 hppa*-hp-hpux10* )
2021 machine=hp800 opsys=hpux10
2022 ;;
2023 hppa*-hp-hpux1[1-9]* )
2024 machine=hp800 opsys=hpux11
2025 ;;
2026
2027 hppa*-*-linux-gnu* )
2028 machine=hp800 opsys=gnu-linux
2029 ;;
2030
2031 ## HP 9000 series 700 and 800, running HP/UX
2032 hppa*-hp-hpux* )
2033 ## Cross-compilation? Nah!
2034 case "`uname -r`" in
2035 ## Someone's system reports A.B8.05 for this.
2036 ## I wonder what other possibilities there are.
2037 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2038 *.08.* ) machine=hp800 opsys=hpux8 ;;
2039 *.09.* ) machine=hp800 opsys=hpux9 ;;
2040 *) machine=hp800 opsys=hpux10 ;;
2041 esac
2042 ;;
2043 hppa*-*-nextstep* )
2044 machine=hp800 opsys=nextstep
2045 ;;
2046
2047 ## Orion machines
2048 orion-orion-bsd* )
2049 machine=orion opsys=bsd4-2
2050 ;;
2051 clipper-orion-bsd* )
2052 machine=orion105 opsys=bsd4-2
2053 ;;
2054
2055 ## IBM machines
2056 i[3456]86-ibm-aix1.1* )
2057 machine=ibmps2-aix opsys=usg5-2-2
2058 ;;
2059 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2060 machine=ibmps2-aix opsys=usg5-3
2061 ;;
2062 i370-ibm-aix*)
2063 machine=ibm370aix opsys=usg5-3
2064 ;;
2065 s390-*-linux-gnu* )
2066 machine=ibms390 opsys=gnu-linux
2067 ;;
2068 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2069 machine=ibmrs6000 opsys=aix3-1
2070 ;;
2071 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2072 machine=ibmrs6000 opsys=aix3-2-5
2073 ;;
2074 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2075 machine=ibmrs6000 opsys=aix4-1
2076 ;;
2077 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2078 machine=ibmrs6000 opsys=aix4-2
2079 ;;
2080 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2081 machine=ibmrs6000 opsys=aix4-2
2082 ;;
2083 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2084 machine=ibmrs6000 opsys=aix4
2085 ;;
2086 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2087 machine=ibmrs6000 opsys=aix4-1
2088 ;;
2089 rs6000-ibm-aix* | powerpc-ibm-aix* )
2090 machine=ibmrs6000 opsys=aix3-2
2091 ;;
2092 romp-ibm-bsd4.3* )
2093 machine=ibmrt opsys=bsd4-3
2094 ;;
2095 romp-ibm-bsd4.2* )
2096 machine=ibmrt opsys=bsd4-2
2097 ;;
2098 romp-ibm-aos4.3* )
2099 machine=ibmrt opsys=bsd4-3
2100 ;;
2101 romp-ibm-aos4.2* )
2102 machine=ibmrt opsys=bsd4-2
2103 ;;
2104 romp-ibm-aos* )
2105 machine=ibmrt opsys=bsd4-3
2106 ;;
2107 romp-ibm-bsd* )
2108 machine=ibmrt opsys=bsd4-3
2109 ;;
2110 romp-ibm-aix* )
2111 machine=ibmrt-aix opsys=usg5-2-2
2112 ;;
2113
2114 ## Integrated Solutions `Optimum V'
2115 m68*-isi-bsd4.2* )
2116 machine=isi-ov opsys=bsd4-2
2117 ;;
2118 m68*-isi-bsd4.3* )
2119 machine=isi-ov opsys=bsd4-3
2120 ;;
2121
2122 ## Intel 386 machines where we do care about the manufacturer
2123 i[3456]86-intsys-sysv* )
2124 machine=is386 opsys=usg5-2-2
2125 ;;
2126
2127 ## Prime EXL
2128 i[3456]86-prime-sysv* )
2129 machine=i386 opsys=usg5-3
2130 ;;
2131
2132 ## Sequent Symmetry running Dynix
2133 i[3456]86-sequent-bsd* )
2134 machine=symmetry opsys=bsd4-3
2135 ;;
2136
2137 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2138 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2139 machine=sequent-ptx opsys=ptx4
2140 NON_GNU_CPP=/lib/cpp
2141 ;;
2142
2143 ## Sequent Symmetry running DYNIX/ptx
2144 ## Use the old cpp rather than the newer ANSI one.
2145 i[3456]86-sequent-ptx* )
2146 machine=sequent-ptx opsys=ptx
2147 NON_GNU_CPP="/lib/cpp"
2148 ;;
2149
2150 ## ncr machine running svr4.3.
2151 i[3456]86-ncr-sysv4.3 )
2152 machine=ncr386 opsys=usg5-4-3
2153 ;;
2154
2155 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2156 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2157 i[3456]86-ncr-sysv* )
2158 machine=ncr386 opsys=usg5-4-2
2159 ;;
2160
2161 ## Intel Paragon OSF/1
2162 i860-intel-osf1* )
2163 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2164 ;;
2165
2166 ## Intel 860
2167 i860-*-sysv4* )
2168 machine=i860 opsys=usg5-4
2169 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2170 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2171 ;;
2172
2173 ## Macintosh PowerPC
2174 powerpc*-*-linux-gnu* )
2175 machine=macppc opsys=gnu-linux
2176 ;;
2177
2178 ## Masscomp machines
2179 m68*-masscomp-rtu* )
2180 machine=masscomp opsys=rtu
2181 ;;
2182
2183 ## Megatest machines
2184 m68*-megatest-bsd* )
2185 machine=mega68 opsys=bsd4-2
2186 ;;
2187
2188 ## Workstations sold by MIPS
2189 ## This is not necessarily all workstations using the MIPS processor -
2190 ## Irises are produced by SGI, and DECstations by DEC.
2191
2192 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2193 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2194 ## it gives for choosing between the alternatives seems to be "Use
2195 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2196 ## the BSD world." I'll assume that these are instructions for
2197 ## handling two odd situations, and that every other situation
2198 ## should use mips.h and usg5-2-2, they being listed first.
2199 mips-mips-usg* )
2200 machine=mips4
2201 ## Fall through to the general code at the bottom to decide on the OS.
2202 ;;
2203 mips-mips-riscos4* )
2204 machine=mips4 opsys=bsd4-3
2205 NON_GNU_CC="cc -systype bsd43"
2206 NON_GNU_CPP="cc -systype bsd43 -E"
2207 ;;
2208 mips-mips-riscos5* )
2209 machine=mips4 opsys=riscos5
2210 NON_GNU_CC="cc -systype bsd43"
2211 NON_GNU_CPP="cc -systype bsd43 -E"
2212 ;;
2213 mips-mips-bsd* )
2214 machine=mips opsys=bsd4-3
2215 ;;
2216 mips-mips-* )
2217 machine=mips opsys=usg5-2-2
2218 ;;
2219
2220 ## NeXT
2221 m68*-next-* | m68k-*-nextstep* )
2222 machine=m68k opsys=nextstep
2223 ;;
2224
2225 ## The complete machine from National Semiconductor
2226 ns32k-ns-genix* )
2227 machine=ns32000 opsys=usg5-2
2228 ;;
2229
2230 ## NCR machines
2231 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2232 machine=tower32 opsys=usg5-2-2
2233 ;;
2234 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2235 machine=tower32v3 opsys=usg5-3
2236 ;;
2237
2238 ## NEC EWS4800
2239 mips-nec-sysv4*)
2240 machine=ews4800 opsys=ux4800
2241 ;;
2242
2243 ## Nixdorf Targon 31
2244 m68*-nixdorf-sysv* )
2245 machine=targon31 opsys=usg5-2-2
2246 ;;
2247
2248 ## Nu (TI or LMI)
2249 m68*-nu-sysv* )
2250 machine=nu opsys=usg5-2
2251 ;;
2252
2253 ## Plexus
2254 m68*-plexus-sysv* )
2255 machine=plexus opsys=usg5-2
2256 ;;
2257
2258 ## Pyramid machines
2259 ## I don't really have any idea what sort of processor the Pyramid has,
2260 ## so I'm assuming it is its own architecture.
2261 pyramid-pyramid-bsd* )
2262 machine=pyramid opsys=bsd4-2
2263 ;;
2264
2265 ## Sequent Balance
2266 ns32k-sequent-bsd4.2* )
2267 machine=sequent opsys=bsd4-2
2268 ;;
2269 ns32k-sequent-bsd4.3* )
2270 machine=sequent opsys=bsd4-3
2271 ;;
2272
2273 ## Siemens Nixdorf
2274 mips-siemens-sysv* | mips-sni-sysv*)
2275 machine=mips-siemens opsys=usg5-4
2276 NON_GNU_CC=/usr/ccs/bin/cc
2277 NON_GNU_CPP=/usr/ccs/lib/cpp
2278 ;;
2279
2280 ## Silicon Graphics machines
2281 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2282 m68*-sgi-iris3.5* )
2283 machine=irist opsys=iris3-5
2284 ;;
2285 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2286 machine=irist opsys=iris3-6
2287 ;;
2288 ## Iris 4D
2289 mips-sgi-irix3* )
2290 machine=iris4d opsys=irix3-3
2291 ;;
2292 mips-sgi-irix4* )
2293 machine=iris4d opsys=irix4-0
2294 ;;
2295 mips-sgi-irix6.5 )
2296 machine=iris4d opsys=irix6-5
2297 # Without defining _LANGUAGE_C, things get masked out in the headers
2298 # so that, for instance, grepping for `free' in stdlib.h fails and
2299 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2300 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2301 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2302 ;;
2303 mips-sgi-irix6* )
2304 machine=iris4d opsys=irix6-0
2305 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2306 # but presumably it does no harm.
2307 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2308 # -32 probably isn't necessary in later v.6s -- anyone know which?
2309 NON_GCC_TEST_OPTIONS=-32
2310 ;;
2311 mips-sgi-irix5.[01]* )
2312 machine=iris4d opsys=irix5-0
2313 ;;
2314 mips-sgi-irix5* | mips-sgi-irix* )
2315 machine=iris4d opsys=irix5-2
2316 ;;
2317
2318 ## SONY machines
2319 m68*-sony-bsd4.2* )
2320 machine=news opsys=bsd4-2
2321 ;;
2322 m68*-sony-bsd4.3* )
2323 machine=news opsys=bsd4-3
2324 ;;
2325 m68*-sony-newsos3* | m68*-sony-news3*)
2326 machine=news opsys=bsd4-3
2327 ;;
2328 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2329 machine=news-risc opsys=bsd4-3
2330 ;;
2331 mips-sony-newsos6* )
2332 machine=news-r6 opsys=newsos6
2333 ;;
2334 mips-sony-news* )
2335 machine=news-risc opsys=newsos5
2336 ;;
2337
2338 ## Stride
2339 m68*-stride-sysv* )
2340 machine=stride opsys=usg5-2
2341 ;;
2342
2343 ## Suns
2344 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2345 machine=sparc opsys=gnu-linux
2346 ;;
2347
2348 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2349 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2350 | rs6000-*-solaris2*)
2351 case "${canonical}" in
2352 m68*-sunos1* ) machine=sun1 ;;
2353 m68*-sunos2* ) machine=sun2 ;;
2354 m68* ) machine=sun3 ;;
2355 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2356 i[3456]86-*-* ) machine=intel386 ;;
2357 powerpcle* ) machine=powerpcle ;;
2358 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2359 sparc* ) machine=sparc ;;
2360 * ) unported=yes ;;
2361 esac
2362 case "${canonical}" in
2363 ## The Sun386 didn't get past 4.0.
2364 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2365 *-sunos4.0* ) opsys=sunos4-0 ;;
2366 *-sunos4.1.[3-9]*noshare )
2367 ## This name is sunos413 instead of sunos4-1-3
2368 ## to avoid a file name conflict on MSDOS.
2369 opsys=sunos413
2370 NON_GNU_CPP=/usr/lib/cpp
2371 NON_GCC_TEST_OPTIONS=-Bstatic
2372 GCC_TEST_OPTIONS=-static
2373 ;;
2374 *-sunos4.1.[3-9]* | *-sunos4shr*)
2375 opsys=sunos4shr
2376 NON_GNU_CPP=/usr/lib/cpp
2377 ;;
2378 *-sunos4* | *-sunos )
2379 opsys=sunos4-1
2380 NON_GCC_TEST_OPTIONS=-Bstatic
2381 GCC_TEST_OPTIONS=-static
2382 ;;
2383 *-sunos5.3* | *-solaris2.3* )
2384 opsys=sol2-3
2385 NON_GNU_CPP=/usr/ccs/lib/cpp
2386 ;;
2387 *-sunos5.4* | *-solaris2.4* )
2388 opsys=sol2-4
2389 NON_GNU_CPP=/usr/ccs/lib/cpp
2390 RANLIB="ar -ts"
2391 ;;
2392 *-sunos5.5* | *-solaris2.5* )
2393 opsys=sol2-5
2394 NON_GNU_CPP=/usr/ccs/lib/cpp
2395 RANLIB="ar -ts"
2396 ;;
2397 *-sunos5.6* | *-solaris2.6* )
2398 opsys=sol2-6
2399 NON_GNU_CPP=/usr/ccs/lib/cpp
2400 RANLIB="ar -ts"
2401 ;;
2402 *-sunos5* | *-solaris* )
2403 opsys=sol2-6
2404 NON_GNU_CPP=/usr/ccs/lib/cpp
2405 ;;
2406 * ) opsys=bsd4-2 ;;
2407 esac
2408 ## Watch out for a compiler that we know will not work.
2409 case "${canonical}" in
2410 *-solaris* | *-sunos5* )
2411 if [ "x$CC" = x/usr/ucb/cc ]; then
2412 ## /usr/ucb/cc doesn't work;
2413 ## we should find some other compiler that does work.
2414 unset CC
2415 fi
2416 ;;
2417 *) ;;
2418 esac
2419 ;;
2420 sparc-*-nextstep* )
2421 machine=sparc opsys=nextstep
2422 ;;
2423
2424 ## Tadpole 68k
2425 m68*-tadpole-sysv* )
2426 machine=tad68k opsys=usg5-3
2427 ;;
2428
2429 ## Tahoe machines
2430 tahoe-tahoe-bsd4.2* )
2431 machine=tahoe opsys=bsd4-2
2432 ;;
2433 tahoe-tahoe-bsd4.3* )
2434 machine=tahoe opsys=bsd4-3
2435 ;;
2436
2437 ## Tandem Integrity S2
2438 mips-tandem-sysv* )
2439 machine=tandem-s2 opsys=usg5-3
2440 ;;
2441
2442 ## Tektronix XD88
2443 m88k-tektronix-sysv3* )
2444 machine=tekxd88 opsys=usg5-3
2445 ;;
2446
2447 ## Tektronix 16000 box (6130?)
2448 ns16k-tektronix-bsd* )
2449 machine=ns16000 opsys=bsd4-2
2450 ;;
2451 ## Tektronix 4300
2452 ## src/m/tek4300.h hints that this is a m68k machine.
2453 m68*-tektronix-bsd* )
2454 machine=tek4300 opsys=bsd4-3
2455 ;;
2456
2457 ## Titan P2 or P3
2458 ## We seem to have lost the machine-description file titan.h!
2459 titan-titan-sysv* )
2460 machine=titan opsys=usg5-3
2461 ;;
2462
2463 ## Ustation E30 (SS5E)
2464 m68*-unisys-uniplus* )
2465 machine=ustation opsystem=unipl5-2
2466 ;;
2467
2468 ## Vaxen.
2469 vax-dec-* )
2470 machine=vax
2471 case "${canonical}" in
2472 *-bsd4.1* ) opsys=bsd4-1 ;;
2473 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2474 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2475 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2476 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2477 *-vms* ) opsys=vms ;;
2478 * ) unported=yes
2479 esac
2480 ;;
2481
2482 ## Whitechapel MG1
2483 ns16k-whitechapel-* )
2484 machine=mg1
2485 ## We don't know what sort of OS runs on these; we'll let the
2486 ## operating system guessing code below try.
2487 ;;
2488
2489 ## Wicat
2490 m68*-wicat-sysv* )
2491 machine=wicat opsys=usg5-2
2492 ;;
2493
2494 ## IA-64
2495 ia64*-*-linux* )
2496 machine=ia64 opsys=gnu-linux
2497 ;;
2498
2499 ## Intel 386 machines where we don't care about the manufacturer
2500 i[3456]86-*-* )
2501 machine=intel386
2502 case "${canonical}" in
2503 *-cygwin ) opsys=cygwin ;;
2504 *-lynxos* ) opsys=lynxos ;;
2505 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2506 *-isc2.2* ) opsys=isc2-2 ;;
2507 *-isc4.0* ) opsys=isc4-0 ;;
2508 *-isc4.* ) opsys=isc4-1
2509 GCC_TEST_OPTIONS=-posix
2510 NON_GCC_TEST_OPTIONS=-Xp
2511 ;;
2512 *-isc* ) opsys=isc3-0 ;;
2513 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2514 *-esix* ) opsys=esix ;;
2515 *-xenix* ) opsys=xenix ;;
2516 *-linux-gnu* ) opsys=gnu-linux ;;
2517 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2518 *-sco3.2v5* ) opsys=sco5
2519 NON_GNU_CPP=/lib/cpp
2520 # Prevent -belf from being passed to $CPP.
2521 # /lib/cpp does not accept it.
2522 OVERRIDE_CPPFLAGS=" "
2523 ;;
2524 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2525 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2526 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2527 *-386bsd* ) opsys=386bsd ;;
2528 *-nextstep* ) opsys=nextstep ;;
2529 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2530 esac
2531 ;;
2532
2533 ## m68k Linux-based GNU system
2534 m68k-*-linux-gnu* )
2535 machine=m68k opsys=gnu-linux
2536 ;;
2537
2538 ## Mips Linux-based GNU system
2539 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2540 machine=mips opsys=gnu-linux
2541 ;;
2542
2543 ## UXP/DS
2544 sparc-fujitsu-sysv4* )
2545 machine=sparc opsys=uxpds
2546 NON_GNU_CPP=/usr/ccs/lib/cpp
2547 RANLIB="ar -ts"
2548 ;;
2549
2550 ## UXP/V
2551 f301-fujitsu-uxpv4.1)
2552 machine=f301 opsys=uxpv
2553 ;;
2554
2555 ## Darwin / Mac OS X
2556 powerpc-apple-darwin* )
2557 machine=powermac opsys=darwin
2558 # Define CPP as follows to make autoconf work correctly.
2559 CPP="cc -E -traditional-cpp"
2560 ;;
2561
2562 ## AMD x86-64 Linux-based GNU system
2563 x86_64-*-linux-gnu* )
2564 machine=amdx86-64 opsys=gnu-linux
2565 ;;
2566
2567 * )
2568 unported=yes
2569 ;;
2570 esac
2571
2572 ### If the code above didn't choose an operating system, just choose
2573 ### an operating system based on the configuration name. You really
2574 ### only want to use this when you have no idea what the right
2575 ### operating system is; if you know what operating systems a machine
2576 ### runs, it's cleaner to make it explicit in the case statement
2577 ### above.
2578 if test x"${opsys}" = x; then
2579 case "${canonical}" in
2580 *-gnu* ) opsys=gnu ;;
2581 *-bsd4.[01] ) opsys=bsd4-1 ;;
2582 *-bsd4.2 ) opsys=bsd4-2 ;;
2583 *-bsd4.3 ) opsys=bsd4-3 ;;
2584 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2585 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2586 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2587 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2588 *-sysv4.2uw* ) opsys=unixware ;;
2589 *-sysv5uw* ) opsys=unixware ;;
2590 *-sysv5OpenUNIX* ) opsys=unixware ;;
2591 *-sysv4.1* | *-sysvr4.1* )
2592 NON_GNU_CPP=/usr/lib/cpp
2593 opsys=usg5-4 ;;
2594 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2595 if [ x$NON_GNU_CPP = x ]; then
2596 if [ -f /usr/ccs/lib/cpp ]; then
2597 NON_GNU_CPP=/usr/ccs/lib/cpp
2598 else
2599 NON_GNU_CPP=/lib/cpp
2600 fi
2601 fi
2602 opsys=usg5-4-2 ;;
2603 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2604 * )
2605 unported=yes
2606 ;;
2607 esac
2608 fi
2609
2610
2611
2612 if test $unported = yes; then
2613 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2614 Check \`etc/MACHINES' for recognized configuration names." >&5
2615 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2616 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2617 { (exit 1); exit 1; }; }
2618 fi
2619
2620 machfile="m/${machine}.h"
2621 opsysfile="s/${opsys}.h"
2622
2623
2624 #### Choose a compiler.
2625 test -n "$CC" && cc_specified=yes
2626
2627 # Save the value of CFLAGS that the user specified.
2628 SPECIFIED_CFLAGS="$CFLAGS"
2629
2630 case ${with_gcc} in
2631 "yes" ) CC="gcc" GCC=yes ;;
2632 "no" ) : ${CC=cc} ;;
2633 * )
2634 esac
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669 echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2674 fi
2675
2676 fi
2677 if test -z "$ac_cv_prog_CC"; then
2678 ac_ct_CC=$CC
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_CC="gcc"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700 done
2701 done
2702
2703 fi
2704 fi
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6
2709 else
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2712 fi
2713
2714 CC=$ac_ct_CC
2715 else
2716 CC="$ac_cv_prog_CC"
2717 fi
2718
2719 if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}cc; ac_word=$2
2723 echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_CC="${ac_tool_prefix}cc"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6
2751 else
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2754 fi
2755
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758 ac_ct_CC=$CC
2759 # Extract the first word of "cc", so it can be a program name with args.
2760 set dummy cc; ac_word=$2
2761 echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_ac_ct_CC="cc"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782
2783 fi
2784 fi
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2788 echo "${ECHO_T}$ac_ct_CC" >&6
2789 else
2790 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2792 fi
2793
2794 CC=$ac_ct_CC
2795 else
2796 CC="$ac_cv_prog_CC"
2797 fi
2798
2799 fi
2800 if test -z "$CC"; then
2801 # Extract the first word of "cc", so it can be a program name with args.
2802 set dummy cc; ac_word=$2
2803 echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805 if test "${ac_cv_prog_CC+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 ac_prog_rejected=no
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2820 ac_prog_rejected=yes
2821 continue
2822 fi
2823 ac_cv_prog_CC="cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829
2830 if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2833 shift
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2838 shift
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 fi
2841 fi
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852
2853 fi
2854 if test -z "$CC"; then
2855 if test -n "$ac_tool_prefix"; then
2856 for ac_prog in cl
2857 do
2858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2860 echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862 if test "${ac_cv_prog_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886 echo "$as_me:$LINENO: result: $CC" >&5
2887 echo "${ECHO_T}$CC" >&6
2888 else
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 fi
2892
2893 test -n "$CC" && break
2894 done
2895 fi
2896 if test -z "$CC"; then
2897 ac_ct_CC=$CC
2898 for ac_prog in cl
2899 do
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_CC="$ac_prog"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 fi
2934
2935 test -n "$ac_ct_CC" && break
2936 done
2937
2938 CC=$ac_ct_CC
2939 fi
2940
2941 fi
2942
2943
2944 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: no acceptable C compiler found in \$PATH
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2949
2950 # Provide some information about the compiler.
2951 echo "$as_me:$LINENO:" \
2952 "checking for C compiler version" >&5
2953 ac_compiler=`set X $ac_compile; echo $2`
2954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2955 (eval $ac_compiler --version </dev/null >&5) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2960 (eval $ac_compiler -v </dev/null >&5) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2965 (eval $ac_compiler -V </dev/null >&5) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977
2978 int
2979 main ()
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2992 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2995 (eval $ac_link_default) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Find the output, starting from the most likely. This scheme is
3000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3001 # resort.
3002
3003 # Be careful to initialize this variable, since it used to be cached.
3004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3005 ac_cv_exeext=
3006 # b.out is created by i960 compilers.
3007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3008 do
3009 test -f "$ac_file" || continue
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3012 ;;
3013 conftest.$ac_ext )
3014 # This is the source file.
3015 ;;
3016 [ab].out )
3017 # We found the default executable, but exeext='' is most
3018 # certainly right.
3019 break;;
3020 *.* )
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 # FIXME: I believe we export ac_cv_exeext for Libtool,
3023 # but it would be cool to find out if it's true. Does anybody
3024 # maintain Libtool? --akim.
3025 export ac_cv_exeext
3026 break;;
3027 * )
3028 break;;
3029 esac
3030 done
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3040 fi
3041
3042 ac_exeext=$ac_cv_exeext
3043 echo "$as_me:$LINENO: result: $ac_file" >&5
3044 echo "${ECHO_T}$ac_file" >&6
3045
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051 # If not cross compiling, check that we can run a simple program.
3052 if test "$cross_compiling" != yes; then
3053 if { ac_try='./$ac_file'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 cross_compiling=no
3060 else
3061 if test "$cross_compiling" = maybe; then
3062 cross_compiling=yes
3063 else
3064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3072 fi
3073 fi
3074 echo "$as_me:$LINENO: result: yes" >&5
3075 echo "${ECHO_T}yes" >&6
3076
3077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3078 ac_clean_files=$ac_clean_files_save
3079 # Check the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3084 echo "${ECHO_T}$cross_compiling" >&6
3085
3086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3096 # `rm'.
3097 for ac_file in conftest.exe conftest conftest.*; do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 export ac_cv_exeext
3103 break;;
3104 * ) break;;
3105 esac
3106 done
3107 else
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3113 fi
3114
3115 rm -f conftest$ac_cv_exeext
3116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6
3118
3119 rm -f conftest.$ac_ext
3120 EXEEXT=$ac_cv_exeext
3121 ac_exeext=$EXEEXT
3122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.o conftest.obj
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; then
3149 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3153 break;;
3154 esac
3155 done
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3165 fi
3166
3167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3170 echo "${ECHO_T}$ac_cv_objext" >&6
3171 OBJEXT=$ac_cv_objext
3172 ac_objext=$OBJEXT
3173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189 #ifndef __GNUC__
3190 choke me
3191 #endif
3192
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_compiler_gnu=yes
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 ac_compiler_gnu=no
3215 fi
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3222 GCC=`test $ac_compiler_gnu = yes && echo yes`
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3225 CFLAGS="-g"
3226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238
3239 int
3240 main ()
3241 {
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_prog_cc_g=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 ac_cv_prog_cc_g=no
3265 fi
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3267 fi
3268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
3275 else
3276 CFLAGS="-g"
3277 fi
3278 else
3279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
3281 else
3282 CFLAGS=
3283 fi
3284 fi
3285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 ac_cv_prog_cc_stdc=no
3291 ac_save_CC=$CC
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <stdarg.h>
3300 #include <stdio.h>
3301 #include <sys/types.h>
3302 #include <sys/stat.h>
3303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3304 struct buf { int x; };
3305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3306 static char *e (p, i)
3307 char **p;
3308 int i;
3309 {
3310 return p[i];
3311 }
3312 static char *f (char * (*g) (char **, int), char **p, ...)
3313 {
3314 char *s;
3315 va_list v;
3316 va_start (v,p);
3317 s = g (p, va_arg (v,int));
3318 va_end (v);
3319 return s;
3320 }
3321 int test (int i, double x);
3322 struct s1 {int (*f) (int a);};
3323 struct s2 {int (*f) (double a);};
3324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 int argc;
3326 char **argv;
3327 int
3328 main ()
3329 {
3330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 # Don't try gcc -ansi; that turns off useful extensions and
3336 # breaks some systems' header files.
3337 # AIX -qlanglvl=ansi
3338 # Ultrix and OSF/1 -std1
3339 # HP-UX 10.20 and later -Ae
3340 # HP-UX older versions -Aa -D_HPUX_SOURCE
3341 # SVR4 -Xc -D__EXTENSIONS__
3342 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343 do
3344 CC="$ac_save_CC $ac_arg"
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_prog_cc_stdc=$ac_arg
3358 break
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 fi
3364 rm -f conftest.$ac_objext
3365 done
3366 rm -f conftest.$ac_ext conftest.$ac_objext
3367 CC=$ac_save_CC
3368
3369 fi
3370
3371 case "x$ac_cv_prog_cc_stdc" in
3372 x|xno)
3373 echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6 ;;
3375 *)
3376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3378 CC="$CC $ac_cv_prog_cc_stdc" ;;
3379 esac
3380
3381 # Some people use a C++ compiler to compile C. Since we use `exit',
3382 # in C++ we need to declare it. In case someone uses the same compiler
3383 # for both compiling C and C++ we need to have the C++ compiler decide
3384 # the declaration of exit, since it's the most demanding environment.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #ifndef __cplusplus
3387 choke me
3388 #endif
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -s conftest.$ac_objext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 for ac_declaration in \
3403 ''\
3404 '#include <stdlib.h>' \
3405 'extern "C" void std::exit (int) throw (); using std::exit;' \
3406 'extern "C" void std::exit (int); using std::exit;' \
3407 'extern "C" void exit (int) throw ();' \
3408 'extern "C" void exit (int);' \
3409 'void exit (int);'
3410 do
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include <stdlib.h>
3419 $ac_declaration
3420 int
3421 main ()
3422 {
3423 exit (42);
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 :
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 continue
3446 fi
3447 rm -f conftest.$ac_objext conftest.$ac_ext
3448 cat >conftest.$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 $ac_declaration
3456 int
3457 main ()
3458 {
3459 exit (42);
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 break
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 fi
3482 rm -f conftest.$ac_objext conftest.$ac_ext
3483 done
3484 rm -f conftest*
3485 if test -n "$ac_declaration"; then
3486 echo '#ifdef __cplusplus' >>confdefs.h
3487 echo $ac_declaration >>confdefs.h
3488 echo '#endif' >>confdefs.h
3489 fi
3490
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504 # On Suns, sometimes $CPP names a directory.
3505 if test -n "$CPP" && test -d "$CPP"; then
3506 CPP=
3507 fi
3508
3509 #### Some systems specify a CPP to use unless we are using GCC.
3510 #### Now that we know whether we are using GCC, we can decide whether
3511 #### to use that one.
3512 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3513 then
3514 CPP="$NON_GNU_CPP"
3515 fi
3516
3517 #### Some systems specify a CC to use unless we are using GCC.
3518 #### Now that we know whether we are using GCC, we can decide whether
3519 #### to use that one.
3520 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3521 test x$cc_specified != xyes
3522 then
3523 CC="$NON_GNU_CC"
3524 fi
3525
3526 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3527 then
3528 CC="$CC $GCC_TEST_OPTIONS"
3529 fi
3530
3531 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3532 then
3533 CC="$CC $NON_GCC_TEST_OPTIONS"
3534 fi
3535
3536 #### Some other nice autoconf tests.
3537
3538 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3539 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3540 LN_S=$as_ln_s
3541 if test "$LN_S" = "ln -s"; then
3542 echo "$as_me:$LINENO: result: yes" >&5
3543 echo "${ECHO_T}yes" >&6
3544 else
3545 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3546 echo "${ECHO_T}no, using $LN_S" >&6
3547 fi
3548
3549 ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3555 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3556 # On Suns, sometimes $CPP names a directory.
3557 if test -n "$CPP" && test -d "$CPP"; then
3558 CPP=
3559 fi
3560 if test -z "$CPP"; then
3561 if test "${ac_cv_prog_CPP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 # Double quotes because CPP needs to be expanded
3565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3566 do
3567 ac_preproc_ok=false
3568 for ac_c_preproc_warn_flag in '' yes
3569 do
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.$ac_ext <<_ACEOF
3577 #line $LINENO "configure"
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 Syntax error
3589 _ACEOF
3590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 else
3601 ac_cpp_err=
3602 fi
3603 else
3604 ac_cpp_err=yes
3605 fi
3606 if test -z "$ac_cpp_err"; then
3607 :
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 # Broken: fails on valid input.
3613 continue
3614 fi
3615 rm -f conftest.err conftest.$ac_ext
3616
3617 # OK, works on sane cases. Now check whether non-existent headers
3618 # can be detected and how.
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include <ac_nonexistent.h>
3627 _ACEOF
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev/null; then
3636 if test -s conftest.err; then
3637 ac_cpp_err=$ac_c_preproc_warn_flag
3638 else
3639 ac_cpp_err=
3640 fi
3641 else
3642 ac_cpp_err=yes
3643 fi
3644 if test -z "$ac_cpp_err"; then
3645 # Broken: success on invalid input.
3646 continue
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 # Passes both tests.
3652 ac_preproc_ok=:
3653 break
3654 fi
3655 rm -f conftest.err conftest.$ac_ext
3656
3657 done
3658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3659 rm -f conftest.err conftest.$ac_ext
3660 if $ac_preproc_ok; then
3661 break
3662 fi
3663
3664 done
3665 ac_cv_prog_CPP=$CPP
3666
3667 fi
3668 CPP=$ac_cv_prog_CPP
3669 else
3670 ac_cv_prog_CPP=$CPP
3671 fi
3672 echo "$as_me:$LINENO: result: $CPP" >&5
3673 echo "${ECHO_T}$CPP" >&6
3674 ac_preproc_ok=false
3675 for ac_c_preproc_warn_flag in '' yes
3676 do
3677 # Use a header file that comes with gcc, so configuring glibc
3678 # with a fresh cross-compiler works.
3679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680 # <limits.h> exists even on freestanding compilers.
3681 # On the NeXT, cc -E runs the code through the compiler's parser,
3682 # not just through cpp. "Syntax error" is here to catch this case.
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #ifdef __STDC__
3691 # include <limits.h>
3692 #else
3693 # include <assert.h>
3694 #endif
3695 Syntax error
3696 _ACEOF
3697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev/null; then
3705 if test -s conftest.err; then
3706 ac_cpp_err=$ac_c_preproc_warn_flag
3707 else
3708 ac_cpp_err=
3709 fi
3710 else
3711 ac_cpp_err=yes
3712 fi
3713 if test -z "$ac_cpp_err"; then
3714 :
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 # Broken: fails on valid input.
3720 continue
3721 fi
3722 rm -f conftest.err conftest.$ac_ext
3723
3724 # OK, works on sane cases. Now check whether non-existent headers
3725 # can be detected and how.
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3734 _ACEOF
3735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3737 ac_status=$?
3738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } >/dev/null; then
3743 if test -s conftest.err; then
3744 ac_cpp_err=$ac_c_preproc_warn_flag
3745 else
3746 ac_cpp_err=
3747 fi
3748 else
3749 ac_cpp_err=yes
3750 fi
3751 if test -z "$ac_cpp_err"; then
3752 # Broken: success on invalid input.
3753 continue
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 # Passes both tests.
3759 ac_preproc_ok=:
3760 break
3761 fi
3762 rm -f conftest.err conftest.$ac_ext
3763
3764 done
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3768 :
3769 else
3770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771 See \`config.log' for more details." >&5
3772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783 # Find a good install program. We prefer a C program (faster),
3784 # so one script is as good as another. But avoid the broken or
3785 # incompatible versions:
3786 # SysV /etc/install, /usr/sbin/install
3787 # SunOS /usr/etc/install
3788 # IRIX /sbin/install
3789 # AIX /bin/install
3790 # AmigaOS /C/install, which installs bootblocks on floppy discs
3791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3794 # ./install, which can be erroneously created by make from ./install.sh.
3795 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3797 if test -z "$INSTALL"; then
3798 if test "${ac_cv_path_install+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 # Account for people who put trailing slashes in PATH elements.
3807 case $as_dir/ in
3808 ./ | .// | /cC/* | \
3809 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3810 /usr/ucb/* ) ;;
3811 *)
3812 # OSF1 and SCO ODT 3.0 have their own names for install.
3813 # Don't use installbsd from OSF since it installs stuff as root
3814 # by default.
3815 for ac_prog in ginstall scoinst install; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3818 if test $ac_prog = install &&
3819 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # AIX install. It has an incompatible calling convention.
3821 :
3822 elif test $ac_prog = install &&
3823 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824 # program-specific install script used by HP pwplus--don't use.
3825 :
3826 else
3827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3828 break 3
3829 fi
3830 fi
3831 done
3832 done
3833 ;;
3834 esac
3835 done
3836
3837
3838 fi
3839 if test "${ac_cv_path_install+set}" = set; then
3840 INSTALL=$ac_cv_path_install
3841 else
3842 # As a last resort, use the slow shell script. We don't cache a
3843 # path for INSTALL within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the path is relative.
3846 INSTALL=$ac_install_sh
3847 fi
3848 fi
3849 echo "$as_me:$LINENO: result: $INSTALL" >&5
3850 echo "${ECHO_T}$INSTALL" >&6
3851
3852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3853 # It thinks the first close brace ends the variable substitution.
3854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3855
3856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3857
3858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3859
3860 if test "x$RANLIB" = x; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_RANLIB+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3885
3886 fi
3887 fi
3888 RANLIB=$ac_cv_prog_RANLIB
3889 if test -n "$RANLIB"; then
3890 echo "$as_me:$LINENO: result: $RANLIB" >&5
3891 echo "${ECHO_T}$RANLIB" >&6
3892 else
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 fi
3896
3897 fi
3898 if test -z "$ac_cv_prog_RANLIB"; then
3899 ac_ct_RANLIB=$RANLIB
3900 # Extract the first word of "ranlib", so it can be a program name with args.
3901 set dummy ranlib; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 if test -n "$ac_ct_RANLIB"; then
3908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_ac_ct_RANLIB="ranlib"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921 done
3922 done
3923
3924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3925 fi
3926 fi
3927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3928 if test -n "$ac_ct_RANLIB"; then
3929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3930 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3931 else
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 RANLIB=$ac_ct_RANLIB
3937 else
3938 RANLIB="$ac_cv_prog_RANLIB"
3939 fi
3940
3941 fi
3942 # Extract the first word of "install-info", so it can be a program name with args.
3943 set dummy install-info; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 case $INSTALL_INFO in
3950 [\\/]* | ?:[\\/]*)
3951 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3952 ;;
3953 *)
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967
3968 ;;
3969 esac
3970 fi
3971 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3972
3973 if test -n "$INSTALL_INFO"; then
3974 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3975 echo "${ECHO_T}$INSTALL_INFO" >&6
3976 else
3977 echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3979 fi
3980
3981 # Extract the first word of "install-info", so it can be a program name with args.
3982 set dummy install-info; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 case $INSTALL_INFO in
3989 [\\/]* | ?:[\\/]*)
3990 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3991 ;;
3992 *)
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in /usr/sbin
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006
4007 ;;
4008 esac
4009 fi
4010 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4011
4012 if test -n "$INSTALL_INFO"; then
4013 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4014 echo "${ECHO_T}$INSTALL_INFO" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020 # Extract the first word of "install-info", so it can be a program name with args.
4021 set dummy install-info; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 case $INSTALL_INFO in
4028 [\\/]* | ?:[\\/]*)
4029 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4030 ;;
4031 *)
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in /sbin
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043 done
4044 done
4045
4046 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4047 ;;
4048 esac
4049 fi
4050 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4051
4052 if test -n "$INSTALL_INFO"; then
4053 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4054 echo "${ECHO_T}$INSTALL_INFO" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061
4062 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4063 then
4064 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4065 fi
4066
4067 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4068 then
4069 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4070 fi
4071
4072
4073
4074 echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4076 if test "${ac_cv_prog_egrep+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4080 then ac_cv_prog_egrep='grep -E'
4081 else ac_cv_prog_egrep='egrep'
4082 fi
4083 fi
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4085 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4086 EGREP=$ac_cv_prog_egrep
4087
4088
4089
4090 echo "$as_me:$LINENO: checking for AIX" >&5
4091 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #ifdef _AIX
4100 yes
4101 #endif
4102
4103 _ACEOF
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "yes" >/dev/null 2>&1; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6
4108 cat >>confdefs.h <<\_ACEOF
4109 #define _ALL_SOURCE 1
4110 _ACEOF
4111
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116 rm -f conftest*
4117
4118
4119
4120 #### Extract some information from the operating system and machine files.
4121
4122 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4123 - which libraries the lib-src programs will want, and
4124 - whether the GNU malloc routines are usable..." >&5
4125 echo "$as_me: checking the machine- and system-dependent files to find out
4126 - which libraries the lib-src programs will want, and
4127 - whether the GNU malloc routines are usable..." >&6;}
4128
4129 ### First figure out CFLAGS (which we use for running the compiler here)
4130 ### and REAL_CFLAGS (which we use for real compilation).
4131 ### The two are the same except on a few systems, where they are made
4132 ### different to work around various lossages. For example,
4133 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4134 ### as implying static linking.
4135
4136 ### If the CFLAGS env var is specified, we use that value
4137 ### instead of the default.
4138
4139 ### It's not important that this name contain the PID; you can't run
4140 ### two configures in the same directory and have anything work
4141 ### anyway.
4142 tempcname="conftest.c"
4143
4144 echo '
4145 #include "'${srcdir}'/src/'${opsysfile}'"
4146 #include "'${srcdir}'/src/'${machfile}'"
4147 #ifndef LIBS_MACHINE
4148 #define LIBS_MACHINE
4149 #endif
4150 #ifndef LIBS_SYSTEM
4151 #define LIBS_SYSTEM
4152 #endif
4153 #ifndef C_SWITCH_SYSTEM
4154 #define C_SWITCH_SYSTEM
4155 #endif
4156 #ifndef C_SWITCH_MACHINE
4157 #define C_SWITCH_MACHINE
4158 #endif
4159 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4160 configure___ c_switch_system=C_SWITCH_SYSTEM
4161 configure___ c_switch_machine=C_SWITCH_MACHINE
4162
4163 #ifndef LIB_X11_LIB
4164 #define LIB_X11_LIB -lX11
4165 #endif
4166
4167 #ifndef LIBX11_MACHINE
4168 #define LIBX11_MACHINE
4169 #endif
4170
4171 #ifndef LIBX11_SYSTEM
4172 #define LIBX11_SYSTEM
4173 #endif
4174 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4175
4176 #ifdef UNEXEC
4177 configure___ unexec=UNEXEC
4178 #else
4179 configure___ unexec=unexec.o
4180 #endif
4181
4182 #ifdef SYSTEM_MALLOC
4183 configure___ system_malloc=yes
4184 #else
4185 configure___ system_malloc=no
4186 #endif
4187
4188 #ifdef USE_MMAP_FOR_BUFFERS
4189 configure___ use_mmap_for_buffers=yes
4190 #else
4191 configure___ use_mmap_for_buffers=no
4192 #endif
4193
4194 #ifndef C_DEBUG_SWITCH
4195 #define C_DEBUG_SWITCH -g
4196 #endif
4197
4198 #ifndef C_OPTIMIZE_SWITCH
4199 #ifdef __GNUC__
4200 #define C_OPTIMIZE_SWITCH -O2
4201 #else
4202 #define C_OPTIMIZE_SWITCH -O
4203 #endif
4204 #endif
4205
4206 #ifndef LD_SWITCH_MACHINE
4207 #define LD_SWITCH_MACHINE
4208 #endif
4209
4210 #ifndef LD_SWITCH_SYSTEM
4211 #define LD_SWITCH_SYSTEM
4212 #endif
4213
4214 #ifndef LD_SWITCH_X_SITE_AUX
4215 #define LD_SWITCH_X_SITE_AUX
4216 #endif
4217
4218 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4219 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4220
4221 #ifdef THIS_IS_CONFIGURE
4222
4223 /* Get the CFLAGS for tests in configure. */
4224 #ifdef __GNUC__
4225 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4226 #else
4227 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4228 #endif
4229
4230 #else /* not THIS_IS_CONFIGURE */
4231
4232 /* Get the CFLAGS for real compilation. */
4233 #ifdef __GNUC__
4234 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4235 #else
4236 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4237 #endif
4238
4239 #endif /* not THIS_IS_CONFIGURE */
4240 ' > ${tempcname}
4241
4242 # The value of CPP is a quoted variable reference, so we need to do this
4243 # to get its actual value...
4244 CPP=`eval "echo $CPP"`
4245 eval `${CPP} -Isrc ${tempcname} \
4246 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4247 if test "x$SPECIFIED_CFLAGS" = x; then
4248 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4249 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4250 else
4251 REAL_CFLAGS="$CFLAGS"
4252 fi
4253 rm ${tempcname}
4254
4255 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4256
4257 ### Make sure subsequent tests use flags consistent with the build flags.
4258
4259 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4260 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4261 else
4262 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4263 fi
4264
4265
4266
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define _GNU_SOURCE 1
4270 _ACEOF
4271
4272
4273
4274 # Check whether --enable-largefile or --disable-largefile was given.
4275 if test "${enable_largefile+set}" = set; then
4276 enableval="$enable_largefile"
4277
4278 fi;
4279 if test "$enable_largefile" != no; then
4280
4281 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4282 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4283 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 ac_cv_sys_largefile_CC=no
4287 if test "$GCC" != yes; then
4288 ac_save_CC=$CC
4289 while :; do
4290 # IRIX 6.2 and later do not support large files by default,
4291 # so use the C compiler's -n32 option if that helps.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <sys/types.h>
4300 /* Check that off_t can represent 2**63 - 1 correctly.
4301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4302 since some C++ compilers masquerading as C compilers
4303 incorrectly reject 9223372036854775807. */
4304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4306 && LARGE_OFF_T % 2147483647 == 1)
4307 ? 1 : -1];
4308 int
4309 main ()
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 break
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 fi
4334 rm -f conftest.$ac_objext
4335 CC="$CC -n32"
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_sys_largefile_CC=' -n32'; break
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 fi
4354 rm -f conftest.$ac_objext
4355 break
4356 done
4357 CC=$ac_save_CC
4358 rm -f conftest.$ac_ext
4359 fi
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4362 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4363 if test "$ac_cv_sys_largefile_CC" != no; then
4364 CC=$CC$ac_cv_sys_largefile_CC
4365 fi
4366
4367 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4368 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4369 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 while :; do
4373 ac_cv_sys_file_offset_bits=no
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line $LINENO "configure"
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 #include <sys/types.h>
4382 /* Check that off_t can represent 2**63 - 1 correctly.
4383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384 since some C++ compilers masquerading as C compilers
4385 incorrectly reject 9223372036854775807. */
4386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388 && LARGE_OFF_T % 2147483647 == 1)
4389 ? 1 : -1];
4390 int
4391 main ()
4392 {
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 break
4411 else
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 fi
4416 rm -f conftest.$ac_objext conftest.$ac_ext
4417 cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #define _FILE_OFFSET_BITS 64
4425 #include <sys/types.h>
4426 /* Check that off_t can represent 2**63 - 1 correctly.
4427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428 since some C++ compilers masquerading as C compilers
4429 incorrectly reject 9223372036854775807. */
4430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432 && LARGE_OFF_T % 2147483647 == 1)
4433 ? 1 : -1];
4434 int
4435 main ()
4436 {
4437
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_sys_file_offset_bits=64; break
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 fi
4460 rm -f conftest.$ac_objext conftest.$ac_ext
4461 break
4462 done
4463 fi
4464 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4465 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4466 if test "$ac_cv_sys_file_offset_bits" != no; then
4467
4468 cat >>confdefs.h <<_ACEOF
4469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4470 _ACEOF
4471
4472 fi
4473 rm -f conftest*
4474 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4475 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4476 if test "${ac_cv_sys_large_files+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 while :; do
4480 ac_cv_sys_large_files=no
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <sys/types.h>
4489 /* Check that off_t can represent 2**63 - 1 correctly.
4490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4491 since some C++ compilers masquerading as C compilers
4492 incorrectly reject 9223372036854775807. */
4493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4495 && LARGE_OFF_T % 2147483647 == 1)
4496 ? 1 : -1];
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 break
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 fi
4523 rm -f conftest.$ac_objext conftest.$ac_ext
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533 /* Check that off_t can represent 2**63 - 1 correctly.
4534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535 since some C++ compilers masquerading as C compilers
4536 incorrectly reject 9223372036854775807. */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539 && LARGE_OFF_T % 2147483647 == 1)
4540 ? 1 : -1];
4541 int
4542 main ()
4543 {
4544
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_sys_large_files=1; break
4562 else
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 fi
4567 rm -f conftest.$ac_objext conftest.$ac_ext
4568 break
4569 done
4570 fi
4571 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4572 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4573 if test "$ac_cv_sys_large_files" != no; then
4574
4575 cat >>confdefs.h <<_ACEOF
4576 #define _LARGE_FILES $ac_cv_sys_large_files
4577 _ACEOF
4578
4579 fi
4580 rm -f conftest*
4581 fi
4582
4583
4584 if test "${with_sound}" != "no"; then
4585 # Sound support for GNU/Linux and the free BSDs.
4586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4588 if test "${ac_cv_header_stdc+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 #include <stdlib.h>
4599 #include <stdarg.h>
4600 #include <string.h>
4601 #include <float.h>
4602
4603 int
4604 main ()
4605 {
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_header_stdc=yes
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 ac_cv_header_stdc=no
4629 fi
4630 rm -f conftest.$ac_objext conftest.$ac_ext
4631
4632 if test $ac_cv_header_stdc = yes; then
4633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <string.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then
4646 :
4647 else
4648 ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #include <stdlib.h>
4664
4665 _ACEOF
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "free" >/dev/null 2>&1; then
4668 :
4669 else
4670 ac_cv_header_stdc=no
4671 fi
4672 rm -f conftest*
4673
4674 fi
4675
4676 if test $ac_cv_header_stdc = yes; then
4677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4678 if test "$cross_compiling" = yes; then
4679 :
4680 else
4681 cat >conftest.$ac_ext <<_ACEOF
4682 #line $LINENO "configure"
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <ctype.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4699
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 int
4702 main ()
4703 {
4704 int i;
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4708 exit(2);
4709 exit (0);
4710 }
4711 _ACEOF
4712 rm -f conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 :
4724 else
4725 echo "$as_me: program exited with status $ac_status" >&5
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ( exit $ac_status )
4730 ac_cv_header_stdc=no
4731 fi
4732 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 fi
4735 fi
4736 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4737 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4738 if test $ac_cv_header_stdc = yes; then
4739
4740 cat >>confdefs.h <<\_ACEOF
4741 #define STDC_HEADERS 1
4742 _ACEOF
4743
4744 fi
4745
4746 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4757 inttypes.h stdint.h unistd.h
4758 do
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773
4774 #include <$ac_header>
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 eval "$as_ac_Header=yes"
4789 else
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 eval "$as_ac_Header=no"
4794 fi
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4802 _ACEOF
4803
4804 fi
4805
4806 done
4807
4808
4809
4810
4811
4812 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4813 do
4814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo "$as_me:$LINENO: checking for $ac_header" >&5
4817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 fi
4821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4823 else
4824 # Is the header compilable?
4825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line $LINENO "configure"
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 #include <$ac_header>
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_header_compiler=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_header_compiler=no
4855 fi
4856 rm -f conftest.$ac_objext conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4859
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <$ac_header>
4871 _ACEOF
4872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 else
4883 ac_cpp_err=
4884 fi
4885 else
4886 ac_cpp_err=yes
4887 fi
4888 if test -z "$ac_cpp_err"; then
4889 ac_header_preproc=yes
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 ac_header_preproc=no
4895 fi
4896 rm -f conftest.err conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4899
4900 # So? What about this header?
4901 case $ac_header_compiler:$ac_header_preproc in
4902 yes:no )
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4907 (
4908 cat <<\_ASBOX
4909 ## ------------------------------------ ##
4910 ## Report this to bug-autoconf@gnu.org. ##
4911 ## ------------------------------------ ##
4912 _ASBOX
4913 ) |
4914 sed "s/^/$as_me: WARNING: /" >&2
4915 ;;
4916 no:yes )
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4923 (
4924 cat <<\_ASBOX
4925 ## ------------------------------------ ##
4926 ## Report this to bug-autoconf@gnu.org. ##
4927 ## ------------------------------------ ##
4928 _ASBOX
4929 ) |
4930 sed "s/^/$as_me: WARNING: /" >&2
4931 ;;
4932 esac
4933 echo "$as_me:$LINENO: checking for $ac_header" >&5
4934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 eval "$as_ac_Header=$ac_header_preproc"
4939 fi
4940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4942
4943 fi
4944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4945 cat >>confdefs.h <<_ACEOF
4946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4947 _ACEOF
4948
4949 fi
4950
4951 done
4952
4953 # Emulation library used on NetBSD.
4954 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 ac_check_lib_save_LIBS=$LIBS
4960 LIBS="-lossaudio $LIBS"
4961 cat >conftest.$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 #ifdef __cplusplus
4971 extern "C"
4972 #endif
4973 /* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */
4975 char _oss_ioctl ();
4976 int
4977 main ()
4978 {
4979 _oss_ioctl ();
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -s conftest$ac_exeext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_lib_ossaudio__oss_ioctl=yes
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_cv_lib_ossaudio__oss_ioctl=no
5002 fi
5003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5004 LIBS=$ac_check_lib_save_LIBS
5005 fi
5006 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5007 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5008 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5009 LIBSOUND=-lossaudio
5010 else
5011 LIBSOUND=
5012 fi
5013
5014
5015 fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5041 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5042 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5043 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5044 do
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 fi
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5054 else
5055 # Is the header compilable?
5056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_header_compiler=yes
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_header_compiler=no
5086 fi
5087 rm -f conftest.$ac_objext conftest.$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6
5090
5091 # Is the header present?
5092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <$ac_header>
5102 _ACEOF
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null; then
5111 if test -s conftest.err; then
5112 ac_cpp_err=$ac_c_preproc_warn_flag
5113 else
5114 ac_cpp_err=
5115 fi
5116 else
5117 ac_cpp_err=yes
5118 fi
5119 if test -z "$ac_cpp_err"; then
5120 ac_header_preproc=yes
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 ac_header_preproc=no
5126 fi
5127 rm -f conftest.err conftest.$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5129 echo "${ECHO_T}$ac_header_preproc" >&6
5130
5131 # So? What about this header?
5132 case $ac_header_compiler:$ac_header_preproc in
5133 yes:no )
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5138 (
5139 cat <<\_ASBOX
5140 ## ------------------------------------ ##
5141 ## Report this to bug-autoconf@gnu.org. ##
5142 ## ------------------------------------ ##
5143 _ASBOX
5144 ) |
5145 sed "s/^/$as_me: WARNING: /" >&2
5146 ;;
5147 no:yes )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154 (
5155 cat <<\_ASBOX
5156 ## ------------------------------------ ##
5157 ## Report this to bug-autoconf@gnu.org. ##
5158 ## ------------------------------------ ##
5159 _ASBOX
5160 ) |
5161 sed "s/^/$as_me: WARNING: /" >&2
5162 ;;
5163 esac
5164 echo "$as_me:$LINENO: checking for $ac_header" >&5
5165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 eval "$as_ac_Header=$ac_header_preproc"
5170 fi
5171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5173
5174 fi
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176 cat >>confdefs.h <<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5178 _ACEOF
5179
5180 fi
5181
5182 done
5183
5184
5185 for ac_header in term.h
5186 do
5187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188 echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 /* confdefs.h. */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 #include <$ac_header>
5201 _ACEOF
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null; then
5210 if test -s conftest.err; then
5211 ac_cpp_err=$ac_c_preproc_warn_flag
5212 else
5213 ac_cpp_err=
5214 fi
5215 else
5216 ac_cpp_err=yes
5217 fi
5218 if test -z "$ac_cpp_err"; then
5219 eval "$as_ac_Header=yes"
5220 else
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 eval "$as_ac_Header=no"
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227 fi
5228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5233 _ACEOF
5234
5235 fi
5236
5237 done
5238
5239 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5241 if test "${ac_cv_header_stdc+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <stdlib.h>
5252 #include <stdarg.h>
5253 #include <string.h>
5254 #include <float.h>
5255
5256 int
5257 main ()
5258 {
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_cv_header_stdc=yes
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_cv_header_stdc=no
5282 fi
5283 rm -f conftest.$ac_objext conftest.$ac_ext
5284
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <string.h>
5295
5296 _ACEOF
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev/null 2>&1; then
5299 :
5300 else
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f conftest*
5304
5305 fi
5306
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <stdlib.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then
5321 :
5322 else
5323 ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5332 :
5333 else
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <ctype.h>
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #else
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #endif
5352
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5354 int
5355 main ()
5356 {
5357 int i;
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5361 exit(2);
5362 exit (0);
5363 }
5364 _ACEOF
5365 rm -f conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 :
5377 else
5378 echo "$as_me: program exited with status $ac_status" >&5
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ( exit $ac_status )
5383 ac_cv_header_stdc=no
5384 fi
5385 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5386 fi
5387 fi
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5391 if test $ac_cv_header_stdc = yes; then
5392
5393 cat >>confdefs.h <<\_ACEOF
5394 #define STDC_HEADERS 1
5395 _ACEOF
5396
5397 fi
5398
5399 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5400 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5401 if test "${ac_cv_header_time+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 #include <sys/time.h>
5413 #include <time.h>
5414
5415 int
5416 main ()
5417 {
5418 if ((struct tm *) 0)
5419 return 0;
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_header_time=yes
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_cv_header_time=no
5442 fi
5443 rm -f conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5446 echo "${ECHO_T}$ac_cv_header_time" >&6
5447 if test $ac_cv_header_time = yes; then
5448
5449 cat >>confdefs.h <<\_ACEOF
5450 #define TIME_WITH_SYS_TIME 1
5451 _ACEOF
5452
5453 fi
5454
5455 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5456 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5457 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 /* confdefs.h. */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 $ac_includes_default
5468 int
5469 main ()
5470 {
5471 #ifndef sys_siglist
5472 char *p = (char *) sys_siglist;
5473 #endif
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_have_decl_sys_siglist=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_cv_have_decl_sys_siglist=no
5497 fi
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5501 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5502 if test $ac_cv_have_decl_sys_siglist = yes; then
5503
5504 cat >>confdefs.h <<_ACEOF
5505 #define HAVE_DECL_SYS_SIGLIST 1
5506 _ACEOF
5507
5508
5509 else
5510 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_DECL_SYS_SIGLIST 0
5512 _ACEOF
5513
5514
5515 fi
5516
5517
5518 if test $ac_cv_have_decl_sys_siglist != yes; then
5519 # For Tru64, at least:
5520 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5521 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5522 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 $ac_includes_default
5533 int
5534 main ()
5535 {
5536 #ifndef __sys_siglist
5537 char *p = (char *) __sys_siglist;
5538 #endif
5539
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_have_decl___sys_siglist=yes
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 ac_cv_have_decl___sys_siglist=no
5562 fi
5563 rm -f conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5566 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5567 if test $ac_cv_have_decl___sys_siglist = yes; then
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_DECL___SYS_SIGLIST 1
5571 _ACEOF
5572
5573
5574 else
5575 cat >>confdefs.h <<_ACEOF
5576 #define HAVE_DECL___SYS_SIGLIST 0
5577 _ACEOF
5578
5579
5580 fi
5581
5582
5583 if test $ac_cv_have_decl___sys_siglist = yes; then
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define sys_siglist __sys_siglist
5587 _ACEOF
5588
5589 fi
5590 fi
5591 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5592 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5593 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <sys/types.h>
5604 #include <sys/wait.h>
5605 #ifndef WEXITSTATUS
5606 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5607 #endif
5608 #ifndef WIFEXITED
5609 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5610 #endif
5611
5612 int
5613 main ()
5614 {
5615 int s;
5616 wait (&s);
5617 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_header_sys_wait_h=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_cv_header_sys_wait_h=no
5640 fi
5641 rm -f conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5644 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5645 if test $ac_cv_header_sys_wait_h = yes; then
5646
5647 cat >>confdefs.h <<\_ACEOF
5648 #define HAVE_SYS_WAIT_H 1
5649 _ACEOF
5650
5651 fi
5652
5653
5654 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5655 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5656 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #ifdef TIME_WITH_SYS_TIME
5667 #include <sys/time.h>
5668 #include <time.h>
5669 #else
5670 #ifdef HAVE_SYS_TIME_H
5671 #include <sys/time.h>
5672 #else
5673 #include <time.h>
5674 #endif
5675 #endif
5676 #ifdef HAVE_UTIME_H
5677 #include <utime.h>
5678 #endif
5679 int
5680 main ()
5681 {
5682 static struct utimbuf x; x.actime = x.modtime;
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 emacs_cv_struct_utimbuf=yes
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 emacs_cv_struct_utimbuf=no
5705 fi
5706 rm -f conftest.$ac_objext conftest.$ac_ext
5707 fi
5708 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5709 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5710 if test $emacs_cv_struct_utimbuf = yes; then
5711
5712 cat >>confdefs.h <<\_ACEOF
5713 #define HAVE_STRUCT_UTIMBUF 1
5714 _ACEOF
5715
5716 fi
5717
5718 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5719 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5720 if test "${ac_cv_type_signal+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 #include <signal.h>
5732 #ifdef signal
5733 # undef signal
5734 #endif
5735 #ifdef __cplusplus
5736 extern "C" void (*signal (int, void (*)(int)))(int);
5737 #else
5738 void (*signal ()) ();
5739 #endif
5740
5741 int
5742 main ()
5743 {
5744 int i;
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_type_signal=void
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 ac_cv_type_signal=int
5767 fi
5768 rm -f conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5771 echo "${ECHO_T}$ac_cv_type_signal" >&6
5772
5773 cat >>confdefs.h <<_ACEOF
5774 #define RETSIGTYPE $ac_cv_type_signal
5775 _ACEOF
5776
5777
5778
5779 echo "$as_me:$LINENO: checking for speed_t" >&5
5780 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5781 if test "${emacs_cv_speed_t+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <termios.h>
5792 int
5793 main ()
5794 {
5795 speed_t x = 1;
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -s conftest.$ac_objext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 emacs_cv_speed_t=yes
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 emacs_cv_speed_t=no
5818 fi
5819 rm -f conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5822 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5823 if test $emacs_cv_speed_t = yes; then
5824
5825 cat >>confdefs.h <<\_ACEOF
5826 #define HAVE_SPEED_T 1
5827 _ACEOF
5828
5829 fi
5830
5831 echo "$as_me:$LINENO: checking for struct timeval" >&5
5832 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5833 if test "${emacs_cv_struct_timeval+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #ifdef TIME_WITH_SYS_TIME
5844 #include <sys/time.h>
5845 #include <time.h>
5846 #else
5847 #ifdef HAVE_SYS_TIME_H
5848 #include <sys/time.h>
5849 #else
5850 #include <time.h>
5851 #endif
5852 #endif
5853 int
5854 main ()
5855 {
5856 static struct timeval x; x.tv_sec = x.tv_usec;
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 emacs_cv_struct_timeval=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 emacs_cv_struct_timeval=no
5879 fi
5880 rm -f conftest.$ac_objext conftest.$ac_ext
5881 fi
5882 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5883 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5884 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5885 if test $emacs_cv_struct_timeval = yes; then
5886
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_TIMEVAL 1
5889 _ACEOF
5890
5891 fi
5892
5893 echo "$as_me:$LINENO: checking for struct exception" >&5
5894 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5895 if test "${emacs_cv_struct_exception+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line $LINENO "configure"
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <math.h>
5906 int
5907 main ()
5908 {
5909 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest.$ac_objext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 emacs_cv_struct_exception=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931 emacs_cv_struct_exception=no
5932 fi
5933 rm -f conftest.$ac_objext conftest.$ac_ext
5934 fi
5935 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5936 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5937 HAVE_EXCEPTION=$emacs_cv_struct_exception
5938 if test $emacs_cv_struct_exception != yes; then
5939
5940 cat >>confdefs.h <<\_ACEOF
5941 #define NO_MATHERR 1
5942 _ACEOF
5943
5944 fi
5945
5946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5948 if test "${ac_cv_struct_tm+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <sys/types.h>
5959 #include <time.h>
5960
5961 int
5962 main ()
5963 {
5964 struct tm *tp; tp->tm_sec;
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971 (eval $ac_compile) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -s conftest.$ac_objext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_struct_tm=time.h
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 ac_cv_struct_tm=sys/time.h
5987 fi
5988 rm -f conftest.$ac_objext conftest.$ac_ext
5989 fi
5990 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5991 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5992 if test $ac_cv_struct_tm = sys/time.h; then
5993
5994 cat >>confdefs.h <<\_ACEOF
5995 #define TM_IN_SYS_TIME 1
5996 _ACEOF
5997
5998 fi
5999
6000 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6001 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6002 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 cat >conftest.$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <sys/types.h>
6013 #include <$ac_cv_struct_tm>
6014
6015
6016 int
6017 main ()
6018 {
6019 static struct tm ac_aggr;
6020 if (ac_aggr.tm_zone)
6021 return 0;
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_member_struct_tm_tm_zone=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <sys/types.h>
6051 #include <$ac_cv_struct_tm>
6052
6053
6054 int
6055 main ()
6056 {
6057 static struct tm ac_aggr;
6058 if (sizeof ac_aggr.tm_zone)
6059 return 0;
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_member_struct_tm_tm_zone=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_cv_member_struct_tm_tm_zone=no
6082 fi
6083 rm -f conftest.$ac_objext conftest.$ac_ext
6084 fi
6085 rm -f conftest.$ac_objext conftest.$ac_ext
6086 fi
6087 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6088 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6089 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6090
6091 cat >>confdefs.h <<_ACEOF
6092 #define HAVE_STRUCT_TM_TM_ZONE 1
6093 _ACEOF
6094
6095
6096 fi
6097
6098 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6099
6100 cat >>confdefs.h <<\_ACEOF
6101 #define HAVE_TM_ZONE 1
6102 _ACEOF
6103
6104 else
6105 echo "$as_me:$LINENO: checking for tzname" >&5
6106 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6107 if test "${ac_cv_var_tzname+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <time.h>
6118 #ifndef tzname /* For SGI. */
6119 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6120 #endif
6121
6122 int
6123 main ()
6124 {
6125 atoi(*tzname);
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_var_tzname=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_var_tzname=no
6148 fi
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6152 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6153 if test $ac_cv_var_tzname = yes; then
6154
6155 cat >>confdefs.h <<\_ACEOF
6156 #define HAVE_TZNAME 1
6157 _ACEOF
6158
6159 fi
6160 fi
6161
6162 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6163 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6164 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <time.h>
6175
6176 int
6177 main ()
6178 {
6179 static struct tm ac_aggr;
6180 if (ac_aggr.tm_gmtoff)
6181 return 0;
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_member_struct_tm_tm_gmtoff=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <time.h>
6211
6212 int
6213 main ()
6214 {
6215 static struct tm ac_aggr;
6216 if (sizeof ac_aggr.tm_gmtoff)
6217 return 0;
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_member_struct_tm_tm_gmtoff=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_cv_member_struct_tm_tm_gmtoff=no
6240 fi
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6246 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6247 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6248
6249 cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_TM_GMTOFF 1
6251 _ACEOF
6252
6253 fi
6254
6255
6256
6257 echo "$as_me:$LINENO: checking for function prototypes" >&5
6258 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6259 if test "$ac_cv_prog_cc_stdc" != no; then
6260 echo "$as_me:$LINENO: result: yes" >&5
6261 echo "${ECHO_T}yes" >&6
6262
6263 cat >>confdefs.h <<\_ACEOF
6264 #define PROTOTYPES 1
6265 _ACEOF
6266
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define __PROTOTYPES 1
6270 _ACEOF
6271
6272 else
6273 echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6
6275 fi
6276
6277 echo "$as_me:$LINENO: checking for working volatile" >&5
6278 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6279 if test "${ac_cv_c_volatile+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289
6290 int
6291 main ()
6292 {
6293
6294 volatile int x;
6295 int * volatile y;
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -s conftest.$ac_objext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_c_volatile=yes
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_cv_c_volatile=no
6318 fi
6319 rm -f conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6322 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6323 if test $ac_cv_c_volatile = no; then
6324
6325 cat >>confdefs.h <<\_ACEOF
6326 #define volatile
6327 _ACEOF
6328
6329 fi
6330
6331 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6332 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6333 if test "${ac_cv_c_const+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343
6344 int
6345 main ()
6346 {
6347 /* FIXME: Include the comments suggested by Paul. */
6348 #ifndef __cplusplus
6349 /* Ultrix mips cc rejects this. */
6350 typedef int charset[2];
6351 const charset x;
6352 /* SunOS 4.1.1 cc rejects this. */
6353 char const *const *ccp;
6354 char **p;
6355 /* NEC SVR4.0.2 mips cc rejects this. */
6356 struct point {int x, y;};
6357 static struct point const zero = {0,0};
6358 /* AIX XL C 1.02.0.0 rejects this.
6359 It does not let you subtract one const X* pointer from another in
6360 an arm of an if-expression whose if-part is not a constant
6361 expression */
6362 const char *g = "string";
6363 ccp = &g + (g ? g-g : 0);
6364 /* HPUX 7.0 cc rejects these. */
6365 ++ccp;
6366 p = (char**) ccp;
6367 ccp = (char const *const *) p;
6368 { /* SCO 3.2v4 cc rejects this. */
6369 char *t;
6370 char const *s = 0 ? (char *) 0 : (char const *) 0;
6371
6372 *t++ = 0;
6373 }
6374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6375 int x[] = {25, 17};
6376 const int *foo = &x[0];
6377 ++foo;
6378 }
6379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6380 typedef const int *iptr;
6381 iptr p = 0;
6382 ++p;
6383 }
6384 { /* AIX XL C 1.02.0.0 rejects this saying
6385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6386 struct s { int j; const int *ap[3]; };
6387 struct s *b; b->j = 5;
6388 }
6389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6390 const int foo = 10;
6391 }
6392 #endif
6393
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_c_const=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 ac_cv_c_const=no
6416 fi
6417 rm -f conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6420 echo "${ECHO_T}$ac_cv_c_const" >&6
6421 if test $ac_cv_c_const = no; then
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define const
6425 _ACEOF
6426
6427 fi
6428
6429 echo "$as_me:$LINENO: checking for void * support" >&5
6430 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6431 if test "${emacs_cv_void_star+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441
6442 int
6443 main ()
6444 {
6445 void * foo;
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 emacs_cv_void_star=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 emacs_cv_void_star=no
6468 fi
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6470 fi
6471 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6472 echo "${ECHO_T}$emacs_cv_void_star" >&6
6473 if test $emacs_cv_void_star = yes; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define POINTER_TYPE void
6476 _ACEOF
6477
6478 else
6479 cat >>confdefs.h <<\_ACEOF
6480 #define POINTER_TYPE char
6481 _ACEOF
6482
6483 fi
6484
6485
6486
6487 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6488 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6489 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 cat >conftest.make <<\_ACEOF
6494 all:
6495 @echo 'ac_maketemp="$(MAKE)"'
6496 _ACEOF
6497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6498 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6499 if test -n "$ac_maketemp"; then
6500 eval ac_cv_prog_make_${ac_make}_set=yes
6501 else
6502 eval ac_cv_prog_make_${ac_make}_set=no
6503 fi
6504 rm -f conftest.make
6505 fi
6506 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6507 echo "$as_me:$LINENO: result: yes" >&5
6508 echo "${ECHO_T}yes" >&6
6509 SET_MAKE=
6510 else
6511 echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6
6513 SET_MAKE="MAKE=${MAKE-make}"
6514 fi
6515
6516
6517 echo "$as_me:$LINENO: checking for long file names" >&5
6518 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6519 if test "${ac_cv_sys_long_file_names+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 ac_cv_sys_long_file_names=yes
6523 # Test for long file names in all the places we know might matter:
6524 # . the current directory, where building will happen
6525 # $prefix/lib where we will be installing things
6526 # $exec_prefix/lib likewise
6527 # eval it to expand exec_prefix.
6528 # $TMPDIR if set, where it might want to write temporary files
6529 # if $TMPDIR is not set:
6530 # /tmp where it might want to write temporary files
6531 # /var/tmp likewise
6532 # /usr/tmp likewise
6533 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6534 ac_tmpdirs=$TMPDIR
6535 else
6536 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6537 fi
6538 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6539 test -d $ac_dir || continue
6540 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6541 ac_xdir=$ac_dir/cf$$
6542 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6543 ac_tf1=$ac_xdir/conftest9012345
6544 ac_tf2=$ac_xdir/conftest9012346
6545 (echo 1 >$ac_tf1) 2>/dev/null
6546 (echo 2 >$ac_tf2) 2>/dev/null
6547 ac_val=`cat $ac_tf1 2>/dev/null`
6548 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6549 ac_cv_sys_long_file_names=no
6550 rm -rf $ac_xdir 2>/dev/null
6551 break
6552 fi
6553 rm -rf $ac_xdir 2>/dev/null
6554 done
6555 fi
6556 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6557 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6558 if test $ac_cv_sys_long_file_names = yes; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_LONG_FILE_NAMES 1
6562 _ACEOF
6563
6564 fi
6565
6566
6567 #### Choose a window system.
6568
6569 echo "$as_me:$LINENO: checking for X" >&5
6570 echo $ECHO_N "checking for X... $ECHO_C" >&6
6571
6572
6573 # Check whether --with-x or --without-x was given.
6574 if test "${with_x+set}" = set; then
6575 withval="$with_x"
6576
6577 fi;
6578 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6579 if test "x$with_x" = xno; then
6580 # The user explicitly disabled X.
6581 have_x=disabled
6582 else
6583 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6584 # Both variables are already set.
6585 have_x=yes
6586 else
6587 if test "${ac_cv_have_x+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590 # One or both of the vars are not set, and there is no cached value.
6591 ac_x_includes=no ac_x_libraries=no
6592 rm -fr conftest.dir
6593 if mkdir conftest.dir; then
6594 cd conftest.dir
6595 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6596 cat >Imakefile <<'_ACEOF'
6597 acfindx:
6598 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6599 _ACEOF
6600 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6601 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6602 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6603 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6604 for ac_extension in a so sl; do
6605 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6606 test -f $ac_im_libdir/libX11.$ac_extension; then
6607 ac_im_usrlibdir=$ac_im_libdir; break
6608 fi
6609 done
6610 # Screen out bogus values from the imake configuration. They are
6611 # bogus both because they are the default anyway, and because
6612 # using them would break gcc on systems where it needs fixed includes.
6613 case $ac_im_incroot in
6614 /usr/include) ;;
6615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6616 esac
6617 case $ac_im_usrlibdir in
6618 /usr/lib | /lib) ;;
6619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6620 esac
6621 fi
6622 cd ..
6623 rm -fr conftest.dir
6624 fi
6625
6626 # Standard set of common directories for X headers.
6627 # Check X11 before X11Rn because it is often a symlink to the current release.
6628 ac_x_header_dirs='
6629 /usr/X11/include
6630 /usr/X11R6/include
6631 /usr/X11R5/include
6632 /usr/X11R4/include
6633
6634 /usr/include/X11
6635 /usr/include/X11R6
6636 /usr/include/X11R5
6637 /usr/include/X11R4
6638
6639 /usr/local/X11/include
6640 /usr/local/X11R6/include
6641 /usr/local/X11R5/include
6642 /usr/local/X11R4/include
6643
6644 /usr/local/include/X11
6645 /usr/local/include/X11R6
6646 /usr/local/include/X11R5
6647 /usr/local/include/X11R4
6648
6649 /usr/X386/include
6650 /usr/x386/include
6651 /usr/XFree86/include/X11
6652
6653 /usr/include
6654 /usr/local/include
6655 /usr/unsupported/include
6656 /usr/athena/include
6657 /usr/local/x11r5/include
6658 /usr/lpp/Xamples/include
6659
6660 /usr/openwin/include
6661 /usr/openwin/share/include'
6662
6663 if test "$ac_x_includes" = no; then
6664 # Guess where to find include files, by looking for Intrinsic.h.
6665 # First, try using that file with no special directory specified.
6666 cat >conftest.$ac_ext <<_ACEOF
6667 #line $LINENO "configure"
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <X11/Intrinsic.h>
6674 _ACEOF
6675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } >/dev/null; then
6683 if test -s conftest.err; then
6684 ac_cpp_err=$ac_c_preproc_warn_flag
6685 else
6686 ac_cpp_err=
6687 fi
6688 else
6689 ac_cpp_err=yes
6690 fi
6691 if test -z "$ac_cpp_err"; then
6692 # We can compile using X headers with no special include directory.
6693 ac_x_includes=
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 for ac_dir in $ac_x_header_dirs; do
6699 if test -r "$ac_dir/X11/Intrinsic.h"; then
6700 ac_x_includes=$ac_dir
6701 break
6702 fi
6703 done
6704 fi
6705 rm -f conftest.err conftest.$ac_ext
6706 fi # $ac_x_includes = no
6707
6708 if test "$ac_x_libraries" = no; then
6709 # Check for the libraries.
6710 # See if we find them without any special options.
6711 # Don't add to $LIBS permanently.
6712 ac_save_LIBS=$LIBS
6713 LIBS="-lXt $LIBS"
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <X11/Intrinsic.h>
6722 int
6723 main ()
6724 {
6725 XtMalloc (0)
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 LIBS=$ac_save_LIBS
6743 # We can link X programs with no special library path.
6744 ac_x_libraries=
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749 LIBS=$ac_save_LIBS
6750 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6751 do
6752 # Don't even attempt the hair of trying to link an X program!
6753 for ac_extension in a so sl; do
6754 if test -r $ac_dir/libXt.$ac_extension; then
6755 ac_x_libraries=$ac_dir
6756 break 2
6757 fi
6758 done
6759 done
6760 fi
6761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6762 fi # $ac_x_libraries = no
6763
6764 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6765 # Didn't find X anywhere. Cache the known absence of X.
6766 ac_cv_have_x="have_x=no"
6767 else
6768 # Record where we found X for the cache.
6769 ac_cv_have_x="have_x=yes \
6770 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6771 fi
6772 fi
6773
6774 fi
6775 eval "$ac_cv_have_x"
6776 fi # $with_x != no
6777
6778 if test "$have_x" != yes; then
6779 echo "$as_me:$LINENO: result: $have_x" >&5
6780 echo "${ECHO_T}$have_x" >&6
6781 no_x=yes
6782 else
6783 # If each of the values was on the command line, it overrides each guess.
6784 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6785 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6786 # Update the cache value to reflect the command line values.
6787 ac_cv_have_x="have_x=yes \
6788 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6789 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6790 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6791 fi
6792
6793 if test "$no_x" = yes; then
6794 window_system=none
6795 else
6796 window_system=x11
6797 fi
6798
6799 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6800 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6801 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6802 x_default_search_path=""
6803 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6804 x_search_path="\
6805 ${x_library}/X11/%L/%T/%N%C%S:\
6806 ${x_library}/X11/%l/%T/%N%C%S:\
6807 ${x_library}/X11/%T/%N%C%S:\
6808 ${x_library}/X11/%L/%T/%N%S:\
6809 ${x_library}/X11/%l/%T/%N%S:\
6810 ${x_library}/X11/%T/%N%S"
6811 if test x"${x_default_search_path}" = x; then
6812 x_default_search_path=${x_search_path}
6813 else
6814 x_default_search_path="${x_search_path}:${x_default_search_path}"
6815 fi
6816 done
6817 fi
6818 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6819 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6820 fi
6821
6822 if test x"${x_includes}" = x; then
6823 bitmapdir=/usr/include/X11/bitmaps
6824 else
6825 # accumulate include directories that have X11 bitmap subdirectories
6826 bmd_acc="dummyval"
6827 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6828 if test -d "${bmd}/X11/bitmaps"; then
6829 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6830 fi
6831 if test -d "${bmd}/bitmaps"; then
6832 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6833 fi
6834 done
6835 if test ${bmd_acc} != "dummyval"; then
6836 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6837 fi
6838 fi
6839
6840 case "${window_system}" in
6841 x11 )
6842 HAVE_X_WINDOWS=yes
6843 HAVE_X11=yes
6844 case "${with_x_toolkit}" in
6845 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6846 motif ) USE_X_TOOLKIT=MOTIF ;;
6847 gtk ) with_gtk=yes
6848 USE_X_TOOLKIT=none ;;
6849 no ) USE_X_TOOLKIT=none ;;
6850 * ) USE_X_TOOLKIT=maybe ;;
6851 esac
6852 ;;
6853 none )
6854 HAVE_X_WINDOWS=no
6855 HAVE_X11=no
6856 USE_X_TOOLKIT=none
6857 ;;
6858 esac
6859
6860 ### If we're using X11, we should use the X menu package.
6861 HAVE_MENUS=no
6862 case ${HAVE_X11} in
6863 yes ) HAVE_MENUS=yes ;;
6864 esac
6865
6866 if test "${opsys}" = "hpux9"; then
6867 case "${x_libraries}" in
6868 *X11R4* )
6869 opsysfile="s/hpux9-x11r4.h"
6870 ;;
6871 esac
6872 fi
6873
6874 if test "${opsys}" = "hpux9shr"; then
6875 case "${x_libraries}" in
6876 *X11R4* )
6877 opsysfile="s/hpux9shxr4.h"
6878 ;;
6879 esac
6880 fi
6881
6882 ### Compute the unexec source name from the object name.
6883 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6884
6885 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6886 # Assume not, until told otherwise.
6887 GNU_MALLOC=yes
6888 doug_lea_malloc=yes
6889 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6890 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6891 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 /* System header to define __stub macros and hopefully few prototypes,
6902 which can conflict with char malloc_get_state (); below.
6903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6904 <limits.h> exists even on freestanding compilers. */
6905 #ifdef __STDC__
6906 # include <limits.h>
6907 #else
6908 # include <assert.h>
6909 #endif
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 #ifdef __cplusplus
6912 extern "C"
6913 {
6914 #endif
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6917 char malloc_get_state ();
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6922 choke me
6923 #else
6924 char (*f) () = malloc_get_state;
6925 #endif
6926 #ifdef __cplusplus
6927 }
6928 #endif
6929
6930 int
6931 main ()
6932 {
6933 return f != malloc_get_state;
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -s conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_func_malloc_get_state=yes
6951 else
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 ac_cv_func_malloc_get_state=no
6956 fi
6957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6958 fi
6959 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6960 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6961 if test $ac_cv_func_malloc_get_state = yes; then
6962 :
6963 else
6964 doug_lea_malloc=no
6965 fi
6966
6967 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6968 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6969 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 /* System header to define __stub macros and hopefully few prototypes,
6980 which can conflict with char malloc_set_state (); below.
6981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6982 <limits.h> exists even on freestanding compilers. */
6983 #ifdef __STDC__
6984 # include <limits.h>
6985 #else
6986 # include <assert.h>
6987 #endif
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 {
6992 #endif
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6995 char malloc_set_state ();
6996 /* The GNU C library defines this for functions which it implements
6997 to always fail with ENOSYS. Some functions are actually named
6998 something starting with __ and the normal name is an alias. */
6999 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7000 choke me
7001 #else
7002 char (*f) () = malloc_set_state;
7003 #endif
7004 #ifdef __cplusplus
7005 }
7006 #endif
7007
7008 int
7009 main ()
7010 {
7011 return f != malloc_set_state;
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_func_malloc_set_state=yes
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 ac_cv_func_malloc_set_state=no
7034 fi
7035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7036 fi
7037 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7038 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7039 if test $ac_cv_func_malloc_set_state = yes; then
7040 :
7041 else
7042 doug_lea_malloc=no
7043 fi
7044
7045 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7046 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7047 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 extern void (* __after_morecore_hook)();
7058 int
7059 main ()
7060 {
7061 __after_morecore_hook = 0
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -s conftest$ac_exeext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 emacs_cv_var___after_morecore_hook=yes
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 emacs_cv_var___after_morecore_hook=no
7084 fi
7085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7086 fi
7087 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7088 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7089 if test $emacs_cv_var___after_morecore_hook = no; then
7090 doug_lea_malloc=no
7091 fi
7092 if test "${system_malloc}" = "yes"; then
7093 GNU_MALLOC=no
7094 GNU_MALLOC_reason="
7095 (The GNU allocators don't work with this system configuration.)"
7096 fi
7097 if test "$doug_lea_malloc" = "yes" ; then
7098 if test "$GNU_MALLOC" = yes ; then
7099 GNU_MALLOC_reason="
7100 (Using Doug Lea's new malloc from the GNU C Library.)"
7101 fi
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define DOUG_LEA_MALLOC 1
7105 _ACEOF
7106
7107 fi
7108
7109 if test x"${REL_ALLOC}" = x; then
7110 REL_ALLOC=${GNU_MALLOC}
7111 fi
7112
7113
7114
7115
7116 for ac_header in stdlib.h unistd.h
7117 do
7118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 fi
7125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127 else
7128 # Is the header compilable?
7129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7131 cat >conftest.$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #include <$ac_header>
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_header_compiler=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_header_compiler=no
7159 fi
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7163
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7175 _ACEOF
7176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } >/dev/null; then
7184 if test -s conftest.err; then
7185 ac_cpp_err=$ac_c_preproc_warn_flag
7186 else
7187 ac_cpp_err=
7188 fi
7189 else
7190 ac_cpp_err=yes
7191 fi
7192 if test -z "$ac_cpp_err"; then
7193 ac_header_preproc=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ac_header_preproc=no
7199 fi
7200 rm -f conftest.err conftest.$ac_ext
7201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7202 echo "${ECHO_T}$ac_header_preproc" >&6
7203
7204 # So? What about this header?
7205 case $ac_header_compiler:$ac_header_preproc in
7206 yes:no )
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7211 (
7212 cat <<\_ASBOX
7213 ## ------------------------------------ ##
7214 ## Report this to bug-autoconf@gnu.org. ##
7215 ## ------------------------------------ ##
7216 _ASBOX
7217 ) |
7218 sed "s/^/$as_me: WARNING: /" >&2
7219 ;;
7220 no:yes )
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7227 (
7228 cat <<\_ASBOX
7229 ## ------------------------------------ ##
7230 ## Report this to bug-autoconf@gnu.org. ##
7231 ## ------------------------------------ ##
7232 _ASBOX
7233 ) |
7234 sed "s/^/$as_me: WARNING: /" >&2
7235 ;;
7236 esac
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 eval "$as_ac_Header=$ac_header_preproc"
7243 fi
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246
7247 fi
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 _ACEOF
7252
7253 fi
7254
7255 done
7256
7257
7258 for ac_func in getpagesize
7259 do
7260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7261 echo "$as_me:$LINENO: checking for $ac_func" >&5
7262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_var+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 /* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char $ac_func (); below.
7275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7276 <limits.h> exists even on freestanding compilers. */
7277 #ifdef __STDC__
7278 # include <limits.h>
7279 #else
7280 # include <assert.h>
7281 #endif
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 #ifdef __cplusplus
7284 extern "C"
7285 {
7286 #endif
7287 /* We use char because int might match the return type of a gcc2
7288 builtin and then its argument prototype would still apply. */
7289 char $ac_func ();
7290 /* The GNU C library defines this for functions which it implements
7291 to always fail with ENOSYS. Some functions are actually named
7292 something starting with __ and the normal name is an alias. */
7293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7294 choke me
7295 #else
7296 char (*f) () = $ac_func;
7297 #endif
7298 #ifdef __cplusplus
7299 }
7300 #endif
7301
7302 int
7303 main ()
7304 {
7305 return f != $ac_func;
7306 ;
7307 return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 eval "$as_ac_var=no"
7328 fi
7329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 fi
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7333 if test `eval echo '${'$as_ac_var'}'` = yes; then
7334 cat >>confdefs.h <<_ACEOF
7335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 _ACEOF
7337
7338 fi
7339 done
7340
7341 echo "$as_me:$LINENO: checking for working mmap" >&5
7342 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7343 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 if test "$cross_compiling" = yes; then
7347 ac_cv_func_mmap_fixed_mapped=no
7348 else
7349 cat >conftest.$ac_ext <<_ACEOF
7350 #line $LINENO "configure"
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 $ac_includes_default
7357 /* malloc might have been renamed as rpl_malloc. */
7358 #undef malloc
7359
7360 /* Thanks to Mike Haertel and Jim Avera for this test.
7361 Here is a matrix of mmap possibilities:
7362 mmap private not fixed
7363 mmap private fixed at somewhere currently unmapped
7364 mmap private fixed at somewhere already mapped
7365 mmap shared not fixed
7366 mmap shared fixed at somewhere currently unmapped
7367 mmap shared fixed at somewhere already mapped
7368 For private mappings, we should verify that changes cannot be read()
7369 back from the file, nor mmap's back from the file at a different
7370 address. (There have been systems where private was not correctly
7371 implemented like the infamous i386 svr4.0, and systems where the
7372 VM page cache was not coherent with the file system buffer cache
7373 like early versions of FreeBSD and possibly contemporary NetBSD.)
7374 For shared mappings, we should conversely verify that changes get
7375 propagated back to all the places they're supposed to be.
7376
7377 Grep wants private fixed already mapped.
7378 The main things grep needs to know about mmap are:
7379 * does it exist and is it safe to write into the mmap'd area
7380 * how to use it (BSD variants) */
7381
7382 #include <fcntl.h>
7383 #include <sys/mman.h>
7384
7385 #if !STDC_HEADERS && !HAVE_STDLIB_H
7386 char *malloc ();
7387 #endif
7388
7389 /* This mess was copied from the GNU getpagesize.h. */
7390 #if !HAVE_GETPAGESIZE
7391 /* Assume that all systems that can run configure have sys/param.h. */
7392 # if !HAVE_SYS_PARAM_H
7393 # define HAVE_SYS_PARAM_H 1
7394 # endif
7395
7396 # ifdef _SC_PAGESIZE
7397 # define getpagesize() sysconf(_SC_PAGESIZE)
7398 # else /* no _SC_PAGESIZE */
7399 # if HAVE_SYS_PARAM_H
7400 # include <sys/param.h>
7401 # ifdef EXEC_PAGESIZE
7402 # define getpagesize() EXEC_PAGESIZE
7403 # else /* no EXEC_PAGESIZE */
7404 # ifdef NBPG
7405 # define getpagesize() NBPG * CLSIZE
7406 # ifndef CLSIZE
7407 # define CLSIZE 1
7408 # endif /* no CLSIZE */
7409 # else /* no NBPG */
7410 # ifdef NBPC
7411 # define getpagesize() NBPC
7412 # else /* no NBPC */
7413 # ifdef PAGESIZE
7414 # define getpagesize() PAGESIZE
7415 # endif /* PAGESIZE */
7416 # endif /* no NBPC */
7417 # endif /* no NBPG */
7418 # endif /* no EXEC_PAGESIZE */
7419 # else /* no HAVE_SYS_PARAM_H */
7420 # define getpagesize() 8192 /* punt totally */
7421 # endif /* no HAVE_SYS_PARAM_H */
7422 # endif /* no _SC_PAGESIZE */
7423
7424 #endif /* no HAVE_GETPAGESIZE */
7425
7426 int
7427 main ()
7428 {
7429 char *data, *data2, *data3;
7430 int i, pagesize;
7431 int fd;
7432
7433 pagesize = getpagesize ();
7434
7435 /* First, make a file with some known garbage in it. */
7436 data = (char *) malloc (pagesize);
7437 if (!data)
7438 exit (1);
7439 for (i = 0; i < pagesize; ++i)
7440 *(data + i) = rand ();
7441 umask (0);
7442 fd = creat ("conftest.mmap", 0600);
7443 if (fd < 0)
7444 exit (1);
7445 if (write (fd, data, pagesize) != pagesize)
7446 exit (1);
7447 close (fd);
7448
7449 /* Next, try to mmap the file at a fixed address which already has
7450 something else allocated at it. If we can, also make sure that
7451 we see the same garbage. */
7452 fd = open ("conftest.mmap", O_RDWR);
7453 if (fd < 0)
7454 exit (1);
7455 data2 = (char *) malloc (2 * pagesize);
7456 if (!data2)
7457 exit (1);
7458 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7459 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7460 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7461 exit (1);
7462 for (i = 0; i < pagesize; ++i)
7463 if (*(data + i) != *(data2 + i))
7464 exit (1);
7465
7466 /* Finally, make sure that changes to the mapped area do not
7467 percolate back to the file as seen by read(). (This is a bug on
7468 some variants of i386 svr4.0.) */
7469 for (i = 0; i < pagesize; ++i)
7470 *(data2 + i) = *(data2 + i) + 1;
7471 data3 = (char *) malloc (pagesize);
7472 if (!data3)
7473 exit (1);
7474 if (read (fd, data3, pagesize) != pagesize)
7475 exit (1);
7476 for (i = 0; i < pagesize; ++i)
7477 if (*(data + i) != *(data3 + i))
7478 exit (1);
7479 close (fd);
7480 exit (0);
7481 }
7482 _ACEOF
7483 rm -f conftest$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_func_mmap_fixed_mapped=yes
7495 else
7496 echo "$as_me: program exited with status $ac_status" >&5
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 ( exit $ac_status )
7501 ac_cv_func_mmap_fixed_mapped=no
7502 fi
7503 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 fi
7506 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7507 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7508 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7509
7510 cat >>confdefs.h <<\_ACEOF
7511 #define HAVE_MMAP 1
7512 _ACEOF
7513
7514 fi
7515 rm -f conftest.mmap
7516
7517 if test $use_mmap_for_buffers = yes; then
7518 REL_ALLOC=no
7519 fi
7520
7521 LIBS="$libsrc_libs $LIBS"
7522
7523
7524 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7525 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7526 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 ac_check_lib_save_LIBS=$LIBS
7530 LIBS="-ldnet $LIBS"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char dnet_ntoa ();
7546 int
7547 main ()
7548 {
7549 dnet_ntoa ();
7550 ;
7551 return 0;
7552 }
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_lib_dnet_dnet_ntoa=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_cv_lib_dnet_dnet_ntoa=no
7572 fi
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7575 fi
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7577 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7578 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7579 cat >>confdefs.h <<_ACEOF
7580 #define HAVE_LIBDNET 1
7581 _ACEOF
7582
7583 LIBS="-ldnet $LIBS"
7584
7585 fi
7586
7587
7588 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7589 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7590 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lXbsd $LIBS"
7595 cat >conftest.$ac_ext <<_ACEOF
7596 #line $LINENO "configure"
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602
7603
7604 int
7605 main ()
7606 {
7607 main ();
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_lib_Xbsd_main=yes
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_cv_lib_Xbsd_main=no
7630 fi
7631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7632 LIBS=$ac_check_lib_save_LIBS
7633 fi
7634 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7635 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7636 if test $ac_cv_lib_Xbsd_main = yes; then
7637 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7638 fi
7639
7640
7641
7642 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7643 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7644 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 ac_check_lib_save_LIBS=$LIBS
7648 LIBS="-lpthreads $LIBS"
7649 cat >conftest.$ac_ext <<_ACEOF
7650 #line $LINENO "configure"
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 #ifdef __cplusplus
7659 extern "C"
7660 #endif
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7663 char cma_open ();
7664 int
7665 main ()
7666 {
7667 cma_open ();
7668 ;
7669 return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -s conftest$ac_exeext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_lib_pthreads_cma_open=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 ac_cv_lib_pthreads_cma_open=no
7690 fi
7691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7692 LIBS=$ac_check_lib_save_LIBS
7693 fi
7694 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7695 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7696 if test $ac_cv_lib_pthreads_cma_open = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_LIBPTHREADS 1
7699 _ACEOF
7700
7701 LIBS="-lpthreads $LIBS"
7702
7703 fi
7704
7705
7706 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7707 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7708 if test -d /usr/X386/include; then
7709 HAVE_XFREE386=yes
7710 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7711 else
7712 HAVE_XFREE386=no
7713 fi
7714 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7715 echo "${ECHO_T}$HAVE_XFREE386" >&6
7716
7717
7718 case ${host_os} in
7719 aix*)
7720 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7721 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7722 if test "${gdb_cv_bigtoc+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725
7726 case $GCC in
7727 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7728 *) gdb_cv_bigtoc=-bbigtoc ;;
7729 esac
7730
7731 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7732 cat >conftest.$ac_ext <<_ACEOF
7733 #line $LINENO "configure"
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739
7740 int
7741 main ()
7742 {
7743 int i;
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7760 :
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 gdb_cv_bigtoc=
7766 fi
7767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7768
7769 fi
7770 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7771 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7772 ;;
7773 esac
7774
7775 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7776 # used for the tests that follow. We set them back to REAL_CFLAGS and
7777 # REAL_CPPFLAGS later on.
7778
7779 REAL_CPPFLAGS="$CPPFLAGS"
7780
7781 if test "${HAVE_X11}" = "yes"; then
7782 DEFS="$C_SWITCH_X_SITE $DEFS"
7783 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7784 LIBS="$LIBX $LIBS"
7785 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7786 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7787
7788 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7789 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7790 # but it's more convenient here to set LD_RUN_PATH
7791 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7792 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7793 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7794 export LD_RUN_PATH
7795 fi
7796
7797 if test "${opsys}" = "gnu-linux"; then
7798 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7799 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807
7808 int
7809 main ()
7810 {
7811 XOpenDisplay ("foo");
7812 ;
7813 return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -s conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7828 xlinux_first_failure=no
7829 else
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7832
7833 xlinux_first_failure=yes
7834 fi
7835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7836 if test "${xlinux_first_failure}" = "yes"; then
7837 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7838 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7839 OLD_CPPFLAGS="$CPPFLAGS"
7840 OLD_LIBS="$LIBS"
7841 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7842 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7843 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7844 LIBS="$LIBS -b i486-linuxaout"
7845 cat >conftest.$ac_ext <<_ACEOF
7846 #line $LINENO "configure"
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852
7853 int
7854 main ()
7855 {
7856 XOpenDisplay ("foo");
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 xlinux_second_failure=no
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 xlinux_second_failure=yes
7879 fi
7880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7881 if test "${xlinux_second_failure}" = "yes"; then
7882 # If we get the same failure with -b, there is no use adding -b.
7883 # So take it out. This plays safe.
7884 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7885 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7886 CPPFLAGS="$OLD_CPPFLAGS"
7887 LIBS="$OLD_LIBS"
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7890 else
7891 echo "$as_me:$LINENO: result: yes" >&5
7892 echo "${ECHO_T}yes" >&6
7893 fi
7894 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897 fi
7898 fi
7899
7900 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7901 # header files included from there.
7902 echo "$as_me:$LINENO: checking for Xkb" >&5
7903 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7905 #line $LINENO "configure"
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <X11/Xlib.h>
7912 #include <X11/XKBlib.h>
7913 int
7914 main ()
7915 {
7916 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 emacs_xkb=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 emacs_xkb=no
7939 fi
7940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7941 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7942 echo "${ECHO_T}$emacs_xkb" >&6
7943 if test $emacs_xkb = yes; then
7944
7945 cat >>confdefs.h <<\_ACEOF
7946 #define HAVE_XKBGETKEYBOARD 1
7947 _ACEOF
7948
7949 fi
7950
7951
7952
7953
7954
7955 for ac_func in XrmSetDatabase XScreenResourceString \
7956 XScreenNumberOfScreen XSetWMProtocols
7957 do
7958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7959 echo "$as_me:$LINENO: checking for $ac_func" >&5
7960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7961 if eval "test \"\${$as_ac_var+set}\" = set"; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 /* System header to define __stub macros and hopefully few prototypes,
7972 which can conflict with char $ac_func (); below.
7973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7974 <limits.h> exists even on freestanding compilers. */
7975 #ifdef __STDC__
7976 # include <limits.h>
7977 #else
7978 # include <assert.h>
7979 #endif
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 #ifdef __cplusplus
7982 extern "C"
7983 {
7984 #endif
7985 /* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7987 char $ac_func ();
7988 /* The GNU C library defines this for functions which it implements
7989 to always fail with ENOSYS. Some functions are actually named
7990 something starting with __ and the normal name is an alias. */
7991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7992 choke me
7993 #else
7994 char (*f) () = $ac_func;
7995 #endif
7996 #ifdef __cplusplus
7997 }
7998 #endif
7999
8000 int
8001 main ()
8002 {
8003 return f != $ac_func;
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 eval "$as_ac_var=yes"
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 eval "$as_ac_var=no"
8026 fi
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034 _ACEOF
8035
8036 fi
8037 done
8038
8039 fi
8040
8041 if test "${window_system}" = "x11"; then
8042 echo "$as_me:$LINENO: checking X11 version 6" >&5
8043 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8044 if test "${emacs_cv_x11_version_6+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <X11/Xlib.h>
8055 int
8056 main ()
8057 {
8058 #if XlibSpecificationRelease < 6
8059 fail;
8060 #endif
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 emacs_cv_x11_version_6=yes
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 emacs_cv_x11_version_6=no
8084 fi
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 fi
8087
8088 if test $emacs_cv_x11_version_6 = yes; then
8089 echo "$as_me:$LINENO: result: 6 or newer" >&5
8090 echo "${ECHO_T}6 or newer" >&6
8091
8092 cat >>confdefs.h <<\_ACEOF
8093 #define HAVE_X11R6 1
8094 _ACEOF
8095
8096 else
8097 echo "$as_me:$LINENO: result: before 6" >&5
8098 echo "${ECHO_T}before 6" >&6
8099 fi
8100 fi
8101
8102 if test "${window_system}" = "x11"; then
8103 echo "$as_me:$LINENO: checking X11 version 5" >&5
8104 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8105 if test "${emacs_cv_x11_version_5+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 cat >conftest.$ac_ext <<_ACEOF
8109 #line $LINENO "configure"
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 #include <X11/Xlib.h>
8116 int
8117 main ()
8118 {
8119 #if XlibSpecificationRelease < 5
8120 fail;
8121 #endif
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 emacs_cv_x11_version_5=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 emacs_cv_x11_version_5=no
8145 fi
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 fi
8148
8149 if test $emacs_cv_x11_version_5 = yes; then
8150 echo "$as_me:$LINENO: result: 5 or newer" >&5
8151 echo "${ECHO_T}5 or newer" >&6
8152 HAVE_X11R5=yes
8153
8154 cat >>confdefs.h <<\_ACEOF
8155 #define HAVE_X11R5 1
8156 _ACEOF
8157
8158 else
8159 HAVE_X11R5=no
8160 echo "$as_me:$LINENO: result: before 5" >&5
8161 echo "${ECHO_T}before 5" >&6
8162 fi
8163 fi
8164
8165
8166
8167 HAVE_GTK=no
8168 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8169 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8170 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8171 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8172 { (exit 1); exit 1; }; };
8173 fi
8174 GLIB_REQUIRED=2.0.1
8175 GTK_REQUIRED=2.0.1
8176 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8177
8178 if test "X${with_pkg_config_prog}" != X; then
8179 PKG_CONFIG="${with_pkg_config_prog}"
8180 fi
8181
8182 succeeded=no
8183
8184 if test -z "$PKG_CONFIG"; then
8185 # Extract the first word of "pkg-config", so it can be a program name with args.
8186 set dummy pkg-config; ac_word=$2
8187 echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 case $PKG_CONFIG in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8195 ;;
8196 *)
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208 done
8209 done
8210
8211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8212 ;;
8213 esac
8214 fi
8215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8216
8217 if test -n "$PKG_CONFIG"; then
8218 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8219 echo "${ECHO_T}$PKG_CONFIG" >&6
8220 else
8221 echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6
8223 fi
8224
8225 fi
8226
8227 if test "$PKG_CONFIG" = "no" ; then
8228 echo "*** The pkg-config script could not be found. Make sure it is"
8229 echo "*** in your path, or give the full path to pkg-config with"
8230 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8232 else
8233 PKG_CONFIG_MIN_VERSION=0.9.0
8234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8235 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8236 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8237
8238 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241 succeeded=yes
8242
8243 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8244 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8245 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8246 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8247 echo "${ECHO_T}$GTK_CFLAGS" >&6
8248
8249 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8250 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8251 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8252 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8253 echo "${ECHO_T}$GTK_LIBS" >&6
8254 else
8255 GTK_CFLAGS=""
8256 GTK_LIBS=""
8257 ## If we have a custom action on failure, don't print errors, but
8258 ## do set a variable so people can do so.
8259 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8260 echo $GTK_PKG_ERRORS
8261 fi
8262
8263
8264
8265 else
8266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8268 fi
8269 fi
8270
8271 if test $succeeded = yes; then
8272 :
8273 else
8274 { { 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
8275 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;}
8276 { (exit 1); exit 1; }; }
8277 fi
8278
8279
8280
8281 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8282 HAVE_GTK=yes
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_GTK 1
8286 _ACEOF
8287
8288 USE_X_TOOLKIT=none
8289
8290 with_toolkit_scroll_bars=yes
8291 fi
8292
8293 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8294 if test x"${HAVE_X11R5}" = xyes; then
8295 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8296 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8297 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307
8308 #include <X11/Intrinsic.h>
8309 #include <X11/Xaw/Simple.h>
8310 int
8311 main ()
8312 {
8313
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 emacs_cv_x11_version_5_with_xaw=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 emacs_cv_x11_version_5_with_xaw=no
8336 fi
8337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8338 fi
8339
8340 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8341 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8342 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8343 USE_X_TOOLKIT=LUCID
8344 else
8345 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8346 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8347 USE_X_TOOLKIT=none
8348 fi
8349 else
8350 USE_X_TOOLKIT=none
8351 fi
8352 fi
8353
8354 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8355
8356 if test "${USE_X_TOOLKIT}" != "none"; then
8357 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8358 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8359 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 #include <X11/Intrinsic.h>
8370 int
8371 main ()
8372 {
8373 #if XtSpecificationRelease < 6
8374 fail;
8375 #endif
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 emacs_cv_x11_toolkit_version_6=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 emacs_cv_x11_toolkit_version_6=no
8399 fi
8400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8401 fi
8402
8403 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8404 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8405 echo "$as_me:$LINENO: result: 6 or newer" >&5
8406 echo "${ECHO_T}6 or newer" >&6
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_X11XTR6 1
8410 _ACEOF
8411
8412 else
8413 echo "$as_me:$LINENO: result: before 6" >&5
8414 echo "${ECHO_T}before 6" >&6
8415 fi
8416
8417 OLDLIBS="$LIBS"
8418 if test x$HAVE_X11XTR6 = xyes; then
8419 LIBS="-lXt -lSM -lICE $LIBS"
8420 else
8421 LIBS="-lXt $LIBS"
8422 fi
8423
8424 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8425 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8426 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lXmu $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char XmuConvertStandardSelection ();
8446 int
8447 main ()
8448 {
8449 XmuConvertStandardSelection ();
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8472 fi
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8475 fi
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8477 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8478 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_LIBXMU 1
8481 _ACEOF
8482
8483 LIBS="-lXmu $LIBS"
8484
8485 fi
8486
8487 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8488 fi
8489
8490 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8491 if test "${HAVE_X11}" = "yes"; then
8492 if test "${USE_X_TOOLKIT}" != "none"; then
8493
8494 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8495 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8496 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-lXext $LIBS"
8501 cat >conftest.$ac_ext <<_ACEOF
8502 #line $LINENO "configure"
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515 char XShapeQueryExtension ();
8516 int
8517 main ()
8518 {
8519 XShapeQueryExtension ();
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_lib_Xext_XShapeQueryExtension=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_lib_Xext_XShapeQueryExtension=no
8542 fi
8543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8547 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8548 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define HAVE_LIBXEXT 1
8551 _ACEOF
8552
8553 LIBS="-lXext $LIBS"
8554
8555 fi
8556
8557 fi
8558 fi
8559
8560 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8561 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8562 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8563 if test "${emacs_cv_lesstif+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 # We put this in CFLAGS temporarily to precede other -I options
8567 # that might be in CFLAGS temporarily.
8568 # We put this in CPPFLAGS where it precedes the other -I options.
8569 OLD_CPPFLAGS=$CPPFLAGS
8570 OLD_CFLAGS=$CFLAGS
8571 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8572 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8581 int
8582 main ()
8583 {
8584 int x = 5;
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 emacs_cv_lesstif=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 emacs_cv_lesstif=no
8607 fi
8608 rm -f conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8611 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8612 if test $emacs_cv_lesstif = yes; then
8613 # Make sure this -I option remains in CPPFLAGS after it is set
8614 # back to REAL_CPPFLAGS.
8615 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8616 # have those other -I options anyway. Ultimately, having this
8617 # directory ultimately in CPPFLAGS will be enough.
8618 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8619 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8620 else
8621 CFLAGS=$OLD_CFLAGS
8622 CPPFLAGS=$OLD_CPPFLAGS
8623 fi
8624 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8625 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8626 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 #include <Xm/Xm.h>
8637 int
8638 main ()
8639 {
8640 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8641 int x = 5;
8642 #else
8643 Motif version prior to 2.1.
8644 #endif
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 emacs_cv_motif_version_2_1=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 emacs_cv_motif_version_2_1=no
8667 fi
8668 rm -f conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8671 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8672 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8673 if test $emacs_cv_motif_version_2_1 = yes; then
8674 HAVE_LIBXP=no
8675
8676 cat >>confdefs.h <<\_ACEOF
8677 #define HAVE_MOTIF_2_1 1
8678 _ACEOF
8679
8680 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8681 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8682 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lXp $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 #ifdef __cplusplus
8697 extern "C"
8698 #endif
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8701 char XpCreateContext ();
8702 int
8703 main ()
8704 {
8705 XpCreateContext ();
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_cv_lib_Xp_XpCreateContext=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_cv_lib_Xp_XpCreateContext=no
8728 fi
8729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8731 fi
8732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8733 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8734 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8735 HAVE_LIBXP=yes
8736 fi
8737
8738 if test ${HAVE_LIBXP} = yes; then
8739
8740 cat >>confdefs.h <<\_ACEOF
8741 #define HAVE_LIBXP 1
8742 _ACEOF
8743
8744 fi
8745 fi
8746 fi
8747
8748 ### Is -lXaw3d available?
8749 HAVE_XAW3D=no
8750 if test "${HAVE_X11}" = "yes"; then
8751 if test "${USE_X_TOOLKIT}" != "none"; then
8752 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8753 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8754 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <X11/Xaw3d/Scrollbar.h>
8765 _ACEOF
8766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } >/dev/null; then
8774 if test -s conftest.err; then
8775 ac_cpp_err=$ac_c_preproc_warn_flag
8776 else
8777 ac_cpp_err=
8778 fi
8779 else
8780 ac_cpp_err=yes
8781 fi
8782 if test -z "$ac_cpp_err"; then
8783 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8784 else
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8789 fi
8790 rm -f conftest.err conftest.$ac_ext
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8793 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8794 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8795 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8796 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8797 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 ac_check_lib_save_LIBS=$LIBS
8801 LIBS="-lXaw3d $LIBS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803 #line $LINENO "configure"
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809
8810 /* Override any gcc2 internal prototype to avoid an error. */
8811 #ifdef __cplusplus
8812 extern "C"
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8816 char XawScrollbarSetThumb ();
8817 int
8818 main ()
8819 {
8820 XawScrollbarSetThumb ();
8821 ;
8822 return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8838 else
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8846 fi
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8848 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8849 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8850 HAVE_XAW3D=yes
8851 fi
8852
8853 fi
8854
8855
8856 if test "${HAVE_XAW3D}" = "yes"; then
8857
8858 cat >>confdefs.h <<\_ACEOF
8859 #define HAVE_XAW3D 1
8860 _ACEOF
8861
8862 fi
8863 fi
8864 fi
8865
8866
8867
8868 USE_TOOLKIT_SCROLL_BARS=no
8869 if test "${with_toolkit_scroll_bars}" != "no"; then
8870 if test "${USE_X_TOOLKIT}" != "none"; then
8871 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define USE_TOOLKIT_SCROLL_BARS 1
8874 _ACEOF
8875
8876 HAVE_XAW3D=no
8877 USE_TOOLKIT_SCROLL_BARS=yes
8878 elif test "${HAVE_XAW3D}" = "yes"; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define USE_TOOLKIT_SCROLL_BARS 1
8881 _ACEOF
8882
8883 USE_TOOLKIT_SCROLL_BARS=yes
8884 fi
8885 elif test "${HAVE_GTK}" = "yes"; then
8886 cat >>confdefs.h <<\_ACEOF
8887 #define USE_TOOLKIT_SCROLL_BARS 1
8888 _ACEOF
8889
8890 USE_TOOLKIT_SCROLL_BARS=yes
8891 fi
8892 fi
8893
8894
8895 if test "${with_xim}" != "no"; then
8896
8897 cat >>confdefs.h <<\_ACEOF
8898 #define USE_XIM 1
8899 _ACEOF
8900
8901 late_CFLAGS=$CFLAGS
8902 if test "$GCC" = yes; then
8903 CFLAGS="$CFLAGS --pedantic-errors"
8904 fi
8905 cat >conftest.$ac_ext <<_ACEOF
8906 #line $LINENO "configure"
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912
8913 #include <X11/Xlib.h>
8914 #include <X11/Xresource.h>
8915 int
8916 main ()
8917 {
8918 Display *display;
8919 XrmDatabase db;
8920 char *res_name;
8921 char *res_class;
8922 XIMProc callback;
8923 XPointer *client_data;
8924 #ifndef __GNUC__
8925 /* If we're not using GCC, it's probably not XFree86, and this is
8926 probably right, but we can't use something like --pedantic-errors. */
8927 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8928 char*, XIMProc, XPointer*);
8929 #endif
8930 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8931 client_data);
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 emacs_cv_arg6_star=yes
8949 else
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 fi
8954 rm -f conftest.$ac_objext conftest.$ac_ext
8955
8956 if test "$emacs_cv_arg6_star" = yes; then
8957 cat >>confdefs.h <<\_ACEOF
8958 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8959 _ACEOF
8960
8961 else
8962 cat >>confdefs.h <<\_ACEOF
8963 #define XRegisterIMInstantiateCallback_arg6 XPointer
8964 _ACEOF
8965
8966 fi
8967 CFLAGS=$late_CFLAGS
8968 fi
8969
8970 ### Use -lXpm if available, unless `--with-xpm=no'.
8971 HAVE_XPM=no
8972 if test "${HAVE_X11}" = "yes"; then
8973 if test "${with_xpm}" != "no"; then
8974 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8975 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8976 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8977 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 fi
8980 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8981 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8982 else
8983 # Is the header compilable?
8984 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8985 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8986 cat >conftest.$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 $ac_includes_default
8994 #include <X11/xpm.h>
8995 _ACEOF
8996 rm -f conftest.$ac_objext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8998 (eval $ac_compile) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_header_compiler=yes
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_header_compiler=no
9014 fi
9015 rm -f conftest.$ac_objext conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9017 echo "${ECHO_T}$ac_header_compiler" >&6
9018
9019 # Is the header present?
9020 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9021 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/xpm.h>
9030 _ACEOF
9031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } >/dev/null; then
9039 if test -s conftest.err; then
9040 ac_cpp_err=$ac_c_preproc_warn_flag
9041 else
9042 ac_cpp_err=
9043 fi
9044 else
9045 ac_cpp_err=yes
9046 fi
9047 if test -z "$ac_cpp_err"; then
9048 ac_header_preproc=yes
9049 else
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 ac_header_preproc=no
9054 fi
9055 rm -f conftest.err conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9057 echo "${ECHO_T}$ac_header_preproc" >&6
9058
9059 # So? What about this header?
9060 case $ac_header_compiler:$ac_header_preproc in
9061 yes:no )
9062 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9063 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9066 (
9067 cat <<\_ASBOX
9068 ## ------------------------------------ ##
9069 ## Report this to bug-autoconf@gnu.org. ##
9070 ## ------------------------------------ ##
9071 _ASBOX
9072 ) |
9073 sed "s/^/$as_me: WARNING: /" >&2
9074 ;;
9075 no:yes )
9076 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9081 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9082 (
9083 cat <<\_ASBOX
9084 ## ------------------------------------ ##
9085 ## Report this to bug-autoconf@gnu.org. ##
9086 ## ------------------------------------ ##
9087 _ASBOX
9088 ) |
9089 sed "s/^/$as_me: WARNING: /" >&2
9090 ;;
9091 esac
9092 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9093 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9094 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 ac_cv_header_X11_xpm_h=$ac_header_preproc
9098 fi
9099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9100 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9101
9102 fi
9103 if test $ac_cv_header_X11_xpm_h = yes; then
9104 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9105 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9106 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 ac_check_lib_save_LIBS=$LIBS
9110 LIBS="-lXpm -lX11 $LIBS"
9111 cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 #endif
9123 /* We use char because int might match the return type of a gcc2
9124 builtin and then its argument prototype would still apply. */
9125 char XpmReadFileToPixmap ();
9126 int
9127 main ()
9128 {
9129 XpmReadFileToPixmap ();
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9152 fi
9153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9157 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9158 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9159 HAVE_XPM=yes
9160 fi
9161
9162 fi
9163
9164
9165 if test "${HAVE_XPM}" = "yes"; then
9166 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9167 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include "X11/xpm.h"
9176 #ifndef XpmReturnAllocPixels
9177 no_return_alloc_pixels
9178 #endif
9179
9180 _ACEOF
9181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9182 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9183 HAVE_XPM=no
9184 else
9185 HAVE_XPM=yes
9186 fi
9187 rm -f conftest*
9188
9189
9190 if test "${HAVE_XPM}" = "yes"; then
9191 echo "$as_me:$LINENO: result: yes" >&5
9192 echo "${ECHO_T}yes" >&6
9193 else
9194 echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9196 fi
9197 fi
9198 fi
9199
9200 if test "${HAVE_XPM}" = "yes"; then
9201
9202 cat >>confdefs.h <<\_ACEOF
9203 #define HAVE_XPM 1
9204 _ACEOF
9205
9206 fi
9207 fi
9208
9209 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9210 HAVE_JPEG=no
9211 if test "${HAVE_X11}" = "yes"; then
9212 if test "${with_jpeg}" != "no"; then
9213 if test "${ac_cv_header_jerror_h+set}" = set; then
9214 echo "$as_me:$LINENO: checking for jerror.h" >&5
9215 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9216 if test "${ac_cv_header_jerror_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 fi
9219 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9220 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9221 else
9222 # Is the header compilable?
9223 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9224 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 $ac_includes_default
9233 #include <jerror.h>
9234 _ACEOF
9235 rm -f conftest.$ac_objext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest.$ac_objext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_header_compiler=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_header_compiler=no
9253 fi
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 echo "${ECHO_T}$ac_header_compiler" >&6
9257
9258 # Is the header present?
9259 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9260 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9261 cat >conftest.$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <jerror.h>
9269 _ACEOF
9270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } >/dev/null; then
9278 if test -s conftest.err; then
9279 ac_cpp_err=$ac_c_preproc_warn_flag
9280 else
9281 ac_cpp_err=
9282 fi
9283 else
9284 ac_cpp_err=yes
9285 fi
9286 if test -z "$ac_cpp_err"; then
9287 ac_header_preproc=yes
9288 else
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 ac_header_preproc=no
9293 fi
9294 rm -f conftest.err conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6
9297
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc in
9300 yes:no )
9301 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9305 (
9306 cat <<\_ASBOX
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9310 _ASBOX
9311 ) |
9312 sed "s/^/$as_me: WARNING: /" >&2
9313 ;;
9314 no:yes )
9315 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9320 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9321 (
9322 cat <<\_ASBOX
9323 ## ------------------------------------ ##
9324 ## Report this to bug-autoconf@gnu.org. ##
9325 ## ------------------------------------ ##
9326 _ASBOX
9327 ) |
9328 sed "s/^/$as_me: WARNING: /" >&2
9329 ;;
9330 esac
9331 echo "$as_me:$LINENO: checking for jerror.h" >&5
9332 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9333 if test "${ac_cv_header_jerror_h+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 ac_cv_header_jerror_h=$ac_header_preproc
9337 fi
9338 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9339 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9340
9341 fi
9342 if test $ac_cv_header_jerror_h = yes; then
9343 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9344 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9345 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348 ac_check_lib_save_LIBS=$LIBS
9349 LIBS="-ljpeg $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357
9358 /* Override any gcc2 internal prototype to avoid an error. */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 /* We use char because int might match the return type of a gcc2
9363 builtin and then its argument prototype would still apply. */
9364 char jpeg_destroy_compress ();
9365 int
9366 main ()
9367 {
9368 jpeg_destroy_compress ();
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375 (eval $ac_link) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9391 fi
9392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9394 fi
9395 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9396 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9397 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9398 HAVE_JPEG=yes
9399 fi
9400
9401 fi
9402
9403
9404 fi
9405
9406
9407 if test "${HAVE_JPEG}" = "yes"; then
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_JPEG 1
9410 _ACEOF
9411
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 #include <jpeglib.h>
9420 version=JPEG_LIB_VERSION
9421
9422 _ACEOF
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_JPEG 1
9427 _ACEOF
9428
9429 else
9430 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9431 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9432 HAVE_JPEG=no
9433 fi
9434 rm -f conftest*
9435
9436 fi
9437 fi
9438
9439 ### Use -lpng if available, unless `--with-png=no'.
9440 HAVE_PNG=no
9441 if test "${HAVE_X11}" = "yes"; then
9442 if test "${with_png}" != "no"; then
9443 if test "${ac_cv_header_png_h+set}" = set; then
9444 echo "$as_me:$LINENO: checking for png.h" >&5
9445 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9446 if test "${ac_cv_header_png_h+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9450 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9451 else
9452 # Is the header compilable?
9453 echo "$as_me:$LINENO: checking png.h usability" >&5
9454 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9455 cat >conftest.$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 $ac_includes_default
9463 #include <png.h>
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_header_compiler=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ac_header_compiler=no
9483 fi
9484 rm -f conftest.$ac_objext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9486 echo "${ECHO_T}$ac_header_compiler" >&6
9487
9488 # Is the header present?
9489 echo "$as_me:$LINENO: checking png.h presence" >&5
9490 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 #include <png.h>
9499 _ACEOF
9500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev/null; then
9508 if test -s conftest.err; then
9509 ac_cpp_err=$ac_c_preproc_warn_flag
9510 else
9511 ac_cpp_err=
9512 fi
9513 else
9514 ac_cpp_err=yes
9515 fi
9516 if test -z "$ac_cpp_err"; then
9517 ac_header_preproc=yes
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_header_preproc=no
9523 fi
9524 rm -f conftest.err conftest.$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9526 echo "${ECHO_T}$ac_header_preproc" >&6
9527
9528 # So? What about this header?
9529 case $ac_header_compiler:$ac_header_preproc in
9530 yes:no )
9531 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9532 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9534 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9535 (
9536 cat <<\_ASBOX
9537 ## ------------------------------------ ##
9538 ## Report this to bug-autoconf@gnu.org. ##
9539 ## ------------------------------------ ##
9540 _ASBOX
9541 ) |
9542 sed "s/^/$as_me: WARNING: /" >&2
9543 ;;
9544 no:yes )
9545 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9546 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9548 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9550 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9551 (
9552 cat <<\_ASBOX
9553 ## ------------------------------------ ##
9554 ## Report this to bug-autoconf@gnu.org. ##
9555 ## ------------------------------------ ##
9556 _ASBOX
9557 ) |
9558 sed "s/^/$as_me: WARNING: /" >&2
9559 ;;
9560 esac
9561 echo "$as_me:$LINENO: checking for png.h" >&5
9562 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9563 if test "${ac_cv_header_png_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 ac_cv_header_png_h=$ac_header_preproc
9567 fi
9568 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9569 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9570
9571 fi
9572 if test $ac_cv_header_png_h = yes; then
9573 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9574 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9575 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-lpng -lz -lm $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587
9588 /* Override any gcc2 internal prototype to avoid an error. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char png_get_channels ();
9595 int
9596 main ()
9597 {
9598 png_get_channels ();
9599 ;
9600 return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_png_png_get_channels=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 ac_cv_lib_png_png_get_channels=no
9621 fi
9622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9626 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9627 if test $ac_cv_lib_png_png_get_channels = yes; then
9628 HAVE_PNG=yes
9629 fi
9630
9631 fi
9632
9633
9634 fi
9635
9636 if test "${HAVE_PNG}" = "yes"; then
9637
9638 cat >>confdefs.h <<\_ACEOF
9639 #define HAVE_PNG 1
9640 _ACEOF
9641
9642 fi
9643 fi
9644
9645 ### Use -ltiff if available, unless `--with-tiff=no'.
9646 HAVE_TIFF=no
9647 if test "${HAVE_X11}" = "yes"; then
9648 if test "${with_tiff}" != "no"; then
9649 if test "${ac_cv_header_tiffio_h+set}" = set; then
9650 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9651 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9652 if test "${ac_cv_header_tiffio_h+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9657 else
9658 # Is the header compilable?
9659 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9660 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9661 cat >conftest.$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 #include <tiffio.h>
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_header_compiler=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_header_compiler=no
9689 fi
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6
9693
9694 # Is the header present?
9695 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9696 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9698 #line $LINENO "configure"
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <tiffio.h>
9705 _ACEOF
9706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } >/dev/null; then
9714 if test -s conftest.err; then
9715 ac_cpp_err=$ac_c_preproc_warn_flag
9716 else
9717 ac_cpp_err=
9718 fi
9719 else
9720 ac_cpp_err=yes
9721 fi
9722 if test -z "$ac_cpp_err"; then
9723 ac_header_preproc=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_header_preproc=no
9729 fi
9730 rm -f conftest.err conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6
9733
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc in
9736 yes:no )
9737 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9741 (
9742 cat <<\_ASBOX
9743 ## ------------------------------------ ##
9744 ## Report this to bug-autoconf@gnu.org. ##
9745 ## ------------------------------------ ##
9746 _ASBOX
9747 ) |
9748 sed "s/^/$as_me: WARNING: /" >&2
9749 ;;
9750 no:yes )
9751 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9752 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9754 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9757 (
9758 cat <<\_ASBOX
9759 ## ------------------------------------ ##
9760 ## Report this to bug-autoconf@gnu.org. ##
9761 ## ------------------------------------ ##
9762 _ASBOX
9763 ) |
9764 sed "s/^/$as_me: WARNING: /" >&2
9765 ;;
9766 esac
9767 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9768 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9769 if test "${ac_cv_header_tiffio_h+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 ac_cv_header_tiffio_h=$ac_header_preproc
9773 fi
9774 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9776
9777 fi
9778 if test $ac_cv_header_tiffio_h = yes; then
9779 tifflibs="-lz -lm"
9780 # At least one tiff package requires the jpeg library.
9781 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9782 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9783 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9784 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ltiff $tifflibs $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h. */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796
9797 /* Override any gcc2 internal prototype to avoid an error. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9803 char TIFFGetVersion ();
9804 int
9805 main ()
9806 {
9807 TIFFGetVersion ();
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_lib_tiff_TIFFGetVersion=yes
9825 else
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 ac_cv_lib_tiff_TIFFGetVersion=no
9830 fi
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9833 fi
9834 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9835 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9836 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9837 HAVE_TIFF=yes
9838 fi
9839
9840 fi
9841
9842
9843 fi
9844
9845 if test "${HAVE_TIFF}" = "yes"; then
9846
9847 cat >>confdefs.h <<\_ACEOF
9848 #define HAVE_TIFF 1
9849 _ACEOF
9850
9851 fi
9852 fi
9853
9854 ### Use -lgif if available, unless `--with-gif=no'.
9855 HAVE_GIF=no
9856 if test "${HAVE_X11}" = "yes"; then
9857 if test "${with_gif}" != "no"; then
9858 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9859 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9860 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9861 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 fi
9864 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9865 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9866 else
9867 # Is the header compilable?
9868 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9869 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 $ac_includes_default
9878 #include <gif_lib.h>
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_header_compiler=yes
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_header_compiler=no
9898 fi
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6
9902
9903 # Is the header present?
9904 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9905 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <gif_lib.h>
9914 _ACEOF
9915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9917 ac_status=$?
9918 grep -v '^ *+' conftest.er1 >conftest.err
9919 rm -f conftest.er1
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } >/dev/null; then
9923 if test -s conftest.err; then
9924 ac_cpp_err=$ac_c_preproc_warn_flag
9925 else
9926 ac_cpp_err=
9927 fi
9928 else
9929 ac_cpp_err=yes
9930 fi
9931 if test -z "$ac_cpp_err"; then
9932 ac_header_preproc=yes
9933 else
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_header_preproc=no
9938 fi
9939 rm -f conftest.err conftest.$ac_ext
9940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941 echo "${ECHO_T}$ac_header_preproc" >&6
9942
9943 # So? What about this header?
9944 case $ac_header_compiler:$ac_header_preproc in
9945 yes:no )
9946 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9947 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9950 (
9951 cat <<\_ASBOX
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9955 _ASBOX
9956 ) |
9957 sed "s/^/$as_me: WARNING: /" >&2
9958 ;;
9959 no:yes )
9960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9965 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9966 (
9967 cat <<\_ASBOX
9968 ## ------------------------------------ ##
9969 ## Report this to bug-autoconf@gnu.org. ##
9970 ## ------------------------------------ ##
9971 _ASBOX
9972 ) |
9973 sed "s/^/$as_me: WARNING: /" >&2
9974 ;;
9975 esac
9976 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9977 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9978 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 ac_cv_header_gif_lib_h=$ac_header_preproc
9982 fi
9983 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9984 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9985
9986 fi
9987 if test $ac_cv_header_gif_lib_h = yes; then
9988 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9989 # Earlier versions can crash Emacs.
9990 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9991 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9992 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 ac_check_lib_save_LIBS=$LIBS
9996 LIBS="-lungif $LIBS"
9997 cat >conftest.$ac_ext <<_ACEOF
9998 #line $LINENO "configure"
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10011 char EGifPutExtensionLast ();
10012 int
10013 main ()
10014 {
10015 EGifPutExtensionLast ();
10016 ;
10017 return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_cv_lib_ungif_EGifPutExtensionLast=no
10038 fi
10039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10041 fi
10042 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10043 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10044 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10045 HAVE_GIF=yes
10046 fi
10047
10048 fi
10049
10050
10051 fi
10052
10053 if test "${HAVE_GIF}" = "yes"; then
10054
10055 cat >>confdefs.h <<\_ACEOF
10056 #define HAVE_GIF 1
10057 _ACEOF
10058
10059 fi
10060 fi
10061
10062 ### Use Mac OS X Carbon API to implement GUI.
10063 HAVE_CARBON=no
10064 if test "${with_carbon}" != "no"; then
10065 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10066 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10067 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10068 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10072 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10073 else
10074 # Is the header compilable?
10075 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10076 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <Carbon/Carbon.h>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_header_compiler=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 ac_header_compiler=no
10105 fi
10106 rm -f conftest.$ac_objext conftest.$ac_ext
10107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10108 echo "${ECHO_T}$ac_header_compiler" >&6
10109
10110 # Is the header present?
10111 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10112 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Carbon/Carbon.h>
10121 _ACEOF
10122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } >/dev/null; then
10130 if test -s conftest.err; then
10131 ac_cpp_err=$ac_c_preproc_warn_flag
10132 else
10133 ac_cpp_err=
10134 fi
10135 else
10136 ac_cpp_err=yes
10137 fi
10138 if test -z "$ac_cpp_err"; then
10139 ac_header_preproc=yes
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ac_header_preproc=no
10145 fi
10146 rm -f conftest.err conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10148 echo "${ECHO_T}$ac_header_preproc" >&6
10149
10150 # So? What about this header?
10151 case $ac_header_compiler:$ac_header_preproc in
10152 yes:no )
10153 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10154 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10156 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10157 (
10158 cat <<\_ASBOX
10159 ## ------------------------------------ ##
10160 ## Report this to bug-autoconf@gnu.org. ##
10161 ## ------------------------------------ ##
10162 _ASBOX
10163 ) |
10164 sed "s/^/$as_me: WARNING: /" >&2
10165 ;;
10166 no:yes )
10167 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10168 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10170 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10173 (
10174 cat <<\_ASBOX
10175 ## ------------------------------------ ##
10176 ## Report this to bug-autoconf@gnu.org. ##
10177 ## ------------------------------------ ##
10178 _ASBOX
10179 ) |
10180 sed "s/^/$as_me: WARNING: /" >&2
10181 ;;
10182 esac
10183 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10184 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10185 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10191 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10192
10193 fi
10194 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10195 HAVE_CARBON=yes
10196 fi
10197
10198
10199 fi
10200
10201 if test "${HAVE_CARBON}" = "yes"; then
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_CARBON 1
10205 _ACEOF
10206
10207 window_system=mac
10208 ## Specify the install directory
10209 carbon_appdir=
10210 if test "${carbon_appdir_x}" != ""; then
10211 case ${carbon_appdir_x} in
10212 y | ye | yes) carbon_appdir=/Applications ;;
10213 * ) carbon_appdir=${carbon_appdir_x} ;;
10214 esac
10215 fi
10216 # We also have mouse menus.
10217 HAVE_MENUS=yes
10218 fi
10219
10220 ### Use session management (-lSM -lICE) if available
10221 HAVE_X_SM=no
10222 if test "${HAVE_X11}" = "yes"; then
10223 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10224 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10225 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10226 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 fi
10229 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10230 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10231 else
10232 # Is the header compilable?
10233 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10234 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10243 #include <X11/SM/SMlib.h>
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_header_compiler=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_header_compiler=no
10263 fi
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 echo "${ECHO_T}$ac_header_compiler" >&6
10267
10268 # Is the header present?
10269 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10270 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <X11/SM/SMlib.h>
10279 _ACEOF
10280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } >/dev/null; then
10288 if test -s conftest.err; then
10289 ac_cpp_err=$ac_c_preproc_warn_flag
10290 else
10291 ac_cpp_err=
10292 fi
10293 else
10294 ac_cpp_err=yes
10295 fi
10296 if test -z "$ac_cpp_err"; then
10297 ac_header_preproc=yes
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 ac_header_preproc=no
10303 fi
10304 rm -f conftest.err conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 echo "${ECHO_T}$ac_header_preproc" >&6
10307
10308 # So? What about this header?
10309 case $ac_header_compiler:$ac_header_preproc in
10310 yes:no )
10311 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10312 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10314 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10315 (
10316 cat <<\_ASBOX
10317 ## ------------------------------------ ##
10318 ## Report this to bug-autoconf@gnu.org. ##
10319 ## ------------------------------------ ##
10320 _ASBOX
10321 ) |
10322 sed "s/^/$as_me: WARNING: /" >&2
10323 ;;
10324 no:yes )
10325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10326 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10328 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10330 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10331 (
10332 cat <<\_ASBOX
10333 ## ------------------------------------ ##
10334 ## Report this to bug-autoconf@gnu.org. ##
10335 ## ------------------------------------ ##
10336 _ASBOX
10337 ) |
10338 sed "s/^/$as_me: WARNING: /" >&2
10339 ;;
10340 esac
10341 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10342 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10343 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10347 fi
10348 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10349 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10350
10351 fi
10352 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10353 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10354 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10355 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 ac_check_lib_save_LIBS=$LIBS
10359 LIBS="-lSM $LIBS"
10360 cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367
10368 /* Override any gcc2 internal prototype to avoid an error. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10374 char SmcOpenConnection ();
10375 int
10376 main ()
10377 {
10378 SmcOpenConnection ();
10379 ;
10380 return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_lib_SM_SmcOpenConnection=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 ac_cv_lib_SM_SmcOpenConnection=no
10401 fi
10402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10404 fi
10405 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10406 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10407 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10408 HAVE_X_SM=yes
10409 else
10410 -lICE
10411 fi
10412
10413 fi
10414
10415
10416
10417 if test "${HAVE_X_SM}" = "yes"; then
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_X_SM 1
10421 _ACEOF
10422
10423 case "$LIBS" in
10424 *-lSM*) ;;
10425 *) LIBS="-lSM -lICE $LIBS" ;;
10426 esac
10427 fi
10428 fi
10429
10430 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10431 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10432 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10433 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 /* confdefs.h. */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <netdb.h>
10444 int
10445 main ()
10446 {
10447 return h_errno;
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 emacs_cv_netdb_declares_h_errno=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 emacs_cv_netdb_declares_h_errno=no
10470 fi
10471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10474 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10475 if test $emacs_cv_netdb_declares_h_errno = yes; then
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define HAVE_H_ERRNO 1
10479 _ACEOF
10480
10481 fi
10482
10483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10484 # for constant arguments. Useless!
10485 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10486 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10487 if test "${ac_cv_working_alloca_h+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <alloca.h>
10498 int
10499 main ()
10500 {
10501 char *p = (char *) alloca (2 * sizeof (int));
10502 ;
10503 return 0;
10504 }
10505 _ACEOF
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_working_alloca_h=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_working_alloca_h=no
10524 fi
10525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10526 fi
10527 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10529 if test $ac_cv_working_alloca_h = yes; then
10530
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_ALLOCA_H 1
10533 _ACEOF
10534
10535 fi
10536
10537 echo "$as_me:$LINENO: checking for alloca" >&5
10538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10539 if test "${ac_cv_func_alloca_works+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 cat >conftest.$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #ifdef __GNUC__
10550 # define alloca __builtin_alloca
10551 #else
10552 # ifdef _MSC_VER
10553 # include <malloc.h>
10554 # define alloca _alloca
10555 # else
10556 # if HAVE_ALLOCA_H
10557 # include <alloca.h>
10558 # else
10559 # ifdef _AIX
10560 #pragma alloca
10561 # else
10562 # ifndef alloca /* predefined by HP cc +Olibcalls */
10563 char *alloca ();
10564 # endif
10565 # endif
10566 # endif
10567 # endif
10568 #endif
10569
10570 int
10571 main ()
10572 {
10573 char *p = (char *) alloca (1);
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_func_alloca_works=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_cv_func_alloca_works=no
10596 fi
10597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10598 fi
10599 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10600 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10601
10602 if test $ac_cv_func_alloca_works = yes; then
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_ALLOCA 1
10606 _ACEOF
10607
10608 else
10609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10610 # that cause trouble. Some versions do not even contain alloca or
10611 # contain a buggy version. If you still want to use their alloca,
10612 # use ar to extract alloca.o from them instead of compiling alloca.c.
10613
10614 ALLOCA=alloca.$ac_objext
10615
10616 cat >>confdefs.h <<\_ACEOF
10617 #define C_ALLOCA 1
10618 _ACEOF
10619
10620
10621 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10622 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10623 if test "${ac_cv_os_cray+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #if defined(CRAY) && ! defined(CRAY2)
10634 webecray
10635 #else
10636 wenotbecray
10637 #endif
10638
10639 _ACEOF
10640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10641 $EGREP "webecray" >/dev/null 2>&1; then
10642 ac_cv_os_cray=yes
10643 else
10644 ac_cv_os_cray=no
10645 fi
10646 rm -f conftest*
10647
10648 fi
10649 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10650 echo "${ECHO_T}$ac_cv_os_cray" >&6
10651 if test $ac_cv_os_cray = yes; then
10652 for ac_func in _getb67 GETB67 getb67; do
10653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10654 echo "$as_me:$LINENO: checking for $ac_func" >&5
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_var+set}\" = set"; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10670 #ifdef __STDC__
10671 # include <limits.h>
10672 #else
10673 # include <assert.h>
10674 #endif
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 {
10679 #endif
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10682 char $ac_func ();
10683 /* The GNU C library defines this for functions which it implements
10684 to always fail with ENOSYS. Some functions are actually named
10685 something starting with __ and the normal name is an alias. */
10686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10687 choke me
10688 #else
10689 char (*f) () = $ac_func;
10690 #endif
10691 #ifdef __cplusplus
10692 }
10693 #endif
10694
10695 int
10696 main ()
10697 {
10698 return f != $ac_func;
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 eval "$as_ac_var=yes"
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 eval "$as_ac_var=no"
10721 fi
10722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10723 fi
10724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10726 if test `eval echo '${'$as_ac_var'}'` = yes; then
10727
10728 cat >>confdefs.h <<_ACEOF
10729 #define CRAY_STACKSEG_END $ac_func
10730 _ACEOF
10731
10732 break
10733 fi
10734
10735 done
10736 fi
10737
10738 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10739 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10740 if test "${ac_cv_c_stack_direction+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 if test "$cross_compiling" = yes; then
10744 ac_cv_c_stack_direction=0
10745 else
10746 cat >conftest.$ac_ext <<_ACEOF
10747 #line $LINENO "configure"
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 int
10754 find_stack_direction ()
10755 {
10756 static char *addr = 0;
10757 auto char dummy;
10758 if (addr == 0)
10759 {
10760 addr = &dummy;
10761 return find_stack_direction ();
10762 }
10763 else
10764 return (&dummy > addr) ? 1 : -1;
10765 }
10766
10767 int
10768 main ()
10769 {
10770 exit (find_stack_direction () < 0);
10771 }
10772 _ACEOF
10773 rm -f conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_c_stack_direction=1
10785 else
10786 echo "$as_me: program exited with status $ac_status" >&5
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ( exit $ac_status )
10791 ac_cv_c_stack_direction=-1
10792 fi
10793 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10794 fi
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10798
10799 cat >>confdefs.h <<_ACEOF
10800 #define STACK_DIRECTION $ac_cv_c_stack_direction
10801 _ACEOF
10802
10803
10804 fi
10805
10806
10807 # fmod, logb, and frexp are found in -lm on most systems.
10808 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10809
10810 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10811 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10812 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lm $LIBS"
10817 cat >conftest.$ac_ext <<_ACEOF
10818 #line $LINENO "configure"
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824
10825 /* Override any gcc2 internal prototype to avoid an error. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831 char sqrt ();
10832 int
10833 main ()
10834 {
10835 sqrt ();
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_lib_m_sqrt=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_lib_m_sqrt=no
10858 fi
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10863 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10864 if test $ac_cv_lib_m_sqrt = yes; then
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_LIBM 1
10867 _ACEOF
10868
10869 LIBS="-lm $LIBS"
10870
10871 fi
10872
10873
10874 # Check for mail-locking functions in a "mail" library. Probably this should
10875 # have the same check as for liblockfile below.
10876
10877 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10878 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10879 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882 ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-lmail $LIBS"
10884 cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char maillock ();
10899 int
10900 main ()
10901 {
10902 maillock ();
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_lib_mail_maillock=yes
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_lib_mail_maillock=no
10925 fi
10926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10930 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10931 if test $ac_cv_lib_mail_maillock = yes; then
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_LIBMAIL 1
10934 _ACEOF
10935
10936 LIBS="-lmail $LIBS"
10937
10938 fi
10939
10940
10941 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10942 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10943 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-llockfile $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 #line $LINENO "configure"
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 maillock ();
10963 int
10964 main ()
10965 {
10966 maillock ();
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>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_lib_lockfile_maillock=yes
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 ac_cv_lib_lockfile_maillock=no
10989 fi
10990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10994 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10995 if test $ac_cv_lib_lockfile_maillock = yes; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define HAVE_LIBLOCKFILE 1
10998 _ACEOF
10999
11000 LIBS="-llockfile $LIBS"
11001
11002 fi
11003
11004 # If we have the shared liblockfile, assume we must use it for mail
11005 # locking (e.g. Debian). If we couldn't link against liblockfile
11006 # (no liblockfile.a installed), ensure that we don't need to.
11007 if test "$ac_cv_lib_lockfile_maillock" = no; then
11008 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11009 set dummy liblockfile.so; ac_word=$2
11010 echo "$as_me:$LINENO: checking for $ac_word" >&5
11011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012 if test "${ac_cv_prog_liblockfile+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 if test -n "$liblockfile"; then
11016 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11017 else
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11020 for as_dir in $as_dummy
11021 do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_liblockfile="yes"
11027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11029 fi
11030 done
11031 done
11032
11033 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11034 fi
11035 fi
11036 liblockfile=$ac_cv_prog_liblockfile
11037 if test -n "$liblockfile"; then
11038 echo "$as_me:$LINENO: result: $liblockfile" >&5
11039 echo "${ECHO_T}$liblockfile" >&6
11040 else
11041 echo "$as_me:$LINENO: result: no" >&5
11042 echo "${ECHO_T}no" >&6
11043 fi
11044
11045 if test $ac_cv_prog_liblockfile = yes; then
11046 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11047 This probably means that movemail could lose mail.
11048 There may be a \`development' package to install containing liblockfile." >&5
11049 echo "$as_me: error: Shared liblockfile found but can't link against it.
11050 This probably means that movemail could lose mail.
11051 There may be a \`development' package to install containing liblockfile." >&2;}
11052 { (exit 1); exit 1; }; }
11053 else :
11054 fi
11055 fi
11056
11057 for ac_func in touchlock
11058 do
11059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11060 echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_var+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 cat >conftest.$ac_ext <<_ACEOF
11066 #line $LINENO "configure"
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 /* System header to define __stub macros and hopefully few prototypes,
11073 which can conflict with char $ac_func (); below.
11074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11075 <limits.h> exists even on freestanding compilers. */
11076 #ifdef __STDC__
11077 # include <limits.h>
11078 #else
11079 # include <assert.h>
11080 #endif
11081 /* Override any gcc2 internal prototype to avoid an error. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 {
11085 #endif
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char $ac_func ();
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11093 choke me
11094 #else
11095 char (*f) () = $ac_func;
11096 #endif
11097 #ifdef __cplusplus
11098 }
11099 #endif
11100
11101 int
11102 main ()
11103 {
11104 return f != $ac_func;
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 eval "$as_ac_var=no"
11127 fi
11128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11129 fi
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11132 if test `eval echo '${'$as_ac_var'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 _ACEOF
11136
11137 fi
11138 done
11139
11140
11141 for ac_header in maillock.h
11142 do
11143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11145 echo "$as_me:$LINENO: checking for $ac_header" >&5
11146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 fi
11150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11152 else
11153 # Is the header compilable?
11154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11158 /* confdefs.h. */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 $ac_includes_default
11164 #include <$ac_header>
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler=yes
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_header_compiler=no
11184 fi
11185 rm -f conftest.$ac_objext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187 echo "${ECHO_T}$ac_header_compiler" >&6
11188
11189 # Is the header present?
11190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <$ac_header>
11200 _ACEOF
11201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null; then
11209 if test -s conftest.err; then
11210 ac_cpp_err=$ac_c_preproc_warn_flag
11211 else
11212 ac_cpp_err=
11213 fi
11214 else
11215 ac_cpp_err=yes
11216 fi
11217 if test -z "$ac_cpp_err"; then
11218 ac_header_preproc=yes
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11222
11223 ac_header_preproc=no
11224 fi
11225 rm -f conftest.err conftest.$ac_ext
11226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11227 echo "${ECHO_T}$ac_header_preproc" >&6
11228
11229 # So? What about this header?
11230 case $ac_header_compiler:$ac_header_preproc in
11231 yes:no )
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11236 (
11237 cat <<\_ASBOX
11238 ## ------------------------------------ ##
11239 ## Report this to bug-autoconf@gnu.org. ##
11240 ## ------------------------------------ ##
11241 _ASBOX
11242 ) |
11243 sed "s/^/$as_me: WARNING: /" >&2
11244 ;;
11245 no:yes )
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252 (
11253 cat <<\_ASBOX
11254 ## ------------------------------------ ##
11255 ## Report this to bug-autoconf@gnu.org. ##
11256 ## ------------------------------------ ##
11257 _ASBOX
11258 ) |
11259 sed "s/^/$as_me: WARNING: /" >&2
11260 ;;
11261 esac
11262 echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 eval "$as_ac_Header=$ac_header_preproc"
11268 fi
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11271
11272 fi
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 _ACEOF
11277
11278 fi
11279
11280 done
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350 for ac_func in gethostname getdomainname dup2 \
11351 rename closedir mkdir rmdir sysinfo \
11352 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11353 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11354 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11355 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11356 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11357 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11358 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11359 do
11360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 echo "$as_me:$LINENO: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11363 if eval "test \"\${$as_ac_var+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 cat >conftest.$ac_ext <<_ACEOF
11367 #line $LINENO "configure"
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func (); below.
11375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376 <limits.h> exists even on freestanding compilers. */
11377 #ifdef __STDC__
11378 # include <limits.h>
11379 #else
11380 # include <assert.h>
11381 #endif
11382 /* Override any gcc2 internal prototype to avoid an error. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 {
11386 #endif
11387 /* We use char because int might match the return type of a gcc2
11388 builtin and then its argument prototype would still apply. */
11389 char $ac_func ();
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11394 choke me
11395 #else
11396 char (*f) () = $ac_func;
11397 #endif
11398 #ifdef __cplusplus
11399 }
11400 #endif
11401
11402 int
11403 main ()
11404 {
11405 return f != $ac_func;
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 eval "$as_ac_var=yes"
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 eval "$as_ac_var=no"
11428 fi
11429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11430 fi
11431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11433 if test `eval echo '${'$as_ac_var'}'` = yes; then
11434 cat >>confdefs.h <<_ACEOF
11435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11436 _ACEOF
11437
11438 fi
11439 done
11440
11441
11442
11443 for ac_header in sys/un.h
11444 do
11445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 fi
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11454 else
11455 # Is the header compilable?
11456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <$ac_header>
11467 _ACEOF
11468 rm -f conftest.$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11481 else
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_compiler=no
11486 fi
11487 rm -f conftest.$ac_objext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6
11490
11491 # Is the header present?
11492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11502 _ACEOF
11503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null; then
11511 if test -s conftest.err; then
11512 ac_cpp_err=$ac_c_preproc_warn_flag
11513 else
11514 ac_cpp_err=
11515 fi
11516 else
11517 ac_cpp_err=yes
11518 fi
11519 if test -z "$ac_cpp_err"; then
11520 ac_header_preproc=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_header_preproc=no
11526 fi
11527 rm -f conftest.err conftest.$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11529 echo "${ECHO_T}$ac_header_preproc" >&6
11530
11531 # So? What about this header?
11532 case $ac_header_compiler:$ac_header_preproc in
11533 yes:no )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 (
11539 cat <<\_ASBOX
11540 ## ------------------------------------ ##
11541 ## Report this to bug-autoconf@gnu.org. ##
11542 ## ------------------------------------ ##
11543 _ASBOX
11544 ) |
11545 sed "s/^/$as_me: WARNING: /" >&2
11546 ;;
11547 no:yes )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 (
11555 cat <<\_ASBOX
11556 ## ------------------------------------ ##
11557 ## Report this to bug-autoconf@gnu.org. ##
11558 ## ------------------------------------ ##
11559 _ASBOX
11560 ) |
11561 sed "s/^/$as_me: WARNING: /" >&2
11562 ;;
11563 esac
11564 echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 eval "$as_ac_Header=$ac_header_preproc"
11570 fi
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11573
11574 fi
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581
11582 done
11583
11584
11585
11586
11587 for ac_header in sys/time.h unistd.h
11588 do
11589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 fi
11596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11598 else
11599 # Is the header compilable?
11600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 $ac_includes_default
11610 #include <$ac_header>
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_header_compiler=no
11630 fi
11631 rm -f conftest.$ac_objext conftest.$ac_ext
11632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6
11634
11635 # Is the header present?
11636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11638 cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11646 _ACEOF
11647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } >/dev/null; then
11655 if test -s conftest.err; then
11656 ac_cpp_err=$ac_c_preproc_warn_flag
11657 else
11658 ac_cpp_err=
11659 fi
11660 else
11661 ac_cpp_err=yes
11662 fi
11663 if test -z "$ac_cpp_err"; then
11664 ac_header_preproc=yes
11665 else
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_header_preproc=no
11670 fi
11671 rm -f conftest.err conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6
11674
11675 # So? What about this header?
11676 case $ac_header_compiler:$ac_header_preproc in
11677 yes:no )
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 (
11683 cat <<\_ASBOX
11684 ## ------------------------------------ ##
11685 ## Report this to bug-autoconf@gnu.org. ##
11686 ## ------------------------------------ ##
11687 _ASBOX
11688 ) |
11689 sed "s/^/$as_me: WARNING: /" >&2
11690 ;;
11691 no:yes )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11698 (
11699 cat <<\_ASBOX
11700 ## ------------------------------------ ##
11701 ## Report this to bug-autoconf@gnu.org. ##
11702 ## ------------------------------------ ##
11703 _ASBOX
11704 ) |
11705 sed "s/^/$as_me: WARNING: /" >&2
11706 ;;
11707 esac
11708 echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 eval "$as_ac_Header=$ac_header_preproc"
11714 fi
11715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11717
11718 fi
11719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11720 cat >>confdefs.h <<_ACEOF
11721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11722 _ACEOF
11723
11724 fi
11725
11726 done
11727
11728
11729 for ac_func in alarm
11730 do
11731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11734 if eval "test \"\${$as_ac_var+set}\" = set"; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 cat >conftest.$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11748 #ifdef __STDC__
11749 # include <limits.h>
11750 #else
11751 # include <assert.h>
11752 #endif
11753 /* Override any gcc2 internal prototype to avoid an error. */
11754 #ifdef __cplusplus
11755 extern "C"
11756 {
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char $ac_func ();
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11765 choke me
11766 #else
11767 char (*f) () = $ac_func;
11768 #endif
11769 #ifdef __cplusplus
11770 }
11771 #endif
11772
11773 int
11774 main ()
11775 {
11776 return f != $ac_func;
11777 ;
11778 return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 eval "$as_ac_var=yes"
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 eval "$as_ac_var=no"
11799 fi
11800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801 fi
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 _ACEOF
11808
11809 fi
11810 done
11811
11812 echo "$as_me:$LINENO: checking for working mktime" >&5
11813 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11814 if test "${ac_cv_func_working_mktime+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 if test "$cross_compiling" = yes; then
11818 ac_cv_func_working_mktime=no
11819 else
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line $LINENO "configure"
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 /* Test program from Paul Eggert and Tony Leneis. */
11828 #if TIME_WITH_SYS_TIME
11829 # include <sys/time.h>
11830 # include <time.h>
11831 #else
11832 # if HAVE_SYS_TIME_H
11833 # include <sys/time.h>
11834 # else
11835 # include <time.h>
11836 # endif
11837 #endif
11838
11839 #if HAVE_UNISTD_H
11840 # include <unistd.h>
11841 #endif
11842
11843 #if !HAVE_ALARM
11844 # define alarm(X) /* empty */
11845 #endif
11846
11847 /* Work around redefinition to rpl_putenv by other config tests. */
11848 #undef putenv
11849
11850 static time_t time_t_max;
11851
11852 /* Values we'll use to set the TZ environment variable. */
11853 static const char *const tz_strings[] = {
11854 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11855 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11856 };
11857 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11858
11859 /* Fail if mktime fails to convert a date in the spring-forward gap.
11860 Based on a problem report from Andreas Jaeger. */
11861 static void
11862 spring_forward_gap ()
11863 {
11864 /* glibc (up to about 1998-10-07) failed this test. */
11865 struct tm tm;
11866
11867 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11868 instead of "TZ=America/Vancouver" in order to detect the bug even
11869 on systems that don't support the Olson extension, or don't have the
11870 full zoneinfo tables installed. */
11871 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11872
11873 tm.tm_year = 98;
11874 tm.tm_mon = 3;
11875 tm.tm_mday = 5;
11876 tm.tm_hour = 2;
11877 tm.tm_min = 0;
11878 tm.tm_sec = 0;
11879 tm.tm_isdst = -1;
11880 if (mktime (&tm) == (time_t)-1)
11881 exit (1);
11882 }
11883
11884 static void
11885 mktime_test (now)
11886 time_t now;
11887 {
11888 struct tm *lt;
11889 if ((lt = localtime (&now)) && mktime (lt) != now)
11890 exit (1);
11891 now = time_t_max - now;
11892 if ((lt = localtime (&now)) && mktime (lt) != now)
11893 exit (1);
11894 }
11895
11896 static void
11897 irix_6_4_bug ()
11898 {
11899 /* Based on code from Ariel Faigon. */
11900 struct tm tm;
11901 tm.tm_year = 96;
11902 tm.tm_mon = 3;
11903 tm.tm_mday = 0;
11904 tm.tm_hour = 0;
11905 tm.tm_min = 0;
11906 tm.tm_sec = 0;
11907 tm.tm_isdst = -1;
11908 mktime (&tm);
11909 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11910 exit (1);
11911 }
11912
11913 static void
11914 bigtime_test (j)
11915 int j;
11916 {
11917 struct tm tm;
11918 time_t now;
11919 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11920 now = mktime (&tm);
11921 if (now != (time_t) -1)
11922 {
11923 struct tm *lt = localtime (&now);
11924 if (! (lt
11925 && lt->tm_year == tm.tm_year
11926 && lt->tm_mon == tm.tm_mon
11927 && lt->tm_mday == tm.tm_mday
11928 && lt->tm_hour == tm.tm_hour
11929 && lt->tm_min == tm.tm_min
11930 && lt->tm_sec == tm.tm_sec
11931 && lt->tm_yday == tm.tm_yday
11932 && lt->tm_wday == tm.tm_wday
11933 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11934 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11935 exit (1);
11936 }
11937 }
11938
11939 int
11940 main ()
11941 {
11942 time_t t, delta;
11943 int i, j;
11944
11945 /* This test makes some buggy mktime implementations loop.
11946 Give up after 60 seconds; a mktime slower than that
11947 isn't worth using anyway. */
11948 alarm (60);
11949
11950 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11951 continue;
11952 time_t_max--;
11953 delta = time_t_max / 997; /* a suitable prime number */
11954 for (i = 0; i < N_STRINGS; i++)
11955 {
11956 if (tz_strings[i])
11957 putenv (tz_strings[i]);
11958
11959 for (t = 0; t <= time_t_max - delta; t += delta)
11960 mktime_test (t);
11961 mktime_test ((time_t) 60 * 60);
11962 mktime_test ((time_t) 60 * 60 * 24);
11963
11964 for (j = 1; 0 < j; j *= 2)
11965 bigtime_test (j);
11966 bigtime_test (j - 1);
11967 }
11968 irix_6_4_bug ();
11969 spring_forward_gap ();
11970 exit (0);
11971 }
11972 _ACEOF
11973 rm -f conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_func_working_mktime=yes
11985 else
11986 echo "$as_me: program exited with status $ac_status" >&5
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ( exit $ac_status )
11991 ac_cv_func_working_mktime=no
11992 fi
11993 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11994 fi
11995 fi
11996 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11997 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11998 if test $ac_cv_func_working_mktime = no; then
11999 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12000 fi
12001
12002 if test "$ac_cv_func_working_mktime" = no; then
12003
12004 cat >>confdefs.h <<\_ACEOF
12005 #define BROKEN_MKTIME 1
12006 _ACEOF
12007
12008 fi
12009
12010 ac_have_func=no # yes means we've found a way to get the load average.
12011
12012 # Make sure getloadavg.c is where it belongs, at configure-time.
12013 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12014 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12015 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12016 { (exit 1); exit 1; }; }
12017
12018 ac_save_LIBS=$LIBS
12019
12020 # Check for getloadavg, but be sure not to touch the cache variable.
12021 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12022 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12023 if test "${ac_cv_func_getloadavg+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 #line $LINENO "configure"
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char getloadavg (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12042 /* Override any gcc2 internal prototype to avoid an error. */
12043 #ifdef __cplusplus
12044 extern "C"
12045 {
12046 #endif
12047 /* We use char because int might match the return type of a gcc2
12048 builtin and then its argument prototype would still apply. */
12049 char getloadavg ();
12050 /* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12054 choke me
12055 #else
12056 char (*f) () = getloadavg;
12057 #endif
12058 #ifdef __cplusplus
12059 }
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065 return f != getloadavg;
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_func_getloadavg=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_func_getloadavg=no
12088 fi
12089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12090 fi
12091 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12092 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12093 if test $ac_cv_func_getloadavg = yes; then
12094 exit 0
12095 else
12096 exit 1
12097 fi
12098 ) && ac_have_func=yes
12099
12100 # On HPUX9, an unprivileged user can get load averages through this function.
12101
12102 for ac_func in pstat_getdynamic
12103 do
12104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12105 echo "$as_me:$LINENO: checking for $ac_func" >&5
12106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_var+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110 cat >conftest.$ac_ext <<_ACEOF
12111 #line $LINENO "configure"
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 /* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char $ac_func (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12121 #ifdef __STDC__
12122 # include <limits.h>
12123 #else
12124 # include <assert.h>
12125 #endif
12126 /* Override any gcc2 internal prototype to avoid an error. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 {
12130 #endif
12131 /* We use char because int might match the return type of a gcc2
12132 builtin and then its argument prototype would still apply. */
12133 char $ac_func ();
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12138 choke me
12139 #else
12140 char (*f) () = $ac_func;
12141 #endif
12142 #ifdef __cplusplus
12143 }
12144 #endif
12145
12146 int
12147 main ()
12148 {
12149 return f != $ac_func;
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 eval "$as_ac_var=no"
12172 fi
12173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12177 if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180 _ACEOF
12181
12182 fi
12183 done
12184
12185
12186 # Solaris has libkstat which does not require root.
12187
12188 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12189 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12190 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lkstat $LIBS"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 #line $LINENO "configure"
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202
12203 /* Override any gcc2 internal prototype to avoid an error. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 /* We use char because int might match the return type of a gcc2
12208 builtin and then its argument prototype would still apply. */
12209 char kstat_open ();
12210 int
12211 main ()
12212 {
12213 kstat_open ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 rm -f conftest.$ac_objext conftest$ac_exeext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_lib_kstat_kstat_open=yes
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_lib_kstat_kstat_open=no
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12241 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12242 if test $ac_cv_lib_kstat_kstat_open = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_LIBKSTAT 1
12245 _ACEOF
12246
12247 LIBS="-lkstat $LIBS"
12248
12249 fi
12250
12251 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12252
12253 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12254 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12255 # to get the right answer into the cache.
12256 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12257 if test $ac_have_func = no; then
12258 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12259 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12260 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-lelf $LIBS"
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272
12273 /* Override any gcc2 internal prototype to avoid an error. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 /* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
12279 char elf_begin ();
12280 int
12281 main ()
12282 {
12283 elf_begin ();
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_lib_elf_elf_begin=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_cv_lib_elf_elf_begin=no
12306 fi
12307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12311 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12312 if test $ac_cv_lib_elf_elf_begin = yes; then
12313 LIBS="-lelf $LIBS"
12314 fi
12315
12316 fi
12317 if test $ac_have_func = no; then
12318 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12319 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12320 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-lkvm $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332
12333 /* Override any gcc2 internal prototype to avoid an error. */
12334 #ifdef __cplusplus
12335 extern "C"
12336 #endif
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12339 char kvm_open ();
12340 int
12341 main ()
12342 {
12343 kvm_open ();
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_kvm_kvm_open=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 ac_cv_lib_kvm_kvm_open=no
12366 fi
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12371 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12372 if test $ac_cv_lib_kvm_kvm_open = yes; then
12373 LIBS="-lkvm $LIBS"
12374 fi
12375
12376 # Check for the 4.4BSD definition of getloadavg.
12377 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12378 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12379 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-lutil $LIBS"
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391
12392 /* Override any gcc2 internal prototype to avoid an error. */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 /* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12398 char getloadavg ();
12399 int
12400 main ()
12401 {
12402 getloadavg ();
12403 ;
12404 return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -s conftest$ac_exeext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_cv_lib_util_getloadavg=yes
12420 else
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_cv_lib_util_getloadavg=no
12425 fi
12426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12428 fi
12429 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12430 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12431 if test $ac_cv_lib_util_getloadavg = yes; then
12432 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12433 fi
12434
12435 fi
12436
12437 if test $ac_have_func = no; then
12438 # There is a commonly available library for RS/6000 AIX.
12439 # Since it is not a standard part of AIX, it might be installed locally.
12440 ac_getloadavg_LIBS=$LIBS
12441 LIBS="-L/usr/local/lib $LIBS"
12442 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12443 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12444 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lgetloadavg $LIBS"
12449 cat >conftest.$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char getloadavg ();
12464 int
12465 main ()
12466 {
12467 getloadavg ();
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_lib_getloadavg_getloadavg=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 ac_cv_lib_getloadavg_getloadavg=no
12490 fi
12491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12493 fi
12494 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12495 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12496 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12497 LIBS="-lgetloadavg $LIBS"
12498 else
12499 LIBS=$ac_getloadavg_LIBS
12500 fi
12501
12502 fi
12503
12504 # Make sure it is really in the library, if we think we found it,
12505 # otherwise set up the replacement function.
12506
12507 for ac_func in getloadavg
12508 do
12509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12510 echo "$as_me:$LINENO: checking for $ac_func" >&5
12511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12512 if eval "test \"\${$as_ac_var+set}\" = set"; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 cat >conftest.$ac_ext <<_ACEOF
12516 #line $LINENO "configure"
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 /* System header to define __stub macros and hopefully few prototypes,
12523 which can conflict with char $ac_func (); below.
12524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12525 <limits.h> exists even on freestanding compilers. */
12526 #ifdef __STDC__
12527 # include <limits.h>
12528 #else
12529 # include <assert.h>
12530 #endif
12531 /* Override any gcc2 internal prototype to avoid an error. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 {
12535 #endif
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char $ac_func ();
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12543 choke me
12544 #else
12545 char (*f) () = $ac_func;
12546 #endif
12547 #ifdef __cplusplus
12548 }
12549 #endif
12550
12551 int
12552 main ()
12553 {
12554 return f != $ac_func;
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 eval "$as_ac_var=yes"
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 eval "$as_ac_var=no"
12577 fi
12578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12579 fi
12580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585 _ACEOF
12586
12587 else
12588 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define C_GETLOADAVG 1
12592 _ACEOF
12593
12594 # Figure out what our getloadavg.c needs.
12595 ac_have_func=no
12596 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12597 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12598 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12599 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 fi
12602 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12603 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12604 else
12605 # Is the header compilable?
12606 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12607 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12616 #include <sys/dg_sys_info.h>
12617 _ACEOF
12618 rm -f conftest.$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -s conftest.$ac_objext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_header_compiler=yes
12631 else
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_header_compiler=no
12636 fi
12637 rm -f conftest.$ac_objext conftest.$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12639 echo "${ECHO_T}$ac_header_compiler" >&6
12640
12641 # Is the header present?
12642 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12643 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <sys/dg_sys_info.h>
12652 _ACEOF
12653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } >/dev/null; then
12661 if test -s conftest.err; then
12662 ac_cpp_err=$ac_c_preproc_warn_flag
12663 else
12664 ac_cpp_err=
12665 fi
12666 else
12667 ac_cpp_err=yes
12668 fi
12669 if test -z "$ac_cpp_err"; then
12670 ac_header_preproc=yes
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_header_preproc=no
12676 fi
12677 rm -f conftest.err conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12679 echo "${ECHO_T}$ac_header_preproc" >&6
12680
12681 # So? What about this header?
12682 case $ac_header_compiler:$ac_header_preproc in
12683 yes:no )
12684 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12685 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12687 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12688 (
12689 cat <<\_ASBOX
12690 ## ------------------------------------ ##
12691 ## Report this to bug-autoconf@gnu.org. ##
12692 ## ------------------------------------ ##
12693 _ASBOX
12694 ) |
12695 sed "s/^/$as_me: WARNING: /" >&2
12696 ;;
12697 no:yes )
12698 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12699 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12701 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12703 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12704 (
12705 cat <<\_ASBOX
12706 ## ------------------------------------ ##
12707 ## Report this to bug-autoconf@gnu.org. ##
12708 ## ------------------------------------ ##
12709 _ASBOX
12710 ) |
12711 sed "s/^/$as_me: WARNING: /" >&2
12712 ;;
12713 esac
12714 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12715 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12716 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12720 fi
12721 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12722 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12723
12724 fi
12725 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12726 ac_have_func=yes
12727
12728 cat >>confdefs.h <<\_ACEOF
12729 #define DGUX 1
12730 _ACEOF
12731
12732
12733 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12734 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12735 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-ldgc $LIBS"
12740 cat >conftest.$ac_ext <<_ACEOF
12741 #line $LINENO "configure"
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747
12748 /* Override any gcc2 internal prototype to avoid an error. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char dg_sys_info ();
12755 int
12756 main ()
12757 {
12758 dg_sys_info ();
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_lib_dgc_dg_sys_info=yes
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_cv_lib_dgc_dg_sys_info=no
12781 fi
12782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12786 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12787 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_LIBDGC 1
12790 _ACEOF
12791
12792 LIBS="-ldgc $LIBS"
12793
12794 fi
12795
12796 fi
12797
12798
12799
12800 if test "${ac_cv_header_locale_h+set}" = set; then
12801 echo "$as_me:$LINENO: checking for locale.h" >&5
12802 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12803 if test "${ac_cv_header_locale_h+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 fi
12806 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12807 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12808 else
12809 # Is the header compilable?
12810 echo "$as_me:$LINENO: checking locale.h usability" >&5
12811 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12812 cat >conftest.$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 $ac_includes_default
12820 #include <locale.h>
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -s conftest.$ac_objext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 ac_header_compiler=yes
12835 else
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 ac_header_compiler=no
12840 fi
12841 rm -f conftest.$ac_objext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6
12844
12845 # Is the header present?
12846 echo "$as_me:$LINENO: checking locale.h presence" >&5
12847 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include <locale.h>
12856 _ACEOF
12857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev/null; then
12865 if test -s conftest.err; then
12866 ac_cpp_err=$ac_c_preproc_warn_flag
12867 else
12868 ac_cpp_err=
12869 fi
12870 else
12871 ac_cpp_err=yes
12872 fi
12873 if test -z "$ac_cpp_err"; then
12874 ac_header_preproc=yes
12875 else
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12878
12879 ac_header_preproc=no
12880 fi
12881 rm -f conftest.err conftest.$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12883 echo "${ECHO_T}$ac_header_preproc" >&6
12884
12885 # So? What about this header?
12886 case $ac_header_compiler:$ac_header_preproc in
12887 yes:no )
12888 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12889 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12891 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12892 (
12893 cat <<\_ASBOX
12894 ## ------------------------------------ ##
12895 ## Report this to bug-autoconf@gnu.org. ##
12896 ## ------------------------------------ ##
12897 _ASBOX
12898 ) |
12899 sed "s/^/$as_me: WARNING: /" >&2
12900 ;;
12901 no:yes )
12902 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12903 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12905 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12907 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12908 (
12909 cat <<\_ASBOX
12910 ## ------------------------------------ ##
12911 ## Report this to bug-autoconf@gnu.org. ##
12912 ## ------------------------------------ ##
12913 _ASBOX
12914 ) |
12915 sed "s/^/$as_me: WARNING: /" >&2
12916 ;;
12917 esac
12918 echo "$as_me:$LINENO: checking for locale.h" >&5
12919 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12920 if test "${ac_cv_header_locale_h+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 ac_cv_header_locale_h=$ac_header_preproc
12924 fi
12925 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12926 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12927
12928 fi
12929
12930
12931
12932 for ac_func in setlocale
12933 do
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 /* confdefs.h. */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 /* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func (); below.
12949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 <limits.h> exists even on freestanding compilers. */
12951 #ifdef __STDC__
12952 # include <limits.h>
12953 #else
12954 # include <assert.h>
12955 #endif
12956 /* Override any gcc2 internal prototype to avoid an error. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 {
12960 #endif
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12963 char $ac_func ();
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 char (*f) () = $ac_func;
12971 #endif
12972 #ifdef __cplusplus
12973 }
12974 #endif
12975
12976 int
12977 main ()
12978 {
12979 return f != $ac_func;
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 eval "$as_ac_var=no"
13002 fi
13003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13004 fi
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008 cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 _ACEOF
13011
13012 fi
13013 done
13014
13015
13016 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13017 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13018 # Irix 4.0.5F has the header but not the library.
13019 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13020 ac_have_func=yes
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define SVR4 1
13024 _ACEOF
13025
13026 fi
13027
13028 if test $ac_have_func = no; then
13029 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13030 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 fi
13035 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13036 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13037 else
13038 # Is the header compilable?
13039 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13040 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13042 #line $LINENO "configure"
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 $ac_includes_default
13049 #include <inq_stats/cpustats.h>
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_header_compiler=yes
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 ac_header_compiler=no
13069 fi
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13072 echo "${ECHO_T}$ac_header_compiler" >&6
13073
13074 # Is the header present?
13075 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13076 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <inq_stats/cpustats.h>
13085 _ACEOF
13086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13088 ac_status=$?
13089 grep -v '^ *+' conftest.er1 >conftest.err
13090 rm -f conftest.er1
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } >/dev/null; then
13094 if test -s conftest.err; then
13095 ac_cpp_err=$ac_c_preproc_warn_flag
13096 else
13097 ac_cpp_err=
13098 fi
13099 else
13100 ac_cpp_err=yes
13101 fi
13102 if test -z "$ac_cpp_err"; then
13103 ac_header_preproc=yes
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_header_preproc=no
13109 fi
13110 rm -f conftest.err conftest.$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112 echo "${ECHO_T}$ac_header_preproc" >&6
13113
13114 # So? What about this header?
13115 case $ac_header_compiler:$ac_header_preproc in
13116 yes:no )
13117 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13118 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13120 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13121 (
13122 cat <<\_ASBOX
13123 ## ------------------------------------ ##
13124 ## Report this to bug-autoconf@gnu.org. ##
13125 ## ------------------------------------ ##
13126 _ASBOX
13127 ) |
13128 sed "s/^/$as_me: WARNING: /" >&2
13129 ;;
13130 no:yes )
13131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13132 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13134 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13136 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13137 (
13138 cat <<\_ASBOX
13139 ## ------------------------------------ ##
13140 ## Report this to bug-autoconf@gnu.org. ##
13141 ## ------------------------------------ ##
13142 _ASBOX
13143 ) |
13144 sed "s/^/$as_me: WARNING: /" >&2
13145 ;;
13146 esac
13147 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13148 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13149 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13153 fi
13154 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13155 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13156
13157 fi
13158 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13159 ac_have_func=yes
13160
13161 cat >>confdefs.h <<\_ACEOF
13162 #define UMAX 1
13163 _ACEOF
13164
13165
13166 cat >>confdefs.h <<\_ACEOF
13167 #define UMAX4_3 1
13168 _ACEOF
13169
13170 fi
13171
13172
13173 fi
13174
13175 if test $ac_have_func = no; then
13176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13177 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13178 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13179 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 fi
13182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13183 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13184 else
13185 # Is the header compilable?
13186 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13187 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13188 cat >conftest.$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13196 #include <sys/cpustats.h>
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_header_compiler=yes
13211 else
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 ac_header_compiler=no
13216 fi
13217 rm -f conftest.$ac_objext conftest.$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13219 echo "${ECHO_T}$ac_header_compiler" >&6
13220
13221 # Is the header present?
13222 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13223 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13224 cat >conftest.$ac_ext <<_ACEOF
13225 #line $LINENO "configure"
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <sys/cpustats.h>
13232 _ACEOF
13233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } >/dev/null; then
13241 if test -s conftest.err; then
13242 ac_cpp_err=$ac_c_preproc_warn_flag
13243 else
13244 ac_cpp_err=
13245 fi
13246 else
13247 ac_cpp_err=yes
13248 fi
13249 if test -z "$ac_cpp_err"; then
13250 ac_header_preproc=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_header_preproc=no
13256 fi
13257 rm -f conftest.err conftest.$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6
13260
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc in
13263 yes:no )
13264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13268 (
13269 cat <<\_ASBOX
13270 ## ------------------------------------ ##
13271 ## Report this to bug-autoconf@gnu.org. ##
13272 ## ------------------------------------ ##
13273 _ASBOX
13274 ) |
13275 sed "s/^/$as_me: WARNING: /" >&2
13276 ;;
13277 no:yes )
13278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13279 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13281 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13283 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13284 (
13285 cat <<\_ASBOX
13286 ## ------------------------------------ ##
13287 ## Report this to bug-autoconf@gnu.org. ##
13288 ## ------------------------------------ ##
13289 _ASBOX
13290 ) |
13291 sed "s/^/$as_me: WARNING: /" >&2
13292 ;;
13293 esac
13294 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13295 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13296 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13300 fi
13301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13302 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13303
13304 fi
13305 if test $ac_cv_header_sys_cpustats_h = yes; then
13306 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13307 #define UMAX 1
13308 _ACEOF
13309
13310 fi
13311
13312
13313 fi
13314
13315 if test $ac_have_func = no; then
13316
13317 for ac_header in mach/mach.h
13318 do
13319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 fi
13326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13328 else
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 $ac_includes_default
13340 #include <$ac_header>
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ac_header_compiler=no
13360 fi
13361 rm -f conftest.$ac_objext conftest.$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363 echo "${ECHO_T}$ac_header_compiler" >&6
13364
13365 # Is the header present?
13366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <$ac_header>
13376 _ACEOF
13377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev/null; then
13385 if test -s conftest.err; then
13386 ac_cpp_err=$ac_c_preproc_warn_flag
13387 else
13388 ac_cpp_err=
13389 fi
13390 else
13391 ac_cpp_err=yes
13392 fi
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 ac_header_preproc=no
13400 fi
13401 rm -f conftest.err conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403 echo "${ECHO_T}$ac_header_preproc" >&6
13404
13405 # So? What about this header?
13406 case $ac_header_compiler:$ac_header_preproc in
13407 yes:no )
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13412 (
13413 cat <<\_ASBOX
13414 ## ------------------------------------ ##
13415 ## Report this to bug-autoconf@gnu.org. ##
13416 ## ------------------------------------ ##
13417 _ASBOX
13418 ) |
13419 sed "s/^/$as_me: WARNING: /" >&2
13420 ;;
13421 no:yes )
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 (
13429 cat <<\_ASBOX
13430 ## ------------------------------------ ##
13431 ## Report this to bug-autoconf@gnu.org. ##
13432 ## ------------------------------------ ##
13433 _ASBOX
13434 ) |
13435 sed "s/^/$as_me: WARNING: /" >&2
13436 ;;
13437 esac
13438 echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 eval "$as_ac_Header=$ac_header_preproc"
13444 fi
13445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13447
13448 fi
13449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450 cat >>confdefs.h <<_ACEOF
13451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452 _ACEOF
13453
13454 fi
13455
13456 done
13457
13458 fi
13459
13460
13461 for ac_header in nlist.h
13462 do
13463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465 echo "$as_me:$LINENO: checking for $ac_header" >&5
13466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 fi
13470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13472 else
13473 # Is the header compilable?
13474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 #include <$ac_header>
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_header_compiler=no
13504 fi
13505 rm -f conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13508
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13520 _ACEOF
13521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } >/dev/null; then
13529 if test -s conftest.err; then
13530 ac_cpp_err=$ac_c_preproc_warn_flag
13531 else
13532 ac_cpp_err=
13533 fi
13534 else
13535 ac_cpp_err=yes
13536 fi
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_header_preproc=no
13544 fi
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13548
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc in
13551 yes:no )
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13556 (
13557 cat <<\_ASBOX
13558 ## ------------------------------------ ##
13559 ## Report this to bug-autoconf@gnu.org. ##
13560 ## ------------------------------------ ##
13561 _ASBOX
13562 ) |
13563 sed "s/^/$as_me: WARNING: /" >&2
13564 ;;
13565 no:yes )
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13572 (
13573 cat <<\_ASBOX
13574 ## ------------------------------------ ##
13575 ## Report this to bug-autoconf@gnu.org. ##
13576 ## ------------------------------------ ##
13577 _ASBOX
13578 ) |
13579 sed "s/^/$as_me: WARNING: /" >&2
13580 ;;
13581 esac
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 eval "$as_ac_Header=$ac_header_preproc"
13588 fi
13589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13591
13592 fi
13593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13594 cat >>confdefs.h <<_ACEOF
13595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13596 _ACEOF
13597 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13598 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13599 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <nlist.h>
13610
13611 int
13612 main ()
13613 {
13614 static struct nlist ac_aggr;
13615 if (ac_aggr.n_un.n_name)
13616 return 0;
13617 ;
13618 return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_member_struct_nlist_n_un_n_name=yes
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 #include <nlist.h>
13646
13647 int
13648 main ()
13649 {
13650 static struct nlist ac_aggr;
13651 if (sizeof ac_aggr.n_un.n_name)
13652 return 0;
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_cv_member_struct_nlist_n_un_n_name=yes
13670 else
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 ac_cv_member_struct_nlist_n_un_n_name=no
13675 fi
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13677 fi
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13679 fi
13680 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13681 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13682 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13683
13684 cat >>confdefs.h <<_ACEOF
13685 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13686 _ACEOF
13687
13688
13689 cat >>confdefs.h <<\_ACEOF
13690 #define NLIST_NAME_UNION 1
13691 _ACEOF
13692
13693 fi
13694
13695
13696 fi
13697
13698 done
13699
13700 fi
13701 done
13702
13703
13704 # Some definitions of getloadavg require that the program be installed setgid.
13705 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13706 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13707 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13718 #ifdef LDAV_PRIVILEGED
13719 Yowza Am I SETGID yet
13720 #endif
13721 _ACEOF
13722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13723 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13724 ac_cv_func_getloadavg_setgid=yes
13725 else
13726 ac_cv_func_getloadavg_setgid=no
13727 fi
13728 rm -f conftest*
13729
13730 fi
13731 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13732 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13733 if test $ac_cv_func_getloadavg_setgid = yes; then
13734 NEED_SETGID=true
13735
13736 cat >>confdefs.h <<\_ACEOF
13737 #define GETLOADAVG_PRIVILEGED 1
13738 _ACEOF
13739
13740 else
13741 NEED_SETGID=false
13742 fi
13743
13744 if test $ac_cv_func_getloadavg_setgid = yes; then
13745 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13746 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13747 if test "${ac_cv_group_kmem+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13751 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13752 # If we got an error (system does not support symlinks), try without -L.
13753 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13754 ac_cv_group_kmem=`echo $ac_ls_output \
13755 | sed -ne 's/[ ][ ]*/ /g;
13756 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13757 / /s/.* //;p;'`
13758
13759 fi
13760 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13761 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13762 KMEM_GROUP=$ac_cv_group_kmem
13763 fi
13764 if test "x$ac_save_LIBS" = x; then
13765 GETLOADAVG_LIBS=$LIBS
13766 else
13767 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13768 fi
13769 LIBS=$ac_save_LIBS
13770
13771
13772
13773 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13774 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13775 if test "${ac_cv_sys_largefile_source+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778 while :; do
13779 ac_cv_sys_largefile_source=no
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 /* confdefs.h. */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 #include <stdio.h>
13788 int
13789 main ()
13790 {
13791 return !fseeko;
13792 ;
13793 return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 break
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 fi
13814 rm -f conftest.$ac_objext conftest.$ac_ext
13815 cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #define _LARGEFILE_SOURCE 1
13823 #include <stdio.h>
13824 int
13825 main ()
13826 {
13827 return !fseeko;
13828 ;
13829 return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_sys_largefile_source=1; break
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 fi
13850 rm -f conftest.$ac_objext conftest.$ac_ext
13851 break
13852 done
13853 fi
13854 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13855 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13856 if test "$ac_cv_sys_largefile_source" != no; then
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13860 _ACEOF
13861
13862 fi
13863 rm -f conftest*
13864
13865 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13866 # in glibc 2.1.3, but that breaks too many other things.
13867 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13868 echo "$as_me:$LINENO: checking for fseeko" >&5
13869 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13870 if test "${ac_cv_func_fseeko+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 #line $LINENO "configure"
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 #include <stdio.h>
13881 int
13882 main ()
13883 {
13884 return fseeko && fseeko (stdin, 0, 0);
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_func_fseeko=yes
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ac_cv_func_fseeko=no
13907 fi
13908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13911 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13912 if test $ac_cv_func_fseeko = yes; then
13913
13914 cat >>confdefs.h <<\_ACEOF
13915 #define HAVE_FSEEKO 1
13916 _ACEOF
13917
13918 fi
13919
13920
13921 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13922 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13923 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926 # Use it with a single arg.
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 int
13936 main ()
13937 {
13938 getpgrp (0);
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_func_getpgrp_void=no
13956 else
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_cv_func_getpgrp_void=yes
13961 fi
13962 rm -f conftest.$ac_objext conftest.$ac_ext
13963
13964 fi
13965 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13966 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13967 if test $ac_cv_func_getpgrp_void = yes; then
13968
13969 cat >>confdefs.h <<\_ACEOF
13970 #define GETPGRP_VOID 1
13971 _ACEOF
13972
13973 fi
13974
13975
13976
13977 for ac_func in strftime
13978 do
13979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13980 echo "$as_me:$LINENO: checking for $ac_func" >&5
13981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_var+set}\" = set"; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985 cat >conftest.$ac_ext <<_ACEOF
13986 #line $LINENO "configure"
13987 /* confdefs.h. */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13996 #ifdef __STDC__
13997 # include <limits.h>
13998 #else
13999 # include <assert.h>
14000 #endif
14001 /* Override any gcc2 internal prototype to avoid an error. */
14002 #ifdef __cplusplus
14003 extern "C"
14004 {
14005 #endif
14006 /* We use char because int might match the return type of a gcc2
14007 builtin and then its argument prototype would still apply. */
14008 char $ac_func ();
14009 /* The GNU C library defines this for functions which it implements
14010 to always fail with ENOSYS. Some functions are actually named
14011 something starting with __ and the normal name is an alias. */
14012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14013 choke me
14014 #else
14015 char (*f) () = $ac_func;
14016 #endif
14017 #ifdef __cplusplus
14018 }
14019 #endif
14020
14021 int
14022 main ()
14023 {
14024 return f != $ac_func;
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_var=yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 eval "$as_ac_var=no"
14047 fi
14048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14052 if test `eval echo '${'$as_ac_var'}'` = yes; then
14053 cat >>confdefs.h <<_ACEOF
14054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14055 _ACEOF
14056
14057 else
14058 # strftime is in -lintl on SCO UNIX.
14059 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14060 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14061 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 ac_check_lib_save_LIBS=$LIBS
14065 LIBS="-lintl $LIBS"
14066 cat >conftest.$ac_ext <<_ACEOF
14067 #line $LINENO "configure"
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073
14074 /* Override any gcc2 internal prototype to avoid an error. */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 /* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14080 char strftime ();
14081 int
14082 main ()
14083 {
14084 strftime ();
14085 ;
14086 return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_lib_intl_strftime=yes
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_cv_lib_intl_strftime=no
14107 fi
14108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14110 fi
14111 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14112 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14113 if test $ac_cv_lib_intl_strftime = yes; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_STRFTIME 1
14116 _ACEOF
14117
14118 LIBS="-lintl $LIBS"
14119 fi
14120
14121 fi
14122 done
14123
14124
14125 # UNIX98 PTYs.
14126
14127 for ac_func in grantpt
14128 do
14129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14130 echo "$as_me:$LINENO: checking for $ac_func" >&5
14131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14132 if eval "test \"\${$as_ac_var+set}\" = set"; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 cat >conftest.$ac_ext <<_ACEOF
14136 #line $LINENO "configure"
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 /* System header to define __stub macros and hopefully few prototypes,
14143 which can conflict with char $ac_func (); below.
14144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14145 <limits.h> exists even on freestanding compilers. */
14146 #ifdef __STDC__
14147 # include <limits.h>
14148 #else
14149 # include <assert.h>
14150 #endif
14151 /* Override any gcc2 internal prototype to avoid an error. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 {
14155 #endif
14156 /* We use char because int might match the return type of a gcc2
14157 builtin and then its argument prototype would still apply. */
14158 char $ac_func ();
14159 /* The GNU C library defines this for functions which it implements
14160 to always fail with ENOSYS. Some functions are actually named
14161 something starting with __ and the normal name is an alias. */
14162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14163 choke me
14164 #else
14165 char (*f) () = $ac_func;
14166 #endif
14167 #ifdef __cplusplus
14168 }
14169 #endif
14170
14171 int
14172 main ()
14173 {
14174 return f != $ac_func;
14175 ;
14176 return 0;
14177 }
14178 _ACEOF
14179 rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14181 (eval $ac_link) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 eval "$as_ac_var=yes"
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 eval "$as_ac_var=no"
14197 fi
14198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14199 fi
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14205 _ACEOF
14206
14207 fi
14208 done
14209
14210
14211 # PTY-related GNU extensions.
14212
14213 for ac_func in getpt
14214 do
14215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14216 echo "$as_me:$LINENO: checking for $ac_func" >&5
14217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_var+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14232 #ifdef __STDC__
14233 # include <limits.h>
14234 #else
14235 # include <assert.h>
14236 #endif
14237 /* Override any gcc2 internal prototype to avoid an error. */
14238 #ifdef __cplusplus
14239 extern "C"
14240 {
14241 #endif
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14244 char $ac_func ();
14245 /* The GNU C library defines this for functions which it implements
14246 to always fail with ENOSYS. Some functions are actually named
14247 something starting with __ and the normal name is an alias. */
14248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14249 choke me
14250 #else
14251 char (*f) () = $ac_func;
14252 #endif
14253 #ifdef __cplusplus
14254 }
14255 #endif
14256
14257 int
14258 main ()
14259 {
14260 return f != $ac_func;
14261 ;
14262 return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 eval "$as_ac_var=yes"
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 eval "$as_ac_var=no"
14283 fi
14284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14285 fi
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14288 if test `eval echo '${'$as_ac_var'}'` = yes; then
14289 cat >>confdefs.h <<_ACEOF
14290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14291 _ACEOF
14292
14293 fi
14294 done
14295
14296
14297 # Check this now, so that we will NOT find the above functions in ncurses.
14298 # That is because we have not set up to link ncurses in lib-src.
14299 # It's better to believe a function is not available
14300 # than to expect to find it in ncurses.
14301
14302 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14303 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14304 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307 ac_check_lib_save_LIBS=$LIBS
14308 LIBS="-lncurses $LIBS"
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316
14317 /* Override any gcc2 internal prototype to avoid an error. */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 /* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14323 char tparm ();
14324 int
14325 main ()
14326 {
14327 tparm ();
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_lib_ncurses_tparm=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_cv_lib_ncurses_tparm=no
14350 fi
14351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14355 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14356 if test $ac_cv_lib_ncurses_tparm = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBNCURSES 1
14359 _ACEOF
14360
14361 LIBS="-lncurses $LIBS"
14362
14363 fi
14364
14365
14366 # Do we need the Hesiod library to provide the support routines?
14367 if test "$with_hesiod" = yes ; then
14368 # Don't set $LIBS here -- see comments above.
14369 resolv=no
14370 echo "$as_me:$LINENO: checking for res_send" >&5
14371 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14372 if test "${ac_cv_func_res_send+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char res_send (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14386 #ifdef __STDC__
14387 # include <limits.h>
14388 #else
14389 # include <assert.h>
14390 #endif
14391 /* Override any gcc2 internal prototype to avoid an error. */
14392 #ifdef __cplusplus
14393 extern "C"
14394 {
14395 #endif
14396 /* We use char because int might match the return type of a gcc2
14397 builtin and then its argument prototype would still apply. */
14398 char res_send ();
14399 /* The GNU C library defines this for functions which it implements
14400 to always fail with ENOSYS. Some functions are actually named
14401 something starting with __ and the normal name is an alias. */
14402 #if defined (__stub_res_send) || defined (__stub___res_send)
14403 choke me
14404 #else
14405 char (*f) () = res_send;
14406 #endif
14407 #ifdef __cplusplus
14408 }
14409 #endif
14410
14411 int
14412 main ()
14413 {
14414 return f != res_send;
14415 ;
14416 return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_func_res_send=yes
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ac_cv_func_res_send=no
14437 fi
14438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14439 fi
14440 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14441 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14442 if test $ac_cv_func_res_send = yes; then
14443 :
14444 else
14445 echo "$as_me:$LINENO: checking for __res_send" >&5
14446 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14447 if test "${ac_cv_func___res_send+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 cat >conftest.$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14452 /* confdefs.h. */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char __res_send (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14461 #ifdef __STDC__
14462 # include <limits.h>
14463 #else
14464 # include <assert.h>
14465 #endif
14466 /* Override any gcc2 internal prototype to avoid an error. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 {
14470 #endif
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14473 char __res_send ();
14474 /* The GNU C library defines this for functions which it implements
14475 to always fail with ENOSYS. Some functions are actually named
14476 something starting with __ and the normal name is an alias. */
14477 #if defined (__stub___res_send) || defined (__stub_____res_send)
14478 choke me
14479 #else
14480 char (*f) () = __res_send;
14481 #endif
14482 #ifdef __cplusplus
14483 }
14484 #endif
14485
14486 int
14487 main ()
14488 {
14489 return f != __res_send;
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -s conftest$ac_exeext'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 ac_cv_func___res_send=yes
14507 else
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511 ac_cv_func___res_send=no
14512 fi
14513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14514 fi
14515 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14516 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14517 if test $ac_cv_func___res_send = yes; then
14518 :
14519 else
14520 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14521 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14522 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 ac_check_lib_save_LIBS=$LIBS
14526 LIBS="-lresolv $LIBS"
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line $LINENO "configure"
14529 /* confdefs.h. */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534
14535 /* Override any gcc2 internal prototype to avoid an error. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char res_send ();
14542 int
14543 main ()
14544 {
14545 res_send ();
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_lib_resolv_res_send=yes
14563 else
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 ac_cv_lib_resolv_res_send=no
14568 fi
14569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14573 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14574 if test $ac_cv_lib_resolv_res_send = yes; then
14575 resolv=yes
14576 else
14577 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14578 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14579 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lresolv $LIBS"
14584 cat >conftest.$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591
14592 /* Override any gcc2 internal prototype to avoid an error. */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char __res_send ();
14599 int
14600 main ()
14601 {
14602 __res_send ();
14603 ;
14604 return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_resolv___res_send=yes
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_cv_lib_resolv___res_send=no
14625 fi
14626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14628 fi
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14630 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14631 if test $ac_cv_lib_resolv___res_send = yes; then
14632 resolv=yes
14633 fi
14634
14635 fi
14636
14637 fi
14638
14639 fi
14640
14641 if test "$resolv" = yes ; then
14642 RESOLVLIB=-lresolv
14643
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_LIBRESOLV 1
14646 _ACEOF
14647
14648 else
14649 RESOLVLIB=
14650 fi
14651 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14652 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14653 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 /* System header to define __stub macros and hopefully few prototypes,
14664 which can conflict with char hes_getmailhost (); below.
14665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14666 <limits.h> exists even on freestanding compilers. */
14667 #ifdef __STDC__
14668 # include <limits.h>
14669 #else
14670 # include <assert.h>
14671 #endif
14672 /* Override any gcc2 internal prototype to avoid an error. */
14673 #ifdef __cplusplus
14674 extern "C"
14675 {
14676 #endif
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14679 char hes_getmailhost ();
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14684 choke me
14685 #else
14686 char (*f) () = hes_getmailhost;
14687 #endif
14688 #ifdef __cplusplus
14689 }
14690 #endif
14691
14692 int
14693 main ()
14694 {
14695 return f != hes_getmailhost;
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -s conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_func_hes_getmailhost=yes
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ac_cv_func_hes_getmailhost=no
14718 fi
14719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14720 fi
14721 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14722 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14723 if test $ac_cv_func_hes_getmailhost = yes; then
14724 :
14725 else
14726 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14727 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14728 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 ac_check_lib_save_LIBS=$LIBS
14732 LIBS="-lhesiod $RESOLVLIB $LIBS"
14733 cat >conftest.$ac_ext <<_ACEOF
14734 #line $LINENO "configure"
14735 /* confdefs.h. */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740
14741 /* Override any gcc2 internal prototype to avoid an error. */
14742 #ifdef __cplusplus
14743 extern "C"
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14747 char hes_getmailhost ();
14748 int
14749 main ()
14750 {
14751 hes_getmailhost ();
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -s conftest$ac_exeext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 ac_cv_lib_hesiod_hes_getmailhost=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_lib_hesiod_hes_getmailhost=no
14774 fi
14775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14776 LIBS=$ac_check_lib_save_LIBS
14777 fi
14778 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14779 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14780 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14781
14782 cat >>confdefs.h <<\_ACEOF
14783 #define HAVE_LIBHESIOD 1
14784 _ACEOF
14785
14786 else
14787 :
14788 fi
14789
14790 fi
14791
14792 fi
14793
14794 # These tell us which Kerberos-related libraries to use.
14795 if test "${with_kerberos+set}" = set; then
14796
14797 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14798 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14799 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802 ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-lcom_err $LIBS"
14804 cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811
14812 /* Override any gcc2 internal prototype to avoid an error. */
14813 #ifdef __cplusplus
14814 extern "C"
14815 #endif
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14818 char com_err ();
14819 int
14820 main ()
14821 {
14822 com_err ();
14823 ;
14824 return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_lib_com_err_com_err=yes
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 ac_cv_lib_com_err_com_err=no
14845 fi
14846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14848 fi
14849 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14850 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14851 if test $ac_cv_lib_com_err_com_err = yes; then
14852 cat >>confdefs.h <<_ACEOF
14853 #define HAVE_LIBCOM_ERR 1
14854 _ACEOF
14855
14856 LIBS="-lcom_err $LIBS"
14857
14858 fi
14859
14860
14861 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14862 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14863 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_check_lib_save_LIBS=$LIBS
14867 LIBS="-lk5crypto $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14870 /* confdefs.h. */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875
14876 /* Override any gcc2 internal prototype to avoid an error. */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 /* We use char because int might match the return type of a gcc2
14881 builtin and then its argument prototype would still apply. */
14882 char mit_des_cbc_encrypt ();
14883 int
14884 main ()
14885 {
14886 mit_des_cbc_encrypt ();
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext conftest$ac_exeext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 (eval $ac_link) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest$ac_exeext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14909 fi
14910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14911 LIBS=$ac_check_lib_save_LIBS
14912 fi
14913 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14914 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14915 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE_LIBK5CRYPTO 1
14918 _ACEOF
14919
14920 LIBS="-lk5crypto $LIBS"
14921
14922 fi
14923
14924
14925 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14926 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14927 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 ac_check_lib_save_LIBS=$LIBS
14931 LIBS="-lcrypto $LIBS"
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939
14940 /* Override any gcc2 internal prototype to avoid an error. */
14941 #ifdef __cplusplus
14942 extern "C"
14943 #endif
14944 /* We use char because int might match the return type of a gcc2
14945 builtin and then its argument prototype would still apply. */
14946 char mit_des_cbc_encrypt ();
14947 int
14948 main ()
14949 {
14950 mit_des_cbc_encrypt ();
14951 ;
14952 return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14968 else
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14973 fi
14974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14975 LIBS=$ac_check_lib_save_LIBS
14976 fi
14977 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14978 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14979 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_LIBCRYPTO 1
14982 _ACEOF
14983
14984 LIBS="-lcrypto $LIBS"
14985
14986 fi
14987
14988
14989 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14990 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14991 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lkrb5 $LIBS"
14996 cat >conftest.$ac_ext <<_ACEOF
14997 #line $LINENO "configure"
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003
15004 /* Override any gcc2 internal prototype to avoid an error. */
15005 #ifdef __cplusplus
15006 extern "C"
15007 #endif
15008 /* We use char because int might match the return type of a gcc2
15009 builtin and then its argument prototype would still apply. */
15010 char krb5_init_context ();
15011 int
15012 main ()
15013 {
15014 krb5_init_context ();
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_lib_krb5_krb5_init_context=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 ac_cv_lib_krb5_krb5_init_context=no
15037 fi
15038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15040 fi
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15042 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15043 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_LIBKRB5 1
15046 _ACEOF
15047
15048 LIBS="-lkrb5 $LIBS"
15049
15050 fi
15051
15052 if test "${with_kerberos5+set}" != set; then
15053
15054 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15055 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15056 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-ldes425 $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15062 #line $LINENO "configure"
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068
15069 /* Override any gcc2 internal prototype to avoid an error. */
15070 #ifdef __cplusplus
15071 extern "C"
15072 #endif
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15075 char des_cbc_encrypt ();
15076 int
15077 main ()
15078 {
15079 des_cbc_encrypt ();
15080 ;
15081 return 0;
15082 }
15083 _ACEOF
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15086 (eval $ac_link) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -s conftest$ac_exeext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_lib_des425_des_cbc_encrypt=yes
15097 else
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_cv_lib_des425_des_cbc_encrypt=no
15102 fi
15103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15105 fi
15106 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15107 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15108 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15109 cat >>confdefs.h <<_ACEOF
15110 #define HAVE_LIBDES425 1
15111 _ACEOF
15112
15113 LIBS="-ldes425 $LIBS"
15114
15115 else
15116
15117 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15118 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15119 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-ldes $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15125 #line $LINENO "configure"
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131
15132 /* Override any gcc2 internal prototype to avoid an error. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char des_cbc_encrypt ();
15139 int
15140 main ()
15141 {
15142 des_cbc_encrypt ();
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_lib_des_des_cbc_encrypt=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_cv_lib_des_des_cbc_encrypt=no
15165 fi
15166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15168 fi
15169 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15170 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15171 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_LIBDES 1
15174 _ACEOF
15175
15176 LIBS="-ldes $LIBS"
15177
15178 fi
15179
15180 fi
15181
15182
15183 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15184 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15185 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 ac_check_lib_save_LIBS=$LIBS
15189 LIBS="-lkrb4 $LIBS"
15190 cat >conftest.$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197
15198 /* Override any gcc2 internal prototype to avoid an error. */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15204 char krb_get_cred ();
15205 int
15206 main ()
15207 {
15208 krb_get_cred ();
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_cv_lib_krb4_krb_get_cred=yes
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_cv_lib_krb4_krb_get_cred=no
15231 fi
15232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15234 fi
15235 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15236 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15237 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15238 cat >>confdefs.h <<_ACEOF
15239 #define HAVE_LIBKRB4 1
15240 _ACEOF
15241
15242 LIBS="-lkrb4 $LIBS"
15243
15244 else
15245
15246 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15247 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15248 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251 ac_check_lib_save_LIBS=$LIBS
15252 LIBS="-lkrb $LIBS"
15253 cat >conftest.$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260
15261 /* Override any gcc2 internal prototype to avoid an error. */
15262 #ifdef __cplusplus
15263 extern "C"
15264 #endif
15265 /* We use char because int might match the return type of a gcc2
15266 builtin and then its argument prototype would still apply. */
15267 char krb_get_cred ();
15268 int
15269 main ()
15270 {
15271 krb_get_cred ();
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278 (eval $ac_link) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -s conftest$ac_exeext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_cv_lib_krb_krb_get_cred=yes
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_cv_lib_krb_krb_get_cred=no
15294 fi
15295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15296 LIBS=$ac_check_lib_save_LIBS
15297 fi
15298 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15299 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15300 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15301 cat >>confdefs.h <<_ACEOF
15302 #define HAVE_LIBKRB 1
15303 _ACEOF
15304
15305 LIBS="-lkrb $LIBS"
15306
15307 fi
15308
15309 fi
15310
15311 fi
15312
15313 if test "${with_kerberos5+set}" = set; then
15314
15315 for ac_header in krb5.h
15316 do
15317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15319 echo "$as_me:$LINENO: checking for $ac_header" >&5
15320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 fi
15324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15326 else
15327 # Is the header compilable?
15328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -s conftest.$ac_objext'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler=yes
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 ac_header_compiler=no
15358 fi
15359 rm -f conftest.$ac_objext conftest.$ac_ext
15360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361 echo "${ECHO_T}$ac_header_compiler" >&6
15362
15363 # Is the header present?
15364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15367 #line $LINENO "configure"
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 #include <$ac_header>
15374 _ACEOF
15375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev/null; then
15383 if test -s conftest.err; then
15384 ac_cpp_err=$ac_c_preproc_warn_flag
15385 else
15386 ac_cpp_err=
15387 fi
15388 else
15389 ac_cpp_err=yes
15390 fi
15391 if test -z "$ac_cpp_err"; then
15392 ac_header_preproc=yes
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 ac_header_preproc=no
15398 fi
15399 rm -f conftest.err conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15401 echo "${ECHO_T}$ac_header_preproc" >&6
15402
15403 # So? What about this header?
15404 case $ac_header_compiler:$ac_header_preproc in
15405 yes:no )
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15410 (
15411 cat <<\_ASBOX
15412 ## ------------------------------------ ##
15413 ## Report this to bug-autoconf@gnu.org. ##
15414 ## ------------------------------------ ##
15415 _ASBOX
15416 ) |
15417 sed "s/^/$as_me: WARNING: /" >&2
15418 ;;
15419 no:yes )
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 (
15427 cat <<\_ASBOX
15428 ## ------------------------------------ ##
15429 ## Report this to bug-autoconf@gnu.org. ##
15430 ## ------------------------------------ ##
15431 _ASBOX
15432 ) |
15433 sed "s/^/$as_me: WARNING: /" >&2
15434 ;;
15435 esac
15436 echo "$as_me:$LINENO: checking for $ac_header" >&5
15437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 eval "$as_ac_Header=$ac_header_preproc"
15442 fi
15443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15445
15446 fi
15447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15448 cat >>confdefs.h <<_ACEOF
15449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15450 _ACEOF
15451
15452 fi
15453
15454 done
15455
15456 else
15457
15458 for ac_header in des.h
15459 do
15460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15462 echo "$as_me:$LINENO: checking for $ac_header" >&5
15463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 fi
15467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15469 else
15470 # Is the header compilable?
15471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <$ac_header>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_header_compiler=yes
15496 else
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 ac_header_compiler=no
15501 fi
15502 rm -f conftest.$ac_objext conftest.$ac_ext
15503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15504 echo "${ECHO_T}$ac_header_compiler" >&6
15505
15506 # Is the header present?
15507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15509 cat >conftest.$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <$ac_header>
15517 _ACEOF
15518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } >/dev/null; then
15526 if test -s conftest.err; then
15527 ac_cpp_err=$ac_c_preproc_warn_flag
15528 else
15529 ac_cpp_err=
15530 fi
15531 else
15532 ac_cpp_err=yes
15533 fi
15534 if test -z "$ac_cpp_err"; then
15535 ac_header_preproc=yes
15536 else
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540 ac_header_preproc=no
15541 fi
15542 rm -f conftest.err conftest.$ac_ext
15543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15544 echo "${ECHO_T}$ac_header_preproc" >&6
15545
15546 # So? What about this header?
15547 case $ac_header_compiler:$ac_header_preproc in
15548 yes:no )
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15553 (
15554 cat <<\_ASBOX
15555 ## ------------------------------------ ##
15556 ## Report this to bug-autoconf@gnu.org. ##
15557 ## ------------------------------------ ##
15558 _ASBOX
15559 ) |
15560 sed "s/^/$as_me: WARNING: /" >&2
15561 ;;
15562 no:yes )
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15569 (
15570 cat <<\_ASBOX
15571 ## ------------------------------------ ##
15572 ## Report this to bug-autoconf@gnu.org. ##
15573 ## ------------------------------------ ##
15574 _ASBOX
15575 ) |
15576 sed "s/^/$as_me: WARNING: /" >&2
15577 ;;
15578 esac
15579 echo "$as_me:$LINENO: checking for $ac_header" >&5
15580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584 eval "$as_ac_Header=$ac_header_preproc"
15585 fi
15586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15588
15589 fi
15590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15591 cat >>confdefs.h <<_ACEOF
15592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15593 _ACEOF
15594
15595 else
15596
15597 for ac_header in kerberosIV/des.h
15598 do
15599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15601 echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 fi
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15608 else
15609 # Is the header compilable?
15610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15612 cat >conftest.$ac_ext <<_ACEOF
15613 #line $LINENO "configure"
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <$ac_header>
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_header_compiler=yes
15635 else
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 ac_header_compiler=no
15640 fi
15641 rm -f conftest.$ac_objext conftest.$ac_ext
15642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15643 echo "${ECHO_T}$ac_header_compiler" >&6
15644
15645 # Is the header present?
15646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <$ac_header>
15656 _ACEOF
15657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } >/dev/null; then
15665 if test -s conftest.err; then
15666 ac_cpp_err=$ac_c_preproc_warn_flag
15667 else
15668 ac_cpp_err=
15669 fi
15670 else
15671 ac_cpp_err=yes
15672 fi
15673 if test -z "$ac_cpp_err"; then
15674 ac_header_preproc=yes
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 ac_header_preproc=no
15680 fi
15681 rm -f conftest.err conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15683 echo "${ECHO_T}$ac_header_preproc" >&6
15684
15685 # So? What about this header?
15686 case $ac_header_compiler:$ac_header_preproc in
15687 yes:no )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15692 (
15693 cat <<\_ASBOX
15694 ## ------------------------------------ ##
15695 ## Report this to bug-autoconf@gnu.org. ##
15696 ## ------------------------------------ ##
15697 _ASBOX
15698 ) |
15699 sed "s/^/$as_me: WARNING: /" >&2
15700 ;;
15701 no:yes )
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15708 (
15709 cat <<\_ASBOX
15710 ## ------------------------------------ ##
15711 ## Report this to bug-autoconf@gnu.org. ##
15712 ## ------------------------------------ ##
15713 _ASBOX
15714 ) |
15715 sed "s/^/$as_me: WARNING: /" >&2
15716 ;;
15717 esac
15718 echo "$as_me:$LINENO: checking for $ac_header" >&5
15719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 eval "$as_ac_Header=$ac_header_preproc"
15724 fi
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15727
15728 fi
15729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732 _ACEOF
15733
15734 else
15735
15736 for ac_header in kerberos/des.h
15737 do
15738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740 echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 fi
15745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15747 else
15748 # Is the header compilable?
15749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15751 cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 #include <$ac_header>
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_header_compiler=yes
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_header_compiler=no
15779 fi
15780 rm -f conftest.$ac_objext conftest.$ac_ext
15781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15782 echo "${ECHO_T}$ac_header_compiler" >&6
15783
15784 # Is the header present?
15785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 #include <$ac_header>
15795 _ACEOF
15796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } >/dev/null; then
15804 if test -s conftest.err; then
15805 ac_cpp_err=$ac_c_preproc_warn_flag
15806 else
15807 ac_cpp_err=
15808 fi
15809 else
15810 ac_cpp_err=yes
15811 fi
15812 if test -z "$ac_cpp_err"; then
15813 ac_header_preproc=yes
15814 else
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 ac_header_preproc=no
15819 fi
15820 rm -f conftest.err conftest.$ac_ext
15821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6
15823
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc in
15826 yes:no )
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15831 (
15832 cat <<\_ASBOX
15833 ## ------------------------------------ ##
15834 ## Report this to bug-autoconf@gnu.org. ##
15835 ## ------------------------------------ ##
15836 _ASBOX
15837 ) |
15838 sed "s/^/$as_me: WARNING: /" >&2
15839 ;;
15840 no:yes )
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 (
15848 cat <<\_ASBOX
15849 ## ------------------------------------ ##
15850 ## Report this to bug-autoconf@gnu.org. ##
15851 ## ------------------------------------ ##
15852 _ASBOX
15853 ) |
15854 sed "s/^/$as_me: WARNING: /" >&2
15855 ;;
15856 esac
15857 echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862 eval "$as_ac_Header=$ac_header_preproc"
15863 fi
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15866
15867 fi
15868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15871 _ACEOF
15872
15873 fi
15874
15875 done
15876
15877 fi
15878
15879 done
15880
15881 fi
15882
15883 done
15884
15885
15886 for ac_header in krb.h
15887 do
15888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo "$as_me:$LINENO: checking for $ac_header" >&5
15891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 fi
15895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15897 else
15898 # Is the header compilable?
15899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15901 cat >conftest.$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <$ac_header>
15910 _ACEOF
15911 rm -f conftest.$ac_objext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913 (eval $ac_compile) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler=yes
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 ac_header_compiler=no
15929 fi
15930 rm -f conftest.$ac_objext conftest.$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15933
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15938 #line $LINENO "configure"
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #include <$ac_header>
15945 _ACEOF
15946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } >/dev/null; then
15954 if test -s conftest.err; then
15955 ac_cpp_err=$ac_c_preproc_warn_flag
15956 else
15957 ac_cpp_err=
15958 fi
15959 else
15960 ac_cpp_err=yes
15961 fi
15962 if test -z "$ac_cpp_err"; then
15963 ac_header_preproc=yes
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_header_preproc=no
15969 fi
15970 rm -f conftest.err conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15973
15974 # So? What about this header?
15975 case $ac_header_compiler:$ac_header_preproc in
15976 yes:no )
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15981 (
15982 cat <<\_ASBOX
15983 ## ------------------------------------ ##
15984 ## Report this to bug-autoconf@gnu.org. ##
15985 ## ------------------------------------ ##
15986 _ASBOX
15987 ) |
15988 sed "s/^/$as_me: WARNING: /" >&2
15989 ;;
15990 no:yes )
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 (
15998 cat <<\_ASBOX
15999 ## ------------------------------------ ##
16000 ## Report this to bug-autoconf@gnu.org. ##
16001 ## ------------------------------------ ##
16002 _ASBOX
16003 ) |
16004 sed "s/^/$as_me: WARNING: /" >&2
16005 ;;
16006 esac
16007 echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012 eval "$as_ac_Header=$ac_header_preproc"
16013 fi
16014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16016
16017 fi
16018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16021 _ACEOF
16022
16023 else
16024
16025 for ac_header in kerberosIV/krb.h
16026 do
16027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 fi
16034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16036 else
16037 # Is the header compilable?
16038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16040 cat >conftest.$ac_ext <<_ACEOF
16041 #line $LINENO "configure"
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_compiler=no
16068 fi
16069 rm -f conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16072
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16084 _ACEOF
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null; then
16093 if test -s conftest.err; then
16094 ac_cpp_err=$ac_c_preproc_warn_flag
16095 else
16096 ac_cpp_err=
16097 fi
16098 else
16099 ac_cpp_err=yes
16100 fi
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc=yes
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107 ac_header_preproc=no
16108 fi
16109 rm -f conftest.err conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16112
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc in
16115 yes:no )
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 (
16121 cat <<\_ASBOX
16122 ## ------------------------------------ ##
16123 ## Report this to bug-autoconf@gnu.org. ##
16124 ## ------------------------------------ ##
16125 _ASBOX
16126 ) |
16127 sed "s/^/$as_me: WARNING: /" >&2
16128 ;;
16129 no:yes )
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 (
16137 cat <<\_ASBOX
16138 ## ------------------------------------ ##
16139 ## Report this to bug-autoconf@gnu.org. ##
16140 ## ------------------------------------ ##
16141 _ASBOX
16142 ) |
16143 sed "s/^/$as_me: WARNING: /" >&2
16144 ;;
16145 esac
16146 echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 eval "$as_ac_Header=$ac_header_preproc"
16152 fi
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16155
16156 fi
16157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16158 cat >>confdefs.h <<_ACEOF
16159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16160 _ACEOF
16161
16162 else
16163
16164 for ac_header in kerberos/krb.h
16165 do
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16168 echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 fi
16173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16175 else
16176 # Is the header compilable?
16177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16180 #line $LINENO "configure"
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_header_compiler=yes
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_header_compiler=no
16207 fi
16208 rm -f conftest.$ac_objext conftest.$ac_ext
16209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16210 echo "${ECHO_T}$ac_header_compiler" >&6
16211
16212 # Is the header present?
16213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16215 cat >conftest.$ac_ext <<_ACEOF
16216 #line $LINENO "configure"
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 #include <$ac_header>
16223 _ACEOF
16224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } >/dev/null; then
16232 if test -s conftest.err; then
16233 ac_cpp_err=$ac_c_preproc_warn_flag
16234 else
16235 ac_cpp_err=
16236 fi
16237 else
16238 ac_cpp_err=yes
16239 fi
16240 if test -z "$ac_cpp_err"; then
16241 ac_header_preproc=yes
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ac_header_preproc=no
16247 fi
16248 rm -f conftest.err conftest.$ac_ext
16249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16250 echo "${ECHO_T}$ac_header_preproc" >&6
16251
16252 # So? What about this header?
16253 case $ac_header_compiler:$ac_header_preproc in
16254 yes:no )
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 (
16260 cat <<\_ASBOX
16261 ## ------------------------------------ ##
16262 ## Report this to bug-autoconf@gnu.org. ##
16263 ## ------------------------------------ ##
16264 _ASBOX
16265 ) |
16266 sed "s/^/$as_me: WARNING: /" >&2
16267 ;;
16268 no:yes )
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16275 (
16276 cat <<\_ASBOX
16277 ## ------------------------------------ ##
16278 ## Report this to bug-autoconf@gnu.org. ##
16279 ## ------------------------------------ ##
16280 _ASBOX
16281 ) |
16282 sed "s/^/$as_me: WARNING: /" >&2
16283 ;;
16284 esac
16285 echo "$as_me:$LINENO: checking for $ac_header" >&5
16286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290 eval "$as_ac_Header=$ac_header_preproc"
16291 fi
16292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16294
16295 fi
16296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16297 cat >>confdefs.h <<_ACEOF
16298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16299 _ACEOF
16300
16301 fi
16302
16303 done
16304
16305 fi
16306
16307 done
16308
16309 fi
16310
16311 done
16312
16313 fi
16314
16315 for ac_header in com_err.h
16316 do
16317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 fi
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16326 else
16327 # Is the header compilable?
16328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16330 cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 /* confdefs.h. */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 $ac_includes_default
16338 #include <$ac_header>
16339 _ACEOF
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_header_compiler=no
16358 fi
16359 rm -f conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361 echo "${ECHO_T}$ac_header_compiler" >&6
16362
16363 # Is the header present?
16364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <$ac_header>
16374 _ACEOF
16375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } >/dev/null; then
16383 if test -s conftest.err; then
16384 ac_cpp_err=$ac_c_preproc_warn_flag
16385 else
16386 ac_cpp_err=
16387 fi
16388 else
16389 ac_cpp_err=yes
16390 fi
16391 if test -z "$ac_cpp_err"; then
16392 ac_header_preproc=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_header_preproc=no
16398 fi
16399 rm -f conftest.err conftest.$ac_ext
16400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401 echo "${ECHO_T}$ac_header_preproc" >&6
16402
16403 # So? What about this header?
16404 case $ac_header_compiler:$ac_header_preproc in
16405 yes:no )
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16410 (
16411 cat <<\_ASBOX
16412 ## ------------------------------------ ##
16413 ## Report this to bug-autoconf@gnu.org. ##
16414 ## ------------------------------------ ##
16415 _ASBOX
16416 ) |
16417 sed "s/^/$as_me: WARNING: /" >&2
16418 ;;
16419 no:yes )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16426 (
16427 cat <<\_ASBOX
16428 ## ------------------------------------ ##
16429 ## Report this to bug-autoconf@gnu.org. ##
16430 ## ------------------------------------ ##
16431 _ASBOX
16432 ) |
16433 sed "s/^/$as_me: WARNING: /" >&2
16434 ;;
16435 esac
16436 echo "$as_me:$LINENO: checking for $ac_header" >&5
16437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441 eval "$as_ac_Header=$ac_header_preproc"
16442 fi
16443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16445
16446 fi
16447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16448 cat >>confdefs.h <<_ACEOF
16449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16450 _ACEOF
16451
16452 fi
16453
16454 done
16455
16456 fi
16457
16458 # Solaris requires -lintl if you want strerror (which calls dgettext)
16459 # to return localized messages.
16460
16461 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16462 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16463 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 ac_check_lib_save_LIBS=$LIBS
16467 LIBS="-lintl $LIBS"
16468 cat >conftest.$ac_ext <<_ACEOF
16469 #line $LINENO "configure"
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475
16476 /* Override any gcc2 internal prototype to avoid an error. */
16477 #ifdef __cplusplus
16478 extern "C"
16479 #endif
16480 /* We use char because int might match the return type of a gcc2
16481 builtin and then its argument prototype would still apply. */
16482 char dgettext ();
16483 int
16484 main ()
16485 {
16486 dgettext ();
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -s conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_lib_intl_dgettext=yes
16504 else
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_cv_lib_intl_dgettext=no
16509 fi
16510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16511 LIBS=$ac_check_lib_save_LIBS
16512 fi
16513 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16514 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16515 if test $ac_cv_lib_intl_dgettext = yes; then
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_LIBINTL 1
16518 _ACEOF
16519
16520 LIBS="-lintl $LIBS"
16521
16522 fi
16523
16524
16525 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16526 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16527 if test "${emacs_cv_localtime_cache+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530 if test x$ac_cv_func_tzset = xyes; then
16531 if test "$cross_compiling" = yes; then
16532 # If we have tzset, assume the worst when cross-compiling.
16533 emacs_cv_localtime_cache=yes
16534 else
16535 cat >conftest.$ac_ext <<_ACEOF
16536 #line $LINENO "configure"
16537 /* confdefs.h. */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16542 #include <time.h>
16543 extern char **environ;
16544 unset_TZ ()
16545 {
16546 char **from, **to;
16547 for (to = from = environ; (*to = *from); from++)
16548 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16549 to++;
16550 }
16551 char TZ_GMT0[] = "TZ=GMT0";
16552 char TZ_PST8[] = "TZ=PST8";
16553 main()
16554 {
16555 time_t now = time ((time_t *) 0);
16556 int hour_GMT0, hour_unset;
16557 if (putenv (TZ_GMT0) != 0)
16558 exit (1);
16559 hour_GMT0 = localtime (&now)->tm_hour;
16560 unset_TZ ();
16561 hour_unset = localtime (&now)->tm_hour;
16562 if (putenv (TZ_PST8) != 0)
16563 exit (1);
16564 if (localtime (&now)->tm_hour == hour_GMT0)
16565 exit (1);
16566 unset_TZ ();
16567 if (localtime (&now)->tm_hour != hour_unset)
16568 exit (1);
16569 exit (0);
16570 }
16571 _ACEOF
16572 rm -f conftest$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 emacs_cv_localtime_cache=no
16584 else
16585 echo "$as_me: program exited with status $ac_status" >&5
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ( exit $ac_status )
16590 emacs_cv_localtime_cache=yes
16591 fi
16592 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16593 fi
16594 else
16595 # If we lack tzset, report that localtime does not cache TZ,
16596 # since we can't invalidate the cache if we don't have tzset.
16597 emacs_cv_localtime_cache=no
16598 fi
16599 fi
16600 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16601 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16602 if test $emacs_cv_localtime_cache = yes; then
16603
16604 cat >>confdefs.h <<\_ACEOF
16605 #define LOCALTIME_CACHE 1
16606 _ACEOF
16607
16608 fi
16609
16610 if test "x$HAVE_TIMEVAL" = xyes; then
16611
16612 for ac_func in gettimeofday
16613 do
16614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 echo "$as_me:$LINENO: checking for $ac_func" >&5
16616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_var+set}\" = set"; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628 which can conflict with char $ac_func (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16631 #ifdef __STDC__
16632 # include <limits.h>
16633 #else
16634 # include <assert.h>
16635 #endif
16636 /* Override any gcc2 internal prototype to avoid an error. */
16637 #ifdef __cplusplus
16638 extern "C"
16639 {
16640 #endif
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643 char $ac_func ();
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16648 choke me
16649 #else
16650 char (*f) () = $ac_func;
16651 #endif
16652 #ifdef __cplusplus
16653 }
16654 #endif
16655
16656 int
16657 main ()
16658 {
16659 return f != $ac_func;
16660 ;
16661 return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 eval "$as_ac_var=yes"
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 eval "$as_ac_var=no"
16682 fi
16683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16691
16692 fi
16693 done
16694
16695 if test $ac_cv_func_gettimeofday = yes; then
16696 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16697 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16698 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708
16709 #ifdef TIME_WITH_SYS_TIME
16710 #include <sys/time.h>
16711 #include <time.h>
16712 #else
16713 #ifdef HAVE_SYS_TIME_H
16714 #include <sys/time.h>
16715 #else
16716 #include <time.h>
16717 #endif
16718 #endif
16719 int
16720 main ()
16721 {
16722 struct timeval time;
16723 gettimeofday (&time, 0);
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 emacs_cv_gettimeofday_two_arguments=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 emacs_cv_gettimeofday_two_arguments=no
16746 fi
16747 rm -f conftest.$ac_objext conftest.$ac_ext
16748 fi
16749 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16750 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16751 if test $emacs_cv_gettimeofday_two_arguments = no; then
16752
16753 cat >>confdefs.h <<\_ACEOF
16754 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16755 _ACEOF
16756
16757 fi
16758 fi
16759 fi
16760
16761 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16762 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16763 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16764 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <sys/types.h>
16775 #include <$ac_cv_struct_tm>
16776
16777
16778 int
16779 main ()
16780 {
16781 static struct tm ac_aggr;
16782 if (ac_aggr.tm_zone)
16783 return 0;
16784 ;
16785 return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_member_struct_tm_tm_zone=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 cat >conftest.$ac_ext <<_ACEOF
16806 #line $LINENO "configure"
16807 /* confdefs.h. */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 #include <sys/types.h>
16813 #include <$ac_cv_struct_tm>
16814
16815
16816 int
16817 main ()
16818 {
16819 static struct tm ac_aggr;
16820 if (sizeof ac_aggr.tm_zone)
16821 return 0;
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_cv_member_struct_tm_tm_zone=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 ac_cv_member_struct_tm_tm_zone=no
16844 fi
16845 rm -f conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 rm -f conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16850 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16851 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16852
16853 cat >>confdefs.h <<_ACEOF
16854 #define HAVE_STRUCT_TM_TM_ZONE 1
16855 _ACEOF
16856
16857
16858 fi
16859
16860 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16861
16862 cat >>confdefs.h <<\_ACEOF
16863 #define HAVE_TM_ZONE 1
16864 _ACEOF
16865
16866 else
16867 echo "$as_me:$LINENO: checking for tzname" >&5
16868 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16869 if test "${ac_cv_var_tzname+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872 cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <time.h>
16880 #ifndef tzname /* For SGI. */
16881 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16882 #endif
16883
16884 int
16885 main ()
16886 {
16887 atoi(*tzname);
16888 ;
16889 return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -s conftest$ac_exeext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_cv_var_tzname=yes
16905 else
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_var_tzname=no
16910 fi
16911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16912 fi
16913 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16914 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16915 if test $ac_cv_var_tzname = yes; then
16916
16917 cat >>confdefs.h <<\_ACEOF
16918 #define HAVE_TZNAME 1
16919 _ACEOF
16920
16921 fi
16922 fi
16923
16924
16925 if test "$ac_cv_func_gettimeofday" = yes; then
16926 echo "$as_me:$LINENO: checking for struct timezone" >&5
16927 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16928 if test "${emacs_cv_struct_timezone+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 cat >conftest.$ac_ext <<_ACEOF
16932 #line $LINENO "configure"
16933 /* confdefs.h. */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 #include <sys/time.h>
16939 int
16940 main ()
16941 {
16942 struct timezone tz;
16943 ;
16944 return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 if test "$cross_compiling" = yes; then
16960 emacs_cv_struct_timezone=yes
16961 else
16962 cat >conftest.$ac_ext <<_ACEOF
16963 #line $LINENO "configure"
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969
16970 #ifdef TIME_WITH_SYS_TIME
16971 #include <sys/time.h>
16972 #include <time.h>
16973 #else
16974 #ifdef HAVE_SYS_TIME_H
16975 #include <sys/time.h>
16976 #else
16977 #include <time.h>
16978 #endif
16979 #endif
16980 main () {
16981 struct timeval time;
16982 struct timezone dummy;
16983 exit (gettimeofday (&time, &dummy));
16984 }
16985 _ACEOF
16986 rm -f conftest$ac_exeext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16988 (eval $ac_link) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 emacs_cv_struct_timezone=yes
16998 else
16999 echo "$as_me: program exited with status $ac_status" >&5
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ( exit $ac_status )
17004 emacs_cv_struct_timezone=no
17005 fi
17006 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17007 fi
17008 else
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 emacs_cv_struct_timezone=no
17013 fi
17014 rm -f conftest.$ac_objext conftest.$ac_ext
17015 fi
17016 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17017 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17018 fi
17019
17020 ok_so_far=yes
17021 echo "$as_me:$LINENO: checking for socket" >&5
17022 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17023 if test "${ac_cv_func_socket+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026 cat >conftest.$ac_ext <<_ACEOF
17027 #line $LINENO "configure"
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 /* System header to define __stub macros and hopefully few prototypes,
17034 which can conflict with char socket (); below.
17035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17036 <limits.h> exists even on freestanding compilers. */
17037 #ifdef __STDC__
17038 # include <limits.h>
17039 #else
17040 # include <assert.h>
17041 #endif
17042 /* Override any gcc2 internal prototype to avoid an error. */
17043 #ifdef __cplusplus
17044 extern "C"
17045 {
17046 #endif
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17049 char socket ();
17050 /* The GNU C library defines this for functions which it implements
17051 to always fail with ENOSYS. Some functions are actually named
17052 something starting with __ and the normal name is an alias. */
17053 #if defined (__stub_socket) || defined (__stub___socket)
17054 choke me
17055 #else
17056 char (*f) () = socket;
17057 #endif
17058 #ifdef __cplusplus
17059 }
17060 #endif
17061
17062 int
17063 main ()
17064 {
17065 return f != socket;
17066 ;
17067 return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17072 (eval $ac_link) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -s conftest$ac_exeext'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17082 ac_cv_func_socket=yes
17083 else
17084 echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087 ac_cv_func_socket=no
17088 fi
17089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17092 echo "${ECHO_T}$ac_cv_func_socket" >&6
17093 if test $ac_cv_func_socket = yes; then
17094 :
17095 else
17096 ok_so_far=no
17097 fi
17098
17099 if test $ok_so_far = yes; then
17100 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17101 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17102 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17103 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 fi
17106 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17107 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17108 else
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17111 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <netinet/in.h>
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_header_compiler=yes
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139 ac_header_compiler=no
17140 fi
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17143 echo "${ECHO_T}$ac_header_compiler" >&6
17144
17145 # Is the header present?
17146 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17147 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17148 cat >conftest.$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <netinet/in.h>
17156 _ACEOF
17157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } >/dev/null; then
17165 if test -s conftest.err; then
17166 ac_cpp_err=$ac_c_preproc_warn_flag
17167 else
17168 ac_cpp_err=
17169 fi
17170 else
17171 ac_cpp_err=yes
17172 fi
17173 if test -z "$ac_cpp_err"; then
17174 ac_header_preproc=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 ac_header_preproc=no
17180 fi
17181 rm -f conftest.err conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17183 echo "${ECHO_T}$ac_header_preproc" >&6
17184
17185 # So? What about this header?
17186 case $ac_header_compiler:$ac_header_preproc in
17187 yes:no )
17188 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17189 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17192 (
17193 cat <<\_ASBOX
17194 ## ------------------------------------ ##
17195 ## Report this to bug-autoconf@gnu.org. ##
17196 ## ------------------------------------ ##
17197 _ASBOX
17198 ) |
17199 sed "s/^/$as_me: WARNING: /" >&2
17200 ;;
17201 no:yes )
17202 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17203 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17205 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17207 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17208 (
17209 cat <<\_ASBOX
17210 ## ------------------------------------ ##
17211 ## Report this to bug-autoconf@gnu.org. ##
17212 ## ------------------------------------ ##
17213 _ASBOX
17214 ) |
17215 sed "s/^/$as_me: WARNING: /" >&2
17216 ;;
17217 esac
17218 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17219 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17220 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223 ac_cv_header_netinet_in_h=$ac_header_preproc
17224 fi
17225 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17226 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17227
17228 fi
17229 if test $ac_cv_header_netinet_in_h = yes; then
17230 :
17231 else
17232 ok_so_far=no
17233 fi
17234
17235
17236 fi
17237 if test $ok_so_far = yes; then
17238 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17239 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17240 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17241 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 fi
17244 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17245 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17246 else
17247 # Is the header compilable?
17248 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17249 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17250 cat >conftest.$ac_ext <<_ACEOF
17251 #line $LINENO "configure"
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 $ac_includes_default
17258 #include <arpa/inet.h>
17259 _ACEOF
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_header_compiler=yes
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_header_compiler=no
17278 fi
17279 rm -f conftest.$ac_objext conftest.$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17281 echo "${ECHO_T}$ac_header_compiler" >&6
17282
17283 # Is the header present?
17284 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17285 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17286 cat >conftest.$ac_ext <<_ACEOF
17287 #line $LINENO "configure"
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 #include <arpa/inet.h>
17294 _ACEOF
17295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null; then
17303 if test -s conftest.err; then
17304 ac_cpp_err=$ac_c_preproc_warn_flag
17305 else
17306 ac_cpp_err=
17307 fi
17308 else
17309 ac_cpp_err=yes
17310 fi
17311 if test -z "$ac_cpp_err"; then
17312 ac_header_preproc=yes
17313 else
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ac_header_preproc=no
17318 fi
17319 rm -f conftest.err conftest.$ac_ext
17320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17321 echo "${ECHO_T}$ac_header_preproc" >&6
17322
17323 # So? What about this header?
17324 case $ac_header_compiler:$ac_header_preproc in
17325 yes:no )
17326 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17327 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17330 (
17331 cat <<\_ASBOX
17332 ## ------------------------------------ ##
17333 ## Report this to bug-autoconf@gnu.org. ##
17334 ## ------------------------------------ ##
17335 _ASBOX
17336 ) |
17337 sed "s/^/$as_me: WARNING: /" >&2
17338 ;;
17339 no:yes )
17340 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17341 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17343 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17344 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17345 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17346 (
17347 cat <<\_ASBOX
17348 ## ------------------------------------ ##
17349 ## Report this to bug-autoconf@gnu.org. ##
17350 ## ------------------------------------ ##
17351 _ASBOX
17352 ) |
17353 sed "s/^/$as_me: WARNING: /" >&2
17354 ;;
17355 esac
17356 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17357 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17358 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361 ac_cv_header_arpa_inet_h=$ac_header_preproc
17362 fi
17363 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17364 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17365
17366 fi
17367 if test $ac_cv_header_arpa_inet_h = yes; then
17368 :
17369 else
17370 ok_so_far=no
17371 fi
17372
17373
17374 fi
17375 if test $ok_so_far = yes; then
17376
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_INET_SOCKETS 1
17379 _ACEOF
17380
17381 fi
17382
17383 if test -f /usr/lpp/X11/bin/smt.exp; then
17384
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_AIX_SMT_EXP 1
17387 _ACEOF
17388
17389 fi
17390
17391 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17392 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17393 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17394 echo "$as_me:$LINENO: result: yes" >&5
17395 echo "${ECHO_T}yes" >&6
17396
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_DEV_PTMX 1
17399 _ACEOF
17400
17401 else
17402 echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17404 fi
17405
17406 echo "$as_me:$LINENO: checking for pid_t" >&5
17407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17408 if test "${ac_cv_type_pid_t+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 cat >conftest.$ac_ext <<_ACEOF
17412 #line $LINENO "configure"
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 int
17420 main ()
17421 {
17422 if ((pid_t *) 0)
17423 return 0;
17424 if (sizeof (pid_t))
17425 return 0;
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -s conftest.$ac_objext'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 ac_cv_type_pid_t=yes
17443 else
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447 ac_cv_type_pid_t=no
17448 fi
17449 rm -f conftest.$ac_objext conftest.$ac_ext
17450 fi
17451 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17452 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17453 if test $ac_cv_type_pid_t = yes; then
17454 :
17455 else
17456
17457 cat >>confdefs.h <<_ACEOF
17458 #define pid_t int
17459 _ACEOF
17460
17461 fi
17462
17463
17464
17465 for ac_header in unistd.h vfork.h
17466 do
17467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17469 echo "$as_me:$LINENO: checking for $ac_header" >&5
17470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 fi
17474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17476 else
17477 # Is the header compilable?
17478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17480 cat >conftest.$ac_ext <<_ACEOF
17481 #line $LINENO "configure"
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17488 #include <$ac_header>
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_header_compiler=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_header_compiler=no
17508 fi
17509 rm -f conftest.$ac_objext conftest.$ac_ext
17510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17511 echo "${ECHO_T}$ac_header_compiler" >&6
17512
17513 # Is the header present?
17514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17516 cat >conftest.$ac_ext <<_ACEOF
17517 #line $LINENO "configure"
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <$ac_header>
17524 _ACEOF
17525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } >/dev/null; then
17533 if test -s conftest.err; then
17534 ac_cpp_err=$ac_c_preproc_warn_flag
17535 else
17536 ac_cpp_err=
17537 fi
17538 else
17539 ac_cpp_err=yes
17540 fi
17541 if test -z "$ac_cpp_err"; then
17542 ac_header_preproc=yes
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 ac_header_preproc=no
17548 fi
17549 rm -f conftest.err conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17551 echo "${ECHO_T}$ac_header_preproc" >&6
17552
17553 # So? What about this header?
17554 case $ac_header_compiler:$ac_header_preproc in
17555 yes:no )
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17560 (
17561 cat <<\_ASBOX
17562 ## ------------------------------------ ##
17563 ## Report this to bug-autoconf@gnu.org. ##
17564 ## ------------------------------------ ##
17565 _ASBOX
17566 ) |
17567 sed "s/^/$as_me: WARNING: /" >&2
17568 ;;
17569 no:yes )
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17576 (
17577 cat <<\_ASBOX
17578 ## ------------------------------------ ##
17579 ## Report this to bug-autoconf@gnu.org. ##
17580 ## ------------------------------------ ##
17581 _ASBOX
17582 ) |
17583 sed "s/^/$as_me: WARNING: /" >&2
17584 ;;
17585 esac
17586 echo "$as_me:$LINENO: checking for $ac_header" >&5
17587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 eval "$as_ac_Header=$ac_header_preproc"
17592 fi
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17595
17596 fi
17597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17598 cat >>confdefs.h <<_ACEOF
17599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17600 _ACEOF
17601
17602 fi
17603
17604 done
17605
17606
17607
17608 for ac_func in fork vfork
17609 do
17610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17611 echo "$as_me:$LINENO: checking for $ac_func" >&5
17612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17613 if eval "test \"\${$as_ac_var+set}\" = set"; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616 cat >conftest.$ac_ext <<_ACEOF
17617 #line $LINENO "configure"
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17627 #ifdef __STDC__
17628 # include <limits.h>
17629 #else
17630 # include <assert.h>
17631 #endif
17632 /* Override any gcc2 internal prototype to avoid an error. */
17633 #ifdef __cplusplus
17634 extern "C"
17635 {
17636 #endif
17637 /* We use char because int might match the return type of a gcc2
17638 builtin and then its argument prototype would still apply. */
17639 char $ac_func ();
17640 /* The GNU C library defines this for functions which it implements
17641 to always fail with ENOSYS. Some functions are actually named
17642 something starting with __ and the normal name is an alias. */
17643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17644 choke me
17645 #else
17646 char (*f) () = $ac_func;
17647 #endif
17648 #ifdef __cplusplus
17649 }
17650 #endif
17651
17652 int
17653 main ()
17654 {
17655 return f != $ac_func;
17656 ;
17657 return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 eval "$as_ac_var=yes"
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 eval "$as_ac_var=no"
17678 fi
17679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17680 fi
17681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17683 if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686 _ACEOF
17687
17688 fi
17689 done
17690
17691 if test "x$ac_cv_func_fork" = xyes; then
17692 echo "$as_me:$LINENO: checking for working fork" >&5
17693 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17694 if test "${ac_cv_func_fork_works+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 if test "$cross_compiling" = yes; then
17698 ac_cv_func_fork_works=cross
17699 else
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* By Ruediger Kuhlmann. */
17702 #include <sys/types.h>
17703 #if HAVE_UNISTD_H
17704 # include <unistd.h>
17705 #endif
17706 /* Some systems only have a dummy stub for fork() */
17707 int main ()
17708 {
17709 if (fork() < 0)
17710 exit (1);
17711 exit (0);
17712 }
17713 _ACEOF
17714 rm -f conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_func_fork_works=yes
17726 else
17727 echo "$as_me: program exited with status $ac_status" >&5
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ( exit $ac_status )
17732 ac_cv_func_fork_works=no
17733 fi
17734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17735 fi
17736 fi
17737 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17738 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17739
17740 else
17741 ac_cv_func_fork_works=$ac_cv_func_fork
17742 fi
17743 if test "x$ac_cv_func_fork_works" = xcross; then
17744 case $host in
17745 *-*-amigaos* | *-*-msdosdjgpp*)
17746 # Override, as these systems have only a dummy fork() stub
17747 ac_cv_func_fork_works=no
17748 ;;
17749 *)
17750 ac_cv_func_fork_works=yes
17751 ;;
17752 esac
17753 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17754 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17755 fi
17756 ac_cv_func_vfork_works=$ac_cv_func_vfork
17757 if test "x$ac_cv_func_vfork" = xyes; then
17758 echo "$as_me:$LINENO: checking for working vfork" >&5
17759 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17760 if test "${ac_cv_func_vfork_works+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763 if test "$cross_compiling" = yes; then
17764 ac_cv_func_vfork_works=cross
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 #line $LINENO "configure"
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Thanks to Paul Eggert for this test. */
17774 #include <stdio.h>
17775 #include <stdlib.h>
17776 #include <sys/types.h>
17777 #include <sys/stat.h>
17778 #include <sys/wait.h>
17779 #if HAVE_UNISTD_H
17780 # include <unistd.h>
17781 #endif
17782 #if HAVE_VFORK_H
17783 # include <vfork.h>
17784 #endif
17785 /* On some sparc systems, changes by the child to local and incoming
17786 argument registers are propagated back to the parent. The compiler
17787 is told about this with #include <vfork.h>, but some compilers
17788 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17789 static variable whose address is put into a register that is
17790 clobbered by the vfork. */
17791 static void
17792 #ifdef __cplusplus
17793 sparc_address_test (int arg)
17794 # else
17795 sparc_address_test (arg) int arg;
17796 #endif
17797 {
17798 static pid_t child;
17799 if (!child) {
17800 child = vfork ();
17801 if (child < 0) {
17802 perror ("vfork");
17803 _exit(2);
17804 }
17805 if (!child) {
17806 arg = getpid();
17807 write(-1, "", 0);
17808 _exit (arg);
17809 }
17810 }
17811 }
17812
17813 int
17814 main ()
17815 {
17816 pid_t parent = getpid ();
17817 pid_t child;
17818
17819 sparc_address_test (0);
17820
17821 child = vfork ();
17822
17823 if (child == 0) {
17824 /* Here is another test for sparc vfork register problems. This
17825 test uses lots of local variables, at least as many local
17826 variables as main has allocated so far including compiler
17827 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17828 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17829 reuse the register of parent for one of the local variables,
17830 since it will think that parent can't possibly be used any more
17831 in this routine. Assigning to the local variable will thus
17832 munge parent in the parent process. */
17833 pid_t
17834 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17835 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17836 /* Convince the compiler that p..p7 are live; otherwise, it might
17837 use the same hardware register for all 8 local variables. */
17838 if (p != p1 || p != p2 || p != p3 || p != p4
17839 || p != p5 || p != p6 || p != p7)
17840 _exit(1);
17841
17842 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17843 from child file descriptors. If the child closes a descriptor
17844 before it execs or exits, this munges the parent's descriptor
17845 as well. Test for this by closing stdout in the child. */
17846 _exit(close(fileno(stdout)) != 0);
17847 } else {
17848 int status;
17849 struct stat st;
17850
17851 while (wait(&status) != child)
17852 ;
17853 exit(
17854 /* Was there some problem with vforking? */
17855 child < 0
17856
17857 /* Did the child fail? (This shouldn't happen.) */
17858 || status
17859
17860 /* Did the vfork/compiler bug occur? */
17861 || parent != getpid()
17862
17863 /* Did the file descriptor bug occur? */
17864 || fstat(fileno(stdout), &st) != 0
17865 );
17866 }
17867 }
17868 _ACEOF
17869 rm -f conftest$ac_exeext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17871 (eval $ac_link) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_cv_func_vfork_works=yes
17881 else
17882 echo "$as_me: program exited with status $ac_status" >&5
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 ( exit $ac_status )
17887 ac_cv_func_vfork_works=no
17888 fi
17889 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17890 fi
17891 fi
17892 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17893 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17894
17895 fi;
17896 if test "x$ac_cv_func_fork_works" = xcross; then
17897 ac_cv_func_vfork_works=ac_cv_func_vfork
17898 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17899 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17900 fi
17901
17902 if test "x$ac_cv_func_vfork_works" = xyes; then
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define HAVE_WORKING_VFORK 1
17906 _ACEOF
17907
17908 else
17909
17910 cat >>confdefs.h <<\_ACEOF
17911 #define vfork fork
17912 _ACEOF
17913
17914 fi
17915 if test "x$ac_cv_func_fork_works" = xyes; then
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_WORKING_FORK 1
17919 _ACEOF
17920
17921 fi
17922
17923
17924 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17925 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17926 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929 cat >conftest.$ac_ext <<_ACEOF
17930 #line $LINENO "configure"
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <langinfo.h>
17937 int
17938 main ()
17939 {
17940 char* cs = nl_langinfo(CODESET);
17941 ;
17942 return 0;
17943 }
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947 (eval $ac_link) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 emacs_cv_langinfo_codeset=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 emacs_cv_langinfo_codeset=no
17963 fi
17964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17965
17966 fi
17967 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17968 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17969 if test $emacs_cv_langinfo_codeset = yes; then
17970
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_LANGINFO_CODESET 1
17973 _ACEOF
17974
17975 fi
17976
17977 echo "$as_me:$LINENO: checking for size_t" >&5
17978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17979 if test "${ac_cv_type_size_t+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 cat >conftest.$ac_ext <<_ACEOF
17983 #line $LINENO "configure"
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 $ac_includes_default
17990 int
17991 main ()
17992 {
17993 if ((size_t *) 0)
17994 return 0;
17995 if (sizeof (size_t))
17996 return 0;
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003 (eval $ac_compile) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_type_size_t=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 ac_cv_type_size_t=no
18019 fi
18020 rm -f conftest.$ac_objext conftest.$ac_ext
18021 fi
18022 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18023 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18024 if test $ac_cv_type_size_t = yes; then
18025
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_SIZE_T 1
18028 _ACEOF
18029
18030
18031 fi
18032
18033
18034 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18035 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18036 if test "${ac_cv_type_mbstate_t+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039 cat >conftest.$ac_ext <<_ACEOF
18040 #line $LINENO "configure"
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 $ac_includes_default
18047 # include <wchar.h>
18048 int
18049 main ()
18050 {
18051 mbstate_t x; return sizeof x;
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058 (eval $ac_compile) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -s conftest.$ac_objext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 ac_cv_type_mbstate_t=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 ac_cv_type_mbstate_t=no
18074 fi
18075 rm -f conftest.$ac_objext conftest.$ac_ext
18076 fi
18077 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18078 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18079 if test $ac_cv_type_mbstate_t = yes; then
18080
18081 cat >>confdefs.h <<\_ACEOF
18082 #define HAVE_MBSTATE_T 1
18083 _ACEOF
18084
18085 else
18086
18087 cat >>confdefs.h <<\_ACEOF
18088 #define mbstate_t int
18089 _ACEOF
18090
18091 fi
18092
18093 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18094 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18095 if test "${emacs_cv_c_restrict+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 cat >conftest.$ac_ext <<_ACEOF
18099 #line $LINENO "configure"
18100 /* confdefs.h. */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 void fred (int *restrict x);
18106 int
18107 main ()
18108 {
18109
18110 ;
18111 return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -s conftest.$ac_objext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 emacs_cv_c_restrict=yes
18127 else
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 cat >conftest.$ac_ext <<_ACEOF
18132 #line $LINENO "configure"
18133 /* confdefs.h. */
18134 _ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 void fred (int *__restrict x);
18139 int
18140 main ()
18141 {
18142
18143 ;
18144 return 0;
18145 }
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 emacs_cv_c_restrict=__restrict
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 emacs_cv_c_restrict=no
18165 fi
18166 rm -f conftest.$ac_objext conftest.$ac_ext
18167 fi
18168 rm -f conftest.$ac_objext conftest.$ac_ext
18169 fi
18170 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18171 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18172 case "$emacs_cv_c_restrict" in
18173 yes) emacs_restrict=restrict;;
18174 no) emacs_restrict="";;
18175 *) emacs_restrict="$emacs_cv_c_restrict";;
18176 esac
18177 if test "$emacs_restrict" != __restrict; then
18178
18179 cat >>confdefs.h <<_ACEOF
18180 #define __restrict $emacs_restrict
18181 _ACEOF
18182
18183 fi
18184
18185 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18186 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18187 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190 cat >conftest.$ac_ext <<_ACEOF
18191 #line $LINENO "configure"
18192 /* confdefs.h. */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 void fred (int x[__restrict]);
18198 int
18199 main ()
18200 {
18201
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 emacs_cv_c_restrict_arr=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 emacs_cv_c_restrict_arr=no
18224 fi
18225 rm -f conftest.$ac_objext conftest.$ac_ext
18226 fi
18227 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18228 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18229 if test "$emacs_cv_c_restrict_arr" = yes; then
18230
18231 cat >>confdefs.h <<\_ACEOF
18232 #define __restrict_arr __restrict
18233 _ACEOF
18234
18235 fi
18236
18237
18238
18239 # Set up the CFLAGS for real compilation, so we can substitute it.
18240 CFLAGS="$REAL_CFLAGS"
18241 CPPFLAGS="$REAL_CPPFLAGS"
18242
18243 #### Find out which version of Emacs this is.
18244 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18245 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18246 if test x"${version}" = x; then
18247 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18248 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18249 { (exit 1); exit 1; }; }
18250 fi
18251
18252 ### Specify what sort of things we'll be editing into Makefile and config.h.
18253 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289 cat >>confdefs.h <<_ACEOF
18290 #define EMACS_CONFIGURATION "${canonical}"
18291 _ACEOF
18292
18293
18294 cat >>confdefs.h <<_ACEOF
18295 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18296 _ACEOF
18297
18298
18299 cat >>confdefs.h <<_ACEOF
18300 #define config_machfile "${machfile}"
18301 _ACEOF
18302
18303
18304 cat >>confdefs.h <<_ACEOF
18305 #define config_opsysfile "${opsysfile}"
18306 _ACEOF
18307
18308
18309 cat >>confdefs.h <<_ACEOF
18310 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18311 _ACEOF
18312
18313
18314 cat >>confdefs.h <<_ACEOF
18315 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18316 _ACEOF
18317
18318
18319 cat >>confdefs.h <<_ACEOF
18320 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18321 _ACEOF
18322
18323
18324 cat >>confdefs.h <<_ACEOF
18325 #define UNEXEC_SRC ${UNEXEC_SRC}
18326 _ACEOF
18327
18328
18329 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18330
18331 cat >>confdefs.h <<\_ACEOF
18332 #define HAVE_X_WINDOWS 1
18333 _ACEOF
18334
18335 fi
18336 if test "${USE_X_TOOLKIT}" != "none" ; then
18337
18338 cat >>confdefs.h <<\_ACEOF
18339 #define USE_X_TOOLKIT 1
18340 _ACEOF
18341
18342 fi
18343 if test "${HAVE_X11}" = "yes" ; then
18344
18345 cat >>confdefs.h <<\_ACEOF
18346 #define HAVE_X11 1
18347 _ACEOF
18348
18349 fi
18350 if test "${HAVE_XFREE386}" = "yes" ; then
18351
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE_XFREE386 1
18354 _ACEOF
18355
18356 fi
18357 if test "${HAVE_MENUS}" = "yes" ; then
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_MENUS 1
18361 _ACEOF
18362
18363 fi
18364 if test "${GNU_MALLOC}" = "yes" ; then
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define GNU_MALLOC 1
18368 _ACEOF
18369
18370 fi
18371 if test "${REL_ALLOC}" = "yes" ; then
18372
18373 cat >>confdefs.h <<\_ACEOF
18374 #define REL_ALLOC 1
18375 _ACEOF
18376
18377 fi
18378
18379
18380
18381
18382
18383 #### Report on what we decided to do.
18384 #### Report GTK as a toolkit, even if it doesn't use Xt.
18385 #### It makes printing result more understandable as using GTK sets
18386 #### toolkit_scroll_bars to yes by default.
18387 if test "${HAVE_GTK}" = "yes"; then
18388 USE_X_TOOLKIT=GTK
18389 fi
18390
18391 echo "
18392 Configured for \`${canonical}'.
18393
18394 Where should the build process find the source code? ${srcdir}
18395 What operating system and machine description files should Emacs use?
18396 \`${opsysfile}' and \`${machfile}'
18397 What compiler should emacs be built with? ${CC} ${CFLAGS}
18398 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18399 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18400 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18401 What window system should Emacs use? ${window_system}
18402 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18403
18404 if test -n "${x_includes}"; then
18405 echo " Where do we find X Windows header files? ${x_includes}"
18406 else
18407 echo " Where do we find X Windows header files? Standard dirs"
18408 fi
18409 if test -n "${x_libraries}"; then
18410 echo " Where do we find X Windows libraries? ${x_libraries}"
18411 else
18412 echo " Where do we find X Windows libraries? Standard dirs"
18413 fi
18414
18415 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18416 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18417 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18418 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18419 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18420 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18421 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18422 echo
18423
18424 # Remove any trailing slashes in these variables.
18425 test "${prefix}" != NONE &&
18426 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18427 test "${exec_prefix}" != NONE &&
18428 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18429
18430 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18431 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18432 ## from Makefile.c can correctly provide the arg `-traditional' to the
18433 ## C preprocessor.
18434
18435 cat >conftest.$ac_ext <<_ACEOF
18436 #line $LINENO "configure"
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 yes..yes
18443 _ACEOF
18444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18445 $EGREP "yes..yes" >/dev/null 2>&1; then
18446 CPP_NEED_TRADITIONAL=no
18447 else
18448 CPP_NEED_TRADITIONAL=yes
18449 fi
18450 rm -f conftest*
18451
18452
18453 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"
18454 ac_config_commands="$ac_config_commands default"
18455 cat >confcache <<\_ACEOF
18456 # This file is a shell script that caches the results of configure
18457 # tests run on this system so they can be shared between configure
18458 # scripts and configure runs, see configure's option --config-cache.
18459 # It is not useful on other systems. If it contains results you don't
18460 # want to keep, you may remove or edit it.
18461 #
18462 # config.status only pays attention to the cache file if you give it
18463 # the --recheck option to rerun configure.
18464 #
18465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18467 # following values.
18468
18469 _ACEOF
18470
18471 # The following way of writing the cache mishandles newlines in values,
18472 # but we know of no workaround that is simple, portable, and efficient.
18473 # So, don't put newlines in cache variables' values.
18474 # Ultrix sh set writes to stderr and can't be redirected directly,
18475 # and sets the high bit in the cache file unless we assign to the vars.
18476 {
18477 (set) 2>&1 |
18478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18479 *ac_space=\ *)
18480 # `set' does not quote correctly, so add quotes (double-quote
18481 # substitution turns \\\\ into \\, and sed turns \\ into \).
18482 sed -n \
18483 "s/'/'\\\\''/g;
18484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18485 ;;
18486 *)
18487 # `set' quotes correctly as required by POSIX, so do not add quotes.
18488 sed -n \
18489 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18490 ;;
18491 esac;
18492 } |
18493 sed '
18494 t clear
18495 : clear
18496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18497 t end
18498 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18499 : end' >>confcache
18500 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18501 if test -w $cache_file; then
18502 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18503 cat confcache >$cache_file
18504 else
18505 echo "not updating unwritable cache $cache_file"
18506 fi
18507 fi
18508 rm -f confcache
18509
18510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18511 # Let make expand exec_prefix.
18512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18513
18514 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18515 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18516 # trailing colons and then remove the whole line if VPATH becomes empty
18517 # (actually we leave an empty line to preserve line numbers).
18518 if test "x$srcdir" = x.; then
18519 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18520 s/:*\$(srcdir):*/:/;
18521 s/:*\${srcdir}:*/:/;
18522 s/:*@srcdir@:*/:/;
18523 s/^\([^=]*=[ ]*\):*/\1/;
18524 s/:*$//;
18525 s/^[^=]*=[ ]*$//;
18526 }'
18527 fi
18528
18529 DEFS=-DHAVE_CONFIG_H
18530
18531 ac_libobjs=
18532 ac_ltlibobjs=
18533 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18534 # 1. Remove the extension, and $U if already installed.
18535 ac_i=`echo "$ac_i" |
18536 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18537 # 2. Add them.
18538 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18539 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18540 done
18541 LIBOBJS=$ac_libobjs
18542
18543 LTLIBOBJS=$ac_ltlibobjs
18544
18545
18546
18547 : ${CONFIG_STATUS=./config.status}
18548 ac_clean_files_save=$ac_clean_files
18549 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18550 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18551 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18552 cat >$CONFIG_STATUS <<_ACEOF
18553 #! $SHELL
18554 # Generated by $as_me.
18555 # Run this file to recreate the current configuration.
18556 # Compiler output produced by configure, useful for debugging
18557 # configure, is in config.log if it exists.
18558
18559 debug=false
18560 ac_cs_recheck=false
18561 ac_cs_silent=false
18562 SHELL=\${CONFIG_SHELL-$SHELL}
18563 _ACEOF
18564
18565 cat >>$CONFIG_STATUS <<\_ACEOF
18566 ## --------------------- ##
18567 ## M4sh Initialization. ##
18568 ## --------------------- ##
18569
18570 # Be Bourne compatible
18571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18572 emulate sh
18573 NULLCMD=:
18574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18575 # is contrary to our usage. Disable this feature.
18576 alias -g '${1+"$@"}'='"$@"'
18577 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18578 set -o posix
18579 fi
18580
18581 # Support unset when possible.
18582 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18583 as_unset=unset
18584 else
18585 as_unset=false
18586 fi
18587
18588
18589 # Work around bugs in pre-3.0 UWIN ksh.
18590 $as_unset ENV MAIL MAILPATH
18591 PS1='$ '
18592 PS2='> '
18593 PS4='+ '
18594
18595 # NLS nuisances.
18596 for as_var in \
18597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18599 LC_TELEPHONE LC_TIME
18600 do
18601 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18602 eval $as_var=C; export $as_var
18603 else
18604 $as_unset $as_var
18605 fi
18606 done
18607
18608 # Required to use basename.
18609 if expr a : '\(a\)' >/dev/null 2>&1; then
18610 as_expr=expr
18611 else
18612 as_expr=false
18613 fi
18614
18615 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18616 as_basename=basename
18617 else
18618 as_basename=false
18619 fi
18620
18621
18622 # Name of the executable.
18623 as_me=`$as_basename "$0" ||
18624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18625 X"$0" : 'X\(//\)$' \| \
18626 X"$0" : 'X\(/\)$' \| \
18627 . : '\(.\)' 2>/dev/null ||
18628 echo X/"$0" |
18629 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18630 /^X\/\(\/\/\)$/{ s//\1/; q; }
18631 /^X\/\(\/\).*/{ s//\1/; q; }
18632 s/.*/./; q'`
18633
18634
18635 # PATH needs CR, and LINENO needs CR and PATH.
18636 # Avoid depending upon Character Ranges.
18637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18640 as_cr_digits='0123456789'
18641 as_cr_alnum=$as_cr_Letters$as_cr_digits
18642
18643 # The user is always right.
18644 if test "${PATH_SEPARATOR+set}" != set; then
18645 echo "#! /bin/sh" >conf$$.sh
18646 echo "exit 0" >>conf$$.sh
18647 chmod +x conf$$.sh
18648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18649 PATH_SEPARATOR=';'
18650 else
18651 PATH_SEPARATOR=:
18652 fi
18653 rm -f conf$$.sh
18654 fi
18655
18656
18657 as_lineno_1=$LINENO
18658 as_lineno_2=$LINENO
18659 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18660 test "x$as_lineno_1" != "x$as_lineno_2" &&
18661 test "x$as_lineno_3" = "x$as_lineno_2" || {
18662 # Find who we are. Look in the path if we contain no path at all
18663 # relative or not.
18664 case $0 in
18665 *[\\/]* ) as_myself=$0 ;;
18666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18668 do
18669 IFS=$as_save_IFS
18670 test -z "$as_dir" && as_dir=.
18671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18672 done
18673
18674 ;;
18675 esac
18676 # We did not find ourselves, most probably we were run as `sh COMMAND'
18677 # in which case we are not to be found in the path.
18678 if test "x$as_myself" = x; then
18679 as_myself=$0
18680 fi
18681 if test ! -f "$as_myself"; then
18682 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18683 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18684 { (exit 1); exit 1; }; }
18685 fi
18686 case $CONFIG_SHELL in
18687 '')
18688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18690 do
18691 IFS=$as_save_IFS
18692 test -z "$as_dir" && as_dir=.
18693 for as_base in sh bash ksh sh5; do
18694 case $as_dir in
18695 /*)
18696 if ("$as_dir/$as_base" -c '
18697 as_lineno_1=$LINENO
18698 as_lineno_2=$LINENO
18699 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18700 test "x$as_lineno_1" != "x$as_lineno_2" &&
18701 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18702 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18703 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18704 CONFIG_SHELL=$as_dir/$as_base
18705 export CONFIG_SHELL
18706 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18707 fi;;
18708 esac
18709 done
18710 done
18711 ;;
18712 esac
18713
18714 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18715 # uniformly replaced by the line number. The first 'sed' inserts a
18716 # line-number line before each line; the second 'sed' does the real
18717 # work. The second script uses 'N' to pair each line-number line
18718 # with the numbered line, and appends trailing '-' during
18719 # substitution so that $LINENO is not a special case at line end.
18720 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18721 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18722 sed '=' <$as_myself |
18723 sed '
18724 N
18725 s,$,-,
18726 : loop
18727 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18728 t loop
18729 s,-$,,
18730 s,^['$as_cr_digits']*\n,,
18731 ' >$as_me.lineno &&
18732 chmod +x $as_me.lineno ||
18733 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18734 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18735 { (exit 1); exit 1; }; }
18736
18737 # Don't try to exec as it changes $[0], causing all sort of problems
18738 # (the dirname of $[0] is not the place where we might find the
18739 # original and so on. Autoconf is especially sensible to this).
18740 . ./$as_me.lineno
18741 # Exit status is that of the last command.
18742 exit
18743 }
18744
18745
18746 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18747 *c*,-n*) ECHO_N= ECHO_C='
18748 ' ECHO_T=' ' ;;
18749 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18750 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18751 esac
18752
18753 if expr a : '\(a\)' >/dev/null 2>&1; then
18754 as_expr=expr
18755 else
18756 as_expr=false
18757 fi
18758
18759 rm -f conf$$ conf$$.exe conf$$.file
18760 echo >conf$$.file
18761 if ln -s conf$$.file conf$$ 2>/dev/null; then
18762 # We could just check for DJGPP; but this test a) works b) is more generic
18763 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18764 if test -f conf$$.exe; then
18765 # Don't use ln at all; we don't have any links
18766 as_ln_s='cp -p'
18767 else
18768 as_ln_s='ln -s'
18769 fi
18770 elif ln conf$$.file conf$$ 2>/dev/null; then
18771 as_ln_s=ln
18772 else
18773 as_ln_s='cp -p'
18774 fi
18775 rm -f conf$$ conf$$.exe conf$$.file
18776
18777 if mkdir -p . 2>/dev/null; then
18778 as_mkdir_p=:
18779 else
18780 as_mkdir_p=false
18781 fi
18782
18783 as_executable_p="test -f"
18784
18785 # Sed expression to map a string onto a valid CPP name.
18786 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18787
18788 # Sed expression to map a string onto a valid variable name.
18789 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18790
18791
18792 # IFS
18793 # We need space, tab and new line, in precisely that order.
18794 as_nl='
18795 '
18796 IFS=" $as_nl"
18797
18798 # CDPATH.
18799 $as_unset CDPATH
18800
18801 exec 6>&1
18802
18803 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18804 # report actual input values of CONFIG_FILES etc. instead of their
18805 # values after options handling. Logging --version etc. is OK.
18806 exec 5>>config.log
18807 {
18808 echo
18809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18810 ## Running $as_me. ##
18811 _ASBOX
18812 } >&5
18813 cat >&5 <<_CSEOF
18814
18815 This file was extended by $as_me, which was
18816 generated by GNU Autoconf 2.57. Invocation command line was
18817
18818 CONFIG_FILES = $CONFIG_FILES
18819 CONFIG_HEADERS = $CONFIG_HEADERS
18820 CONFIG_LINKS = $CONFIG_LINKS
18821 CONFIG_COMMANDS = $CONFIG_COMMANDS
18822 $ $0 $@
18823
18824 _CSEOF
18825 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18826 echo >&5
18827 _ACEOF
18828
18829 # Files that config.status was made for.
18830 if test -n "$ac_config_files"; then
18831 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18832 fi
18833
18834 if test -n "$ac_config_headers"; then
18835 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18836 fi
18837
18838 if test -n "$ac_config_links"; then
18839 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18840 fi
18841
18842 if test -n "$ac_config_commands"; then
18843 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18844 fi
18845
18846 cat >>$CONFIG_STATUS <<\_ACEOF
18847
18848 ac_cs_usage="\
18849 \`$as_me' instantiates files from templates according to the
18850 current configuration.
18851
18852 Usage: $0 [OPTIONS] [FILE]...
18853
18854 -h, --help print this help, then exit
18855 -V, --version print version number, then exit
18856 -q, --quiet do not print progress messages
18857 -d, --debug don't remove temporary files
18858 --recheck update $as_me by reconfiguring in the same conditions
18859 --file=FILE[:TEMPLATE]
18860 instantiate the configuration file FILE
18861 --header=FILE[:TEMPLATE]
18862 instantiate the configuration header FILE
18863
18864 Configuration files:
18865 $config_files
18866
18867 Configuration headers:
18868 $config_headers
18869
18870 Configuration commands:
18871 $config_commands
18872
18873 Report bugs to <bug-autoconf@gnu.org>."
18874 _ACEOF
18875
18876 cat >>$CONFIG_STATUS <<_ACEOF
18877 ac_cs_version="\\
18878 config.status
18879 configured by $0, generated by GNU Autoconf 2.57,
18880 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18881
18882 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18883 Free Software Foundation, Inc.
18884 This config.status script is free software; the Free Software Foundation
18885 gives unlimited permission to copy, distribute and modify it."
18886 srcdir=$srcdir
18887 INSTALL="$INSTALL"
18888 _ACEOF
18889
18890 cat >>$CONFIG_STATUS <<\_ACEOF
18891 # If no file are specified by the user, then we need to provide default
18892 # value. By we need to know if files were specified by the user.
18893 ac_need_defaults=:
18894 while test $# != 0
18895 do
18896 case $1 in
18897 --*=*)
18898 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18899 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18900 ac_shift=:
18901 ;;
18902 -*)
18903 ac_option=$1
18904 ac_optarg=$2
18905 ac_shift=shift
18906 ;;
18907 *) # This is not an option, so the user has probably given explicit
18908 # arguments.
18909 ac_option=$1
18910 ac_need_defaults=false;;
18911 esac
18912
18913 case $ac_option in
18914 # Handling of the options.
18915 _ACEOF
18916 cat >>$CONFIG_STATUS <<\_ACEOF
18917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18918 ac_cs_recheck=: ;;
18919 --version | --vers* | -V )
18920 echo "$ac_cs_version"; exit 0 ;;
18921 --he | --h)
18922 # Conflict between --help and --header
18923 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18924 Try \`$0 --help' for more information." >&5
18925 echo "$as_me: error: ambiguous option: $1
18926 Try \`$0 --help' for more information." >&2;}
18927 { (exit 1); exit 1; }; };;
18928 --help | --hel | -h )
18929 echo "$ac_cs_usage"; exit 0 ;;
18930 --debug | --d* | -d )
18931 debug=: ;;
18932 --file | --fil | --fi | --f )
18933 $ac_shift
18934 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18935 ac_need_defaults=false;;
18936 --header | --heade | --head | --hea )
18937 $ac_shift
18938 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18939 ac_need_defaults=false;;
18940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18942 ac_cs_silent=: ;;
18943
18944 # This is an error.
18945 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18946 Try \`$0 --help' for more information." >&5
18947 echo "$as_me: error: unrecognized option: $1
18948 Try \`$0 --help' for more information." >&2;}
18949 { (exit 1); exit 1; }; } ;;
18950
18951 *) ac_config_targets="$ac_config_targets $1" ;;
18952
18953 esac
18954 shift
18955 done
18956
18957 ac_configure_extra_args=
18958
18959 if $ac_cs_silent; then
18960 exec 6>/dev/null
18961 ac_configure_extra_args="$ac_configure_extra_args --silent"
18962 fi
18963
18964 _ACEOF
18965 cat >>$CONFIG_STATUS <<_ACEOF
18966 if \$ac_cs_recheck; then
18967 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18968 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18969 fi
18970
18971 _ACEOF
18972
18973 cat >>$CONFIG_STATUS <<_ACEOF
18974 #
18975 # INIT-COMMANDS section.
18976 #
18977
18978 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18979
18980 _ACEOF
18981
18982
18983
18984 cat >>$CONFIG_STATUS <<\_ACEOF
18985 for ac_config_target in $ac_config_targets
18986 do
18987 case "$ac_config_target" in
18988 # Handling of arguments.
18989 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18990 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18991 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18992 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18993 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18994 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18995 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18996 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18997 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18998 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18999 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19000 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19003 { (exit 1); exit 1; }; };;
19004 esac
19005 done
19006
19007 # If the user did not use the arguments to specify the items to instantiate,
19008 # then the envvar interface is used. Set only those that are not.
19009 # We use the long form for the default assignment because of an extremely
19010 # bizarre bug on SunOS 4.1.3.
19011 if $ac_need_defaults; then
19012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19014 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19015 fi
19016
19017 # Have a temporary directory for convenience. Make it in the build tree
19018 # simply because there is no reason to put it here, and in addition,
19019 # creating and moving files from /tmp can sometimes cause problems.
19020 # Create a temporary directory, and hook for its removal unless debugging.
19021 $debug ||
19022 {
19023 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19024 trap '{ (exit 1); exit 1; }' 1 2 13 15
19025 }
19026
19027 # Create a (secure) tmp directory for tmp files.
19028
19029 {
19030 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19031 test -n "$tmp" && test -d "$tmp"
19032 } ||
19033 {
19034 tmp=./confstat$$-$RANDOM
19035 (umask 077 && mkdir $tmp)
19036 } ||
19037 {
19038 echo "$me: cannot create a temporary directory in ." >&2
19039 { (exit 1); exit 1; }
19040 }
19041
19042 _ACEOF
19043
19044 cat >>$CONFIG_STATUS <<_ACEOF
19045
19046 #
19047 # CONFIG_FILES section.
19048 #
19049
19050 # No need to generate the scripts if there are no CONFIG_FILES.
19051 # This happens for instance when ./config.status config.h
19052 if test -n "\$CONFIG_FILES"; then
19053 # Protect against being on the right side of a sed subst in config.status.
19054 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19055 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19056 s,@SHELL@,$SHELL,;t t
19057 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19058 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19059 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19060 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19061 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19062 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19063 s,@exec_prefix@,$exec_prefix,;t t
19064 s,@prefix@,$prefix,;t t
19065 s,@program_transform_name@,$program_transform_name,;t t
19066 s,@bindir@,$bindir,;t t
19067 s,@sbindir@,$sbindir,;t t
19068 s,@libexecdir@,$libexecdir,;t t
19069 s,@datadir@,$datadir,;t t
19070 s,@sysconfdir@,$sysconfdir,;t t
19071 s,@sharedstatedir@,$sharedstatedir,;t t
19072 s,@localstatedir@,$localstatedir,;t t
19073 s,@libdir@,$libdir,;t t
19074 s,@includedir@,$includedir,;t t
19075 s,@oldincludedir@,$oldincludedir,;t t
19076 s,@infodir@,$infodir,;t t
19077 s,@mandir@,$mandir,;t t
19078 s,@build_alias@,$build_alias,;t t
19079 s,@host_alias@,$host_alias,;t t
19080 s,@target_alias@,$target_alias,;t t
19081 s,@DEFS@,$DEFS,;t t
19082 s,@ECHO_C@,$ECHO_C,;t t
19083 s,@ECHO_N@,$ECHO_N,;t t
19084 s,@ECHO_T@,$ECHO_T,;t t
19085 s,@LIBS@,$LIBS,;t t
19086 s,@build@,$build,;t t
19087 s,@build_cpu@,$build_cpu,;t t
19088 s,@build_vendor@,$build_vendor,;t t
19089 s,@build_os@,$build_os,;t t
19090 s,@host@,$host,;t t
19091 s,@host_cpu@,$host_cpu,;t t
19092 s,@host_vendor@,$host_vendor,;t t
19093 s,@host_os@,$host_os,;t t
19094 s,@CC@,$CC,;t t
19095 s,@CFLAGS@,$CFLAGS,;t t
19096 s,@LDFLAGS@,$LDFLAGS,;t t
19097 s,@CPPFLAGS@,$CPPFLAGS,;t t
19098 s,@ac_ct_CC@,$ac_ct_CC,;t t
19099 s,@EXEEXT@,$EXEEXT,;t t
19100 s,@OBJEXT@,$OBJEXT,;t t
19101 s,@LN_S@,$LN_S,;t t
19102 s,@CPP@,$CPP,;t t
19103 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19104 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19105 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19106 s,@RANLIB@,$RANLIB,;t t
19107 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19108 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19109 s,@EGREP@,$EGREP,;t t
19110 s,@LIBSOUND@,$LIBSOUND,;t t
19111 s,@SET_MAKE@,$SET_MAKE,;t t
19112 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19113 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19114 s,@GTK_LIBS@,$GTK_LIBS,;t t
19115 s,@ALLOCA@,$ALLOCA,;t t
19116 s,@liblockfile@,$liblockfile,;t t
19117 s,@LIBOBJS@,$LIBOBJS,;t t
19118 s,@NEED_SETGID@,$NEED_SETGID,;t t
19119 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19120 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19121 s,@version@,$version,;t t
19122 s,@configuration@,$configuration,;t t
19123 s,@canonical@,$canonical,;t t
19124 s,@srcdir@,$srcdir,;t t
19125 s,@lispdir@,$lispdir,;t t
19126 s,@locallisppath@,$locallisppath,;t t
19127 s,@lisppath@,$lisppath,;t t
19128 s,@x_default_search_path@,$x_default_search_path,;t t
19129 s,@etcdir@,$etcdir,;t t
19130 s,@archlibdir@,$archlibdir,;t t
19131 s,@docdir@,$docdir,;t t
19132 s,@bitmapdir@,$bitmapdir,;t t
19133 s,@gamedir@,$gamedir,;t t
19134 s,@gameuser@,$gameuser,;t t
19135 s,@c_switch_system@,$c_switch_system,;t t
19136 s,@c_switch_machine@,$c_switch_machine,;t t
19137 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19138 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19139 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19140 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19141 s,@machfile@,$machfile,;t t
19142 s,@opsysfile@,$opsysfile,;t t
19143 s,@carbon_appdir@,$carbon_appdir,;t t
19144 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19145 CEOF
19146
19147 _ACEOF
19148
19149 cat >>$CONFIG_STATUS <<\_ACEOF
19150 # Split the substitutions into bite-sized pieces for seds with
19151 # small command number limits, like on Digital OSF/1 and HP-UX.
19152 ac_max_sed_lines=48
19153 ac_sed_frag=1 # Number of current file.
19154 ac_beg=1 # First line for current file.
19155 ac_end=$ac_max_sed_lines # Line after last line for current file.
19156 ac_more_lines=:
19157 ac_sed_cmds=
19158 while $ac_more_lines; do
19159 if test $ac_beg -gt 1; then
19160 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19161 else
19162 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19163 fi
19164 if test ! -s $tmp/subs.frag; then
19165 ac_more_lines=false
19166 else
19167 # The purpose of the label and of the branching condition is to
19168 # speed up the sed processing (if there are no `@' at all, there
19169 # is no need to browse any of the substitutions).
19170 # These are the two extra sed commands mentioned above.
19171 (echo ':t
19172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19173 if test -z "$ac_sed_cmds"; then
19174 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19175 else
19176 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19177 fi
19178 ac_sed_frag=`expr $ac_sed_frag + 1`
19179 ac_beg=$ac_end
19180 ac_end=`expr $ac_end + $ac_max_sed_lines`
19181 fi
19182 done
19183 if test -z "$ac_sed_cmds"; then
19184 ac_sed_cmds=cat
19185 fi
19186 fi # test -n "$CONFIG_FILES"
19187
19188 _ACEOF
19189 cat >>$CONFIG_STATUS <<\_ACEOF
19190 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19192 case $ac_file in
19193 - | *:- | *:-:* ) # input from stdin
19194 cat >$tmp/stdin
19195 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19196 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19197 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19199 * ) ac_file_in=$ac_file.in ;;
19200 esac
19201
19202 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19203 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19205 X"$ac_file" : 'X\(//\)[^/]' \| \
19206 X"$ac_file" : 'X\(//\)$' \| \
19207 X"$ac_file" : 'X\(/\)' \| \
19208 . : '\(.\)' 2>/dev/null ||
19209 echo X"$ac_file" |
19210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19212 /^X\(\/\/\)$/{ s//\1/; q; }
19213 /^X\(\/\).*/{ s//\1/; q; }
19214 s/.*/./; q'`
19215 { if $as_mkdir_p; then
19216 mkdir -p "$ac_dir"
19217 else
19218 as_dir="$ac_dir"
19219 as_dirs=
19220 while test ! -d "$as_dir"; do
19221 as_dirs="$as_dir $as_dirs"
19222 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19224 X"$as_dir" : 'X\(//\)[^/]' \| \
19225 X"$as_dir" : 'X\(//\)$' \| \
19226 X"$as_dir" : 'X\(/\)' \| \
19227 . : '\(.\)' 2>/dev/null ||
19228 echo X"$as_dir" |
19229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19231 /^X\(\/\/\)$/{ s//\1/; q; }
19232 /^X\(\/\).*/{ s//\1/; q; }
19233 s/.*/./; q'`
19234 done
19235 test ! -n "$as_dirs" || mkdir $as_dirs
19236 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19237 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19238 { (exit 1); exit 1; }; }; }
19239
19240 ac_builddir=.
19241
19242 if test "$ac_dir" != .; then
19243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19244 # A "../" for each directory in $ac_dir_suffix.
19245 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19246 else
19247 ac_dir_suffix= ac_top_builddir=
19248 fi
19249
19250 case $srcdir in
19251 .) # No --srcdir option. We are building in place.
19252 ac_srcdir=.
19253 if test -z "$ac_top_builddir"; then
19254 ac_top_srcdir=.
19255 else
19256 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19257 fi ;;
19258 [\\/]* | ?:[\\/]* ) # Absolute path.
19259 ac_srcdir=$srcdir$ac_dir_suffix;
19260 ac_top_srcdir=$srcdir ;;
19261 *) # Relative path.
19262 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19263 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19264 esac
19265 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19266 # absolute.
19267 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19268 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19269 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19270 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19271
19272
19273 case $INSTALL in
19274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19275 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19276 esac
19277
19278 if test x"$ac_file" != x-; then
19279 { echo "$as_me:$LINENO: creating $ac_file" >&5
19280 echo "$as_me: creating $ac_file" >&6;}
19281 rm -f "$ac_file"
19282 fi
19283 # Let's still pretend it is `configure' which instantiates (i.e., don't
19284 # use $as_me), people would be surprised to read:
19285 # /* config.h. Generated by config.status. */
19286 if test x"$ac_file" = x-; then
19287 configure_input=
19288 else
19289 configure_input="$ac_file. "
19290 fi
19291 configure_input=$configure_input"Generated from `echo $ac_file_in |
19292 sed 's,.*/,,'` by configure."
19293
19294 # First look for the input files in the build tree, otherwise in the
19295 # src tree.
19296 ac_file_inputs=`IFS=:
19297 for f in $ac_file_in; do
19298 case $f in
19299 -) echo $tmp/stdin ;;
19300 [\\/$]*)
19301 # Absolute (can't be DOS-style, as IFS=:)
19302 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19303 echo "$as_me: error: cannot find input file: $f" >&2;}
19304 { (exit 1); exit 1; }; }
19305 echo $f;;
19306 *) # Relative
19307 if test -f "$f"; then
19308 # Build tree
19309 echo $f
19310 elif test -f "$srcdir/$f"; then
19311 # Source tree
19312 echo $srcdir/$f
19313 else
19314 # /dev/null tree
19315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19316 echo "$as_me: error: cannot find input file: $f" >&2;}
19317 { (exit 1); exit 1; }; }
19318 fi;;
19319 esac
19320 done` || { (exit 1); exit 1; }
19321 _ACEOF
19322 cat >>$CONFIG_STATUS <<_ACEOF
19323 sed "$ac_vpsub
19324 $extrasub
19325 _ACEOF
19326 cat >>$CONFIG_STATUS <<\_ACEOF
19327 :t
19328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19329 s,@configure_input@,$configure_input,;t t
19330 s,@srcdir@,$ac_srcdir,;t t
19331 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19332 s,@top_srcdir@,$ac_top_srcdir,;t t
19333 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19334 s,@builddir@,$ac_builddir,;t t
19335 s,@abs_builddir@,$ac_abs_builddir,;t t
19336 s,@top_builddir@,$ac_top_builddir,;t t
19337 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19338 s,@INSTALL@,$ac_INSTALL,;t t
19339 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19340 rm -f $tmp/stdin
19341 if test x"$ac_file" != x-; then
19342 mv $tmp/out $ac_file
19343 else
19344 cat $tmp/out
19345 rm -f $tmp/out
19346 fi
19347
19348 done
19349 _ACEOF
19350 cat >>$CONFIG_STATUS <<\_ACEOF
19351
19352 #
19353 # CONFIG_HEADER section.
19354 #
19355
19356 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19357 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19358 #
19359 # ac_d sets the value in "#define NAME VALUE" lines.
19360 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19361 ac_dB='[ ].*$,\1#\2'
19362 ac_dC=' '
19363 ac_dD=',;t'
19364 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19365 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19366 ac_uB='$,\1#\2define\3'
19367 ac_uC=' '
19368 ac_uD=',;t'
19369
19370 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19372 case $ac_file in
19373 - | *:- | *:-:* ) # input from stdin
19374 cat >$tmp/stdin
19375 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19377 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19379 * ) ac_file_in=$ac_file.in ;;
19380 esac
19381
19382 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19383 echo "$as_me: creating $ac_file" >&6;}
19384
19385 # First look for the input files in the build tree, otherwise in the
19386 # src tree.
19387 ac_file_inputs=`IFS=:
19388 for f in $ac_file_in; do
19389 case $f in
19390 -) echo $tmp/stdin ;;
19391 [\\/$]*)
19392 # Absolute (can't be DOS-style, as IFS=:)
19393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19394 echo "$as_me: error: cannot find input file: $f" >&2;}
19395 { (exit 1); exit 1; }; }
19396 echo $f;;
19397 *) # Relative
19398 if test -f "$f"; then
19399 # Build tree
19400 echo $f
19401 elif test -f "$srcdir/$f"; then
19402 # Source tree
19403 echo $srcdir/$f
19404 else
19405 # /dev/null tree
19406 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19407 echo "$as_me: error: cannot find input file: $f" >&2;}
19408 { (exit 1); exit 1; }; }
19409 fi;;
19410 esac
19411 done` || { (exit 1); exit 1; }
19412 # Remove the trailing spaces.
19413 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19414
19415 _ACEOF
19416
19417 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19418 # `conftest.undefs', that substitutes the proper values into
19419 # config.h.in to produce config.h. The first handles `#define'
19420 # templates, and the second `#undef' templates.
19421 # And first: Protect against being on the right side of a sed subst in
19422 # config.status. Protect against being in an unquoted here document
19423 # in config.status.
19424 rm -f conftest.defines conftest.undefs
19425 # Using a here document instead of a string reduces the quoting nightmare.
19426 # Putting comments in sed scripts is not portable.
19427 #
19428 # `end' is used to avoid that the second main sed command (meant for
19429 # 0-ary CPP macros) applies to n-ary macro definitions.
19430 # See the Autoconf documentation for `clear'.
19431 cat >confdef2sed.sed <<\_ACEOF
19432 s/[\\&,]/\\&/g
19433 s,[\\$`],\\&,g
19434 t clear
19435 : clear
19436 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19437 t end
19438 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19439 : end
19440 _ACEOF
19441 # If some macros were called several times there might be several times
19442 # the same #defines, which is useless. Nevertheless, we may not want to
19443 # sort them, since we want the *last* AC-DEFINE to be honored.
19444 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19445 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19446 rm -f confdef2sed.sed
19447
19448 # This sed command replaces #undef with comments. This is necessary, for
19449 # example, in the case of _POSIX_SOURCE, which is predefined and required
19450 # on some systems where configure will not decide to define it.
19451 cat >>conftest.undefs <<\_ACEOF
19452 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19453 _ACEOF
19454
19455 # Break up conftest.defines because some shells have a limit on the size
19456 # of here documents, and old seds have small limits too (100 cmds).
19457 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19458 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19459 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19460 echo ' :' >>$CONFIG_STATUS
19461 rm -f conftest.tail
19462 while grep . conftest.defines >/dev/null
19463 do
19464 # Write a limited-size here document to $tmp/defines.sed.
19465 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19466 # Speed up: don't consider the non `#define' lines.
19467 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19468 # Work around the forget-to-reset-the-flag bug.
19469 echo 't clr' >>$CONFIG_STATUS
19470 echo ': clr' >>$CONFIG_STATUS
19471 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19472 echo 'CEOF
19473 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19474 rm -f $tmp/in
19475 mv $tmp/out $tmp/in
19476 ' >>$CONFIG_STATUS
19477 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19478 rm -f conftest.defines
19479 mv conftest.tail conftest.defines
19480 done
19481 rm -f conftest.defines
19482 echo ' fi # grep' >>$CONFIG_STATUS
19483 echo >>$CONFIG_STATUS
19484
19485 # Break up conftest.undefs because some shells have a limit on the size
19486 # of here documents, and old seds have small limits too (100 cmds).
19487 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19488 rm -f conftest.tail
19489 while grep . conftest.undefs >/dev/null
19490 do
19491 # Write a limited-size here document to $tmp/undefs.sed.
19492 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19493 # Speed up: don't consider the non `#undef'
19494 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19495 # Work around the forget-to-reset-the-flag bug.
19496 echo 't clr' >>$CONFIG_STATUS
19497 echo ': clr' >>$CONFIG_STATUS
19498 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19499 echo 'CEOF
19500 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19501 rm -f $tmp/in
19502 mv $tmp/out $tmp/in
19503 ' >>$CONFIG_STATUS
19504 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19505 rm -f conftest.undefs
19506 mv conftest.tail conftest.undefs
19507 done
19508 rm -f conftest.undefs
19509
19510 cat >>$CONFIG_STATUS <<\_ACEOF
19511 # Let's still pretend it is `configure' which instantiates (i.e., don't
19512 # use $as_me), people would be surprised to read:
19513 # /* config.h. Generated by config.status. */
19514 if test x"$ac_file" = x-; then
19515 echo "/* Generated by configure. */" >$tmp/config.h
19516 else
19517 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19518 fi
19519 cat $tmp/in >>$tmp/config.h
19520 rm -f $tmp/in
19521 if test x"$ac_file" != x-; then
19522 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19523 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19524 echo "$as_me: $ac_file is unchanged" >&6;}
19525 else
19526 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528 X"$ac_file" : 'X\(//\)[^/]' \| \
19529 X"$ac_file" : 'X\(//\)$' \| \
19530 X"$ac_file" : 'X\(/\)' \| \
19531 . : '\(.\)' 2>/dev/null ||
19532 echo X"$ac_file" |
19533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19535 /^X\(\/\/\)$/{ s//\1/; q; }
19536 /^X\(\/\).*/{ s//\1/; q; }
19537 s/.*/./; q'`
19538 { if $as_mkdir_p; then
19539 mkdir -p "$ac_dir"
19540 else
19541 as_dir="$ac_dir"
19542 as_dirs=
19543 while test ! -d "$as_dir"; do
19544 as_dirs="$as_dir $as_dirs"
19545 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547 X"$as_dir" : 'X\(//\)[^/]' \| \
19548 X"$as_dir" : 'X\(//\)$' \| \
19549 X"$as_dir" : 'X\(/\)' \| \
19550 . : '\(.\)' 2>/dev/null ||
19551 echo X"$as_dir" |
19552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19554 /^X\(\/\/\)$/{ s//\1/; q; }
19555 /^X\(\/\).*/{ s//\1/; q; }
19556 s/.*/./; q'`
19557 done
19558 test ! -n "$as_dirs" || mkdir $as_dirs
19559 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19560 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19561 { (exit 1); exit 1; }; }; }
19562
19563 rm -f $ac_file
19564 mv $tmp/config.h $ac_file
19565 fi
19566 else
19567 cat $tmp/config.h
19568 rm -f $tmp/config.h
19569 fi
19570 done
19571 _ACEOF
19572 cat >>$CONFIG_STATUS <<\_ACEOF
19573
19574 #
19575 # CONFIG_COMMANDS section.
19576 #
19577 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19578 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19579 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19580 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19581 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19582 X"$ac_dest" : 'X\(//\)[^/]' \| \
19583 X"$ac_dest" : 'X\(//\)$' \| \
19584 X"$ac_dest" : 'X\(/\)' \| \
19585 . : '\(.\)' 2>/dev/null ||
19586 echo X"$ac_dest" |
19587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19589 /^X\(\/\/\)$/{ s//\1/; q; }
19590 /^X\(\/\).*/{ s//\1/; q; }
19591 s/.*/./; q'`
19592 ac_builddir=.
19593
19594 if test "$ac_dir" != .; then
19595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19596 # A "../" for each directory in $ac_dir_suffix.
19597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19598 else
19599 ac_dir_suffix= ac_top_builddir=
19600 fi
19601
19602 case $srcdir in
19603 .) # No --srcdir option. We are building in place.
19604 ac_srcdir=.
19605 if test -z "$ac_top_builddir"; then
19606 ac_top_srcdir=.
19607 else
19608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19609 fi ;;
19610 [\\/]* | ?:[\\/]* ) # Absolute path.
19611 ac_srcdir=$srcdir$ac_dir_suffix;
19612 ac_top_srcdir=$srcdir ;;
19613 *) # Relative path.
19614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19616 esac
19617 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19618 # absolute.
19619 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19620 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19621 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19622 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19623
19624
19625 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19626 echo "$as_me: executing $ac_dest commands" >&6;}
19627 case $ac_dest in
19628 default )
19629
19630 ### Make the necessary directories, if they don't exist.
19631 for dir in etc lisp ; do
19632 test -d ${dir} || mkdir ${dir}
19633 done
19634
19635 # Build src/Makefile from ${srcdir}/src/Makefile.c
19636 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19637 # This must be done after src/config.h is built, since we rely on that file.
19638
19639 # Now get this: Some word that is part of the ${srcdir} directory name
19640 # or the ${configuration} value might, just might, happen to be an
19641 # identifier like `sun4' or `i386' or something, and be predefined by
19642 # the C preprocessor to some helpful value like 1, or maybe the empty
19643 # string. Needless to say consequent macro substitutions are less
19644 # than conducive to the makefile finding the correct directory.
19645 undefs="`echo $top_srcdir $configuration $canonical |
19646 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19647 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19648 `"
19649
19650 echo creating src/epaths.h
19651 ${MAKE-make} epaths-force
19652
19653 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19654 # `..' to `. .' unless invoked with -traditional
19655
19656 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19657 CPPFLAGS="$CPPFLAGS -traditional"
19658 fi
19659
19660 echo creating lib-src/Makefile
19661 ( cd lib-src
19662 rm -f junk.c junk1.c junk2.c
19663 sed -e '/start of cpp stuff/q' \
19664 < Makefile.c > junk1.c
19665 sed -e '1,/start of cpp stuff/d'\
19666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19667 < Makefile.c > junk.c
19668 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19670 cat junk1.c junk2.c > Makefile.new
19671 rm -f junk.c junk1.c junk2.c
19672 chmod 444 Makefile.new
19673 mv -f Makefile.new Makefile
19674 )
19675
19676 echo creating src/Makefile
19677 ( cd src
19678 rm -f junk.c junk1.c junk2.c
19679 sed -e '/start of cpp stuff/q' \
19680 < Makefile.c > junk1.c
19681 sed -e '1,/start of cpp stuff/d'\
19682 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19683 < Makefile.c > junk.c
19684 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19685 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19686 cat junk1.c junk2.c > Makefile.new
19687 rm -f junk.c junk1.c junk2.c
19688 chmod 444 Makefile.new
19689 mv -f Makefile.new Makefile
19690 )
19691
19692 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19693 echo creating src/.gdbinit
19694 echo source $srcdir/src/.gdbinit > src/.gdbinit
19695 fi
19696
19697 # This is how we know whether to re-run configure in certain cases.
19698 touch src/config.stamp
19699
19700 ;;
19701 esac
19702 done
19703 _ACEOF
19704
19705 cat >>$CONFIG_STATUS <<\_ACEOF
19706
19707 { (exit 0); exit 0; }
19708 _ACEOF
19709 chmod +x $CONFIG_STATUS
19710 ac_clean_files=$ac_clean_files_save
19711
19712
19713 # configure is writing to config.log, and then calls config.status.
19714 # config.status does its own redirection, appending to config.log.
19715 # Unfortunately, on DOS this fails, as config.log is still kept open
19716 # by configure, so config.status won't be able to write to it; its
19717 # output is simply discarded. So we exec the FD to /dev/null,
19718 # effectively closing config.log, so it can be properly (re)opened and
19719 # appended to by config.status. When coming back to configure, we
19720 # need to make the FD available again.
19721 if test "$no_create" != yes; then
19722 ac_cs_success=:
19723 ac_config_status_args=
19724 test "$silent" = yes &&
19725 ac_config_status_args="$ac_config_status_args --quiet"
19726 exec 5>/dev/null
19727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19728 exec 5>>config.log
19729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19730 # would make configure fail if this is the last instruction.
19731 $ac_cs_success || { (exit 1); exit 1; }
19732 fi
19733
19734