]> code.delx.au - gnu-emacs/blob - configure
* configure.in (HAVE_GTK_MULTIDISPLAY): Check if GTK can handle
[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 MAINT 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 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --disable-largefile omit support for large files
861
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --without-gcc don't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version 5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server host
870 --without-sound don't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
885
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
894
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
897
898 _ACEOF
899 fi
900
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
903 ac_popdir=`pwd`
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
906 ac_builddir=.
907
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 else
913 ac_dir_suffix= ac_top_builddir=
914 fi
915
916 case $srcdir in
917 .) # No --srcdir option. We are building in place.
918 ac_srcdir=.
919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 esac
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 # absolute.
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
960
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966 exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
975
976 $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036 for ac_arg
1037 do
1038 case $ac_arg in
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 continue ;;
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 esac
1046 case $ac_pass in
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 2)
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1052 else
1053 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac
1061 ;;
1062 -* ) ac_must_keep_next=true ;;
1063 esac
1064 fi
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
1068 ;;
1069 esac
1070 done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1082 {
1083 echo
1084
1085 cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
1092 {
1093 (set) 2>&1 |
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *)
1096 sed -n \
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 ;;
1100 *)
1101 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 ;;
1104 esac;
1105 }
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1115 do
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1120
1121 if test -n "$ac_subst_files"; then
1122 cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_files
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134 fi
1135
1136 if test -s confdefs.h; then
1137 cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142 echo
1143 sed "/^$/d" confdefs.h | sort
1144 echo
1145 fi
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1149 } >&5
1150 rm -f core core.* *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status
1153 ' 0
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 else
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1205 . "$ac_site_file"
1206 fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215 case $cache_file in
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1218 esac
1219 fi
1220 else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1245 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1267 fi
1268 done
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302
1303
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it if useless.
1311 cat <<\_ACEOF >conftest.sed
1312 s/[\\$]/&&/g;s/;s,x,x,$//
1313 _ACEOF
1314 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1315 rm conftest.sed
1316
1317
1318 lispdir='${datadir}/emacs/${version}/lisp'
1319 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath='${locallisppath}:${lispdir}'
1322 etcdir='${datadir}/emacs/${version}/etc'
1323 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir='${datadir}/emacs/${version}/etc'
1325 gamedir='${localstatedir}/games/emacs'
1326
1327 gameuser=games
1328
1329
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1332 withval="$with_gcc"
1333
1334 fi;
1335
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1338 withval="$with_pop"
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h <<\_ACEOF
1341 #define MAIL_USE_POP 1
1342 _ACEOF
1343
1344 else :
1345 fi
1346 else
1347 cat >>confdefs.h <<\_ACEOF
1348 #define MAIL_USE_POP 1
1349 _ACEOF
1350
1351 fi;
1352
1353
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval="$with_kerberos"
1357 cat >>confdefs.h <<\_ACEOF
1358 #define KERBEROS 1
1359 _ACEOF
1360
1361 fi;
1362
1363
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1369 with_kerberos=yes
1370 cat >>confdefs.h <<\_ACEOF
1371 #define KERBEROS 1
1372 _ACEOF
1373
1374 fi
1375 fi
1376
1377 cat >>confdefs.h <<\_ACEOF
1378 #define KERBEROS5 1
1379 _ACEOF
1380
1381 fi;
1382
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval="$with_hesiod"
1386
1387 cat >>confdefs.h <<\_ACEOF
1388 #define HESIOD 1
1389 _ACEOF
1390
1391 fi;
1392
1393
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval="$with_sound"
1397
1398 fi;
1399
1400
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye | yes ) val=athena ;;
1406 n | no ) val=no ;;
1407 l | lu | luc | luci | lucid ) val=lucid ;;
1408 a | at | ath | athe | athen | athena ) val=athena ;;
1409 m | mo | mot | moti | motif ) val=motif ;;
1410 g | gt | gtk ) val=gtk ;;
1411 * )
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1419 ;;
1420 esac
1421 with_x_toolkit=$val
1422
1423 fi;
1424
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1427 withval="$with_xpm"
1428
1429 fi;
1430
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval="$with_jpeg"
1434
1435 fi;
1436
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval="$with_tiff"
1440
1441 fi;
1442
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1445 withval="$with_gif"
1446
1447 fi;
1448
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1451 withval="$with_png"
1452
1453 fi;
1454
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1457 withval="$with_gtk"
1458
1459 fi;
1460
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval="$with_pkg_config_prog"
1464
1465 fi;
1466
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval="$with_toolkit_scroll_bars"
1470
1471 fi;
1472
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1475 withval="$with_xim"
1476
1477 fi;
1478
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval="$with_carbon"
1482
1483 fi;
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval="$enable_carbon_app"
1487 carbon_appdir_x=${enableval}
1488 fi;
1489
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE=$enableval
1494 else
1495 USE_MAINTAINER_MODE=no
1496 fi;
1497 if test $USE_MAINTAINER_MODE = yes; then
1498 MAINT=
1499 else
1500 MAINT=#
1501 fi
1502
1503
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1509 unset CDPATH
1510 case "${srcdir}" in
1511 /* ) ;;
1512 . )
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1519 then
1520 srcdir="$PWD"
1521 else
1522 srcdir="`(cd ${srcdir}; pwd)`"
1523 fi
1524 ;;
1525 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1526 esac
1527
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1543
1544 extrasub='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1552 fi
1553
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1556
1557 ### Canonicalize the configuration name.
1558
1559 ac_aux_dir=
1560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if test -f $ac_dir/install-sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 break
1565 elif test -f $ac_dir/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1573 fi
1574 done
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1579 fi
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 ac_cv_build_alias=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607 fi
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1610 build=$ac_cv_build
1611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 ac_cv_host_alias=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629 fi
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1632 host=$ac_cv_host
1633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638 canonical=$host
1639 configuration=${host_alias-$host}
1640
1641
1642
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1646
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1655 ###
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1661 ###
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1665
1666 machine='' opsys='' unported=no
1667 case "${canonical}" in
1668
1669 ## FreeBSD ports
1670 *-*-freebsd* )
1671 opsys=freebsd
1672 case "${canonical}" in
1673 alpha*-*-freebsd*) machine=alpha ;;
1674 i[3456]86-*-freebsd*) machine=intel386 ;;
1675 esac
1676 ;;
1677
1678 ## NetBSD ports
1679 *-*-netbsd* )
1680 opsys=netbsd
1681 if test -f /usr/lib/crti.o; then
1682
1683 cat >>confdefs.h <<\_ACEOF
1684 #define HAVE_CRTIN
1685 _ACEOF
1686
1687 fi
1688
1689 case "${canonical}" in
1690 alpha*-*-netbsd*) machine=alpha ;;
1691 i[3456]86-*-netbsd*) machine=intel386 ;;
1692 m68k-*-netbsd*)
1693 # This is somewhat bogus.
1694 machine=hp9000s300 ;;
1695 powerpc-apple-netbsd*) machine=macppc ;;
1696 mips-*-netbsd*) machine=pmax ;;
1697 mipsel-*-netbsd*) machine=pmax ;;
1698 mipseb-*-netbsd*) machine=pmax ;;
1699 ns32k-*-netbsd*) machine=ns32000 ;;
1700 powerpc-*-netbsd*) machine=macppc ;;
1701 sparc*-*-netbsd*) machine=sparc ;;
1702 vax-*-netbsd*) machine=vax ;;
1703 arm-*-netbsd*) machine=arm ;;
1704 esac
1705 ;;
1706
1707 ## OpenBSD ports
1708 *-*-openbsd* )
1709 opsys=openbsd
1710 case "${canonical}" in
1711 alpha*-*-openbsd*) machine=alpha ;;
1712 i386-*-openbsd*) machine=intel386 ;;
1713 m68k-*-openbsd*) machine=hp9000s300 ;;
1714 mipsel-*-openbsd*) machine=pmax ;;
1715 ns32k-*-openbsd*) machine=ns32000 ;;
1716 sparc-*-openbsd*) machine=sparc ;;
1717 vax-*-openbsd*) machine=vax ;;
1718 esac
1719 ;;
1720
1721 ## Acorn RISCiX:
1722 arm-acorn-riscix1.1* )
1723 machine=acorn opsys=riscix1-1
1724 ;;
1725 arm-acorn-riscix1.2* | arm-acorn-riscix )
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine=acorn opsys=riscix12
1729 ;;
1730
1731 ## BSDI ports
1732 *-*-bsdi* )
1733 opsys=bsdi
1734 case "${canonical}" in
1735 i[345]86-*-bsdi*) machine=intel386 ;;
1736 sparc-*-bsdi*) machine=sparc ;;
1737 powerpc-*-bsdi*) machine=macppc ;;
1738 esac
1739 case "${canonical}" in
1740 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1741 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1742 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1743 *-*-bsdi3* ) opsys=bsdos3 ;;
1744 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1745 esac
1746 ;;
1747
1748 ## Alliant machines
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1754 fx80-alliant-* )
1755 machine=alliant4 opsys=bsd4-2
1756 ;;
1757 i860-alliant-* )
1758 machine=alliant-2800 opsys=bsd4-3
1759 ;;
1760
1761 ## Alpha (DEC) machines.
1762 alpha*-dec-osf* )
1763 machine=alpha opsys=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1766 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP=/usr/bin/cpp
1772 case "${canonical}" in
1773 alpha*-dec-osf[5-9]*)
1774 opsys=osf5-0 ;;
1775 esac
1776 ;;
1777
1778 alpha*-*-linux-gnu* )
1779 machine=alpha opsys=gnu-linux
1780 ;;
1781
1782 arm*-*-linux-gnu* )
1783 machine=arm opsys=gnu-linux
1784 ;;
1785
1786 ppc-*-linux | \
1787 powerpc-*-linux* )
1788 machine=macppc opsys=gnu-linux
1789 ;;
1790
1791 ## Altos 3068
1792 m68*-altos-sysv* )
1793 machine=altos opsys=usg5-2
1794 ;;
1795
1796 ## Amdahl UTS
1797 580-amdahl-sysv* )
1798 machine=amdahl opsys=usg5-2-2
1799 ;;
1800
1801 ## Apollo, Domain/OS
1802 m68*-apollo-* )
1803 machine=apollo opsys=bsd4-3
1804 ;;
1805
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1807 we32k-att-sysv* )
1808 machine=att3b opsys=usg5-2-2
1809 ;;
1810
1811 ## AT&T 3b1 - The Mighty Unix PC!
1812 m68*-att-sysv* )
1813 machine=7300 opsys=usg5-2-2
1814 ;;
1815
1816 ## Bull dpx20
1817 rs6000-bull-bosx* )
1818 machine=ibmrs6000 opsys=aix3-2
1819 ;;
1820
1821 ## Bull dpx2
1822 m68*-bull-sysv3* )
1823 machine=dpx2 opsys=usg5-3
1824 ;;
1825
1826 ## Bull sps7
1827 m68*-bull-sysv2* )
1828 machine=sps7 opsys=usg5-2
1829 ;;
1830
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1832
1833 ## Celerity
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd* )
1838 machine=celerity opsys=bsd4-2
1839 ;;
1840
1841 ## Clipper
1842 ## What operating systems does this chip run that Emacs has been
1843 ## tested on?
1844 clipper-* )
1845 machine=clipper
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1848 ;;
1849
1850 ## Compaq Nonstop
1851 mips-compaq-nonstopux* )
1852 machine=nonstopux opsys=nonstopux
1853 ;;
1854
1855 ## Convex
1856 *-convex-bsd* | *-convex-convexos* )
1857 machine=convex opsys=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP="cc -E -P"
1860 ;;
1861
1862 ## Cubix QBx/386
1863 i[3456]86-cubix-sysv* )
1864 machine=intel386 opsys=usg5-3
1865 ;;
1866
1867 ## Cydra 5
1868 cydra*-cydrome-sysv* )
1869 machine=cydra5 opsys=usg5-3
1870 ;;
1871
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1879 machine=aviion opsys=dgux4
1880 ;;
1881 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine=aviion opsys=dgux5-4-3
1885 ;;
1886 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1887 machine=aviion opsys=dgux5-4r2
1888 ;;
1889 m88k-dg-dgux* )
1890 machine=aviion opsys=dgux
1891 ;;
1892
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i[345]86-dg-dguxR4* )
1897 machine=aviion-intel opsys=dgux4
1898 ;;
1899
1900 ## DECstations
1901 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1902 machine=pmax opsys=bsd4-2
1903 ;;
1904 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1905 machine=pmax opsys=bsd4-3
1906 ;;
1907 mips-dec-ultrix* )
1908 machine=pmax opsys=ultrix4-3
1909 ;;
1910 mips-dec-osf* )
1911 machine=pmax opsys=osf1
1912 ;;
1913 mips-dec-mach_bsd4.3* )
1914 machine=pmax opsys=mach-bsd4-3
1915 ;;
1916
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv* | m68000-motorola-sysv* )
1919 machine=delta opsys=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1921 then
1922 if test -s /etc/167config
1923 then CC="gnucc -m68040"
1924 else CC="gnucc -m68881"
1925 fi
1926 else
1927 if test -z "`type gcc | grep 'not found'`"
1928 then CC=gcc
1929 else CC=cc
1930 fi
1931 fi
1932 ;;
1933 m88k-motorola-sysv4* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine=delta88k opsys=usg5-4-2
1939 ;;
1940 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1941 machine=delta88k opsys=usg5-3
1942 ;;
1943
1944 ## Dual machines
1945 m68*-dual-sysv* )
1946 machine=dual opsys=usg5-2
1947 ;;
1948 m68*-dual-uniplus* )
1949 machine=dual opsys=unipl5-2
1950 ;;
1951
1952 ## Elxsi 6400
1953 elxsi-elxsi-sysv* )
1954 machine=elxsi opsys=usg5-2
1955 ;;
1956
1957 ## Encore machines
1958 ns16k-encore-bsd* )
1959 machine=ns16000 opsys=umax
1960 ;;
1961
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1964
1965 ## Gould Power Node and NP1
1966 pn-gould-bsd4.2* )
1967 machine=gould opsys=bsd4-2
1968 ;;
1969 pn-gould-bsd4.3* )
1970 machine=gould opsys=bsd4-3
1971 ;;
1972 np1-gould-bsd* )
1973 machine=gould-np1 opsys=bsd4-3
1974 ;;
1975
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1978 m88k-harris-cxux* )
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1982 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1983 esac
1984 NON_GNU_CPP="/lib/cpp"
1985 ;;
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1987 m68k-harris-cxux* )
1988 machine=nh3000 opsys=cxux
1989 ;;
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix )
1992 machine=nh6000 opsys=powerunix
1993 NON_GNU_CPP="cc -Xo -E -P"
1994 ;;
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1-hitachi-hiuxmpp* )
1997 machine=sr2k opsys=hiuxmpp
1998 ;;
1999 hppa1.1-hitachi-hiuxwe2* )
2000 machine=sr2k opsys=hiuxwe2
2001 ;;
2002 ## Honeywell XPS100
2003 xps*-honeywell-sysv* )
2004 machine=xps100 opsys=usg5-2
2005 ;;
2006
2007 ## HP 9000 series 200 or 300
2008 m68*-hp-bsd* )
2009 machine=hp9000s300 opsys=bsd4-3
2010 ;;
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2012 m68*-hp-hpux* )
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2017 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2018 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2019 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2020 *) machine=hp9000s300 opsys=hpux ;;
2021 esac
2022 ;;
2023
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux7* )
2026 machine=hp800 opsys=hpux
2027 ;;
2028 hppa*-hp-hpux8* )
2029 machine=hp800 opsys=hpux8
2030 ;;
2031 hppa*-hp-hpux9shr* )
2032 machine=hp800 opsys=hpux9shr
2033 ;;
2034 hppa*-hp-hpux9* )
2035 machine=hp800 opsys=hpux9
2036 ;;
2037 hppa*-hp-hpux10.2* )
2038 machine=hp800 opsys=hpux10-20
2039 ;;
2040 hppa*-hp-hpux10* )
2041 machine=hp800 opsys=hpux10
2042 ;;
2043 hppa*-hp-hpux1[1-9]* )
2044 machine=hp800 opsys=hpux11
2045 ;;
2046
2047 hppa*-*-linux-gnu* )
2048 machine=hp800 opsys=gnu-linux
2049 ;;
2050
2051 ## HP 9000 series 700 and 800, running HP/UX
2052 hppa*-hp-hpux* )
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2058 *.08.* ) machine=hp800 opsys=hpux8 ;;
2059 *.09.* ) machine=hp800 opsys=hpux9 ;;
2060 *) machine=hp800 opsys=hpux10 ;;
2061 esac
2062 ;;
2063 hppa*-*-nextstep* )
2064 machine=hp800 opsys=nextstep
2065 ;;
2066
2067 ## Orion machines
2068 orion-orion-bsd* )
2069 machine=orion opsys=bsd4-2
2070 ;;
2071 clipper-orion-bsd* )
2072 machine=orion105 opsys=bsd4-2
2073 ;;
2074
2075 ## IBM machines
2076 i[3456]86-ibm-aix1.1* )
2077 machine=ibmps2-aix opsys=usg5-2-2
2078 ;;
2079 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2080 machine=ibmps2-aix opsys=usg5-3
2081 ;;
2082 i370-ibm-aix*)
2083 machine=ibm370aix opsys=usg5-3
2084 ;;
2085 s390-*-linux-gnu* )
2086 machine=ibms390 opsys=gnu-linux
2087 ;;
2088 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2089 machine=ibmrs6000 opsys=aix3-1
2090 ;;
2091 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2092 machine=ibmrs6000 opsys=aix3-2-5
2093 ;;
2094 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2095 machine=ibmrs6000 opsys=aix4-1
2096 ;;
2097 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2098 machine=ibmrs6000 opsys=aix4-2
2099 ;;
2100 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2101 machine=ibmrs6000 opsys=aix4-2
2102 ;;
2103 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2104 machine=ibmrs6000 opsys=aix4
2105 ;;
2106 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2107 machine=ibmrs6000 opsys=aix4-1
2108 ;;
2109 rs6000-ibm-aix* | powerpc-ibm-aix* )
2110 machine=ibmrs6000 opsys=aix3-2
2111 ;;
2112 romp-ibm-bsd4.3* )
2113 machine=ibmrt opsys=bsd4-3
2114 ;;
2115 romp-ibm-bsd4.2* )
2116 machine=ibmrt opsys=bsd4-2
2117 ;;
2118 romp-ibm-aos4.3* )
2119 machine=ibmrt opsys=bsd4-3
2120 ;;
2121 romp-ibm-aos4.2* )
2122 machine=ibmrt opsys=bsd4-2
2123 ;;
2124 romp-ibm-aos* )
2125 machine=ibmrt opsys=bsd4-3
2126 ;;
2127 romp-ibm-bsd* )
2128 machine=ibmrt opsys=bsd4-3
2129 ;;
2130 romp-ibm-aix* )
2131 machine=ibmrt-aix opsys=usg5-2-2
2132 ;;
2133
2134 ## Integrated Solutions `Optimum V'
2135 m68*-isi-bsd4.2* )
2136 machine=isi-ov opsys=bsd4-2
2137 ;;
2138 m68*-isi-bsd4.3* )
2139 machine=isi-ov opsys=bsd4-3
2140 ;;
2141
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i[3456]86-intsys-sysv* )
2144 machine=is386 opsys=usg5-2-2
2145 ;;
2146
2147 ## Prime EXL
2148 i[3456]86-prime-sysv* )
2149 machine=i386 opsys=usg5-3
2150 ;;
2151
2152 ## Sequent Symmetry running Dynix
2153 i[3456]86-sequent-bsd* )
2154 machine=symmetry opsys=bsd4-3
2155 ;;
2156
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2159 machine=sequent-ptx opsys=ptx4
2160 NON_GNU_CPP=/lib/cpp
2161 ;;
2162
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i[3456]86-sequent-ptx* )
2166 machine=sequent-ptx opsys=ptx
2167 NON_GNU_CPP="/lib/cpp"
2168 ;;
2169
2170 ## ncr machine running svr4.3.
2171 i[3456]86-ncr-sysv4.3 )
2172 machine=ncr386 opsys=usg5-4-3
2173 ;;
2174
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i[3456]86-ncr-sysv* )
2178 machine=ncr386 opsys=usg5-4-2
2179 ;;
2180
2181 ## Intel Paragon OSF/1
2182 i860-intel-osf1* )
2183 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2184 ;;
2185
2186 ## Intel 860
2187 i860-*-sysv4* )
2188 machine=i860 opsys=usg5-4
2189 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2191 ;;
2192
2193 ## Macintosh PowerPC
2194 powerpc*-*-linux-gnu* )
2195 machine=macppc opsys=gnu-linux
2196 ;;
2197
2198 ## Masscomp machines
2199 m68*-masscomp-rtu* )
2200 machine=masscomp opsys=rtu
2201 ;;
2202
2203 ## Megatest machines
2204 m68*-megatest-bsd* )
2205 machine=mega68 opsys=bsd4-2
2206 ;;
2207
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2211
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2219 mips-mips-usg* )
2220 machine=mips4
2221 ## Fall through to the general code at the bottom to decide on the OS.
2222 ;;
2223 mips-mips-riscos4* )
2224 machine=mips4 opsys=bsd4-3
2225 NON_GNU_CC="cc -systype bsd43"
2226 NON_GNU_CPP="cc -systype bsd43 -E"
2227 ;;
2228 mips-mips-riscos5* )
2229 machine=mips4 opsys=riscos5
2230 NON_GNU_CC="cc -systype bsd43"
2231 NON_GNU_CPP="cc -systype bsd43 -E"
2232 ;;
2233 mips-mips-bsd* )
2234 machine=mips opsys=bsd4-3
2235 ;;
2236 mips-mips-* )
2237 machine=mips opsys=usg5-2-2
2238 ;;
2239
2240 ## NeXT
2241 m68*-next-* | m68k-*-nextstep* )
2242 machine=m68k opsys=nextstep
2243 ;;
2244
2245 ## The complete machine from National Semiconductor
2246 ns32k-ns-genix* )
2247 machine=ns32000 opsys=usg5-2
2248 ;;
2249
2250 ## NCR machines
2251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2252 machine=tower32 opsys=usg5-2-2
2253 ;;
2254 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2255 machine=tower32v3 opsys=usg5-3
2256 ;;
2257
2258 ## NEC EWS4800
2259 mips-nec-sysv4*)
2260 machine=ews4800 opsys=ux4800
2261 ;;
2262
2263 ## Nixdorf Targon 31
2264 m68*-nixdorf-sysv* )
2265 machine=targon31 opsys=usg5-2-2
2266 ;;
2267
2268 ## Nu (TI or LMI)
2269 m68*-nu-sysv* )
2270 machine=nu opsys=usg5-2
2271 ;;
2272
2273 ## Plexus
2274 m68*-plexus-sysv* )
2275 machine=plexus opsys=usg5-2
2276 ;;
2277
2278 ## Pyramid machines
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd* )
2282 machine=pyramid opsys=bsd4-2
2283 ;;
2284
2285 ## Sequent Balance
2286 ns32k-sequent-bsd4.2* )
2287 machine=sequent opsys=bsd4-2
2288 ;;
2289 ns32k-sequent-bsd4.3* )
2290 machine=sequent opsys=bsd4-3
2291 ;;
2292
2293 ## Siemens Nixdorf
2294 mips-siemens-sysv* | mips-sni-sysv*)
2295 machine=mips-siemens opsys=usg5-4
2296 NON_GNU_CC=/usr/ccs/bin/cc
2297 NON_GNU_CPP=/usr/ccs/lib/cpp
2298 ;;
2299
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2302 m68*-sgi-iris3.5* )
2303 machine=irist opsys=iris3-5
2304 ;;
2305 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2306 machine=irist opsys=iris3-6
2307 ;;
2308 ## Iris 4D
2309 mips-sgi-irix3* )
2310 machine=iris4d opsys=irix3-3
2311 ;;
2312 mips-sgi-irix4* )
2313 machine=iris4d opsys=irix4-0
2314 ;;
2315 mips-sgi-irix6.5 )
2316 machine=iris4d opsys=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2322 ;;
2323 mips-sgi-irix6* )
2324 machine=iris4d opsys=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS=-32
2330 ;;
2331 mips-sgi-irix5.[01]* )
2332 machine=iris4d opsys=irix5-0
2333 ;;
2334 mips-sgi-irix5* | mips-sgi-irix* )
2335 machine=iris4d opsys=irix5-2
2336 ;;
2337
2338 ## SONY machines
2339 m68*-sony-bsd4.2* )
2340 machine=news opsys=bsd4-2
2341 ;;
2342 m68*-sony-bsd4.3* )
2343 machine=news opsys=bsd4-3
2344 ;;
2345 m68*-sony-newsos3* | m68*-sony-news3*)
2346 machine=news opsys=bsd4-3
2347 ;;
2348 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2349 machine=news-risc opsys=bsd4-3
2350 ;;
2351 mips-sony-newsos6* )
2352 machine=news-r6 opsys=newsos6
2353 ;;
2354 mips-sony-news* )
2355 machine=news-risc opsys=newsos5
2356 ;;
2357
2358 ## Stride
2359 m68*-stride-sysv* )
2360 machine=stride opsys=usg5-2
2361 ;;
2362
2363 ## Suns
2364 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2365 machine=sparc opsys=gnu-linux
2366 ;;
2367
2368 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2369 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2370 | rs6000-*-solaris2*)
2371 case "${canonical}" in
2372 m68*-sunos1* ) machine=sun1 ;;
2373 m68*-sunos2* ) machine=sun2 ;;
2374 m68* ) machine=sun3 ;;
2375 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2376 i[3456]86-*-* ) machine=intel386 ;;
2377 powerpcle* ) machine=powerpcle ;;
2378 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2379 sparc* ) machine=sparc ;;
2380 * ) unported=yes ;;
2381 esac
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2385 *-sunos4.0* ) opsys=sunos4-0 ;;
2386 *-sunos4.1.[3-9]*noshare )
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2389 opsys=sunos413
2390 NON_GNU_CPP=/usr/lib/cpp
2391 NON_GCC_TEST_OPTIONS=-Bstatic
2392 GCC_TEST_OPTIONS=-static
2393 ;;
2394 *-sunos4.1.[3-9]* | *-sunos4shr*)
2395 opsys=sunos4shr
2396 NON_GNU_CPP=/usr/lib/cpp
2397 ;;
2398 *-sunos4* | *-sunos )
2399 opsys=sunos4-1
2400 NON_GCC_TEST_OPTIONS=-Bstatic
2401 GCC_TEST_OPTIONS=-static
2402 ;;
2403 *-sunos5.3* | *-solaris2.3* )
2404 opsys=sol2-3
2405 NON_GNU_CPP=/usr/ccs/lib/cpp
2406 ;;
2407 *-sunos5.4* | *-solaris2.4* )
2408 opsys=sol2-4
2409 NON_GNU_CPP=/usr/ccs/lib/cpp
2410 RANLIB="ar -ts"
2411 ;;
2412 *-sunos5.5* | *-solaris2.5* )
2413 opsys=sol2-5
2414 NON_GNU_CPP=/usr/ccs/lib/cpp
2415 RANLIB="ar -ts"
2416 ;;
2417 *-sunos5.6* | *-solaris2.6* )
2418 opsys=sol2-6
2419 NON_GNU_CPP=/usr/ccs/lib/cpp
2420 RANLIB="ar -ts"
2421 ;;
2422 *-sunos5* | *-solaris* )
2423 opsys=sol2-6
2424 NON_GNU_CPP=/usr/ccs/lib/cpp
2425 ;;
2426 * ) opsys=bsd4-2 ;;
2427 esac
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* | *-sunos5* )
2431 if [ "x$CC" = x/usr/ucb/cc ]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2434 unset CC
2435 fi
2436 ;;
2437 *) ;;
2438 esac
2439 ;;
2440 sparc-*-nextstep* )
2441 machine=sparc opsys=nextstep
2442 ;;
2443
2444 ## Tadpole 68k
2445 m68*-tadpole-sysv* )
2446 machine=tad68k opsys=usg5-3
2447 ;;
2448
2449 ## Tahoe machines
2450 tahoe-tahoe-bsd4.2* )
2451 machine=tahoe opsys=bsd4-2
2452 ;;
2453 tahoe-tahoe-bsd4.3* )
2454 machine=tahoe opsys=bsd4-3
2455 ;;
2456
2457 ## Tandem Integrity S2
2458 mips-tandem-sysv* )
2459 machine=tandem-s2 opsys=usg5-3
2460 ;;
2461
2462 ## Tektronix XD88
2463 m88k-tektronix-sysv3* )
2464 machine=tekxd88 opsys=usg5-3
2465 ;;
2466
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd* )
2469 machine=ns16000 opsys=bsd4-2
2470 ;;
2471 ## Tektronix 4300
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68*-tektronix-bsd* )
2474 machine=tek4300 opsys=bsd4-3
2475 ;;
2476
2477 ## Titan P2 or P3
2478 ## We seem to have lost the machine-description file titan.h!
2479 titan-titan-sysv* )
2480 machine=titan opsys=usg5-3
2481 ;;
2482
2483 ## Ustation E30 (SS5E)
2484 m68*-unisys-uniplus* )
2485 machine=ustation opsystem=unipl5-2
2486 ;;
2487
2488 ## Vaxen.
2489 vax-dec-* )
2490 machine=vax
2491 case "${canonical}" in
2492 *-bsd4.1* ) opsys=bsd4-1 ;;
2493 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2494 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2495 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2496 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2497 *-vms* ) opsys=vms ;;
2498 * ) unported=yes
2499 esac
2500 ;;
2501
2502 ## Whitechapel MG1
2503 ns16k-whitechapel-* )
2504 machine=mg1
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2507 ;;
2508
2509 ## Wicat
2510 m68*-wicat-sysv* )
2511 machine=wicat opsys=usg5-2
2512 ;;
2513
2514 ## IA-64
2515 ia64*-*-linux* )
2516 machine=ia64 opsys=gnu-linux
2517 ;;
2518
2519 ## Intel 386 machines where we don't care about the manufacturer
2520 i[3456]86-*-* )
2521 machine=intel386
2522 case "${canonical}" in
2523 *-cygwin ) opsys=cygwin ;;
2524 *-lynxos* ) opsys=lynxos ;;
2525 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2526 *-isc2.2* ) opsys=isc2-2 ;;
2527 *-isc4.0* ) opsys=isc4-0 ;;
2528 *-isc4.* ) opsys=isc4-1
2529 GCC_TEST_OPTIONS=-posix
2530 NON_GCC_TEST_OPTIONS=-Xp
2531 ;;
2532 *-isc* ) opsys=isc3-0 ;;
2533 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2534 *-esix* ) opsys=esix ;;
2535 *-xenix* ) opsys=xenix ;;
2536 *-linux-gnu* ) opsys=gnu-linux ;;
2537 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2538 *-sco3.2v5* ) opsys=sco5
2539 NON_GNU_CPP=/lib/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS=" "
2543 ;;
2544 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2545 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2546 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2547 *-386bsd* ) opsys=386bsd ;;
2548 *-nextstep* ) opsys=nextstep ;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2550 esac
2551 ;;
2552
2553 ## m68k Linux-based GNU system
2554 m68k-*-linux-gnu* )
2555 machine=m68k opsys=gnu-linux
2556 ;;
2557
2558 ## Mips Linux-based GNU system
2559 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2560 machine=mips opsys=gnu-linux
2561 ;;
2562
2563 ## UXP/DS
2564 sparc-fujitsu-sysv4* )
2565 machine=sparc opsys=uxpds
2566 NON_GNU_CPP=/usr/ccs/lib/cpp
2567 RANLIB="ar -ts"
2568 ;;
2569
2570 ## UXP/V
2571 f301-fujitsu-uxpv4.1)
2572 machine=f301 opsys=uxpv
2573 ;;
2574
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin* )
2577 machine=powermac opsys=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP="gcc -E -no-cpp-precomp"
2580 ;;
2581
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-*-linux-gnu* )
2584 machine=amdx86-64 opsys=gnu-linux
2585 ;;
2586
2587 * )
2588 unported=yes
2589 ;;
2590 esac
2591
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2597 ### above.
2598 if test x"${opsys}" = x; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys=gnu ;;
2601 *-bsd4.[01] ) opsys=bsd4-1 ;;
2602 *-bsd4.2 ) opsys=bsd4-2 ;;
2603 *-bsd4.3 ) opsys=bsd4-3 ;;
2604 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2605 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2606 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2607 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2608 *-sysv4.2uw* ) opsys=unixware ;;
2609 *-sysv5uw* ) opsys=unixware ;;
2610 *-sysv5OpenUNIX* ) opsys=unixware ;;
2611 *-sysv4.1* | *-sysvr4.1* )
2612 NON_GNU_CPP=/usr/lib/cpp
2613 opsys=usg5-4 ;;
2614 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2615 if [ x$NON_GNU_CPP = x ]; then
2616 if [ -f /usr/ccs/lib/cpp ]; then
2617 NON_GNU_CPP=/usr/ccs/lib/cpp
2618 else
2619 NON_GNU_CPP=/lib/cpp
2620 fi
2621 fi
2622 opsys=usg5-4-2 ;;
2623 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2624 * )
2625 unported=yes
2626 ;;
2627 esac
2628 fi
2629
2630
2631
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2638 fi
2639
2640 machfile="m/${machine}.h"
2641 opsysfile="s/${opsys}.h"
2642
2643
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified=yes
2646
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS="$CFLAGS"
2649
2650 case ${with_gcc} in
2651 "yes" ) CC="gcc" GCC=yes ;;
2652 "no" ) : ${CC=cc} ;;
2653 * )
2654 esac
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2694 fi
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698 ac_ct_CC=$CC
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722
2723 fi
2724 fi
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 fi
2733
2734 CC=$ac_ct_CC
2735 else
2736 CC="$ac_cv_prog_CC"
2737 fi
2738
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}cc; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2771 else
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774 fi
2775
2776 fi
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802
2803 fi
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2809 else
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 fi
2813
2814 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2817 fi
2818
2819 fi
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2841 continue
2842 fi
2843 ac_cv_prog_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2853 shift
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2858 shift
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2860 fi
2861 fi
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873 fi
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl
2877 do
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2911 fi
2912
2913 test -n "$CC" && break
2914 done
2915 fi
2916 if test -z "$CC"; then
2917 ac_ct_CC=$CC
2918 for ac_prog in cl
2919 do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2950 else
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2953 fi
2954
2955 test -n "$ac_ct_CC" && break
2956 done
2957
2958 CC=$ac_ct_CC
2959 fi
2960
2961 fi
2962
2963
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2969
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev/null >&5) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev/null >&5) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev/null >&5) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2989
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997
2998 int
2999 main ()
3000 {
3001
3002 ;
3003 return 0;
3004 }
3005 _ACEOF
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3010 # of exeext.
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3021 # resort.
3022
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3025 ac_cv_exeext=
3026 # b.out is created by i960 compilers.
3027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3028 do
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3032 ;;
3033 conftest.$ac_ext )
3034 # This is the source file.
3035 ;;
3036 [ab].out )
3037 # We found the default executable, but exeext='' is most
3038 # certainly right.
3039 break;;
3040 *.* )
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3045 export ac_cv_exeext
3046 break;;
3047 * )
3048 break;;
3049 esac
3050 done
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3060 fi
3061
3062 ac_exeext=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3065
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092 fi
3093 fi
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3096
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3105
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 # `rm'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 export ac_cv_exeext
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135 rm -f conftest$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3138
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3185 fi
3186
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT=$ac_cv_objext
3192 ac_objext=$OBJEXT
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 ac_compiler_gnu=no
3235 fi
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS=${CFLAGS+set}
3244 ac_save_CFLAGS=$CFLAGS
3245 CFLAGS="-g"
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_g=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ac_cv_prog_cc_g=no
3285 fi
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3294 CFLAGS="-g -O2"
3295 else
3296 CFLAGS="-g"
3297 fi
3298 else
3299 if test "$GCC" = yes; then
3300 CFLAGS="-O2"
3301 else
3302 CFLAGS=
3303 fi
3304 fi
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 ac_cv_prog_cc_stdc=no
3311 ac_save_CC=$CC
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3329 {
3330 return p[i];
3331 }
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3333 {
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3340 }
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345 int argc;
3346 char **argv;
3347 int
3348 main ()
3349 {
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 do
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc=$ac_arg
3378 break
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 fi
3384 rm -f conftest.$ac_objext
3385 done
3386 rm -f conftest.$ac_ext conftest.$ac_objext
3387 CC=$ac_save_CC
3388
3389 fi
3390
3391 case "x$ac_cv_prog_cc_stdc" in
3392 x|xno)
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3395 *)
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC="$CC $ac_cv_prog_cc_stdc" ;;
3399 esac
3400
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #ifndef __cplusplus
3407 choke me
3408 #endif
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration in \
3423 ''\
3424 '#include <stdlib.h>' \
3425 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426 'extern "C" void std::exit (int); using std::exit;' \
3427 'extern "C" void exit (int) throw ();' \
3428 'extern "C" void exit (int);' \
3429 'void exit (int);'
3430 do
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <stdlib.h>
3439 $ac_declaration
3440 int
3441 main ()
3442 {
3443 exit (42);
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 :
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 continue
3466 fi
3467 rm -f conftest.$ac_objext conftest.$ac_ext
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 $ac_declaration
3476 int
3477 main ()
3478 {
3479 exit (42);
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 break
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 fi
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 done
3504 rm -f conftest*
3505 if test -n "$ac_declaration"; then
3506 echo '#ifdef __cplusplus' >>confdefs.h
3507 echo $ac_declaration >>confdefs.h
3508 echo '#endif' >>confdefs.h
3509 fi
3510
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 fi
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3526 CPP=
3527 fi
3528
3529 #### Some systems specify a CPP to use unless we are using GCC.
3530 #### Now that we know whether we are using GCC, we can decide whether
3531 #### to use that one.
3532 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3533 then
3534 CPP="$NON_GNU_CPP"
3535 fi
3536
3537 #### Some systems specify a CC to use unless we are using GCC.
3538 #### Now that we know whether we are using GCC, we can decide whether
3539 #### to use that one.
3540 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3541 test x$cc_specified != xyes
3542 then
3543 CC="$NON_GNU_CC"
3544 fi
3545
3546 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3547 then
3548 CC="$CC $GCC_TEST_OPTIONS"
3549 fi
3550
3551 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3552 then
3553 CC="$CC $NON_GCC_TEST_OPTIONS"
3554 fi
3555
3556 #### Some other nice autoconf tests.
3557
3558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560 LN_S=$as_ln_s
3561 if test "$LN_S" = "ln -s"; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3564 else
3565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566 echo "${ECHO_T}no, using $LN_S" >&6
3567 fi
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3578 CPP=
3579 fi
3580 if test -z "$CPP"; then
3581 if test "${ac_cv_prog_CPP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 # Double quotes because CPP needs to be expanded
3585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586 do
3587 ac_preproc_ok=false
3588 for ac_c_preproc_warn_flag in '' yes
3589 do
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593 # <limits.h> exists even on freestanding compilers.
3594 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #ifdef __STDC__
3604 # include <limits.h>
3605 #else
3606 # include <assert.h>
3607 #endif
3608 Syntax error
3609 _ACEOF
3610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null; then
3618 if test -s conftest.err; then
3619 ac_cpp_err=$ac_c_preproc_warn_flag
3620 else
3621 ac_cpp_err=
3622 fi
3623 else
3624 ac_cpp_err=yes
3625 fi
3626 if test -z "$ac_cpp_err"; then
3627 :
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 # Broken: fails on valid input.
3633 continue
3634 fi
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <ac_nonexistent.h>
3647 _ACEOF
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev/null; then
3656 if test -s conftest.err; then
3657 ac_cpp_err=$ac_c_preproc_warn_flag
3658 else
3659 ac_cpp_err=
3660 fi
3661 else
3662 ac_cpp_err=yes
3663 fi
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3666 continue
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3674 fi
3675 rm -f conftest.err conftest.$ac_ext
3676
3677 done
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.$ac_ext
3680 if $ac_preproc_ok; then
3681 break
3682 fi
3683
3684 done
3685 ac_cv_prog_CPP=$CPP
3686
3687 fi
3688 CPP=$ac_cv_prog_CPP
3689 else
3690 ac_cv_prog_CPP=$CPP
3691 fi
3692 echo "$as_me:$LINENO: result: $CPP" >&5
3693 echo "${ECHO_T}$CPP" >&6
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3696 do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #ifdef __STDC__
3711 # include <limits.h>
3712 #else
3713 # include <assert.h>
3714 #endif
3715 Syntax error
3716 _ACEOF
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null; then
3725 if test -s conftest.err; then
3726 ac_cpp_err=$ac_c_preproc_warn_flag
3727 else
3728 ac_cpp_err=
3729 fi
3730 else
3731 ac_cpp_err=yes
3732 fi
3733 if test -z "$ac_cpp_err"; then
3734 :
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 # Broken: fails on valid input.
3740 continue
3741 fi
3742 rm -f conftest.err conftest.$ac_ext
3743
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.$ac_ext <<_ACEOF
3747 #line $LINENO "configure"
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3754 _ACEOF
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag
3765 else
3766 ac_cpp_err=
3767 fi
3768 else
3769 ac_cpp_err=yes
3770 fi
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3773 continue
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 # Passes both tests.
3779 ac_preproc_ok=:
3780 break
3781 fi
3782 rm -f conftest.err conftest.$ac_ext
3783
3784 done
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.$ac_ext
3787 if $ac_preproc_ok; then
3788 :
3789 else
3790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&5
3792 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3793 See \`config.log' for more details." >&2;}
3794 { (exit 1); exit 1; }; }
3795 fi
3796
3797 ac_ext=c
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
3803 # Find a good install program. We prefer a C program (faster),
3804 # so one script is as good as another. But avoid the broken or
3805 # incompatible versions:
3806 # SysV /etc/install, /usr/sbin/install
3807 # SunOS /usr/etc/install
3808 # IRIX /sbin/install
3809 # AIX /bin/install
3810 # AmigaOS /C/install, which installs bootblocks on floppy discs
3811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814 # ./install, which can be erroneously created by make from ./install.sh.
3815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3817 if test -z "$INSTALL"; then
3818 if test "${ac_cv_path_install+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 # Account for people who put trailing slashes in PATH elements.
3827 case $as_dir/ in
3828 ./ | .// | /cC/* | \
3829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3830 /usr/ucb/* ) ;;
3831 *)
3832 # OSF1 and SCO ODT 3.0 have their own names for install.
3833 # Don't use installbsd from OSF since it installs stuff as root
3834 # by default.
3835 for ac_prog in ginstall scoinst install; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838 if test $ac_prog = install &&
3839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840 # AIX install. It has an incompatible calling convention.
3841 :
3842 elif test $ac_prog = install &&
3843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844 # program-specific install script used by HP pwplus--don't use.
3845 :
3846 else
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3
3849 fi
3850 fi
3851 done
3852 done
3853 ;;
3854 esac
3855 done
3856
3857
3858 fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. We don't cache a
3863 # path for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the path is relative.
3866 INSTALL=$ac_install_sh
3867 fi
3868 fi
3869 echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6
3871
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880 if test "x$RANLIB" = x; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$RANLIB"; then
3890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 RANLIB=$ac_cv_prog_RANLIB
3909 if test -n "$RANLIB"; then
3910 echo "$as_me:$LINENO: result: $RANLIB" >&5
3911 echo "${ECHO_T}$RANLIB" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_RANLIB="ranlib"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3945 fi
3946 fi
3947 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3948 if test -n "$ac_ct_RANLIB"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3951 else
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3954 fi
3955
3956 RANLIB=$ac_ct_RANLIB
3957 else
3958 RANLIB="$ac_cv_prog_RANLIB"
3959 fi
3960
3961 fi
3962 # Extract the first word of "install-info", so it can be a program name with args.
3963 set dummy install-info; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 case $INSTALL_INFO in
3970 [\\/]* | ?:[\\/]*)
3971 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3972 ;;
3973 *)
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987
3988 ;;
3989 esac
3990 fi
3991 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3992
3993 if test -n "$INSTALL_INFO"; then
3994 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3995 echo "${ECHO_T}$INSTALL_INFO" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 # Extract the first word of "install-info", so it can be a program name with args.
4002 set dummy install-info; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 case $INSTALL_INFO in
4009 [\\/]* | ?:[\\/]*)
4010 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4011 ;;
4012 *)
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in /usr/sbin
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026
4027 ;;
4028 esac
4029 fi
4030 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4031
4032 if test -n "$INSTALL_INFO"; then
4033 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4034 echo "${ECHO_T}$INSTALL_INFO" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040 # Extract the first word of "install-info", so it can be a program name with args.
4041 set dummy install-info; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 case $INSTALL_INFO in
4048 [\\/]* | ?:[\\/]*)
4049 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4050 ;;
4051 *)
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in /sbin
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065
4066 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4067 ;;
4068 esac
4069 fi
4070 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4071
4072 if test -n "$INSTALL_INFO"; then
4073 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4074 echo "${ECHO_T}$INSTALL_INFO" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081
4082 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4083 then
4084 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4085 fi
4086
4087 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4088 then
4089 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4090 fi
4091
4092
4093
4094 echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4096 if test "${ac_cv_prog_egrep+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4100 then ac_cv_prog_egrep='grep -E'
4101 else ac_cv_prog_egrep='egrep'
4102 fi
4103 fi
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4106 EGREP=$ac_cv_prog_egrep
4107
4108
4109
4110 echo "$as_me:$LINENO: checking for AIX" >&5
4111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #ifdef _AIX
4120 yes
4121 #endif
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "yes" >/dev/null 2>&1; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128 cat >>confdefs.h <<\_ACEOF
4129 #define _ALL_SOURCE 1
4130 _ACEOF
4131
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4135 fi
4136 rm -f conftest*
4137
4138
4139
4140 #### Extract some information from the operating system and machine files.
4141
4142 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4143 - which libraries the lib-src programs will want, and
4144 - whether the GNU malloc routines are usable..." >&5
4145 echo "$as_me: checking the machine- and system-dependent files to find out
4146 - which libraries the lib-src programs will want, and
4147 - whether the GNU malloc routines are usable..." >&6;}
4148
4149 ### First figure out CFLAGS (which we use for running the compiler here)
4150 ### and REAL_CFLAGS (which we use for real compilation).
4151 ### The two are the same except on a few systems, where they are made
4152 ### different to work around various lossages. For example,
4153 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4154 ### as implying static linking.
4155
4156 ### If the CFLAGS env var is specified, we use that value
4157 ### instead of the default.
4158
4159 ### It's not important that this name contain the PID; you can't run
4160 ### two configures in the same directory and have anything work
4161 ### anyway.
4162 tempcname="conftest.c"
4163
4164 echo '
4165 #include "'${srcdir}'/src/'${opsysfile}'"
4166 #include "'${srcdir}'/src/'${machfile}'"
4167 #ifndef LIBS_MACHINE
4168 #define LIBS_MACHINE
4169 #endif
4170 #ifndef LIBS_SYSTEM
4171 #define LIBS_SYSTEM
4172 #endif
4173 #ifndef C_SWITCH_SYSTEM
4174 #define C_SWITCH_SYSTEM
4175 #endif
4176 #ifndef C_SWITCH_MACHINE
4177 #define C_SWITCH_MACHINE
4178 #endif
4179 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4180 configure___ c_switch_system=C_SWITCH_SYSTEM
4181 configure___ c_switch_machine=C_SWITCH_MACHINE
4182
4183 #ifndef LIB_X11_LIB
4184 #define LIB_X11_LIB -lX11
4185 #endif
4186
4187 #ifndef LIBX11_MACHINE
4188 #define LIBX11_MACHINE
4189 #endif
4190
4191 #ifndef LIBX11_SYSTEM
4192 #define LIBX11_SYSTEM
4193 #endif
4194 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4195
4196 #ifdef UNEXEC
4197 configure___ unexec=UNEXEC
4198 #else
4199 configure___ unexec=unexec.o
4200 #endif
4201
4202 #ifdef SYSTEM_MALLOC
4203 configure___ system_malloc=yes
4204 #else
4205 configure___ system_malloc=no
4206 #endif
4207
4208 #ifdef USE_MMAP_FOR_BUFFERS
4209 configure___ use_mmap_for_buffers=yes
4210 #else
4211 configure___ use_mmap_for_buffers=no
4212 #endif
4213
4214 #ifndef C_DEBUG_SWITCH
4215 #define C_DEBUG_SWITCH -g
4216 #endif
4217
4218 #ifndef C_OPTIMIZE_SWITCH
4219 #ifdef __GNUC__
4220 #define C_OPTIMIZE_SWITCH -O2
4221 #else
4222 #define C_OPTIMIZE_SWITCH -O
4223 #endif
4224 #endif
4225
4226 #ifndef LD_SWITCH_MACHINE
4227 #define LD_SWITCH_MACHINE
4228 #endif
4229
4230 #ifndef LD_SWITCH_SYSTEM
4231 #define LD_SWITCH_SYSTEM
4232 #endif
4233
4234 #ifndef LD_SWITCH_X_SITE_AUX
4235 #define LD_SWITCH_X_SITE_AUX
4236 #endif
4237
4238 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4239 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4240
4241 #ifdef THIS_IS_CONFIGURE
4242
4243 /* Get the CFLAGS for tests in configure. */
4244 #ifdef __GNUC__
4245 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4246 #else
4247 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4248 #endif
4249
4250 #else /* not THIS_IS_CONFIGURE */
4251
4252 /* Get the CFLAGS for real compilation. */
4253 #ifdef __GNUC__
4254 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4255 #else
4256 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4257 #endif
4258
4259 #endif /* not THIS_IS_CONFIGURE */
4260 ' > ${tempcname}
4261
4262 # The value of CPP is a quoted variable reference, so we need to do this
4263 # to get its actual value...
4264 CPP=`eval "echo $CPP"`
4265 eval `${CPP} -Isrc ${tempcname} \
4266 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4267 if test "x$SPECIFIED_CFLAGS" = x; then
4268 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4269 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4270 else
4271 REAL_CFLAGS="$CFLAGS"
4272 fi
4273 rm ${tempcname}
4274
4275 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4276
4277 ### Make sure subsequent tests use flags consistent with the build flags.
4278
4279 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4280 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4281 else
4282 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4283 fi
4284
4285
4286
4287
4288 cat >>confdefs.h <<\_ACEOF
4289 #define _GNU_SOURCE 1
4290 _ACEOF
4291
4292
4293
4294 # Check whether --enable-largefile or --disable-largefile was given.
4295 if test "${enable_largefile+set}" = set; then
4296 enableval="$enable_largefile"
4297
4298 fi;
4299 if test "$enable_largefile" != no; then
4300
4301 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4302 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4303 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 ac_cv_sys_largefile_CC=no
4307 if test "$GCC" != yes; then
4308 ac_save_CC=$CC
4309 while :; do
4310 # IRIX 6.2 and later do not support large files by default,
4311 # so use the C compiler's -n32 option if that helps.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 /* Check that off_t can represent 2**63 - 1 correctly.
4321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322 since some C++ compilers masquerading as C compilers
4323 incorrectly reject 9223372036854775807. */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326 && LARGE_OFF_T % 2147483647 == 1)
4327 ? 1 : -1];
4328 int
4329 main ()
4330 {
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
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 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 CC="$CC -n32"
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_sys_largefile_CC=' -n32'; break
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 fi
4374 rm -f conftest.$ac_objext
4375 break
4376 done
4377 CC=$ac_save_CC
4378 rm -f conftest.$ac_ext
4379 fi
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4382 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4383 if test "$ac_cv_sys_largefile_CC" != no; then
4384 CC=$CC$ac_cv_sys_largefile_CC
4385 fi
4386
4387 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4388 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4389 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 while :; do
4393 ac_cv_sys_file_offset_bits=no
4394 cat >conftest.$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <sys/types.h>
4402 /* Check that off_t can represent 2**63 - 1 correctly.
4403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4404 since some C++ compilers masquerading as C compilers
4405 incorrectly reject 9223372036854775807. */
4406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4408 && LARGE_OFF_T % 2147483647 == 1)
4409 ? 1 : -1];
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 break
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 fi
4436 rm -f conftest.$ac_objext conftest.$ac_ext
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #define _FILE_OFFSET_BITS 64
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4453 ? 1 : -1];
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sys_file_offset_bits=64; break
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 fi
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 break
4482 done
4483 fi
4484 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4485 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4486 if test "$ac_cv_sys_file_offset_bits" != no; then
4487
4488 cat >>confdefs.h <<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4490 _ACEOF
4491
4492 fi
4493 rm -f conftest*
4494 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4495 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4496 if test "${ac_cv_sys_large_files+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 while :; do
4500 ac_cv_sys_large_files=no
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4516 ? 1 : -1];
4517 int
4518 main ()
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 break
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 fi
4543 rm -f conftest.$ac_objext conftest.$ac_ext
4544 cat >conftest.$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #define _LARGE_FILES 1
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4560 ? 1 : -1];
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_sys_large_files=1; break
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 break
4589 done
4590 fi
4591 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4592 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4593 if test "$ac_cv_sys_large_files" != no; then
4594
4595 cat >>confdefs.h <<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4597 _ACEOF
4598
4599 fi
4600 rm -f conftest*
4601 fi
4602
4603
4604 if test "${with_sound}" != "no"; then
4605 # Sound support for GNU/Linux and the free BSDs.
4606 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4608 if test "${ac_cv_header_stdc+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <stdlib.h>
4619 #include <stdarg.h>
4620 #include <string.h>
4621 #include <float.h>
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_header_stdc=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4651
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 #include <string.h>
4662
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev/null 2>&1; then
4666 :
4667 else
4668 ac_cv_header_stdc=no
4669 fi
4670 rm -f conftest*
4671
4672 fi
4673
4674 if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev/null 2>&1; then
4688 :
4689 else
4690 ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then
4699 :
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <ctype.h>
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 #else
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718 #endif
4719
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 int
4722 main ()
4723 {
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 exit(2);
4729 exit (0);
4730 }
4731 _ACEOF
4732 rm -f conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 :
4744 else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ( exit $ac_status )
4750 ac_cv_header_stdc=no
4751 fi
4752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 fi
4755 fi
4756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4758 if test $ac_cv_header_stdc = yes; then
4759
4760 cat >>confdefs.h <<\_ACEOF
4761 #define STDC_HEADERS 1
4762 _ACEOF
4763
4764 fi
4765
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4777 inttypes.h stdint.h unistd.h
4778 do
4779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793
4794 #include <$ac_header>
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_Header=yes"
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 eval "$as_ac_Header=no"
4814 fi
4815 rm -f conftest.$ac_objext conftest.$ac_ext
4816 fi
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822 _ACEOF
4823
4824 fi
4825
4826 done
4827
4828
4829
4830
4831
4832 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4833 do
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 else
4844 # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 #include <$ac_header>
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_header_compiler=no
4875 fi
4876 rm -f conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6
4879
4880 # Is the header present?
4881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <$ac_header>
4891 _ACEOF
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag
4902 else
4903 ac_cpp_err=
4904 fi
4905 else
4906 ac_cpp_err=yes
4907 fi
4908 if test -z "$ac_cpp_err"; then
4909 ac_header_preproc=yes
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ac_header_preproc=no
4915 fi
4916 rm -f conftest.err conftest.$ac_ext
4917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 echo "${ECHO_T}$ac_header_preproc" >&6
4919
4920 # So? What about this header?
4921 case $ac_header_compiler:$ac_header_preproc in
4922 yes:no )
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4927 (
4928 cat <<\_ASBOX
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4932 _ASBOX
4933 ) |
4934 sed "s/^/$as_me: WARNING: /" >&2
4935 ;;
4936 no:yes )
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943 (
4944 cat <<\_ASBOX
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4948 _ASBOX
4949 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2
4951 ;;
4952 esac
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 eval "$as_ac_Header=$ac_header_preproc"
4959 fi
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962
4963 fi
4964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965 cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970
4971 done
4972
4973 # Emulation library used on NetBSD.
4974 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4975 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4976 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 ac_check_lib_save_LIBS=$LIBS
4980 LIBS="-lossaudio $LIBS"
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 #ifdef __cplusplus
4991 extern "C"
4992 #endif
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995 char _oss_ioctl ();
4996 int
4997 main ()
4998 {
4999 _oss_ioctl ();
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_ossaudio__oss_ioctl=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_cv_lib_ossaudio__oss_ioctl=no
5022 fi
5023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS
5025 fi
5026 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5027 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5028 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5029 LIBSOUND=-lossaudio
5030 else
5031 LIBSOUND=
5032 fi
5033
5034
5035 fi
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5061 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5062 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5063 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5064 do
5065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo "$as_me:$LINENO: checking for $ac_header" >&5
5068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 fi
5072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074 else
5075 # Is the header compilable?
5076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 #include <$ac_header>
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_compiler=no
5106 fi
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109 echo "${ECHO_T}$ac_header_compiler" >&6
5110
5111 # Is the header present?
5112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <$ac_header>
5122 _ACEOF
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_c_preproc_warn_flag
5133 else
5134 ac_cpp_err=
5135 fi
5136 else
5137 ac_cpp_err=yes
5138 fi
5139 if test -z "$ac_cpp_err"; then
5140 ac_header_preproc=yes
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_header_preproc=no
5146 fi
5147 rm -f conftest.err conftest.$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6
5150
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc in
5153 yes:no )
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5158 (
5159 cat <<\_ASBOX
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5163 _ASBOX
5164 ) |
5165 sed "s/^/$as_me: WARNING: /" >&2
5166 ;;
5167 no:yes )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 (
5175 cat <<\_ASBOX
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5179 _ASBOX
5180 ) |
5181 sed "s/^/$as_me: WARNING: /" >&2
5182 ;;
5183 esac
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 eval "$as_ac_Header=$ac_header_preproc"
5190 fi
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193
5194 fi
5195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5196 cat >>confdefs.h <<_ACEOF
5197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5199
5200 fi
5201
5202 done
5203
5204
5205 for ac_header in term.h
5206 do
5207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <$ac_header>
5221 _ACEOF
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then
5231 ac_cpp_err=$ac_c_preproc_warn_flag
5232 else
5233 ac_cpp_err=
5234 fi
5235 else
5236 ac_cpp_err=yes
5237 fi
5238 if test -z "$ac_cpp_err"; then
5239 eval "$as_ac_Header=yes"
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 eval "$as_ac_Header=no"
5245 fi
5246 rm -f conftest.err conftest.$ac_ext
5247 fi
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5254
5255 fi
5256
5257 done
5258
5259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5261 if test "${ac_cv_header_stdc+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #include <stdlib.h>
5272 #include <stdarg.h>
5273 #include <string.h>
5274 #include <float.h>
5275
5276 int
5277 main ()
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_header_stdc=yes
5297 else
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f conftest.$ac_objext conftest.$ac_ext
5304
5305 if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <string.h>
5315
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev/null 2>&1; then
5319 :
5320 else
5321 ac_cv_header_stdc=no
5322 fi
5323 rm -f conftest*
5324
5325 fi
5326
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat >conftest.$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #include <stdlib.h>
5337
5338 _ACEOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev/null 2>&1; then
5341 :
5342 else
5343 ac_cv_header_stdc=no
5344 fi
5345 rm -f conftest*
5346
5347 fi
5348
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then
5352 :
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 #line $LINENO "configure"
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <ctype.h>
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 #else
5366 # define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5371 #endif
5372
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5374 int
5375 main ()
5376 {
5377 int i;
5378 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i))
5381 exit(2);
5382 exit (0);
5383 }
5384 _ACEOF
5385 rm -f conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 :
5397 else
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 ( exit $ac_status )
5403 ac_cv_header_stdc=no
5404 fi
5405 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 fi
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5411 if test $ac_cv_header_stdc = yes; then
5412
5413 cat >>confdefs.h <<\_ACEOF
5414 #define STDC_HEADERS 1
5415 _ACEOF
5416
5417 fi
5418
5419 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5420 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5421 if test "${ac_cv_header_time+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #include <sys/time.h>
5433 #include <time.h>
5434
5435 int
5436 main ()
5437 {
5438 if ((struct tm *) 0)
5439 return 0;
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_header_time=yes
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_cv_header_time=no
5462 fi
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 fi
5465 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466 echo "${ECHO_T}$ac_cv_header_time" >&6
5467 if test $ac_cv_header_time = yes; then
5468
5469 cat >>confdefs.h <<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5471 _ACEOF
5472
5473 fi
5474
5475 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5476 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5477 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 cat >conftest.$ac_ext <<_ACEOF
5481 #line $LINENO "configure"
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 int
5489 main ()
5490 {
5491 #ifndef sys_siglist
5492 char *p = (char *) sys_siglist;
5493 #endif
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_have_decl_sys_siglist=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_cv_have_decl_sys_siglist=no
5517 fi
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5521 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5522 if test $ac_cv_have_decl_sys_siglist = yes; then
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_DECL_SYS_SIGLIST 1
5526 _ACEOF
5527
5528
5529 else
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_DECL_SYS_SIGLIST 0
5532 _ACEOF
5533
5534
5535 fi
5536
5537
5538 if test $ac_cv_have_decl_sys_siglist != yes; then
5539 # For Tru64, at least:
5540 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5541 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5542 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 int
5554 main ()
5555 {
5556 #ifndef __sys_siglist
5557 char *p = (char *) __sys_siglist;
5558 #endif
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_have_decl___sys_siglist=yes
5577 else
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 ac_cv_have_decl___sys_siglist=no
5582 fi
5583 rm -f conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5586 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5587 if test $ac_cv_have_decl___sys_siglist = yes; then
5588
5589 cat >>confdefs.h <<_ACEOF
5590 #define HAVE_DECL___SYS_SIGLIST 1
5591 _ACEOF
5592
5593
5594 else
5595 cat >>confdefs.h <<_ACEOF
5596 #define HAVE_DECL___SYS_SIGLIST 0
5597 _ACEOF
5598
5599
5600 fi
5601
5602
5603 if test $ac_cv_have_decl___sys_siglist = yes; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define sys_siglist __sys_siglist
5607 _ACEOF
5608
5609 fi
5610 fi
5611 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5612 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/wait.h>
5625 #ifndef WEXITSTATUS
5626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5627 #endif
5628 #ifndef WIFEXITED
5629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5630 #endif
5631
5632 int
5633 main ()
5634 {
5635 int s;
5636 wait (&s);
5637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_header_sys_wait_h=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659 ac_cv_header_sys_wait_h=no
5660 fi
5661 rm -f conftest.$ac_objext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5665 if test $ac_cv_header_sys_wait_h = yes; then
5666
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE_SYS_WAIT_H 1
5669 _ACEOF
5670
5671 fi
5672
5673
5674 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5675 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #ifdef TIME_WITH_SYS_TIME
5687 #include <sys/time.h>
5688 #include <time.h>
5689 #else
5690 #ifdef HAVE_SYS_TIME_H
5691 #include <sys/time.h>
5692 #else
5693 #include <time.h>
5694 #endif
5695 #endif
5696 #ifdef HAVE_UTIME_H
5697 #include <utime.h>
5698 #endif
5699 int
5700 main ()
5701 {
5702 static struct utimbuf x; x.actime = x.modtime;
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 emacs_cv_struct_utimbuf=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 emacs_cv_struct_utimbuf=no
5725 fi
5726 rm -f conftest.$ac_objext conftest.$ac_ext
5727 fi
5728 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5729 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5730 if test $emacs_cv_struct_utimbuf = yes; then
5731
5732 cat >>confdefs.h <<\_ACEOF
5733 #define HAVE_STRUCT_UTIMBUF 1
5734 _ACEOF
5735
5736 fi
5737
5738 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 #line $LINENO "configure"
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 #include <signal.h>
5752 #ifdef signal
5753 # undef signal
5754 #endif
5755 #ifdef __cplusplus
5756 extern "C" void (*signal (int, void (*)(int)))(int);
5757 #else
5758 void (*signal ()) ();
5759 #endif
5760
5761 int
5762 main ()
5763 {
5764 int i;
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_type_signal=void
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_cv_type_signal=int
5787 fi
5788 rm -f conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791 echo "${ECHO_T}$ac_cv_type_signal" >&6
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define RETSIGTYPE $ac_cv_type_signal
5795 _ACEOF
5796
5797
5798
5799 echo "$as_me:$LINENO: checking for speed_t" >&5
5800 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5801 if test "${emacs_cv_speed_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <termios.h>
5812 int
5813 main ()
5814 {
5815 speed_t x = 1;
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_speed_t=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 emacs_cv_speed_t=no
5838 fi
5839 rm -f conftest.$ac_objext conftest.$ac_ext
5840 fi
5841 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5842 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5843 if test $emacs_cv_speed_t = yes; then
5844
5845 cat >>confdefs.h <<\_ACEOF
5846 #define HAVE_SPEED_T 1
5847 _ACEOF
5848
5849 fi
5850
5851 echo "$as_me:$LINENO: checking for struct timeval" >&5
5852 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5853 if test "${emacs_cv_struct_timeval+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #ifdef TIME_WITH_SYS_TIME
5864 #include <sys/time.h>
5865 #include <time.h>
5866 #else
5867 #ifdef HAVE_SYS_TIME_H
5868 #include <sys/time.h>
5869 #else
5870 #include <time.h>
5871 #endif
5872 #endif
5873 int
5874 main ()
5875 {
5876 static struct timeval x; x.tv_sec = x.tv_usec;
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 emacs_cv_struct_timeval=yes
5894 else
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 emacs_cv_struct_timeval=no
5899 fi
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5903 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5904 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5905 if test $emacs_cv_struct_timeval = yes; then
5906
5907 cat >>confdefs.h <<\_ACEOF
5908 #define HAVE_TIMEVAL 1
5909 _ACEOF
5910
5911 fi
5912
5913 echo "$as_me:$LINENO: checking for struct exception" >&5
5914 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5915 if test "${emacs_cv_struct_exception+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <math.h>
5926 int
5927 main ()
5928 {
5929 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 emacs_cv_struct_exception=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 emacs_cv_struct_exception=no
5952 fi
5953 rm -f conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5956 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5957 HAVE_EXCEPTION=$emacs_cv_struct_exception
5958 if test $emacs_cv_struct_exception != yes; then
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define NO_MATHERR 1
5962 _ACEOF
5963
5964 fi
5965
5966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5968 if test "${ac_cv_struct_tm+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 #include <time.h>
5980
5981 int
5982 main ()
5983 {
5984 struct tm *tp; tp->tm_sec;
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_struct_tm=time.h
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ac_cv_struct_tm=sys/time.h
6007 fi
6008 rm -f conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6011 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6012 if test $ac_cv_struct_tm = sys/time.h; then
6013
6014 cat >>confdefs.h <<\_ACEOF
6015 #define TM_IN_SYS_TIME 1
6016 _ACEOF
6017
6018 fi
6019
6020 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6021 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6022 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 #include <$ac_cv_struct_tm>
6034
6035
6036 int
6037 main ()
6038 {
6039 static struct tm ac_aggr;
6040 if (ac_aggr.tm_zone)
6041 return 0;
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_member_struct_tm_tm_zone=yes
6059 else
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <$ac_cv_struct_tm>
6072
6073
6074 int
6075 main ()
6076 {
6077 static struct tm ac_aggr;
6078 if (sizeof ac_aggr.tm_zone)
6079 return 0;
6080 ;
6081 return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_member_struct_tm_tm_zone=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_member_struct_tm_tm_zone=no
6102 fi
6103 rm -f conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_STRUCT_TM_TM_ZONE 1
6113 _ACEOF
6114
6115
6116 fi
6117
6118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6119
6120 cat >>confdefs.h <<\_ACEOF
6121 #define HAVE_TM_ZONE 1
6122 _ACEOF
6123
6124 else
6125 echo "$as_me:$LINENO: checking for tzname" >&5
6126 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6127 if test "${ac_cv_var_tzname+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <time.h>
6138 #ifndef tzname /* For SGI. */
6139 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6140 #endif
6141
6142 int
6143 main ()
6144 {
6145 atoi(*tzname);
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_var_tzname=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_var_tzname=no
6168 fi
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 fi
6171 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6172 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6173 if test $ac_cv_var_tzname = yes; then
6174
6175 cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_TZNAME 1
6177 _ACEOF
6178
6179 fi
6180 fi
6181
6182 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6183 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6184 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 #line $LINENO "configure"
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <time.h>
6195
6196 int
6197 main ()
6198 {
6199 static struct tm ac_aggr;
6200 if (ac_aggr.tm_gmtoff)
6201 return 0;
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_member_struct_tm_tm_gmtoff=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <time.h>
6231
6232 int
6233 main ()
6234 {
6235 static struct tm ac_aggr;
6236 if (sizeof ac_aggr.tm_gmtoff)
6237 return 0;
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_member_struct_tm_tm_gmtoff=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_cv_member_struct_tm_tm_gmtoff=no
6260 fi
6261 rm -f conftest.$ac_objext conftest.$ac_ext
6262 fi
6263 rm -f conftest.$ac_objext conftest.$ac_ext
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6267 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HAVE_TM_GMTOFF 1
6271 _ACEOF
6272
6273 fi
6274
6275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6276 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6277 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <net/if.h>
6288
6289 int
6290 main ()
6291 {
6292 static struct ifreq ac_aggr;
6293 if (ac_aggr.ifr_flags)
6294 return 0;
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_member_struct_ifreq_ifr_flags=yes
6312 else
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <net/if.h>
6324
6325 int
6326 main ()
6327 {
6328 static struct ifreq ac_aggr;
6329 if (sizeof ac_aggr.ifr_flags)
6330 return 0;
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_member_struct_ifreq_ifr_flags=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ac_cv_member_struct_ifreq_ifr_flags=no
6353 fi
6354 rm -f conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 rm -f conftest.$ac_objext conftest.$ac_ext
6357 fi
6358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6359 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6360 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6361
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6364 _ACEOF
6365
6366
6367 fi
6368 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6369 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6370 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <net/if.h>
6381
6382 int
6383 main ()
6384 {
6385 static struct ifreq ac_aggr;
6386 if (ac_aggr.ifr_hwaddr)
6387 return 0;
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 cat >conftest.$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <net/if.h>
6417
6418 int
6419 main ()
6420 {
6421 static struct ifreq ac_aggr;
6422 if (sizeof ac_aggr.ifr_hwaddr)
6423 return 0;
6424 ;
6425 return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6446 fi
6447 rm -f conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 rm -f conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6452 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6453 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6457 _ACEOF
6458
6459
6460 fi
6461 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6462 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6463 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <net/if.h>
6474
6475 int
6476 main ()
6477 {
6478 static struct ifreq ac_aggr;
6479 if (ac_aggr.ifr_netmask)
6480 return 0;
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_member_struct_ifreq_ifr_netmask=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 cat >conftest.$ac_ext <<_ACEOF
6503 #line $LINENO "configure"
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <net/if.h>
6510
6511 int
6512 main ()
6513 {
6514 static struct ifreq ac_aggr;
6515 if (sizeof ac_aggr.ifr_netmask)
6516 return 0;
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_member_struct_ifreq_ifr_netmask=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ac_cv_member_struct_ifreq_ifr_netmask=no
6539 fi
6540 rm -f conftest.$ac_objext conftest.$ac_ext
6541 fi
6542 rm -f conftest.$ac_objext conftest.$ac_ext
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6546 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6550 _ACEOF
6551
6552
6553 fi
6554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6555 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6556 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 cat >conftest.$ac_ext <<_ACEOF
6560 #line $LINENO "configure"
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <net/if.h>
6567
6568 int
6569 main ()
6570 {
6571 static struct ifreq ac_aggr;
6572 if (ac_aggr.ifr_broadaddr)
6573 return 0;
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <net/if.h>
6603
6604 int
6605 main ()
6606 {
6607 static struct ifreq ac_aggr;
6608 if (sizeof ac_aggr.ifr_broadaddr)
6609 return 0;
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_member_struct_ifreq_ifr_broadaddr=no
6632 fi
6633 rm -f conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 rm -f conftest.$ac_objext conftest.$ac_ext
6636 fi
6637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6638 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6639 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6643 _ACEOF
6644
6645
6646 fi
6647 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6648 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6649 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 cat >conftest.$ac_ext <<_ACEOF
6653 #line $LINENO "configure"
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #include <net/if.h>
6660
6661 int
6662 main ()
6663 {
6664 static struct ifreq ac_aggr;
6665 if (ac_aggr.ifr_addr)
6666 return 0;
6667 ;
6668 return 0;
6669 }
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_member_struct_ifreq_ifr_addr=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 cat >conftest.$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <net/if.h>
6696
6697 int
6698 main ()
6699 {
6700 static struct ifreq ac_aggr;
6701 if (sizeof ac_aggr.ifr_addr)
6702 return 0;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_member_struct_ifreq_ifr_addr=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 ac_cv_member_struct_ifreq_ifr_addr=no
6725 fi
6726 rm -f conftest.$ac_objext conftest.$ac_ext
6727 fi
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6732 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6736 _ACEOF
6737
6738
6739 fi
6740
6741
6742
6743 echo "$as_me:$LINENO: checking for function prototypes" >&5
6744 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6745 if test "$ac_cv_prog_cc_stdc" != no; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747 echo "${ECHO_T}yes" >&6
6748
6749 cat >>confdefs.h <<\_ACEOF
6750 #define PROTOTYPES 1
6751 _ACEOF
6752
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define __PROTOTYPES 1
6756 _ACEOF
6757
6758 else
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6761 fi
6762
6763 echo "$as_me:$LINENO: checking for working volatile" >&5
6764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6765 if test "${ac_cv_c_volatile+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775
6776 int
6777 main ()
6778 {
6779
6780 volatile int x;
6781 int * volatile y;
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_c_volatile=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_cv_c_volatile=no
6804 fi
6805 rm -f conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6809 if test $ac_cv_c_volatile = no; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define volatile
6813 _ACEOF
6814
6815 fi
6816
6817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6819 if test "${ac_cv_c_const+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 cat >conftest.$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829
6830 int
6831 main ()
6832 {
6833 /* FIXME: Include the comments suggested by Paul. */
6834 #ifndef __cplusplus
6835 /* Ultrix mips cc rejects this. */
6836 typedef int charset[2];
6837 const charset x;
6838 /* SunOS 4.1.1 cc rejects this. */
6839 char const *const *ccp;
6840 char **p;
6841 /* NEC SVR4.0.2 mips cc rejects this. */
6842 struct point {int x, y;};
6843 static struct point const zero = {0,0};
6844 /* AIX XL C 1.02.0.0 rejects this.
6845 It does not let you subtract one const X* pointer from another in
6846 an arm of an if-expression whose if-part is not a constant
6847 expression */
6848 const char *g = "string";
6849 ccp = &g + (g ? g-g : 0);
6850 /* HPUX 7.0 cc rejects these. */
6851 ++ccp;
6852 p = (char**) ccp;
6853 ccp = (char const *const *) p;
6854 { /* SCO 3.2v4 cc rejects this. */
6855 char *t;
6856 char const *s = 0 ? (char *) 0 : (char const *) 0;
6857
6858 *t++ = 0;
6859 }
6860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6861 int x[] = {25, 17};
6862 const int *foo = &x[0];
6863 ++foo;
6864 }
6865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6866 typedef const int *iptr;
6867 iptr p = 0;
6868 ++p;
6869 }
6870 { /* AIX XL C 1.02.0.0 rejects this saying
6871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6872 struct s { int j; const int *ap[3]; };
6873 struct s *b; b->j = 5;
6874 }
6875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6876 const int foo = 10;
6877 }
6878 #endif
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_c_const=yes
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ac_cv_c_const=no
6902 fi
6903 rm -f conftest.$ac_objext conftest.$ac_ext
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6906 echo "${ECHO_T}$ac_cv_c_const" >&6
6907 if test $ac_cv_c_const = no; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define const
6911 _ACEOF
6912
6913 fi
6914
6915 echo "$as_me:$LINENO: checking for void * support" >&5
6916 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6917 if test "${emacs_cv_void_star+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927
6928 int
6929 main ()
6930 {
6931 void * foo;
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 emacs_cv_void_star=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 emacs_cv_void_star=no
6954 fi
6955 rm -f conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6958 echo "${ECHO_T}$emacs_cv_void_star" >&6
6959 if test $emacs_cv_void_star = yes; then
6960 cat >>confdefs.h <<\_ACEOF
6961 #define POINTER_TYPE void
6962 _ACEOF
6963
6964 else
6965 cat >>confdefs.h <<\_ACEOF
6966 #define POINTER_TYPE char
6967 _ACEOF
6968
6969 fi
6970
6971
6972
6973 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6975 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6976 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 cat >conftest.make <<\_ACEOF
6980 all:
6981 @echo 'ac_maketemp="$(MAKE)"'
6982 _ACEOF
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6985 if test -n "$ac_maketemp"; then
6986 eval ac_cv_prog_make_${ac_make}_set=yes
6987 else
6988 eval ac_cv_prog_make_${ac_make}_set=no
6989 fi
6990 rm -f conftest.make
6991 fi
6992 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994 echo "${ECHO_T}yes" >&6
6995 SET_MAKE=
6996 else
6997 echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999 SET_MAKE="MAKE=${MAKE-make}"
7000 fi
7001
7002
7003 echo "$as_me:$LINENO: checking for long file names" >&5
7004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7005 if test "${ac_cv_sys_long_file_names+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 ac_cv_sys_long_file_names=yes
7009 # Test for long file names in all the places we know might matter:
7010 # . the current directory, where building will happen
7011 # $prefix/lib where we will be installing things
7012 # $exec_prefix/lib likewise
7013 # eval it to expand exec_prefix.
7014 # $TMPDIR if set, where it might want to write temporary files
7015 # if $TMPDIR is not set:
7016 # /tmp where it might want to write temporary files
7017 # /var/tmp likewise
7018 # /usr/tmp likewise
7019 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7020 ac_tmpdirs=$TMPDIR
7021 else
7022 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7023 fi
7024 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7025 test -d $ac_dir || continue
7026 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7027 ac_xdir=$ac_dir/cf$$
7028 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7029 ac_tf1=$ac_xdir/conftest9012345
7030 ac_tf2=$ac_xdir/conftest9012346
7031 (echo 1 >$ac_tf1) 2>/dev/null
7032 (echo 2 >$ac_tf2) 2>/dev/null
7033 ac_val=`cat $ac_tf1 2>/dev/null`
7034 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7035 ac_cv_sys_long_file_names=no
7036 rm -rf $ac_xdir 2>/dev/null
7037 break
7038 fi
7039 rm -rf $ac_xdir 2>/dev/null
7040 done
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7044 if test $ac_cv_sys_long_file_names = yes; then
7045
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_LONG_FILE_NAMES 1
7048 _ACEOF
7049
7050 fi
7051
7052
7053 #### Choose a window system.
7054
7055 echo "$as_me:$LINENO: checking for X" >&5
7056 echo $ECHO_N "checking for X... $ECHO_C" >&6
7057
7058
7059 # Check whether --with-x or --without-x was given.
7060 if test "${with_x+set}" = set; then
7061 withval="$with_x"
7062
7063 fi;
7064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7065 if test "x$with_x" = xno; then
7066 # The user explicitly disabled X.
7067 have_x=disabled
7068 else
7069 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7070 # Both variables are already set.
7071 have_x=yes
7072 else
7073 if test "${ac_cv_have_x+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 # One or both of the vars are not set, and there is no cached value.
7077 ac_x_includes=no ac_x_libraries=no
7078 rm -fr conftest.dir
7079 if mkdir conftest.dir; then
7080 cd conftest.dir
7081 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7082 cat >Imakefile <<'_ACEOF'
7083 acfindx:
7084 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7085 _ACEOF
7086 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7088 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7089 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090 for ac_extension in a so sl; do
7091 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7092 test -f $ac_im_libdir/libX11.$ac_extension; then
7093 ac_im_usrlibdir=$ac_im_libdir; break
7094 fi
7095 done
7096 # Screen out bogus values from the imake configuration. They are
7097 # bogus both because they are the default anyway, and because
7098 # using them would break gcc on systems where it needs fixed includes.
7099 case $ac_im_incroot in
7100 /usr/include) ;;
7101 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7102 esac
7103 case $ac_im_usrlibdir in
7104 /usr/lib | /lib) ;;
7105 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7106 esac
7107 fi
7108 cd ..
7109 rm -fr conftest.dir
7110 fi
7111
7112 # Standard set of common directories for X headers.
7113 # Check X11 before X11Rn because it is often a symlink to the current release.
7114 ac_x_header_dirs='
7115 /usr/X11/include
7116 /usr/X11R6/include
7117 /usr/X11R5/include
7118 /usr/X11R4/include
7119
7120 /usr/include/X11
7121 /usr/include/X11R6
7122 /usr/include/X11R5
7123 /usr/include/X11R4
7124
7125 /usr/local/X11/include
7126 /usr/local/X11R6/include
7127 /usr/local/X11R5/include
7128 /usr/local/X11R4/include
7129
7130 /usr/local/include/X11
7131 /usr/local/include/X11R6
7132 /usr/local/include/X11R5
7133 /usr/local/include/X11R4
7134
7135 /usr/X386/include
7136 /usr/x386/include
7137 /usr/XFree86/include/X11
7138
7139 /usr/include
7140 /usr/local/include
7141 /usr/unsupported/include
7142 /usr/athena/include
7143 /usr/local/x11r5/include
7144 /usr/lpp/Xamples/include
7145
7146 /usr/openwin/include
7147 /usr/openwin/share/include'
7148
7149 if test "$ac_x_includes" = no; then
7150 # Guess where to find include files, by looking for Intrinsic.h.
7151 # First, try using that file with no special directory specified.
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <X11/Intrinsic.h>
7160 _ACEOF
7161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null; then
7169 if test -s conftest.err; then
7170 ac_cpp_err=$ac_c_preproc_warn_flag
7171 else
7172 ac_cpp_err=
7173 fi
7174 else
7175 ac_cpp_err=yes
7176 fi
7177 if test -z "$ac_cpp_err"; then
7178 # We can compile using X headers with no special include directory.
7179 ac_x_includes=
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 for ac_dir in $ac_x_header_dirs; do
7185 if test -r "$ac_dir/X11/Intrinsic.h"; then
7186 ac_x_includes=$ac_dir
7187 break
7188 fi
7189 done
7190 fi
7191 rm -f conftest.err conftest.$ac_ext
7192 fi # $ac_x_includes = no
7193
7194 if test "$ac_x_libraries" = no; then
7195 # Check for the libraries.
7196 # See if we find them without any special options.
7197 # Don't add to $LIBS permanently.
7198 ac_save_LIBS=$LIBS
7199 LIBS="-lXt $LIBS"
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <X11/Intrinsic.h>
7208 int
7209 main ()
7210 {
7211 XtMalloc (0)
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 LIBS=$ac_save_LIBS
7229 # We can link X programs with no special library path.
7230 ac_x_libraries=
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 LIBS=$ac_save_LIBS
7236 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7237 do
7238 # Don't even attempt the hair of trying to link an X program!
7239 for ac_extension in a so sl; do
7240 if test -r $ac_dir/libXt.$ac_extension; then
7241 ac_x_libraries=$ac_dir
7242 break 2
7243 fi
7244 done
7245 done
7246 fi
7247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7248 fi # $ac_x_libraries = no
7249
7250 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7251 # Didn't find X anywhere. Cache the known absence of X.
7252 ac_cv_have_x="have_x=no"
7253 else
7254 # Record where we found X for the cache.
7255 ac_cv_have_x="have_x=yes \
7256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7257 fi
7258 fi
7259
7260 fi
7261 eval "$ac_cv_have_x"
7262 fi # $with_x != no
7263
7264 if test "$have_x" != yes; then
7265 echo "$as_me:$LINENO: result: $have_x" >&5
7266 echo "${ECHO_T}$have_x" >&6
7267 no_x=yes
7268 else
7269 # If each of the values was on the command line, it overrides each guess.
7270 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7271 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7272 # Update the cache value to reflect the command line values.
7273 ac_cv_have_x="have_x=yes \
7274 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7275 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7277 fi
7278
7279 if test "$no_x" = yes; then
7280 window_system=none
7281 else
7282 window_system=x11
7283 fi
7284
7285 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7286 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7287 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7288 x_default_search_path=""
7289 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7290 x_search_path="\
7291 ${x_library}/X11/%L/%T/%N%C%S:\
7292 ${x_library}/X11/%l/%T/%N%C%S:\
7293 ${x_library}/X11/%T/%N%C%S:\
7294 ${x_library}/X11/%L/%T/%N%S:\
7295 ${x_library}/X11/%l/%T/%N%S:\
7296 ${x_library}/X11/%T/%N%S"
7297 if test x"${x_default_search_path}" = x; then
7298 x_default_search_path=${x_search_path}
7299 else
7300 x_default_search_path="${x_search_path}:${x_default_search_path}"
7301 fi
7302 done
7303 fi
7304 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7305 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7306 fi
7307
7308 if test x"${x_includes}" = x; then
7309 bitmapdir=/usr/include/X11/bitmaps
7310 else
7311 # accumulate include directories that have X11 bitmap subdirectories
7312 bmd_acc="dummyval"
7313 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7314 if test -d "${bmd}/X11/bitmaps"; then
7315 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7316 fi
7317 if test -d "${bmd}/bitmaps"; then
7318 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7319 fi
7320 done
7321 if test ${bmd_acc} != "dummyval"; then
7322 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7323 fi
7324 fi
7325
7326 case "${window_system}" in
7327 x11 )
7328 HAVE_X_WINDOWS=yes
7329 HAVE_X11=yes
7330 case "${with_x_toolkit}" in
7331 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7332 motif ) USE_X_TOOLKIT=MOTIF ;;
7333 gtk ) with_gtk=yes
7334 USE_X_TOOLKIT=none ;;
7335 no ) USE_X_TOOLKIT=none ;;
7336 * ) USE_X_TOOLKIT=maybe ;;
7337 esac
7338 ;;
7339 none )
7340 HAVE_X_WINDOWS=no
7341 HAVE_X11=no
7342 USE_X_TOOLKIT=none
7343 ;;
7344 esac
7345
7346 ### If we're using X11, we should use the X menu package.
7347 HAVE_MENUS=no
7348 case ${HAVE_X11} in
7349 yes ) HAVE_MENUS=yes ;;
7350 esac
7351
7352 if test "${opsys}" = "hpux9"; then
7353 case "${x_libraries}" in
7354 *X11R4* )
7355 opsysfile="s/hpux9-x11r4.h"
7356 ;;
7357 esac
7358 fi
7359
7360 if test "${opsys}" = "hpux9shr"; then
7361 case "${x_libraries}" in
7362 *X11R4* )
7363 opsysfile="s/hpux9shxr4.h"
7364 ;;
7365 esac
7366 fi
7367
7368 ### Compute the unexec source name from the object name.
7369 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7370
7371 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7372 # Assume not, until told otherwise.
7373 GNU_MALLOC=yes
7374 doug_lea_malloc=yes
7375 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7376 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7377 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 #line $LINENO "configure"
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char malloc_get_state (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7391 #ifdef __STDC__
7392 # include <limits.h>
7393 #else
7394 # include <assert.h>
7395 #endif
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 #ifdef __cplusplus
7398 extern "C"
7399 {
7400 #endif
7401 /* We use char because int might match the return type of a gcc2
7402 builtin and then its argument prototype would still apply. */
7403 char malloc_get_state ();
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7408 choke me
7409 #else
7410 char (*f) () = malloc_get_state;
7411 #endif
7412 #ifdef __cplusplus
7413 }
7414 #endif
7415
7416 int
7417 main ()
7418 {
7419 return f != malloc_get_state;
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 rm -f conftest.$ac_objext conftest$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_func_malloc_get_state=yes
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_cv_func_malloc_get_state=no
7442 fi
7443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7444 fi
7445 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7446 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7447 if test $ac_cv_func_malloc_get_state = yes; then
7448 :
7449 else
7450 doug_lea_malloc=no
7451 fi
7452
7453 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7454 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7455 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char malloc_set_state (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 {
7478 #endif
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char malloc_set_state ();
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7486 choke me
7487 #else
7488 char (*f) () = malloc_set_state;
7489 #endif
7490 #ifdef __cplusplus
7491 }
7492 #endif
7493
7494 int
7495 main ()
7496 {
7497 return f != malloc_set_state;
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_malloc_set_state=yes
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 ac_cv_func_malloc_set_state=no
7520 fi
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522 fi
7523 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7524 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7525 if test $ac_cv_func_malloc_set_state = yes; then
7526 :
7527 else
7528 doug_lea_malloc=no
7529 fi
7530
7531 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7532 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7533 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 extern void (* __after_morecore_hook)();
7544 int
7545 main ()
7546 {
7547 __after_morecore_hook = 0
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 emacs_cv_var___after_morecore_hook=yes
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 emacs_cv_var___after_morecore_hook=no
7570 fi
7571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7572 fi
7573 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7574 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7575 if test $emacs_cv_var___after_morecore_hook = no; then
7576 doug_lea_malloc=no
7577 fi
7578 if test "${system_malloc}" = "yes"; then
7579 GNU_MALLOC=no
7580 GNU_MALLOC_reason="
7581 (The GNU allocators don't work with this system configuration.)"
7582 fi
7583 if test "$doug_lea_malloc" = "yes" ; then
7584 if test "$GNU_MALLOC" = yes ; then
7585 GNU_MALLOC_reason="
7586 (Using Doug Lea's new malloc from the GNU C Library.)"
7587 fi
7588
7589 cat >>confdefs.h <<\_ACEOF
7590 #define DOUG_LEA_MALLOC 1
7591 _ACEOF
7592
7593 fi
7594
7595 if test x"${REL_ALLOC}" = x; then
7596 REL_ALLOC=${GNU_MALLOC}
7597 fi
7598
7599
7600
7601
7602 for ac_header in stdlib.h unistd.h
7603 do
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 fi
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613 else
7614 # Is the header compilable?
7615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_header_compiler=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_header_compiler=no
7645 fi
7646 rm -f conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7649
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <$ac_header>
7661 _ACEOF
7662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag
7672 else
7673 ac_cpp_err=
7674 fi
7675 else
7676 ac_cpp_err=yes
7677 fi
7678 if test -z "$ac_cpp_err"; then
7679 ac_header_preproc=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_header_preproc=no
7685 fi
7686 rm -f conftest.err conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7689
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc in
7692 yes:no )
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 (
7698 cat <<\_ASBOX
7699 ## ------------------------------------ ##
7700 ## Report this to bug-autoconf@gnu.org. ##
7701 ## ------------------------------------ ##
7702 _ASBOX
7703 ) |
7704 sed "s/^/$as_me: WARNING: /" >&2
7705 ;;
7706 no:yes )
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 (
7714 cat <<\_ASBOX
7715 ## ------------------------------------ ##
7716 ## Report this to bug-autoconf@gnu.org. ##
7717 ## ------------------------------------ ##
7718 _ASBOX
7719 ) |
7720 sed "s/^/$as_me: WARNING: /" >&2
7721 ;;
7722 esac
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 eval "$as_ac_Header=$ac_header_preproc"
7729 fi
7730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7732
7733 fi
7734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7737 _ACEOF
7738
7739 fi
7740
7741 done
7742
7743
7744 for ac_func in getpagesize
7745 do
7746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below.
7761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7762 <limits.h> exists even on freestanding compilers. */
7763 #ifdef __STDC__
7764 # include <limits.h>
7765 #else
7766 # include <assert.h>
7767 #endif
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 #ifdef __cplusplus
7770 extern "C"
7771 {
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char $ac_func ();
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7780 choke me
7781 #else
7782 char (*f) () = $ac_func;
7783 #endif
7784 #ifdef __cplusplus
7785 }
7786 #endif
7787
7788 int
7789 main ()
7790 {
7791 return f != $ac_func;
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 eval "$as_ac_var=yes"
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 eval "$as_ac_var=no"
7814 fi
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 fi
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7819 if test `eval echo '${'$as_ac_var'}'` = yes; then
7820 cat >>confdefs.h <<_ACEOF
7821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7822 _ACEOF
7823
7824 fi
7825 done
7826
7827 echo "$as_me:$LINENO: checking for working mmap" >&5
7828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 if test "$cross_compiling" = yes; then
7833 ac_cv_func_mmap_fixed_mapped=no
7834 else
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 $ac_includes_default
7843 /* malloc might have been renamed as rpl_malloc. */
7844 #undef malloc
7845
7846 /* Thanks to Mike Haertel and Jim Avera for this test.
7847 Here is a matrix of mmap possibilities:
7848 mmap private not fixed
7849 mmap private fixed at somewhere currently unmapped
7850 mmap private fixed at somewhere already mapped
7851 mmap shared not fixed
7852 mmap shared fixed at somewhere currently unmapped
7853 mmap shared fixed at somewhere already mapped
7854 For private mappings, we should verify that changes cannot be read()
7855 back from the file, nor mmap's back from the file at a different
7856 address. (There have been systems where private was not correctly
7857 implemented like the infamous i386 svr4.0, and systems where the
7858 VM page cache was not coherent with the file system buffer cache
7859 like early versions of FreeBSD and possibly contemporary NetBSD.)
7860 For shared mappings, we should conversely verify that changes get
7861 propagated back to all the places they're supposed to be.
7862
7863 Grep wants private fixed already mapped.
7864 The main things grep needs to know about mmap are:
7865 * does it exist and is it safe to write into the mmap'd area
7866 * how to use it (BSD variants) */
7867
7868 #include <fcntl.h>
7869 #include <sys/mman.h>
7870
7871 #if !STDC_HEADERS && !HAVE_STDLIB_H
7872 char *malloc ();
7873 #endif
7874
7875 /* This mess was copied from the GNU getpagesize.h. */
7876 #if !HAVE_GETPAGESIZE
7877 /* Assume that all systems that can run configure have sys/param.h. */
7878 # if !HAVE_SYS_PARAM_H
7879 # define HAVE_SYS_PARAM_H 1
7880 # endif
7881
7882 # ifdef _SC_PAGESIZE
7883 # define getpagesize() sysconf(_SC_PAGESIZE)
7884 # else /* no _SC_PAGESIZE */
7885 # if HAVE_SYS_PARAM_H
7886 # include <sys/param.h>
7887 # ifdef EXEC_PAGESIZE
7888 # define getpagesize() EXEC_PAGESIZE
7889 # else /* no EXEC_PAGESIZE */
7890 # ifdef NBPG
7891 # define getpagesize() NBPG * CLSIZE
7892 # ifndef CLSIZE
7893 # define CLSIZE 1
7894 # endif /* no CLSIZE */
7895 # else /* no NBPG */
7896 # ifdef NBPC
7897 # define getpagesize() NBPC
7898 # else /* no NBPC */
7899 # ifdef PAGESIZE
7900 # define getpagesize() PAGESIZE
7901 # endif /* PAGESIZE */
7902 # endif /* no NBPC */
7903 # endif /* no NBPG */
7904 # endif /* no EXEC_PAGESIZE */
7905 # else /* no HAVE_SYS_PARAM_H */
7906 # define getpagesize() 8192 /* punt totally */
7907 # endif /* no HAVE_SYS_PARAM_H */
7908 # endif /* no _SC_PAGESIZE */
7909
7910 #endif /* no HAVE_GETPAGESIZE */
7911
7912 int
7913 main ()
7914 {
7915 char *data, *data2, *data3;
7916 int i, pagesize;
7917 int fd;
7918
7919 pagesize = getpagesize ();
7920
7921 /* First, make a file with some known garbage in it. */
7922 data = (char *) malloc (pagesize);
7923 if (!data)
7924 exit (1);
7925 for (i = 0; i < pagesize; ++i)
7926 *(data + i) = rand ();
7927 umask (0);
7928 fd = creat ("conftest.mmap", 0600);
7929 if (fd < 0)
7930 exit (1);
7931 if (write (fd, data, pagesize) != pagesize)
7932 exit (1);
7933 close (fd);
7934
7935 /* Next, try to mmap the file at a fixed address which already has
7936 something else allocated at it. If we can, also make sure that
7937 we see the same garbage. */
7938 fd = open ("conftest.mmap", O_RDWR);
7939 if (fd < 0)
7940 exit (1);
7941 data2 = (char *) malloc (2 * pagesize);
7942 if (!data2)
7943 exit (1);
7944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7947 exit (1);
7948 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data2 + i))
7950 exit (1);
7951
7952 /* Finally, make sure that changes to the mapped area do not
7953 percolate back to the file as seen by read(). (This is a bug on
7954 some variants of i386 svr4.0.) */
7955 for (i = 0; i < pagesize; ++i)
7956 *(data2 + i) = *(data2 + i) + 1;
7957 data3 = (char *) malloc (pagesize);
7958 if (!data3)
7959 exit (1);
7960 if (read (fd, data3, pagesize) != pagesize)
7961 exit (1);
7962 for (i = 0; i < pagesize; ++i)
7963 if (*(data + i) != *(data3 + i))
7964 exit (1);
7965 close (fd);
7966 exit (0);
7967 }
7968 _ACEOF
7969 rm -f conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_mmap_fixed_mapped=yes
7981 else
7982 echo "$as_me: program exited with status $ac_status" >&5
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 ( exit $ac_status )
7987 ac_cv_func_mmap_fixed_mapped=no
7988 fi
7989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7993 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7994 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_MMAP 1
7998 _ACEOF
7999
8000 fi
8001 rm -f conftest.mmap
8002
8003 if test $use_mmap_for_buffers = yes; then
8004 REL_ALLOC=no
8005 fi
8006
8007 LIBS="$libsrc_libs $LIBS"
8008
8009
8010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8011 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-ldnet $LIBS"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024
8025 /* Override any gcc2 internal prototype to avoid an error. */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031 char dnet_ntoa ();
8032 int
8033 main ()
8034 {
8035 dnet_ntoa ();
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_dnet_dnet_ntoa=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_cv_lib_dnet_dnet_ntoa=no
8058 fi
8059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_LIBDNET 1
8067 _ACEOF
8068
8069 LIBS="-ldnet $LIBS"
8070
8071 fi
8072
8073
8074 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8075 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8076 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-lXbsd $LIBS"
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088
8089
8090 int
8091 main ()
8092 {
8093 main ();
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_lib_Xbsd_main=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_cv_lib_Xbsd_main=no
8116 fi
8117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8119 fi
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8121 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8122 if test $ac_cv_lib_Xbsd_main = yes; then
8123 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8124 fi
8125
8126
8127
8128 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8129 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8130 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-lpthreads $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142
8143 /* Override any gcc2 internal prototype to avoid an error. */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8149 char cma_open ();
8150 int
8151 main ()
8152 {
8153 cma_open ();
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_pthreads_cma_open=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_cv_lib_pthreads_cma_open=no
8176 fi
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8181 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8182 if test $ac_cv_lib_pthreads_cma_open = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define HAVE_LIBPTHREADS 1
8185 _ACEOF
8186
8187 LIBS="-lpthreads $LIBS"
8188
8189 fi
8190
8191
8192 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8193 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8194 if test -d /usr/X386/include; then
8195 HAVE_XFREE386=yes
8196 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8197 else
8198 HAVE_XFREE386=no
8199 fi
8200 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8201 echo "${ECHO_T}$HAVE_XFREE386" >&6
8202
8203
8204 case ${host_os} in
8205 aix*)
8206 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8207 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8208 if test "${gdb_cv_bigtoc+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211
8212 case $GCC in
8213 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8214 *) gdb_cv_bigtoc=-bbigtoc ;;
8215 esac
8216
8217 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225
8226 int
8227 main ()
8228 {
8229 int i;
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 :
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 gdb_cv_bigtoc=
8252 fi
8253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254
8255 fi
8256 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8257 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8258 ;;
8259 esac
8260
8261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8262 # used for the tests that follow. We set them back to REAL_CFLAGS and
8263 # REAL_CPPFLAGS later on.
8264
8265 REAL_CPPFLAGS="$CPPFLAGS"
8266
8267 if test "${HAVE_X11}" = "yes"; then
8268 DEFS="$C_SWITCH_X_SITE $DEFS"
8269 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8270 LIBS="$LIBX $LIBS"
8271 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8272 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8273
8274 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8275 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8276 # but it's more convenient here to set LD_RUN_PATH
8277 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8278 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8279 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8280 export LD_RUN_PATH
8281 fi
8282
8283 if test "${opsys}" = "gnu-linux"; then
8284 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8285 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293
8294 int
8295 main ()
8296 {
8297 XOpenDisplay ("foo");
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 xlinux_first_failure=no
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 xlinux_first_failure=yes
8320 fi
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 if test "${xlinux_first_failure}" = "yes"; then
8323 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8324 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8325 OLD_CPPFLAGS="$CPPFLAGS"
8326 OLD_LIBS="$LIBS"
8327 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8328 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8329 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8330 LIBS="$LIBS -b i486-linuxaout"
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338
8339 int
8340 main ()
8341 {
8342 XOpenDisplay ("foo");
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 xlinux_second_failure=no
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 xlinux_second_failure=yes
8365 fi
8366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8367 if test "${xlinux_second_failure}" = "yes"; then
8368 # If we get the same failure with -b, there is no use adding -b.
8369 # So take it out. This plays safe.
8370 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8371 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8372 CPPFLAGS="$OLD_CPPFLAGS"
8373 LIBS="$OLD_LIBS"
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376 else
8377 echo "$as_me:$LINENO: result: yes" >&5
8378 echo "${ECHO_T}yes" >&6
8379 fi
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8383 fi
8384 fi
8385
8386 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8387 # header files included from there.
8388 echo "$as_me:$LINENO: checking for Xkb" >&5
8389 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <X11/Xlib.h>
8398 #include <X11/XKBlib.h>
8399 int
8400 main ()
8401 {
8402 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 emacs_xkb=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 emacs_xkb=no
8425 fi
8426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8428 echo "${ECHO_T}$emacs_xkb" >&6
8429 if test $emacs_xkb = yes; then
8430
8431 cat >>confdefs.h <<\_ACEOF
8432 #define HAVE_XKBGETKEYBOARD 1
8433 _ACEOF
8434
8435 fi
8436
8437
8438
8439
8440
8441 for ac_func in XrmSetDatabase XScreenResourceString \
8442 XScreenNumberOfScreen XSetWMProtocols
8443 do
8444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8445 echo "$as_me:$LINENO: checking for $ac_func" >&5
8446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8447 if eval "test \"\${$as_ac_var+set}\" = set"; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466 /* Override any gcc2 internal prototype to avoid an error. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 {
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char $ac_func ();
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8478 choke me
8479 #else
8480 char (*f) () = $ac_func;
8481 #endif
8482 #ifdef __cplusplus
8483 }
8484 #endif
8485
8486 int
8487 main ()
8488 {
8489 return f != $ac_func;
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_var=yes"
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 eval "$as_ac_var=no"
8512 fi
8513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 fi
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8517 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8520 _ACEOF
8521
8522 fi
8523 done
8524
8525 fi
8526
8527 if test "${window_system}" = "x11"; then
8528 echo "$as_me:$LINENO: checking X11 version 6" >&5
8529 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8530 if test "${emacs_cv_x11_version_6+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <X11/Xlib.h>
8541 int
8542 main ()
8543 {
8544 #if XlibSpecificationRelease < 6
8545 fail;
8546 #endif
8547
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 emacs_cv_x11_version_6=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 emacs_cv_x11_version_6=no
8570 fi
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 fi
8573
8574 if test $emacs_cv_x11_version_6 = yes; then
8575 echo "$as_me:$LINENO: result: 6 or newer" >&5
8576 echo "${ECHO_T}6 or newer" >&6
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_X11R6 1
8580 _ACEOF
8581
8582 else
8583 echo "$as_me:$LINENO: result: before 6" >&5
8584 echo "${ECHO_T}before 6" >&6
8585 fi
8586 fi
8587
8588 if test "${window_system}" = "x11"; then
8589 echo "$as_me:$LINENO: checking X11 version 5" >&5
8590 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8591 if test "${emacs_cv_x11_version_5+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <X11/Xlib.h>
8602 int
8603 main ()
8604 {
8605 #if XlibSpecificationRelease < 5
8606 fail;
8607 #endif
8608
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 emacs_cv_x11_version_5=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 emacs_cv_x11_version_5=no
8631 fi
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633 fi
8634
8635 if test $emacs_cv_x11_version_5 = yes; then
8636 echo "$as_me:$LINENO: result: 5 or newer" >&5
8637 echo "${ECHO_T}5 or newer" >&6
8638 HAVE_X11R5=yes
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_X11R5 1
8642 _ACEOF
8643
8644 else
8645 HAVE_X11R5=no
8646 echo "$as_me:$LINENO: result: before 5" >&5
8647 echo "${ECHO_T}before 5" >&6
8648 fi
8649 fi
8650
8651
8652
8653 HAVE_GTK=no
8654 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8655 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8656 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8657 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8658 { (exit 1); exit 1; }; };
8659 fi
8660 GLIB_REQUIRED=2.0.1
8661 GTK_REQUIRED=2.0.1
8662 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8663
8664 if test "X${with_pkg_config_prog}" != X; then
8665 PKG_CONFIG="${with_pkg_config_prog}"
8666 fi
8667
8668 succeeded=no
8669
8670 if test -z "$PKG_CONFIG"; then
8671 # Extract the first word of "pkg-config", so it can be a program name with args.
8672 set dummy pkg-config; ac_word=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 case $PKG_CONFIG in
8679 [\\/]* | ?:[\\/]*)
8680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8681 ;;
8682 *)
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696
8697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8698 ;;
8699 esac
8700 fi
8701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8702
8703 if test -n "$PKG_CONFIG"; then
8704 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8705 echo "${ECHO_T}$PKG_CONFIG" >&6
8706 else
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8709 fi
8710
8711 fi
8712
8713 if test "$PKG_CONFIG" = "no" ; then
8714 echo "*** The pkg-config script could not be found. Make sure it is"
8715 echo "*** in your path, or give the full path to pkg-config with"
8716 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8718 else
8719 PKG_CONFIG_MIN_VERSION=0.9.0
8720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8721 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8722 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8723
8724 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727 succeeded=yes
8728
8729 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8730 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8731 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8732 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8733 echo "${ECHO_T}$GTK_CFLAGS" >&6
8734
8735 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8736 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8737 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8738 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8739 echo "${ECHO_T}$GTK_LIBS" >&6
8740 else
8741 GTK_CFLAGS=""
8742 GTK_LIBS=""
8743 ## If we have a custom action on failure, don't print errors, but
8744 ## do set a variable so people can do so.
8745 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8746 echo $GTK_PKG_ERRORS
8747 fi
8748
8749
8750
8751 else
8752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8754 fi
8755 fi
8756
8757 if test $succeeded = yes; then
8758 :
8759 else
8760 { { 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
8761 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;}
8762 { (exit 1); exit 1; }; }
8763 fi
8764
8765
8766
8767 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$GTK_LIBS $LIBS"
8770 HAVE_GTK=yes
8771
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_GTK 1
8774 _ACEOF
8775
8776 USE_X_TOOLKIT=none
8777
8778 with_toolkit_scroll_bars=yes
8779
8780 HAVE_GTK_MULTIDISPLAY=no
8781
8782 for ac_func in gdk_display_open
8783 do
8784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8801 #ifdef __STDC__
8802 # include <limits.h>
8803 #else
8804 # include <assert.h>
8805 #endif
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 {
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char $ac_func ();
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8818 choke me
8819 #else
8820 char (*f) () = $ac_func;
8821 #endif
8822 #ifdef __cplusplus
8823 }
8824 #endif
8825
8826 int
8827 main ()
8828 {
8829 return f != $ac_func;
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_var=yes"
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 eval "$as_ac_var=no"
8852 fi
8853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854 fi
8855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857 if test `eval echo '${'$as_ac_var'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8860 _ACEOF
8861 HAVE_GTK_MULTIDISPLAY=yes
8862 fi
8863 done
8864
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_GTK_MULTIDISPLAY 1
8869 _ACEOF
8870
8871 fi
8872 fi
8873
8874 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8875 if test x"${HAVE_X11R5}" = xyes; then
8876 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8877 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8878 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888
8889 #include <X11/Intrinsic.h>
8890 #include <X11/Xaw/Simple.h>
8891 int
8892 main ()
8893 {
8894
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 emacs_cv_x11_version_5_with_xaw=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 emacs_cv_x11_version_5_with_xaw=no
8917 fi
8918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8919 fi
8920
8921 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8922 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8923 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8924 USE_X_TOOLKIT=LUCID
8925 else
8926 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8927 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8928 USE_X_TOOLKIT=none
8929 fi
8930 else
8931 USE_X_TOOLKIT=none
8932 fi
8933 fi
8934
8935 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8936
8937 if test "${USE_X_TOOLKIT}" != "none"; then
8938 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8939 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8940 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 #include <X11/Intrinsic.h>
8951 int
8952 main ()
8953 {
8954 #if XtSpecificationRelease < 6
8955 fail;
8956 #endif
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 emacs_cv_x11_toolkit_version_6=yes
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 emacs_cv_x11_toolkit_version_6=no
8980 fi
8981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8982 fi
8983
8984 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8985 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8986 echo "$as_me:$LINENO: result: 6 or newer" >&5
8987 echo "${ECHO_T}6 or newer" >&6
8988
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_X11XTR6 1
8991 _ACEOF
8992
8993 else
8994 echo "$as_me:$LINENO: result: before 6" >&5
8995 echo "${ECHO_T}before 6" >&6
8996 fi
8997
8998 OLDLIBS="$LIBS"
8999 if test x$HAVE_X11XTR6 = xyes; then
9000 LIBS="-lXt -lSM -lICE $LIBS"
9001 else
9002 LIBS="-lXt $LIBS"
9003 fi
9004
9005 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9006 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9007 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 ac_check_lib_save_LIBS=$LIBS
9011 LIBS="-lXmu $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019
9020 /* Override any gcc2 internal prototype to avoid an error. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char XmuConvertStandardSelection ();
9027 int
9028 main ()
9029 {
9030 XmuConvertStandardSelection ();
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9053 fi
9054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9055 LIBS=$ac_check_lib_save_LIBS
9056 fi
9057 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_LIBXMU 1
9062 _ACEOF
9063
9064 LIBS="-lXmu $LIBS"
9065
9066 fi
9067
9068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9069 fi
9070
9071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9072 if test "${HAVE_X11}" = "yes"; then
9073 if test "${USE_X_TOOLKIT}" != "none"; then
9074
9075 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-lXext $LIBS"
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char XShapeQueryExtension ();
9097 int
9098 main ()
9099 {
9100 XShapeQueryExtension ();
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_Xext_XShapeQueryExtension=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_lib_Xext_XShapeQueryExtension=no
9123 fi
9124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9128 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9129 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_LIBXEXT 1
9132 _ACEOF
9133
9134 LIBS="-lXext $LIBS"
9135
9136 fi
9137
9138 fi
9139 fi
9140
9141 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9142 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9143 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9144 if test "${emacs_cv_lesstif+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 # We put this in CFLAGS temporarily to precede other -I options
9148 # that might be in CFLAGS temporarily.
9149 # We put this in CPPFLAGS where it precedes the other -I options.
9150 OLD_CPPFLAGS=$CPPFLAGS
9151 OLD_CFLAGS=$CFLAGS
9152 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9153 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9162 int
9163 main ()
9164 {
9165 int x = 5;
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 emacs_cv_lesstif=yes
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 emacs_cv_lesstif=no
9188 fi
9189 rm -f conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9192 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9193 if test $emacs_cv_lesstif = yes; then
9194 # Make sure this -I option remains in CPPFLAGS after it is set
9195 # back to REAL_CPPFLAGS.
9196 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9197 # have those other -I options anyway. Ultimately, having this
9198 # directory ultimately in CPPFLAGS will be enough.
9199 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9200 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9201 else
9202 CFLAGS=$OLD_CFLAGS
9203 CPPFLAGS=$OLD_CPPFLAGS
9204 fi
9205 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9206 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <Xm/Xm.h>
9218 int
9219 main ()
9220 {
9221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9222 int x = 5;
9223 #else
9224 Motif version prior to 2.1.
9225 #endif
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 emacs_cv_motif_version_2_1=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 emacs_cv_motif_version_2_1=no
9248 fi
9249 rm -f conftest.$ac_objext conftest.$ac_ext
9250 fi
9251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9253 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
9254 if test $emacs_cv_motif_version_2_1 = yes; then
9255 HAVE_LIBXP=no
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_MOTIF_2_1 1
9259 _ACEOF
9260
9261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lXp $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275
9276 /* Override any gcc2 internal prototype to avoid an error. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282 char XpCreateContext ();
9283 int
9284 main ()
9285 {
9286 XpCreateContext ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_lib_Xp_XpCreateContext=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ac_cv_lib_Xp_XpCreateContext=no
9309 fi
9310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9315 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9316 HAVE_LIBXP=yes
9317 fi
9318
9319 if test ${HAVE_LIBXP} = yes; then
9320
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_LIBXP 1
9323 _ACEOF
9324
9325 fi
9326 fi
9327 fi
9328
9329 ### Is -lXaw3d available?
9330 HAVE_XAW3D=no
9331 if test "${HAVE_X11}" = "yes"; then
9332 if test "${USE_X_TOOLKIT}" != "none"; then
9333 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9334 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9335 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338 cat >conftest.$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <X11/Xaw3d/Scrollbar.h>
9346 _ACEOF
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev/null; then
9355 if test -s conftest.err; then
9356 ac_cpp_err=$ac_c_preproc_warn_flag
9357 else
9358 ac_cpp_err=
9359 fi
9360 else
9361 ac_cpp_err=yes
9362 fi
9363 if test -z "$ac_cpp_err"; then
9364 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
9370 fi
9371 rm -f conftest.err conftest.$ac_ext
9372 fi
9373 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9374 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9375 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9376 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9377 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lXaw3d $LIBS"
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 #ifdef __cplusplus
9393 extern "C"
9394 #endif
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9397 char XawScrollbarSetThumb ();
9398 int
9399 main ()
9400 {
9401 XawScrollbarSetThumb ();
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
9424 fi
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9427 fi
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9429 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9430 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9431 HAVE_XAW3D=yes
9432 fi
9433
9434 fi
9435
9436
9437 if test "${HAVE_XAW3D}" = "yes"; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_XAW3D 1
9441 _ACEOF
9442
9443 fi
9444 fi
9445 fi
9446
9447
9448
9449 USE_TOOLKIT_SCROLL_BARS=no
9450 if test "${with_toolkit_scroll_bars}" != "no"; then
9451 if test "${USE_X_TOOLKIT}" != "none"; then
9452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define USE_TOOLKIT_SCROLL_BARS 1
9455 _ACEOF
9456
9457 HAVE_XAW3D=no
9458 USE_TOOLKIT_SCROLL_BARS=yes
9459 elif test "${HAVE_XAW3D}" = "yes"; then
9460 cat >>confdefs.h <<\_ACEOF
9461 #define USE_TOOLKIT_SCROLL_BARS 1
9462 _ACEOF
9463
9464 USE_TOOLKIT_SCROLL_BARS=yes
9465 fi
9466 elif test "${HAVE_GTK}" = "yes"; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define USE_TOOLKIT_SCROLL_BARS 1
9469 _ACEOF
9470
9471 USE_TOOLKIT_SCROLL_BARS=yes
9472 fi
9473 fi
9474
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482
9483 #include <X11/Xlib.h>
9484 #include <X11/Xresource.h>
9485 int
9486 main ()
9487 {
9488 XIMProc callback;
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9495 (eval $ac_compile) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 HAVE_XIM=yes
9506
9507 cat >>confdefs.h <<\_ACEOF
9508 #define HAVE_XIM 1
9509 _ACEOF
9510
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515 HAVE_XIM=no
9516 fi
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9518
9519
9520 if test "${with_xim}" != "no"; then
9521
9522 cat >>confdefs.h <<\_ACEOF
9523 #define USE_XIM 1
9524 _ACEOF
9525
9526 fi
9527
9528
9529 if test "${HAVE_XIM}" != "no"; then
9530 late_CFLAGS=$CFLAGS
9531 if test "$GCC" = yes; then
9532 CFLAGS="$CFLAGS --pedantic-errors"
9533 fi
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541
9542 #include <X11/Xlib.h>
9543 #include <X11/Xresource.h>
9544 int
9545 main ()
9546 {
9547 Display *display;
9548 XrmDatabase db;
9549 char *res_name;
9550 char *res_class;
9551 XIMProc callback;
9552 XPointer *client_data;
9553 #ifndef __GNUC__
9554 /* If we're not using GCC, it's probably not XFree86, and this is
9555 probably right, but we can't use something like --pedantic-errors. */
9556 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9557 char*, XIMProc, XPointer*);
9558 #endif
9559 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9560 client_data);
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 emacs_cv_arg6_star=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 fi
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584
9585 if test "$emacs_cv_arg6_star" = yes; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9588 _ACEOF
9589
9590 else
9591 cat >>confdefs.h <<\_ACEOF
9592 #define XRegisterIMInstantiateCallback_arg6 XPointer
9593 _ACEOF
9594
9595 fi
9596 CFLAGS=$late_CFLAGS
9597 fi
9598
9599 ### Use -lXpm if available, unless `--with-xpm=no'.
9600 HAVE_XPM=no
9601 if test "${HAVE_X11}" = "yes"; then
9602 if test "${with_xpm}" != "no"; then
9603 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9604 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9605 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 fi
9609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9610 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9611 else
9612 # Is the header compilable?
9613 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9614 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 #include <X11/xpm.h>
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 ac_header_compiler=no
9643 fi
9644 rm -f conftest.$ac_objext conftest.$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6
9647
9648 # Is the header present?
9649 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9650 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <X11/xpm.h>
9659 _ACEOF
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev/null; then
9668 if test -s conftest.err; then
9669 ac_cpp_err=$ac_c_preproc_warn_flag
9670 else
9671 ac_cpp_err=
9672 fi
9673 else
9674 ac_cpp_err=yes
9675 fi
9676 if test -z "$ac_cpp_err"; then
9677 ac_header_preproc=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_header_preproc=no
9683 fi
9684 rm -f conftest.err conftest.$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6
9687
9688 # So? What about this header?
9689 case $ac_header_compiler:$ac_header_preproc in
9690 yes:no )
9691 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9694 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9695 (
9696 cat <<\_ASBOX
9697 ## ------------------------------------ ##
9698 ## Report this to bug-autoconf@gnu.org. ##
9699 ## ------------------------------------ ##
9700 _ASBOX
9701 ) |
9702 sed "s/^/$as_me: WARNING: /" >&2
9703 ;;
9704 no:yes )
9705 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9711 (
9712 cat <<\_ASBOX
9713 ## ------------------------------------ ##
9714 ## Report this to bug-autoconf@gnu.org. ##
9715 ## ------------------------------------ ##
9716 _ASBOX
9717 ) |
9718 sed "s/^/$as_me: WARNING: /" >&2
9719 ;;
9720 esac
9721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 ac_cv_header_X11_xpm_h=$ac_header_preproc
9727 fi
9728 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9729 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9730
9731 fi
9732 if test $ac_cv_header_X11_xpm_h = yes; then
9733 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9734 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9735 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lXpm -lX11 $LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char XpmReadFileToPixmap ();
9755 int
9756 main ()
9757 {
9758 XpmReadFileToPixmap ();
9759 ;
9760 return 0;
9761 }
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9781 fi
9782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9784 fi
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9786 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9787 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9788 HAVE_XPM=yes
9789 fi
9790
9791 fi
9792
9793
9794 if test "${HAVE_XPM}" = "yes"; then
9795 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9796 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include "X11/xpm.h"
9805 #ifndef XpmReturnAllocPixels
9806 no_return_alloc_pixels
9807 #endif
9808
9809 _ACEOF
9810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9811 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9812 HAVE_XPM=no
9813 else
9814 HAVE_XPM=yes
9815 fi
9816 rm -f conftest*
9817
9818
9819 if test "${HAVE_XPM}" = "yes"; then
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9822 else
9823 echo "$as_me:$LINENO: result: no" >&5
9824 echo "${ECHO_T}no" >&6
9825 fi
9826 fi
9827 fi
9828
9829 if test "${HAVE_XPM}" = "yes"; then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_XPM 1
9833 _ACEOF
9834
9835 fi
9836 fi
9837
9838 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9839 HAVE_JPEG=no
9840 if test "${HAVE_X11}" = "yes"; then
9841 if test "${with_jpeg}" != "no"; then
9842 if test "${ac_cv_header_jerror_h+set}" = set; then
9843 echo "$as_me:$LINENO: checking for jerror.h" >&5
9844 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9845 if test "${ac_cv_header_jerror_h+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 fi
9848 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9849 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9850 else
9851 # Is the header compilable?
9852 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9853 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9862 #include <jerror.h>
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_header_compiler=no
9882 fi
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9886
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9889 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <jerror.h>
9898 _ACEOF
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag
9909 else
9910 ac_cpp_err=
9911 fi
9912 else
9913 ac_cpp_err=yes
9914 fi
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 ac_header_preproc=no
9922 fi
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9926
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9929 yes:no )
9930 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9934 (
9935 cat <<\_ASBOX
9936 ## ------------------------------------ ##
9937 ## Report this to bug-autoconf@gnu.org. ##
9938 ## ------------------------------------ ##
9939 _ASBOX
9940 ) |
9941 sed "s/^/$as_me: WARNING: /" >&2
9942 ;;
9943 no:yes )
9944 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: jerror.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 esac
9960 echo "$as_me:$LINENO: checking for jerror.h" >&5
9961 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9962 if test "${ac_cv_header_jerror_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 ac_cv_header_jerror_h=$ac_header_preproc
9966 fi
9967 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9969
9970 fi
9971 if test $ac_cv_header_jerror_h = yes; then
9972 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9973 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9974 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ljpeg $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char jpeg_destroy_compress ();
9994 int
9995 main ()
9996 {
9997 jpeg_destroy_compress ();
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10020 fi
10021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10025 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10026 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10027 HAVE_JPEG=yes
10028 fi
10029
10030 fi
10031
10032
10033 fi
10034
10035
10036 if test "${HAVE_JPEG}" = "yes"; then
10037 cat >>confdefs.h <<\_ACEOF
10038 #define HAVE_JPEG 1
10039 _ACEOF
10040
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <jpeglib.h>
10049 version=JPEG_LIB_VERSION
10050
10051 _ACEOF
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10054 cat >>confdefs.h <<\_ACEOF
10055 #define HAVE_JPEG 1
10056 _ACEOF
10057
10058 else
10059 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10060 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10061 HAVE_JPEG=no
10062 fi
10063 rm -f conftest*
10064
10065 fi
10066 fi
10067
10068 ### Use -lpng if available, unless `--with-png=no'.
10069 HAVE_PNG=no
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_png}" != "no"; then
10072 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10073 # in /usr/include/libpng.
10074
10075
10076 for ac_header in png.h libpng/png.h
10077 do
10078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10080 echo "$as_me:$LINENO: checking for $ac_header" >&5
10081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 fi
10085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10087 else
10088 # Is the header compilable?
10089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 #include <$ac_header>
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_header_compiler=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_header_compiler=no
10119 fi
10120 rm -f conftest.$ac_objext conftest.$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122 echo "${ECHO_T}$ac_header_compiler" >&6
10123
10124 # Is the header present?
10125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10128 #line $LINENO "configure"
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10135 _ACEOF
10136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } >/dev/null; then
10144 if test -s conftest.err; then
10145 ac_cpp_err=$ac_c_preproc_warn_flag
10146 else
10147 ac_cpp_err=
10148 fi
10149 else
10150 ac_cpp_err=yes
10151 fi
10152 if test -z "$ac_cpp_err"; then
10153 ac_header_preproc=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_header_preproc=no
10159 fi
10160 rm -f conftest.err conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162 echo "${ECHO_T}$ac_header_preproc" >&6
10163
10164 # So? What about this header?
10165 case $ac_header_compiler:$ac_header_preproc in
10166 yes:no )
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10171 (
10172 cat <<\_ASBOX
10173 ## ------------------------------------ ##
10174 ## Report this to bug-autoconf@gnu.org. ##
10175 ## ------------------------------------ ##
10176 _ASBOX
10177 ) |
10178 sed "s/^/$as_me: WARNING: /" >&2
10179 ;;
10180 no:yes )
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10187 (
10188 cat <<\_ASBOX
10189 ## ------------------------------------ ##
10190 ## Report this to bug-autoconf@gnu.org. ##
10191 ## ------------------------------------ ##
10192 _ASBOX
10193 ) |
10194 sed "s/^/$as_me: WARNING: /" >&2
10195 ;;
10196 esac
10197 echo "$as_me:$LINENO: checking for $ac_header" >&5
10198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 eval "$as_ac_Header=$ac_header_preproc"
10203 fi
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10206
10207 fi
10208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10211 _ACEOF
10212
10213 fi
10214
10215 done
10216
10217 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10218 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10219 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10220 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lpng -lz -lm $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char png_get_channels ();
10240 int
10241 main ()
10242 {
10243 png_get_channels ();
10244 ;
10245 return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_png_png_get_channels=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_lib_png_png_get_channels=no
10266 fi
10267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10271 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10272 if test $ac_cv_lib_png_png_get_channels = yes; then
10273 HAVE_PNG=yes
10274 fi
10275
10276 fi
10277 fi
10278
10279 if test "${HAVE_PNG}" = "yes"; then
10280
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_PNG 1
10283 _ACEOF
10284
10285 fi
10286 fi
10287
10288 ### Use -ltiff if available, unless `--with-tiff=no'.
10289 HAVE_TIFF=no
10290 if test "${HAVE_X11}" = "yes"; then
10291 if test "${with_tiff}" != "no"; then
10292 if test "${ac_cv_header_tiffio_h+set}" = set; then
10293 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10294 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10295 if test "${ac_cv_header_tiffio_h+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10300 else
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10303 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <tiffio.h>
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_header_compiler=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_header_compiler=no
10332 fi
10333 rm -f conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335 echo "${ECHO_T}$ac_header_compiler" >&6
10336
10337 # Is the header present?
10338 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10339 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <tiffio.h>
10348 _ACEOF
10349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } >/dev/null; then
10357 if test -s conftest.err; then
10358 ac_cpp_err=$ac_c_preproc_warn_flag
10359 else
10360 ac_cpp_err=
10361 fi
10362 else
10363 ac_cpp_err=yes
10364 fi
10365 if test -z "$ac_cpp_err"; then
10366 ac_header_preproc=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_header_preproc=no
10372 fi
10373 rm -f conftest.err conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375 echo "${ECHO_T}$ac_header_preproc" >&6
10376
10377 # So? What about this header?
10378 case $ac_header_compiler:$ac_header_preproc in
10379 yes:no )
10380 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10381 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10384 (
10385 cat <<\_ASBOX
10386 ## ------------------------------------ ##
10387 ## Report this to bug-autoconf@gnu.org. ##
10388 ## ------------------------------------ ##
10389 _ASBOX
10390 ) |
10391 sed "s/^/$as_me: WARNING: /" >&2
10392 ;;
10393 no:yes )
10394 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10395 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10397 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10399 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10400 (
10401 cat <<\_ASBOX
10402 ## ------------------------------------ ##
10403 ## Report this to bug-autoconf@gnu.org. ##
10404 ## ------------------------------------ ##
10405 _ASBOX
10406 ) |
10407 sed "s/^/$as_me: WARNING: /" >&2
10408 ;;
10409 esac
10410 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10411 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10412 if test "${ac_cv_header_tiffio_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 ac_cv_header_tiffio_h=$ac_header_preproc
10416 fi
10417 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10418 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10419
10420 fi
10421 if test $ac_cv_header_tiffio_h = yes; then
10422 tifflibs="-lz -lm"
10423 # At least one tiff package requires the jpeg library.
10424 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10425 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10426 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10427 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-ltiff $tifflibs $LIBS"
10432 cat >conftest.$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439
10440 /* Override any gcc2 internal prototype to avoid an error. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char TIFFGetVersion ();
10447 int
10448 main ()
10449 {
10450 TIFFGetVersion ();
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_tiff_TIFFGetVersion=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 ac_cv_lib_tiff_TIFFGetVersion=no
10473 fi
10474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10478 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10479 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10480 HAVE_TIFF=yes
10481 fi
10482
10483 fi
10484
10485
10486 fi
10487
10488 if test "${HAVE_TIFF}" = "yes"; then
10489
10490 cat >>confdefs.h <<\_ACEOF
10491 #define HAVE_TIFF 1
10492 _ACEOF
10493
10494 fi
10495 fi
10496
10497 ### Use -lgif if available, unless `--with-gif=no'.
10498 HAVE_GIF=no
10499 if test "${HAVE_X11}" = "yes"; then
10500 if test "${with_gif}" != "no"; then
10501 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10502 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10503 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10504 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10509 else
10510 # Is the header compilable?
10511 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10512 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <gif_lib.h>
10522 _ACEOF
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_header_compiler=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_header_compiler=no
10541 fi
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6
10545
10546 # Is the header present?
10547 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10548 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10549 cat >conftest.$ac_ext <<_ACEOF
10550 #line $LINENO "configure"
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <gif_lib.h>
10557 _ACEOF
10558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev/null; then
10566 if test -s conftest.err; then
10567 ac_cpp_err=$ac_c_preproc_warn_flag
10568 else
10569 ac_cpp_err=
10570 fi
10571 else
10572 ac_cpp_err=yes
10573 fi
10574 if test -z "$ac_cpp_err"; then
10575 ac_header_preproc=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_header_preproc=no
10581 fi
10582 rm -f conftest.err conftest.$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584 echo "${ECHO_T}$ac_header_preproc" >&6
10585
10586 # So? What about this header?
10587 case $ac_header_compiler:$ac_header_preproc in
10588 yes:no )
10589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10590 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10593 (
10594 cat <<\_ASBOX
10595 ## ------------------------------------ ##
10596 ## Report this to bug-autoconf@gnu.org. ##
10597 ## ------------------------------------ ##
10598 _ASBOX
10599 ) |
10600 sed "s/^/$as_me: WARNING: /" >&2
10601 ;;
10602 no:yes )
10603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10609 (
10610 cat <<\_ASBOX
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10614 _ASBOX
10615 ) |
10616 sed "s/^/$as_me: WARNING: /" >&2
10617 ;;
10618 esac
10619 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10620 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 ac_cv_header_gif_lib_h=$ac_header_preproc
10625 fi
10626 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10627 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10628
10629 fi
10630 if test $ac_cv_header_gif_lib_h = yes; then
10631 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10632 # Earlier versions can crash Emacs.
10633 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10634 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10635 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lungif $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char EGifPutExtensionLast ();
10655 int
10656 main ()
10657 {
10658 EGifPutExtensionLast ();
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 ac_cv_lib_ungif_EGifPutExtensionLast=no
10681 fi
10682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10686 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10688 HAVE_GIF=yes
10689 fi
10690
10691 fi
10692
10693
10694 fi
10695
10696 if test "${HAVE_GIF}" = "yes"; then
10697
10698 cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_GIF 1
10700 _ACEOF
10701
10702 fi
10703 fi
10704
10705 ### Use Mac OS X Carbon API to implement GUI.
10706 HAVE_CARBON=no
10707 if test "${with_carbon}" != "no"; then
10708 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10709 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10710 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10711 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 fi
10714 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10716 else
10717 # Is the header compilable?
10718 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10719 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 #include <Carbon/Carbon.h>
10729 _ACEOF
10730 rm -f conftest.$ac_objext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_header_compiler=no
10748 fi
10749 rm -f conftest.$ac_objext conftest.$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6
10752
10753 # Is the header present?
10754 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10755 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10756 cat >conftest.$ac_ext <<_ACEOF
10757 #line $LINENO "configure"
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <Carbon/Carbon.h>
10764 _ACEOF
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 else
10776 ac_cpp_err=
10777 fi
10778 else
10779 ac_cpp_err=yes
10780 fi
10781 if test -z "$ac_cpp_err"; then
10782 ac_header_preproc=yes
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 ac_header_preproc=no
10788 fi
10789 rm -f conftest.err conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10791 echo "${ECHO_T}$ac_header_preproc" >&6
10792
10793 # So? What about this header?
10794 case $ac_header_compiler:$ac_header_preproc in
10795 yes:no )
10796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10797 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10800 (
10801 cat <<\_ASBOX
10802 ## ------------------------------------ ##
10803 ## Report this to bug-autoconf@gnu.org. ##
10804 ## ------------------------------------ ##
10805 _ASBOX
10806 ) |
10807 sed "s/^/$as_me: WARNING: /" >&2
10808 ;;
10809 no:yes )
10810 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10816 (
10817 cat <<\_ASBOX
10818 ## ------------------------------------ ##
10819 ## Report this to bug-autoconf@gnu.org. ##
10820 ## ------------------------------------ ##
10821 _ASBOX
10822 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2
10824 ;;
10825 esac
10826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10834 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10835
10836 fi
10837 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10838 HAVE_CARBON=yes
10839 fi
10840
10841
10842 fi
10843
10844 if test "${HAVE_CARBON}" = "yes"; then
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_CARBON 1
10848 _ACEOF
10849
10850 window_system=mac
10851 ## Specify the install directory
10852 carbon_appdir=
10853 if test "${carbon_appdir_x}" != ""; then
10854 case ${carbon_appdir_x} in
10855 y | ye | yes) carbon_appdir=/Applications ;;
10856 * ) carbon_appdir=${carbon_appdir_x} ;;
10857 esac
10858 fi
10859 # We also have mouse menus.
10860 HAVE_MENUS=yes
10861 fi
10862
10863 ### Use session management (-lSM -lICE) if available
10864 HAVE_X_SM=no
10865 if test "${HAVE_X11}" = "yes"; then
10866 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10867 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10868 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10869 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 fi
10872 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10873 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10874 else
10875 # Is the header compilable?
10876 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10877 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <X11/SM/SMlib.h>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 ac_header_compiler=no
10906 fi
10907 rm -f conftest.$ac_objext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6
10910
10911 # Is the header present?
10912 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10913 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <X11/SM/SMlib.h>
10922 _ACEOF
10923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } >/dev/null; then
10931 if test -s conftest.err; then
10932 ac_cpp_err=$ac_c_preproc_warn_flag
10933 else
10934 ac_cpp_err=
10935 fi
10936 else
10937 ac_cpp_err=yes
10938 fi
10939 if test -z "$ac_cpp_err"; then
10940 ac_header_preproc=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_header_preproc=no
10946 fi
10947 rm -f conftest.err conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949 echo "${ECHO_T}$ac_header_preproc" >&6
10950
10951 # So? What about this header?
10952 case $ac_header_compiler:$ac_header_preproc in
10953 yes:no )
10954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10955 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10958 (
10959 cat <<\_ASBOX
10960 ## ------------------------------------ ##
10961 ## Report this to bug-autoconf@gnu.org. ##
10962 ## ------------------------------------ ##
10963 _ASBOX
10964 ) |
10965 sed "s/^/$as_me: WARNING: /" >&2
10966 ;;
10967 no:yes )
10968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10969 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10971 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10974 (
10975 cat <<\_ASBOX
10976 ## ------------------------------------ ##
10977 ## Report this to bug-autoconf@gnu.org. ##
10978 ## ------------------------------------ ##
10979 _ASBOX
10980 ) |
10981 sed "s/^/$as_me: WARNING: /" >&2
10982 ;;
10983 esac
10984 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10985 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10990 fi
10991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10993
10994 fi
10995 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10996 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10997 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10998 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lSM $LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char SmcOpenConnection ();
11018 int
11019 main ()
11020 {
11021 SmcOpenConnection ();
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_lib_SM_SmcOpenConnection=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_cv_lib_SM_SmcOpenConnection=no
11044 fi
11045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11047 fi
11048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11051 HAVE_X_SM=yes
11052 else
11053 -lICE
11054 fi
11055
11056 fi
11057
11058
11059
11060 if test "${HAVE_X_SM}" = "yes"; then
11061
11062 cat >>confdefs.h <<\_ACEOF
11063 #define HAVE_X_SM 1
11064 _ACEOF
11065
11066 case "$LIBS" in
11067 *-lSM*) ;;
11068 *) LIBS="-lSM -lICE $LIBS" ;;
11069 esac
11070 fi
11071 fi
11072
11073 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11074 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11075 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11076 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <netdb.h>
11087 int
11088 main ()
11089 {
11090 return h_errno;
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 emacs_cv_netdb_declares_h_errno=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 emacs_cv_netdb_declares_h_errno=no
11113 fi
11114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11115 fi
11116 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11117 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11118 if test $emacs_cv_netdb_declares_h_errno = yes; then
11119
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_H_ERRNO 1
11122 _ACEOF
11123
11124 fi
11125
11126 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11127 # for constant arguments. Useless!
11128 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11129 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11130 if test "${ac_cv_working_alloca_h+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 #line $LINENO "configure"
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <alloca.h>
11141 int
11142 main ()
11143 {
11144 char *p = (char *) alloca (2 * sizeof (int));
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -s conftest$ac_exeext'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_working_alloca_h=yes
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_cv_working_alloca_h=no
11167 fi
11168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11169 fi
11170 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11171 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11172 if test $ac_cv_working_alloca_h = yes; then
11173
11174 cat >>confdefs.h <<\_ACEOF
11175 #define HAVE_ALLOCA_H 1
11176 _ACEOF
11177
11178 fi
11179
11180 echo "$as_me:$LINENO: checking for alloca" >&5
11181 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11182 if test "${ac_cv_func_alloca_works+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 #ifdef __GNUC__
11193 # define alloca __builtin_alloca
11194 #else
11195 # ifdef _MSC_VER
11196 # include <malloc.h>
11197 # define alloca _alloca
11198 # else
11199 # if HAVE_ALLOCA_H
11200 # include <alloca.h>
11201 # else
11202 # ifdef _AIX
11203 #pragma alloca
11204 # else
11205 # ifndef alloca /* predefined by HP cc +Olibcalls */
11206 char *alloca ();
11207 # endif
11208 # endif
11209 # endif
11210 # endif
11211 #endif
11212
11213 int
11214 main ()
11215 {
11216 char *p = (char *) alloca (1);
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_func_alloca_works=yes
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_func_alloca_works=no
11239 fi
11240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11243 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11244
11245 if test $ac_cv_func_alloca_works = yes; then
11246
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_ALLOCA 1
11249 _ACEOF
11250
11251 else
11252 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11253 # that cause trouble. Some versions do not even contain alloca or
11254 # contain a buggy version. If you still want to use their alloca,
11255 # use ar to extract alloca.o from them instead of compiling alloca.c.
11256
11257 ALLOCA=alloca.$ac_objext
11258
11259 cat >>confdefs.h <<\_ACEOF
11260 #define C_ALLOCA 1
11261 _ACEOF
11262
11263
11264 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11265 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11266 if test "${ac_cv_os_cray+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 /* confdefs.h. */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 #if defined(CRAY) && ! defined(CRAY2)
11277 webecray
11278 #else
11279 wenotbecray
11280 #endif
11281
11282 _ACEOF
11283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11284 $EGREP "webecray" >/dev/null 2>&1; then
11285 ac_cv_os_cray=yes
11286 else
11287 ac_cv_os_cray=no
11288 fi
11289 rm -f conftest*
11290
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11293 echo "${ECHO_T}$ac_cv_os_cray" >&6
11294 if test $ac_cv_os_cray = yes; then
11295 for ac_func in _getb67 GETB67 getb67; do
11296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297 echo "$as_me:$LINENO: checking for $ac_func" >&5
11298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11299 if eval "test \"\${$as_ac_var+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 /* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func (); below.
11311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11312 <limits.h> exists even on freestanding compilers. */
11313 #ifdef __STDC__
11314 # include <limits.h>
11315 #else
11316 # include <assert.h>
11317 #endif
11318 /* Override any gcc2 internal prototype to avoid an error. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 {
11322 #endif
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11325 char $ac_func ();
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 choke me
11331 #else
11332 char (*f) () = $ac_func;
11333 #endif
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337
11338 int
11339 main ()
11340 {
11341 return f != $ac_func;
11342 ;
11343 return 0;
11344 }
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 eval "$as_ac_var=yes"
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 eval "$as_ac_var=no"
11364 fi
11365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11366 fi
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11370
11371 cat >>confdefs.h <<_ACEOF
11372 #define CRAY_STACKSEG_END $ac_func
11373 _ACEOF
11374
11375 break
11376 fi
11377
11378 done
11379 fi
11380
11381 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11382 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11383 if test "${ac_cv_c_stack_direction+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 if test "$cross_compiling" = yes; then
11387 ac_cv_c_stack_direction=0
11388 else
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 int
11397 find_stack_direction ()
11398 {
11399 static char *addr = 0;
11400 auto char dummy;
11401 if (addr == 0)
11402 {
11403 addr = &dummy;
11404 return find_stack_direction ();
11405 }
11406 else
11407 return (&dummy > addr) ? 1 : -1;
11408 }
11409
11410 int
11411 main ()
11412 {
11413 exit (find_stack_direction () < 0);
11414 }
11415 _ACEOF
11416 rm -f conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 ac_cv_c_stack_direction=1
11428 else
11429 echo "$as_me: program exited with status $ac_status" >&5
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ( exit $ac_status )
11434 ac_cv_c_stack_direction=-1
11435 fi
11436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11437 fi
11438 fi
11439 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11440 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11441
11442 cat >>confdefs.h <<_ACEOF
11443 #define STACK_DIRECTION $ac_cv_c_stack_direction
11444 _ACEOF
11445
11446
11447 fi
11448
11449
11450 # fmod, logb, and frexp are found in -lm on most systems.
11451 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11452
11453 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11454 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11455 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lm $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467
11468 /* Override any gcc2 internal prototype to avoid an error. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474 char sqrt ();
11475 int
11476 main ()
11477 {
11478 sqrt ();
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext conftest$ac_exeext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -s conftest$ac_exeext'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_lib_m_sqrt=yes
11496 else
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 ac_cv_lib_m_sqrt=no
11501 fi
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11506 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11507 if test $ac_cv_lib_m_sqrt = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define HAVE_LIBM 1
11510 _ACEOF
11511
11512 LIBS="-lm $LIBS"
11513
11514 fi
11515
11516
11517 # Check for mail-locking functions in a "mail" library. Probably this should
11518 # have the same check as for liblockfile below.
11519
11520 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11521 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11522 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lmail $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534
11535 /* Override any gcc2 internal prototype to avoid an error. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 /* We use char because int might match the return type of a gcc2
11540 builtin and then its argument prototype would still apply. */
11541 char maillock ();
11542 int
11543 main ()
11544 {
11545 maillock ();
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -s conftest$ac_exeext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_cv_lib_mail_maillock=yes
11563 else
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567 ac_cv_lib_mail_maillock=no
11568 fi
11569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11570 LIBS=$ac_check_lib_save_LIBS
11571 fi
11572 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11573 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11574 if test $ac_cv_lib_mail_maillock = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define HAVE_LIBMAIL 1
11577 _ACEOF
11578
11579 LIBS="-lmail $LIBS"
11580
11581 fi
11582
11583
11584 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11585 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11586 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-llockfile $LIBS"
11591 cat >conftest.$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598
11599 /* Override any gcc2 internal prototype to avoid an error. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11605 char maillock ();
11606 int
11607 main ()
11608 {
11609 maillock ();
11610 ;
11611 return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616 (eval $ac_link) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -s conftest$ac_exeext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_cv_lib_lockfile_maillock=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_cv_lib_lockfile_maillock=no
11632 fi
11633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11637 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11638 if test $ac_cv_lib_lockfile_maillock = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_LIBLOCKFILE 1
11641 _ACEOF
11642
11643 LIBS="-llockfile $LIBS"
11644
11645 fi
11646
11647 # If we have the shared liblockfile, assume we must use it for mail
11648 # locking (e.g. Debian). If we couldn't link against liblockfile
11649 # (no liblockfile.a installed), ensure that we don't need to.
11650 if test "$ac_cv_lib_lockfile_maillock" = no; then
11651 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11652 set dummy liblockfile.so; ac_word=$2
11653 echo "$as_me:$LINENO: checking for $ac_word" >&5
11654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655 if test "${ac_cv_prog_liblockfile+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 if test -n "$liblockfile"; then
11659 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11660 else
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11663 for as_dir in $as_dummy
11664 do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_liblockfile="yes"
11670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673 done
11674 done
11675
11676 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11677 fi
11678 fi
11679 liblockfile=$ac_cv_prog_liblockfile
11680 if test -n "$liblockfile"; then
11681 echo "$as_me:$LINENO: result: $liblockfile" >&5
11682 echo "${ECHO_T}$liblockfile" >&6
11683 else
11684 echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11686 fi
11687
11688 if test $ac_cv_prog_liblockfile = yes; then
11689 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11690 This probably means that movemail could lose mail.
11691 There may be a \`development' package to install containing liblockfile." >&5
11692 echo "$as_me: error: Shared liblockfile found but can't link against it.
11693 This probably means that movemail could lose mail.
11694 There may be a \`development' package to install containing liblockfile." >&2;}
11695 { (exit 1); exit 1; }; }
11696 else :
11697 fi
11698 fi
11699
11700 for ac_func in touchlock
11701 do
11702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11703 echo "$as_me:$LINENO: checking for $ac_func" >&5
11704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11705 if eval "test \"\${$as_ac_var+set}\" = set"; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 cat >conftest.$ac_ext <<_ACEOF
11709 #line $LINENO "configure"
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func (); below.
11717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718 <limits.h> exists even on freestanding compilers. */
11719 #ifdef __STDC__
11720 # include <limits.h>
11721 #else
11722 # include <assert.h>
11723 #endif
11724 /* Override any gcc2 internal prototype to avoid an error. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 {
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11731 char $ac_func ();
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11736 choke me
11737 #else
11738 char (*f) () = $ac_func;
11739 #endif
11740 #ifdef __cplusplus
11741 }
11742 #endif
11743
11744 int
11745 main ()
11746 {
11747 return f != $ac_func;
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 eval "$as_ac_var=yes"
11765 else
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 eval "$as_ac_var=no"
11770 fi
11771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11772 fi
11773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776 cat >>confdefs.h <<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 _ACEOF
11779
11780 fi
11781 done
11782
11783
11784 for ac_header in maillock.h
11785 do
11786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11788 echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 fi
11793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11795 else
11796 # Is the header compilable?
11797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #include <$ac_header>
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_header_compiler=yes
11822 else
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_header_compiler=no
11827 fi
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6
11831
11832 # Is the header present?
11833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 #include <$ac_header>
11843 _ACEOF
11844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11854 else
11855 ac_cpp_err=
11856 fi
11857 else
11858 ac_cpp_err=yes
11859 fi
11860 if test -z "$ac_cpp_err"; then
11861 ac_header_preproc=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 ac_header_preproc=no
11867 fi
11868 rm -f conftest.err conftest.$ac_ext
11869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 echo "${ECHO_T}$ac_header_preproc" >&6
11871
11872 # So? What about this header?
11873 case $ac_header_compiler:$ac_header_preproc in
11874 yes:no )
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 (
11880 cat <<\_ASBOX
11881 ## ------------------------------------ ##
11882 ## Report this to bug-autoconf@gnu.org. ##
11883 ## ------------------------------------ ##
11884 _ASBOX
11885 ) |
11886 sed "s/^/$as_me: WARNING: /" >&2
11887 ;;
11888 no:yes )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11895 (
11896 cat <<\_ASBOX
11897 ## ------------------------------------ ##
11898 ## Report this to bug-autoconf@gnu.org. ##
11899 ## ------------------------------------ ##
11900 _ASBOX
11901 ) |
11902 sed "s/^/$as_me: WARNING: /" >&2
11903 ;;
11904 esac
11905 echo "$as_me:$LINENO: checking for $ac_header" >&5
11906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910 eval "$as_ac_Header=$ac_header_preproc"
11911 fi
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11914
11915 fi
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921 fi
11922
11923 done
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 for ac_func in gethostname getdomainname dup2 \
11994 rename closedir mkdir rmdir sysinfo \
11995 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11996 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11997 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11998 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11999 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12000 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12001 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12002 do
12003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_func" >&5
12005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_var+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 /* System header to define __stub macros and hopefully few prototypes,
12017 which can conflict with char $ac_func (); below.
12018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12019 <limits.h> exists even on freestanding compilers. */
12020 #ifdef __STDC__
12021 # include <limits.h>
12022 #else
12023 # include <assert.h>
12024 #endif
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 {
12029 #endif
12030 /* We use char because int might match the return type of a gcc2
12031 builtin and then its argument prototype would still apply. */
12032 char $ac_func ();
12033 /* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
12036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12037 choke me
12038 #else
12039 char (*f) () = $ac_func;
12040 #endif
12041 #ifdef __cplusplus
12042 }
12043 #endif
12044
12045 int
12046 main ()
12047 {
12048 return f != $ac_func;
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -s conftest$ac_exeext'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 eval "$as_ac_var=yes"
12066 else
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070 eval "$as_ac_var=no"
12071 fi
12072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12073 fi
12074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 _ACEOF
12080
12081 fi
12082 done
12083
12084
12085
12086 for ac_header in sys/un.h
12087 do
12088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 fi
12095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12097 else
12098 # Is the header compilable?
12099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12109 #include <$ac_header>
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_header_compiler=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 ac_header_compiler=no
12129 fi
12130 rm -f conftest.$ac_objext conftest.$ac_ext
12131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 echo "${ECHO_T}$ac_header_compiler" >&6
12133
12134 # Is the header present?
12135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12137 cat >conftest.$ac_ext <<_ACEOF
12138 #line $LINENO "configure"
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <$ac_header>
12145 _ACEOF
12146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev/null; then
12154 if test -s conftest.err; then
12155 ac_cpp_err=$ac_c_preproc_warn_flag
12156 else
12157 ac_cpp_err=
12158 fi
12159 else
12160 ac_cpp_err=yes
12161 fi
12162 if test -z "$ac_cpp_err"; then
12163 ac_header_preproc=yes
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168 ac_header_preproc=no
12169 fi
12170 rm -f conftest.err conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172 echo "${ECHO_T}$ac_header_preproc" >&6
12173
12174 # So? What about this header?
12175 case $ac_header_compiler:$ac_header_preproc in
12176 yes:no )
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 (
12182 cat <<\_ASBOX
12183 ## ------------------------------------ ##
12184 ## Report this to bug-autoconf@gnu.org. ##
12185 ## ------------------------------------ ##
12186 _ASBOX
12187 ) |
12188 sed "s/^/$as_me: WARNING: /" >&2
12189 ;;
12190 no:yes )
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12197 (
12198 cat <<\_ASBOX
12199 ## ------------------------------------ ##
12200 ## Report this to bug-autoconf@gnu.org. ##
12201 ## ------------------------------------ ##
12202 _ASBOX
12203 ) |
12204 sed "s/^/$as_me: WARNING: /" >&2
12205 ;;
12206 esac
12207 echo "$as_me:$LINENO: checking for $ac_header" >&5
12208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 eval "$as_ac_Header=$ac_header_preproc"
12213 fi
12214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216
12217 fi
12218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12221 _ACEOF
12222
12223 fi
12224
12225 done
12226
12227
12228
12229
12230 for ac_header in sys/time.h unistd.h
12231 do
12232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12234 echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 fi
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12241 else
12242 # Is the header compilable?
12243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12253 #include <$ac_header>
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257 (eval $ac_compile) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_header_compiler=yes
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 ac_header_compiler=no
12273 fi
12274 rm -f conftest.$ac_objext conftest.$ac_ext
12275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12276 echo "${ECHO_T}$ac_header_compiler" >&6
12277
12278 # Is the header present?
12279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12281 cat >conftest.$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 #include <$ac_header>
12289 _ACEOF
12290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } >/dev/null; then
12298 if test -s conftest.err; then
12299 ac_cpp_err=$ac_c_preproc_warn_flag
12300 else
12301 ac_cpp_err=
12302 fi
12303 else
12304 ac_cpp_err=yes
12305 fi
12306 if test -z "$ac_cpp_err"; then
12307 ac_header_preproc=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_header_preproc=no
12313 fi
12314 rm -f conftest.err conftest.$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12316 echo "${ECHO_T}$ac_header_preproc" >&6
12317
12318 # So? What about this header?
12319 case $ac_header_compiler:$ac_header_preproc in
12320 yes:no )
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12325 (
12326 cat <<\_ASBOX
12327 ## ------------------------------------ ##
12328 ## Report this to bug-autoconf@gnu.org. ##
12329 ## ------------------------------------ ##
12330 _ASBOX
12331 ) |
12332 sed "s/^/$as_me: WARNING: /" >&2
12333 ;;
12334 no:yes )
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12341 (
12342 cat <<\_ASBOX
12343 ## ------------------------------------ ##
12344 ## Report this to bug-autoconf@gnu.org. ##
12345 ## ------------------------------------ ##
12346 _ASBOX
12347 ) |
12348 sed "s/^/$as_me: WARNING: /" >&2
12349 ;;
12350 esac
12351 echo "$as_me:$LINENO: checking for $ac_header" >&5
12352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 eval "$as_ac_Header=$ac_header_preproc"
12357 fi
12358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12360
12361 fi
12362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12363 cat >>confdefs.h <<_ACEOF
12364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12365 _ACEOF
12366
12367 fi
12368
12369 done
12370
12371
12372 for ac_func in alarm
12373 do
12374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12375 echo "$as_me:$LINENO: checking for $ac_func" >&5
12376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12377 if eval "test \"\${$as_ac_var+set}\" = set"; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12396 /* Override any gcc2 internal prototype to avoid an error. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 {
12400 #endif
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12403 char $ac_func ();
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12408 choke me
12409 #else
12410 char (*f) () = $ac_func;
12411 #endif
12412 #ifdef __cplusplus
12413 }
12414 #endif
12415
12416 int
12417 main ()
12418 {
12419 return f != $ac_func;
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 eval "$as_ac_var=yes"
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 eval "$as_ac_var=no"
12442 fi
12443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12444 fi
12445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12447 if test `eval echo '${'$as_ac_var'}'` = yes; then
12448 cat >>confdefs.h <<_ACEOF
12449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450 _ACEOF
12451
12452 fi
12453 done
12454
12455 echo "$as_me:$LINENO: checking for working mktime" >&5
12456 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12457 if test "${ac_cv_func_working_mktime+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 if test "$cross_compiling" = yes; then
12461 ac_cv_func_working_mktime=no
12462 else
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 /* Test program from Paul Eggert and Tony Leneis. */
12471 #if TIME_WITH_SYS_TIME
12472 # include <sys/time.h>
12473 # include <time.h>
12474 #else
12475 # if HAVE_SYS_TIME_H
12476 # include <sys/time.h>
12477 # else
12478 # include <time.h>
12479 # endif
12480 #endif
12481
12482 #if HAVE_UNISTD_H
12483 # include <unistd.h>
12484 #endif
12485
12486 #if !HAVE_ALARM
12487 # define alarm(X) /* empty */
12488 #endif
12489
12490 /* Work around redefinition to rpl_putenv by other config tests. */
12491 #undef putenv
12492
12493 static time_t time_t_max;
12494
12495 /* Values we'll use to set the TZ environment variable. */
12496 static const char *const tz_strings[] = {
12497 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12498 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12499 };
12500 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12501
12502 /* Fail if mktime fails to convert a date in the spring-forward gap.
12503 Based on a problem report from Andreas Jaeger. */
12504 static void
12505 spring_forward_gap ()
12506 {
12507 /* glibc (up to about 1998-10-07) failed this test. */
12508 struct tm tm;
12509
12510 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12511 instead of "TZ=America/Vancouver" in order to detect the bug even
12512 on systems that don't support the Olson extension, or don't have the
12513 full zoneinfo tables installed. */
12514 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12515
12516 tm.tm_year = 98;
12517 tm.tm_mon = 3;
12518 tm.tm_mday = 5;
12519 tm.tm_hour = 2;
12520 tm.tm_min = 0;
12521 tm.tm_sec = 0;
12522 tm.tm_isdst = -1;
12523 if (mktime (&tm) == (time_t)-1)
12524 exit (1);
12525 }
12526
12527 static void
12528 mktime_test (now)
12529 time_t now;
12530 {
12531 struct tm *lt;
12532 if ((lt = localtime (&now)) && mktime (lt) != now)
12533 exit (1);
12534 now = time_t_max - now;
12535 if ((lt = localtime (&now)) && mktime (lt) != now)
12536 exit (1);
12537 }
12538
12539 static void
12540 irix_6_4_bug ()
12541 {
12542 /* Based on code from Ariel Faigon. */
12543 struct tm tm;
12544 tm.tm_year = 96;
12545 tm.tm_mon = 3;
12546 tm.tm_mday = 0;
12547 tm.tm_hour = 0;
12548 tm.tm_min = 0;
12549 tm.tm_sec = 0;
12550 tm.tm_isdst = -1;
12551 mktime (&tm);
12552 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12553 exit (1);
12554 }
12555
12556 static void
12557 bigtime_test (j)
12558 int j;
12559 {
12560 struct tm tm;
12561 time_t now;
12562 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12563 now = mktime (&tm);
12564 if (now != (time_t) -1)
12565 {
12566 struct tm *lt = localtime (&now);
12567 if (! (lt
12568 && lt->tm_year == tm.tm_year
12569 && lt->tm_mon == tm.tm_mon
12570 && lt->tm_mday == tm.tm_mday
12571 && lt->tm_hour == tm.tm_hour
12572 && lt->tm_min == tm.tm_min
12573 && lt->tm_sec == tm.tm_sec
12574 && lt->tm_yday == tm.tm_yday
12575 && lt->tm_wday == tm.tm_wday
12576 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12577 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12578 exit (1);
12579 }
12580 }
12581
12582 int
12583 main ()
12584 {
12585 time_t t, delta;
12586 int i, j;
12587
12588 /* This test makes some buggy mktime implementations loop.
12589 Give up after 60 seconds; a mktime slower than that
12590 isn't worth using anyway. */
12591 alarm (60);
12592
12593 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12594 continue;
12595 time_t_max--;
12596 delta = time_t_max / 997; /* a suitable prime number */
12597 for (i = 0; i < N_STRINGS; i++)
12598 {
12599 if (tz_strings[i])
12600 putenv (tz_strings[i]);
12601
12602 for (t = 0; t <= time_t_max - delta; t += delta)
12603 mktime_test (t);
12604 mktime_test ((time_t) 60 * 60);
12605 mktime_test ((time_t) 60 * 60 * 24);
12606
12607 for (j = 1; 0 < j; j *= 2)
12608 bigtime_test (j);
12609 bigtime_test (j - 1);
12610 }
12611 irix_6_4_bug ();
12612 spring_forward_gap ();
12613 exit (0);
12614 }
12615 _ACEOF
12616 rm -f conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_func_working_mktime=yes
12628 else
12629 echo "$as_me: program exited with status $ac_status" >&5
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 ( exit $ac_status )
12634 ac_cv_func_working_mktime=no
12635 fi
12636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12637 fi
12638 fi
12639 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12640 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12641 if test $ac_cv_func_working_mktime = no; then
12642 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12643 fi
12644
12645 if test "$ac_cv_func_working_mktime" = no; then
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define BROKEN_MKTIME 1
12649 _ACEOF
12650
12651 fi
12652
12653 ac_have_func=no # yes means we've found a way to get the load average.
12654
12655 # Make sure getloadavg.c is where it belongs, at configure-time.
12656 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12657 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12658 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12659 { (exit 1); exit 1; }; }
12660
12661 ac_save_LIBS=$LIBS
12662
12663 # Check for getloadavg, but be sure not to touch the cache variable.
12664 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12665 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12666 if test "${ac_cv_func_getloadavg+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669 cat >conftest.$ac_ext <<_ACEOF
12670 #line $LINENO "configure"
12671 /* confdefs.h. */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 /* System header to define __stub macros and hopefully few prototypes,
12677 which can conflict with char getloadavg (); below.
12678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12679 <limits.h> exists even on freestanding compilers. */
12680 #ifdef __STDC__
12681 # include <limits.h>
12682 #else
12683 # include <assert.h>
12684 #endif
12685 /* Override any gcc2 internal prototype to avoid an error. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 {
12689 #endif
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char getloadavg ();
12693 /* The GNU C library defines this for functions which it implements
12694 to always fail with ENOSYS. Some functions are actually named
12695 something starting with __ and the normal name is an alias. */
12696 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12697 choke me
12698 #else
12699 char (*f) () = getloadavg;
12700 #endif
12701 #ifdef __cplusplus
12702 }
12703 #endif
12704
12705 int
12706 main ()
12707 {
12708 return f != getloadavg;
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_func_getloadavg=yes
12726 else
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_cv_func_getloadavg=no
12731 fi
12732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12733 fi
12734 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12735 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12736 if test $ac_cv_func_getloadavg = yes; then
12737 exit 0
12738 else
12739 exit 1
12740 fi
12741 ) && ac_have_func=yes
12742
12743 # On HPUX9, an unprivileged user can get load averages through this function.
12744
12745 for ac_func in pstat_getdynamic
12746 do
12747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12748 echo "$as_me:$LINENO: checking for $ac_func" >&5
12749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_var+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 cat >conftest.$ac_ext <<_ACEOF
12754 #line $LINENO "configure"
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 /* System header to define __stub macros and hopefully few prototypes,
12761 which can conflict with char $ac_func (); below.
12762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763 <limits.h> exists even on freestanding compilers. */
12764 #ifdef __STDC__
12765 # include <limits.h>
12766 #else
12767 # include <assert.h>
12768 #endif
12769 /* Override any gcc2 internal prototype to avoid an error. */
12770 #ifdef __cplusplus
12771 extern "C"
12772 {
12773 #endif
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12776 char $ac_func ();
12777 /* The GNU C library defines this for functions which it implements
12778 to always fail with ENOSYS. Some functions are actually named
12779 something starting with __ and the normal name is an alias. */
12780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12781 choke me
12782 #else
12783 char (*f) () = $ac_func;
12784 #endif
12785 #ifdef __cplusplus
12786 }
12787 #endif
12788
12789 int
12790 main ()
12791 {
12792 return f != $ac_func;
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12799 (eval $ac_link) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 eval "$as_ac_var=yes"
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 eval "$as_ac_var=no"
12815 fi
12816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12817 fi
12818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12823 _ACEOF
12824
12825 fi
12826 done
12827
12828
12829 # Solaris has libkstat which does not require root.
12830
12831 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12832 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12833 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-lkstat $LIBS"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12852 char kstat_open ();
12853 int
12854 main ()
12855 {
12856 kstat_open ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_lib_kstat_kstat_open=yes
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_cv_lib_kstat_kstat_open=no
12879 fi
12880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12882 fi
12883 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12884 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12885 if test $ac_cv_lib_kstat_kstat_open = yes; then
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_LIBKSTAT 1
12888 _ACEOF
12889
12890 LIBS="-lkstat $LIBS"
12891
12892 fi
12893
12894 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12895
12896 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12897 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12898 # to get the right answer into the cache.
12899 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12900 if test $ac_have_func = no; then
12901 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12902 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12903 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-lelf $LIBS"
12908 cat >conftest.$ac_ext <<_ACEOF
12909 #line $LINENO "configure"
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915
12916 /* Override any gcc2 internal prototype to avoid an error. */
12917 #ifdef __cplusplus
12918 extern "C"
12919 #endif
12920 /* We use char because int might match the return type of a gcc2
12921 builtin and then its argument prototype would still apply. */
12922 char elf_begin ();
12923 int
12924 main ()
12925 {
12926 elf_begin ();
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_lib_elf_elf_begin=yes
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_cv_lib_elf_elf_begin=no
12949 fi
12950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12951 LIBS=$ac_check_lib_save_LIBS
12952 fi
12953 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12954 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12955 if test $ac_cv_lib_elf_elf_begin = yes; then
12956 LIBS="-lelf $LIBS"
12957 fi
12958
12959 fi
12960 if test $ac_have_func = no; then
12961 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12962 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12963 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 ac_check_lib_save_LIBS=$LIBS
12967 LIBS="-lkvm $LIBS"
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char kvm_open ();
12983 int
12984 main ()
12985 {
12986 kvm_open ();
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -s conftest$ac_exeext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_lib_kvm_kvm_open=yes
13004 else
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 ac_cv_lib_kvm_kvm_open=no
13009 fi
13010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
13014 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
13015 if test $ac_cv_lib_kvm_kvm_open = yes; then
13016 LIBS="-lkvm $LIBS"
13017 fi
13018
13019 # Check for the 4.4BSD definition of getloadavg.
13020 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
13021 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
13022 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lutil $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13028 #line $LINENO "configure"
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034
13035 /* Override any gcc2 internal prototype to avoid an error. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 /* We use char because int might match the return type of a gcc2
13040 builtin and then its argument prototype would still apply. */
13041 char getloadavg ();
13042 int
13043 main ()
13044 {
13045 getloadavg ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_lib_util_getloadavg=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_cv_lib_util_getloadavg=no
13068 fi
13069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13070 LIBS=$ac_check_lib_save_LIBS
13071 fi
13072 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
13073 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
13074 if test $ac_cv_lib_util_getloadavg = yes; then
13075 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13076 fi
13077
13078 fi
13079
13080 if test $ac_have_func = no; then
13081 # There is a commonly available library for RS/6000 AIX.
13082 # Since it is not a standard part of AIX, it might be installed locally.
13083 ac_getloadavg_LIBS=$LIBS
13084 LIBS="-L/usr/local/lib $LIBS"
13085 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
13086 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
13087 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lgetloadavg $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13094 /* confdefs.h. */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13099
13100 /* Override any gcc2 internal prototype to avoid an error. */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106 char getloadavg ();
13107 int
13108 main ()
13109 {
13110 getloadavg ();
13111 ;
13112 return 0;
13113 }
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_getloadavg_getloadavg=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132 ac_cv_lib_getloadavg_getloadavg=no
13133 fi
13134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13136 fi
13137 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13138 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13139 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13140 LIBS="-lgetloadavg $LIBS"
13141 else
13142 LIBS=$ac_getloadavg_LIBS
13143 fi
13144
13145 fi
13146
13147 # Make sure it is really in the library, if we think we found it,
13148 # otherwise set up the replacement function.
13149
13150 for ac_func in getloadavg
13151 do
13152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13153 echo "$as_me:$LINENO: checking for $ac_func" >&5
13154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13155 if eval "test \"\${$as_ac_var+set}\" = set"; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 cat >conftest.$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func (); below.
13167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13168 <limits.h> exists even on freestanding compilers. */
13169 #ifdef __STDC__
13170 # include <limits.h>
13171 #else
13172 # include <assert.h>
13173 #endif
13174 /* Override any gcc2 internal prototype to avoid an error. */
13175 #ifdef __cplusplus
13176 extern "C"
13177 {
13178 #endif
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181 char $ac_func ();
13182 /* The GNU C library defines this for functions which it implements
13183 to always fail with ENOSYS. Some functions are actually named
13184 something starting with __ and the normal name is an alias. */
13185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 choke me
13187 #else
13188 char (*f) () = $ac_func;
13189 #endif
13190 #ifdef __cplusplus
13191 }
13192 #endif
13193
13194 int
13195 main ()
13196 {
13197 return f != $ac_func;
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 eval "$as_ac_var=yes"
13215 else
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13218
13219 eval "$as_ac_var=no"
13220 fi
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13222 fi
13223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13225 if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h <<_ACEOF
13227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13228 _ACEOF
13229
13230 else
13231 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13232
13233 cat >>confdefs.h <<\_ACEOF
13234 #define C_GETLOADAVG 1
13235 _ACEOF
13236
13237 # Figure out what our getloadavg.c needs.
13238 ac_have_func=no
13239 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13240 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13241 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13242 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 fi
13245 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13246 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13247 else
13248 # Is the header compilable?
13249 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13250 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 #include <sys/dg_sys_info.h>
13260 _ACEOF
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_header_compiler=yes
13274 else
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278 ac_header_compiler=no
13279 fi
13280 rm -f conftest.$ac_objext conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13282 echo "${ECHO_T}$ac_header_compiler" >&6
13283
13284 # Is the header present?
13285 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13286 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <sys/dg_sys_info.h>
13295 _ACEOF
13296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_c_preproc_warn_flag
13306 else
13307 ac_cpp_err=
13308 fi
13309 else
13310 ac_cpp_err=yes
13311 fi
13312 if test -z "$ac_cpp_err"; then
13313 ac_header_preproc=yes
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318 ac_header_preproc=no
13319 fi
13320 rm -f conftest.err conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6
13323
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc in
13326 yes:no )
13327 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13330 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13331 (
13332 cat <<\_ASBOX
13333 ## ------------------------------------ ##
13334 ## Report this to bug-autoconf@gnu.org. ##
13335 ## ------------------------------------ ##
13336 _ASBOX
13337 ) |
13338 sed "s/^/$as_me: WARNING: /" >&2
13339 ;;
13340 no:yes )
13341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13342 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13344 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13347 (
13348 cat <<\_ASBOX
13349 ## ------------------------------------ ##
13350 ## Report this to bug-autoconf@gnu.org. ##
13351 ## ------------------------------------ ##
13352 _ASBOX
13353 ) |
13354 sed "s/^/$as_me: WARNING: /" >&2
13355 ;;
13356 esac
13357 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13358 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
13363 fi
13364 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13366
13367 fi
13368 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13369 ac_have_func=yes
13370
13371 cat >>confdefs.h <<\_ACEOF
13372 #define DGUX 1
13373 _ACEOF
13374
13375
13376 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13377 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13378 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 ac_check_lib_save_LIBS=$LIBS
13382 LIBS="-ldgc $LIBS"
13383 cat >conftest.$ac_ext <<_ACEOF
13384 #line $LINENO "configure"
13385 /* confdefs.h. */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390
13391 /* Override any gcc2 internal prototype to avoid an error. */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 /* We use char because int might match the return type of a gcc2
13396 builtin and then its argument prototype would still apply. */
13397 char dg_sys_info ();
13398 int
13399 main ()
13400 {
13401 dg_sys_info ();
13402 ;
13403 return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_lib_dgc_dg_sys_info=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_cv_lib_dgc_dg_sys_info=no
13424 fi
13425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13426 LIBS=$ac_check_lib_save_LIBS
13427 fi
13428 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13429 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13430 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_LIBDGC 1
13433 _ACEOF
13434
13435 LIBS="-ldgc $LIBS"
13436
13437 fi
13438
13439 fi
13440
13441
13442
13443 if test "${ac_cv_header_locale_h+set}" = set; then
13444 echo "$as_me:$LINENO: checking for locale.h" >&5
13445 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13446 if test "${ac_cv_header_locale_h+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 fi
13449 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13450 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13451 else
13452 # Is the header compilable?
13453 echo "$as_me:$LINENO: checking locale.h usability" >&5
13454 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13455 cat >conftest.$ac_ext <<_ACEOF
13456 #line $LINENO "configure"
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <locale.h>
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467 (eval $ac_compile) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_header_compiler=no
13483 fi
13484 rm -f conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6
13487
13488 # Is the header present?
13489 echo "$as_me:$LINENO: checking locale.h presence" >&5
13490 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <locale.h>
13499 _ACEOF
13500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev/null; then
13508 if test -s conftest.err; then
13509 ac_cpp_err=$ac_c_preproc_warn_flag
13510 else
13511 ac_cpp_err=
13512 fi
13513 else
13514 ac_cpp_err=yes
13515 fi
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_header_preproc=no
13523 fi
13524 rm -f conftest.err conftest.$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13527
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc in
13530 yes:no )
13531 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13534 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13535 (
13536 cat <<\_ASBOX
13537 ## ------------------------------------ ##
13538 ## Report this to bug-autoconf@gnu.org. ##
13539 ## ------------------------------------ ##
13540 _ASBOX
13541 ) |
13542 sed "s/^/$as_me: WARNING: /" >&2
13543 ;;
13544 no:yes )
13545 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13551 (
13552 cat <<\_ASBOX
13553 ## ------------------------------------ ##
13554 ## Report this to bug-autoconf@gnu.org. ##
13555 ## ------------------------------------ ##
13556 _ASBOX
13557 ) |
13558 sed "s/^/$as_me: WARNING: /" >&2
13559 ;;
13560 esac
13561 echo "$as_me:$LINENO: checking for locale.h" >&5
13562 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13563 if test "${ac_cv_header_locale_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 ac_cv_header_locale_h=$ac_header_preproc
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13570
13571 fi
13572
13573
13574
13575 for ac_func in setlocale
13576 do
13577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13578 echo "$as_me:$LINENO: checking for $ac_func" >&5
13579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_var+set}\" = set"; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13585 /* confdefs.h. */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 /* System header to define __stub macros and hopefully few prototypes,
13591 which can conflict with char $ac_func (); below.
13592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593 <limits.h> exists even on freestanding compilers. */
13594 #ifdef __STDC__
13595 # include <limits.h>
13596 #else
13597 # include <assert.h>
13598 #endif
13599 /* Override any gcc2 internal prototype to avoid an error. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 {
13603 #endif
13604 /* We use char because int might match the return type of a gcc2
13605 builtin and then its argument prototype would still apply. */
13606 char $ac_func ();
13607 /* The GNU C library defines this for functions which it implements
13608 to always fail with ENOSYS. Some functions are actually named
13609 something starting with __ and the normal name is an alias. */
13610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13611 choke me
13612 #else
13613 char (*f) () = $ac_func;
13614 #endif
13615 #ifdef __cplusplus
13616 }
13617 #endif
13618
13619 int
13620 main ()
13621 {
13622 return f != $ac_func;
13623 ;
13624 return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 eval "$as_ac_var=yes"
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 eval "$as_ac_var=no"
13645 fi
13646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13647 fi
13648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13650 if test `eval echo '${'$as_ac_var'}'` = yes; then
13651 cat >>confdefs.h <<_ACEOF
13652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13653 _ACEOF
13654
13655 fi
13656 done
13657
13658
13659 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13660 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13661 # Irix 4.0.5F has the header but not the library.
13662 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13663 ac_have_func=yes
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define SVR4 1
13667 _ACEOF
13668
13669 fi
13670
13671 if test $ac_have_func = no; then
13672 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13673 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13674 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13675 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 fi
13678 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13679 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13680 else
13681 # Is the header compilable?
13682 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13683 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 #include <inq_stats/cpustats.h>
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_header_compiler=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 ac_header_compiler=no
13712 fi
13713 rm -f conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13715 echo "${ECHO_T}$ac_header_compiler" >&6
13716
13717 # Is the header present?
13718 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13719 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 #include <inq_stats/cpustats.h>
13728 _ACEOF
13729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } >/dev/null; then
13737 if test -s conftest.err; then
13738 ac_cpp_err=$ac_c_preproc_warn_flag
13739 else
13740 ac_cpp_err=
13741 fi
13742 else
13743 ac_cpp_err=yes
13744 fi
13745 if test -z "$ac_cpp_err"; then
13746 ac_header_preproc=yes
13747 else
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_header_preproc=no
13752 fi
13753 rm -f conftest.err conftest.$ac_ext
13754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6
13756
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc in
13759 yes:no )
13760 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13764 (
13765 cat <<\_ASBOX
13766 ## ------------------------------------ ##
13767 ## Report this to bug-autoconf@gnu.org. ##
13768 ## ------------------------------------ ##
13769 _ASBOX
13770 ) |
13771 sed "s/^/$as_me: WARNING: /" >&2
13772 ;;
13773 no:yes )
13774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13775 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13777 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13779 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13780 (
13781 cat <<\_ASBOX
13782 ## ------------------------------------ ##
13783 ## Report this to bug-autoconf@gnu.org. ##
13784 ## ------------------------------------ ##
13785 _ASBOX
13786 ) |
13787 sed "s/^/$as_me: WARNING: /" >&2
13788 ;;
13789 esac
13790 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13791 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13792 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13796 fi
13797 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13798 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13799
13800 fi
13801 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13802 ac_have_func=yes
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define UMAX 1
13806 _ACEOF
13807
13808
13809 cat >>confdefs.h <<\_ACEOF
13810 #define UMAX4_3 1
13811 _ACEOF
13812
13813 fi
13814
13815
13816 fi
13817
13818 if test $ac_have_func = no; then
13819 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13820 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13821 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 fi
13825 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13826 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13827 else
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13830 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 #include <sys/cpustats.h>
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_header_compiler=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_header_compiler=no
13859 fi
13860 rm -f conftest.$ac_objext conftest.$ac_ext
13861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13862 echo "${ECHO_T}$ac_header_compiler" >&6
13863
13864 # Is the header present?
13865 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13866 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 /* confdefs.h. */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 #include <sys/cpustats.h>
13875 _ACEOF
13876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } >/dev/null; then
13884 if test -s conftest.err; then
13885 ac_cpp_err=$ac_c_preproc_warn_flag
13886 else
13887 ac_cpp_err=
13888 fi
13889 else
13890 ac_cpp_err=yes
13891 fi
13892 if test -z "$ac_cpp_err"; then
13893 ac_header_preproc=yes
13894 else
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_header_preproc=no
13899 fi
13900 rm -f conftest.err conftest.$ac_ext
13901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902 echo "${ECHO_T}$ac_header_preproc" >&6
13903
13904 # So? What about this header?
13905 case $ac_header_compiler:$ac_header_preproc in
13906 yes:no )
13907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13911 (
13912 cat <<\_ASBOX
13913 ## ------------------------------------ ##
13914 ## Report this to bug-autoconf@gnu.org. ##
13915 ## ------------------------------------ ##
13916 _ASBOX
13917 ) |
13918 sed "s/^/$as_me: WARNING: /" >&2
13919 ;;
13920 no:yes )
13921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13922 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13924 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13927 (
13928 cat <<\_ASBOX
13929 ## ------------------------------------ ##
13930 ## Report this to bug-autoconf@gnu.org. ##
13931 ## ------------------------------------ ##
13932 _ASBOX
13933 ) |
13934 sed "s/^/$as_me: WARNING: /" >&2
13935 ;;
13936 esac
13937 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13938 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13939 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13943 fi
13944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13946
13947 fi
13948 if test $ac_cv_header_sys_cpustats_h = yes; then
13949 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13950 #define UMAX 1
13951 _ACEOF
13952
13953 fi
13954
13955
13956 fi
13957
13958 if test $ac_have_func = no; then
13959
13960 for ac_header in mach/mach.h
13961 do
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13964 echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 fi
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13971 else
13972 # Is the header compilable?
13973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 $ac_includes_default
13983 #include <$ac_header>
13984 _ACEOF
13985 rm -f conftest.$ac_objext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_header_compiler=yes
13998 else
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002 ac_header_compiler=no
14003 fi
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14006 echo "${ECHO_T}$ac_header_compiler" >&6
14007
14008 # Is the header present?
14009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14011 cat >conftest.$ac_ext <<_ACEOF
14012 #line $LINENO "configure"
14013 /* confdefs.h. */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #include <$ac_header>
14019 _ACEOF
14020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } >/dev/null; then
14028 if test -s conftest.err; then
14029 ac_cpp_err=$ac_c_preproc_warn_flag
14030 else
14031 ac_cpp_err=
14032 fi
14033 else
14034 ac_cpp_err=yes
14035 fi
14036 if test -z "$ac_cpp_err"; then
14037 ac_header_preproc=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_header_preproc=no
14043 fi
14044 rm -f conftest.err conftest.$ac_ext
14045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14046 echo "${ECHO_T}$ac_header_preproc" >&6
14047
14048 # So? What about this header?
14049 case $ac_header_compiler:$ac_header_preproc in
14050 yes:no )
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055 (
14056 cat <<\_ASBOX
14057 ## ------------------------------------ ##
14058 ## Report this to bug-autoconf@gnu.org. ##
14059 ## ------------------------------------ ##
14060 _ASBOX
14061 ) |
14062 sed "s/^/$as_me: WARNING: /" >&2
14063 ;;
14064 no:yes )
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14071 (
14072 cat <<\_ASBOX
14073 ## ------------------------------------ ##
14074 ## Report this to bug-autoconf@gnu.org. ##
14075 ## ------------------------------------ ##
14076 _ASBOX
14077 ) |
14078 sed "s/^/$as_me: WARNING: /" >&2
14079 ;;
14080 esac
14081 echo "$as_me:$LINENO: checking for $ac_header" >&5
14082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 eval "$as_ac_Header=$ac_header_preproc"
14087 fi
14088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14090
14091 fi
14092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14093 cat >>confdefs.h <<_ACEOF
14094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14095 _ACEOF
14096
14097 fi
14098
14099 done
14100
14101 fi
14102
14103
14104 for ac_header in nlist.h
14105 do
14106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 fi
14113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14115 else
14116 # Is the header compilable?
14117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 $ac_includes_default
14127 #include <$ac_header>
14128 _ACEOF
14129 rm -f conftest.$ac_objext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14131 (eval $ac_compile) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try='test -s conftest.$ac_objext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_header_compiler=yes
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ac_header_compiler=no
14147 fi
14148 rm -f conftest.$ac_objext conftest.$ac_ext
14149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14150 echo "${ECHO_T}$ac_header_compiler" >&6
14151
14152 # Is the header present?
14153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <$ac_header>
14163 _ACEOF
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null; then
14172 if test -s conftest.err; then
14173 ac_cpp_err=$ac_c_preproc_warn_flag
14174 else
14175 ac_cpp_err=
14176 fi
14177 else
14178 ac_cpp_err=yes
14179 fi
14180 if test -z "$ac_cpp_err"; then
14181 ac_header_preproc=yes
14182 else
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186 ac_header_preproc=no
14187 fi
14188 rm -f conftest.err conftest.$ac_ext
14189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 echo "${ECHO_T}$ac_header_preproc" >&6
14191
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc in
14194 yes:no )
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199 (
14200 cat <<\_ASBOX
14201 ## ------------------------------------ ##
14202 ## Report this to bug-autoconf@gnu.org. ##
14203 ## ------------------------------------ ##
14204 _ASBOX
14205 ) |
14206 sed "s/^/$as_me: WARNING: /" >&2
14207 ;;
14208 no:yes )
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14215 (
14216 cat <<\_ASBOX
14217 ## ------------------------------------ ##
14218 ## Report this to bug-autoconf@gnu.org. ##
14219 ## ------------------------------------ ##
14220 _ASBOX
14221 ) |
14222 sed "s/^/$as_me: WARNING: /" >&2
14223 ;;
14224 esac
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 eval "$as_ac_Header=$ac_header_preproc"
14231 fi
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234
14235 fi
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14241 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14242 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 /* confdefs.h. */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 #include <nlist.h>
14253
14254 int
14255 main ()
14256 {
14257 static struct nlist ac_aggr;
14258 if (ac_aggr.n_un.n_name)
14259 return 0;
14260 ;
14261 return 0;
14262 }
14263 _ACEOF
14264 rm -f conftest.$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_member_struct_nlist_n_un_n_name=yes
14277 else
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281 cat >conftest.$ac_ext <<_ACEOF
14282 #line $LINENO "configure"
14283 /* confdefs.h. */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 #include <nlist.h>
14289
14290 int
14291 main ()
14292 {
14293 static struct nlist ac_aggr;
14294 if (sizeof ac_aggr.n_un.n_name)
14295 return 0;
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext
14301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14302 (eval $ac_compile) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_member_struct_nlist_n_un_n_name=yes
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 ac_cv_member_struct_nlist_n_un_n_name=no
14318 fi
14319 rm -f conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 rm -f conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14325 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14326
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14329 _ACEOF
14330
14331
14332 cat >>confdefs.h <<\_ACEOF
14333 #define NLIST_NAME_UNION 1
14334 _ACEOF
14335
14336 fi
14337
14338
14339 fi
14340
14341 done
14342
14343 fi
14344 done
14345
14346
14347 # Some definitions of getloadavg require that the program be installed setgid.
14348 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14349 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14350 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353 cat >conftest.$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14361 #ifdef LDAV_PRIVILEGED
14362 Yowza Am I SETGID yet
14363 #endif
14364 _ACEOF
14365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14366 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
14367 ac_cv_func_getloadavg_setgid=yes
14368 else
14369 ac_cv_func_getloadavg_setgid=no
14370 fi
14371 rm -f conftest*
14372
14373 fi
14374 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14375 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14376 if test $ac_cv_func_getloadavg_setgid = yes; then
14377 NEED_SETGID=true
14378
14379 cat >>confdefs.h <<\_ACEOF
14380 #define GETLOADAVG_PRIVILEGED 1
14381 _ACEOF
14382
14383 else
14384 NEED_SETGID=false
14385 fi
14386
14387 if test $ac_cv_func_getloadavg_setgid = yes; then
14388 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14389 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14390 if test "${ac_cv_group_kmem+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14394 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
14395 # If we got an error (system does not support symlinks), try without -L.
14396 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
14397 ac_cv_group_kmem=`echo $ac_ls_output \
14398 | sed -ne 's/[ ][ ]*/ /g;
14399 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14400 / /s/.* //;p;'`
14401
14402 fi
14403 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14404 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14405 KMEM_GROUP=$ac_cv_group_kmem
14406 fi
14407 if test "x$ac_save_LIBS" = x; then
14408 GETLOADAVG_LIBS=$LIBS
14409 else
14410 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14411 fi
14412 LIBS=$ac_save_LIBS
14413
14414
14415
14416 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14417 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14418 if test "${ac_cv_sys_largefile_source+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421 while :; do
14422 ac_cv_sys_largefile_source=no
14423 cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include <stdio.h>
14431 int
14432 main ()
14433 {
14434 return !fseeko;
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 break
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 fi
14457 rm -f conftest.$ac_objext conftest.$ac_ext
14458 cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #define _LARGEFILE_SOURCE 1
14466 #include <stdio.h>
14467 int
14468 main ()
14469 {
14470 return !fseeko;
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_sys_largefile_source=1; break
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 fi
14493 rm -f conftest.$ac_objext conftest.$ac_ext
14494 break
14495 done
14496 fi
14497 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14498 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14499 if test "$ac_cv_sys_largefile_source" != no; then
14500
14501 cat >>confdefs.h <<_ACEOF
14502 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14503 _ACEOF
14504
14505 fi
14506 rm -f conftest*
14507
14508 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14509 # in glibc 2.1.3, but that breaks too many other things.
14510 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14511 echo "$as_me:$LINENO: checking for fseeko" >&5
14512 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14513 if test "${ac_cv_func_fseeko+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <stdio.h>
14524 int
14525 main ()
14526 {
14527 return fseeko && fseeko (stdin, 0, 0);
14528 ;
14529 return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_func_fseeko=yes
14545 else
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_cv_func_fseeko=no
14550 fi
14551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14552 fi
14553 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14554 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14555 if test $ac_cv_func_fseeko = yes; then
14556
14557 cat >>confdefs.h <<\_ACEOF
14558 #define HAVE_FSEEKO 1
14559 _ACEOF
14560
14561 fi
14562
14563
14564 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14565 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14566 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569 # Use it with a single arg.
14570 cat >conftest.$ac_ext <<_ACEOF
14571 #line $LINENO "configure"
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 int
14579 main ()
14580 {
14581 getpgrp (0);
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_func_getpgrp_void=no
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 ac_cv_func_getpgrp_void=yes
14604 fi
14605 rm -f conftest.$ac_objext conftest.$ac_ext
14606
14607 fi
14608 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14609 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14610 if test $ac_cv_func_getpgrp_void = yes; then
14611
14612 cat >>confdefs.h <<\_ACEOF
14613 #define GETPGRP_VOID 1
14614 _ACEOF
14615
14616 fi
14617
14618
14619
14620 for ac_func in strftime
14621 do
14622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 echo "$as_me:$LINENO: checking for $ac_func" >&5
14624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14625 if eval "test \"\${$as_ac_var+set}\" = set"; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628 cat >conftest.$ac_ext <<_ACEOF
14629 #line $LINENO "configure"
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 /* System header to define __stub macros and hopefully few prototypes,
14636 which can conflict with char $ac_func (); below.
14637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638 <limits.h> exists even on freestanding compilers. */
14639 #ifdef __STDC__
14640 # include <limits.h>
14641 #else
14642 # include <assert.h>
14643 #endif
14644 /* Override any gcc2 internal prototype to avoid an error. */
14645 #ifdef __cplusplus
14646 extern "C"
14647 {
14648 #endif
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14651 char $ac_func ();
14652 /* The GNU C library defines this for functions which it implements
14653 to always fail with ENOSYS. Some functions are actually named
14654 something starting with __ and the normal name is an alias. */
14655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14656 choke me
14657 #else
14658 char (*f) () = $ac_func;
14659 #endif
14660 #ifdef __cplusplus
14661 }
14662 #endif
14663
14664 int
14665 main ()
14666 {
14667 return f != $ac_func;
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -s conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 eval "$as_ac_var=yes"
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 eval "$as_ac_var=no"
14690 fi
14691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14692 fi
14693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14695 if test `eval echo '${'$as_ac_var'}'` = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 _ACEOF
14699
14700 else
14701 # strftime is in -lintl on SCO UNIX.
14702 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14703 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14704 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707 ac_check_lib_save_LIBS=$LIBS
14708 LIBS="-lintl $LIBS"
14709 cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716
14717 /* Override any gcc2 internal prototype to avoid an error. */
14718 #ifdef __cplusplus
14719 extern "C"
14720 #endif
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14723 char strftime ();
14724 int
14725 main ()
14726 {
14727 strftime ();
14728 ;
14729 return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_lib_intl_strftime=yes
14745 else
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ac_cv_lib_intl_strftime=no
14750 fi
14751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14752 LIBS=$ac_check_lib_save_LIBS
14753 fi
14754 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14755 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14756 if test $ac_cv_lib_intl_strftime = yes; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_STRFTIME 1
14759 _ACEOF
14760
14761 LIBS="-lintl $LIBS"
14762 fi
14763
14764 fi
14765 done
14766
14767
14768 # UNIX98 PTYs.
14769
14770 for ac_func in grantpt
14771 do
14772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14773 echo "$as_me:$LINENO: checking for $ac_func" >&5
14774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14775 if eval "test \"\${$as_ac_var+set}\" = set"; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 /* System header to define __stub macros and hopefully few prototypes,
14786 which can conflict with char $ac_func (); below.
14787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14788 <limits.h> exists even on freestanding compilers. */
14789 #ifdef __STDC__
14790 # include <limits.h>
14791 #else
14792 # include <assert.h>
14793 #endif
14794 /* Override any gcc2 internal prototype to avoid an error. */
14795 #ifdef __cplusplus
14796 extern "C"
14797 {
14798 #endif
14799 /* We use char because int might match the return type of a gcc2
14800 builtin and then its argument prototype would still apply. */
14801 char $ac_func ();
14802 /* The GNU C library defines this for functions which it implements
14803 to always fail with ENOSYS. Some functions are actually named
14804 something starting with __ and the normal name is an alias. */
14805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14806 choke me
14807 #else
14808 char (*f) () = $ac_func;
14809 #endif
14810 #ifdef __cplusplus
14811 }
14812 #endif
14813
14814 int
14815 main ()
14816 {
14817 return f != $ac_func;
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 eval "$as_ac_var=yes"
14835 else
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 eval "$as_ac_var=no"
14840 fi
14841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14842 fi
14843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14845 if test `eval echo '${'$as_ac_var'}'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14848 _ACEOF
14849
14850 fi
14851 done
14852
14853
14854 # PTY-related GNU extensions.
14855
14856 for ac_func in getpt
14857 do
14858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14859 echo "$as_me:$LINENO: checking for $ac_func" >&5
14860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14861 if eval "test \"\${$as_ac_var+set}\" = set"; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 cat >conftest.$ac_ext <<_ACEOF
14865 #line $LINENO "configure"
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 /* System header to define __stub macros and hopefully few prototypes,
14872 which can conflict with char $ac_func (); below.
14873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14874 <limits.h> exists even on freestanding compilers. */
14875 #ifdef __STDC__
14876 # include <limits.h>
14877 #else
14878 # include <assert.h>
14879 #endif
14880 /* Override any gcc2 internal prototype to avoid an error. */
14881 #ifdef __cplusplus
14882 extern "C"
14883 {
14884 #endif
14885 /* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14887 char $ac_func ();
14888 /* The GNU C library defines this for functions which it implements
14889 to always fail with ENOSYS. Some functions are actually named
14890 something starting with __ and the normal name is an alias. */
14891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14892 choke me
14893 #else
14894 char (*f) () = $ac_func;
14895 #endif
14896 #ifdef __cplusplus
14897 }
14898 #endif
14899
14900 int
14901 main ()
14902 {
14903 return f != $ac_func;
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 eval "$as_ac_var=yes"
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 eval "$as_ac_var=no"
14926 fi
14927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14928 fi
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14931 if test `eval echo '${'$as_ac_var'}'` = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14934 _ACEOF
14935
14936 fi
14937 done
14938
14939
14940 # Check this now, so that we will NOT find the above functions in ncurses.
14941 # That is because we have not set up to link ncurses in lib-src.
14942 # It's better to believe a function is not available
14943 # than to expect to find it in ncurses.
14944
14945 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14946 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14947 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-lncurses $LIBS"
14952 cat >conftest.$ac_ext <<_ACEOF
14953 #line $LINENO "configure"
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959
14960 /* Override any gcc2 internal prototype to avoid an error. */
14961 #ifdef __cplusplus
14962 extern "C"
14963 #endif
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14966 char tparm ();
14967 int
14968 main ()
14969 {
14970 tparm ();
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -s conftest$ac_exeext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_lib_ncurses_tparm=yes
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 ac_cv_lib_ncurses_tparm=no
14993 fi
14994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14996 fi
14997 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14998 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14999 if test $ac_cv_lib_ncurses_tparm = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001 #define HAVE_LIBNCURSES 1
15002 _ACEOF
15003
15004 LIBS="-lncurses $LIBS"
15005
15006 fi
15007
15008
15009 # Do we need the Hesiod library to provide the support routines?
15010 if test "$with_hesiod" = yes ; then
15011 # Don't set $LIBS here -- see comments above.
15012 resolv=no
15013 echo "$as_me:$LINENO: checking for res_send" >&5
15014 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
15015 if test "${ac_cv_func_res_send+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018 cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 /* System header to define __stub macros and hopefully few prototypes,
15026 which can conflict with char res_send (); below.
15027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028 <limits.h> exists even on freestanding compilers. */
15029 #ifdef __STDC__
15030 # include <limits.h>
15031 #else
15032 # include <assert.h>
15033 #endif
15034 /* Override any gcc2 internal prototype to avoid an error. */
15035 #ifdef __cplusplus
15036 extern "C"
15037 {
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041 char res_send ();
15042 /* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045 #if defined (__stub_res_send) || defined (__stub___res_send)
15046 choke me
15047 #else
15048 char (*f) () = res_send;
15049 #endif
15050 #ifdef __cplusplus
15051 }
15052 #endif
15053
15054 int
15055 main ()
15056 {
15057 return f != res_send;
15058 ;
15059 return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -s conftest$ac_exeext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_cv_func_res_send=yes
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ac_cv_func_res_send=no
15080 fi
15081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15082 fi
15083 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
15084 echo "${ECHO_T}$ac_cv_func_res_send" >&6
15085 if test $ac_cv_func_res_send = yes; then
15086 :
15087 else
15088 echo "$as_me:$LINENO: checking for __res_send" >&5
15089 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
15090 if test "${ac_cv_func___res_send+set}" = set; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093 cat >conftest.$ac_ext <<_ACEOF
15094 #line $LINENO "configure"
15095 /* confdefs.h. */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15100 /* System header to define __stub macros and hopefully few prototypes,
15101 which can conflict with char __res_send (); below.
15102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103 <limits.h> exists even on freestanding compilers. */
15104 #ifdef __STDC__
15105 # include <limits.h>
15106 #else
15107 # include <assert.h>
15108 #endif
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 {
15113 #endif
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15116 char __res_send ();
15117 /* The GNU C library defines this for functions which it implements
15118 to always fail with ENOSYS. Some functions are actually named
15119 something starting with __ and the normal name is an alias. */
15120 #if defined (__stub___res_send) || defined (__stub_____res_send)
15121 choke me
15122 #else
15123 char (*f) () = __res_send;
15124 #endif
15125 #ifdef __cplusplus
15126 }
15127 #endif
15128
15129 int
15130 main ()
15131 {
15132 return f != __res_send;
15133 ;
15134 return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15139 (eval $ac_link) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -s conftest$ac_exeext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_cv_func___res_send=yes
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 ac_cv_func___res_send=no
15155 fi
15156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15157 fi
15158 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15159 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15160 if test $ac_cv_func___res_send = yes; then
15161 :
15162 else
15163 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15164 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15165 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 ac_check_lib_save_LIBS=$LIBS
15169 LIBS="-lresolv $LIBS"
15170 cat >conftest.$ac_ext <<_ACEOF
15171 #line $LINENO "configure"
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 #ifdef __cplusplus
15180 extern "C"
15181 #endif
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15184 char res_send ();
15185 int
15186 main ()
15187 {
15188 res_send ();
15189 ;
15190 return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -s conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_lib_resolv_res_send=yes
15206 else
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 ac_cv_lib_resolv_res_send=no
15211 fi
15212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15214 fi
15215 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15216 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15217 if test $ac_cv_lib_resolv_res_send = yes; then
15218 resolv=yes
15219 else
15220 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15221 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15222 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225 ac_check_lib_save_LIBS=$LIBS
15226 LIBS="-lresolv $LIBS"
15227 cat >conftest.$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234
15235 /* Override any gcc2 internal prototype to avoid an error. */
15236 #ifdef __cplusplus
15237 extern "C"
15238 #endif
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char __res_send ();
15242 int
15243 main ()
15244 {
15245 __res_send ();
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -s conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 ac_cv_lib_resolv___res_send=yes
15263 else
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267 ac_cv_lib_resolv___res_send=no
15268 fi
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15271 fi
15272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15274 if test $ac_cv_lib_resolv___res_send = yes; then
15275 resolv=yes
15276 fi
15277
15278 fi
15279
15280 fi
15281
15282 fi
15283
15284 if test "$resolv" = yes ; then
15285 RESOLVLIB=-lresolv
15286
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_LIBRESOLV 1
15289 _ACEOF
15290
15291 else
15292 RESOLVLIB=
15293 fi
15294 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15295 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15296 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 cat >conftest.$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char hes_getmailhost (); below.
15308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309 <limits.h> exists even on freestanding compilers. */
15310 #ifdef __STDC__
15311 # include <limits.h>
15312 #else
15313 # include <assert.h>
15314 #endif
15315 /* Override any gcc2 internal prototype to avoid an error. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 {
15319 #endif
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15322 char hes_getmailhost ();
15323 /* The GNU C library defines this for functions which it implements
15324 to always fail with ENOSYS. Some functions are actually named
15325 something starting with __ and the normal name is an alias. */
15326 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15327 choke me
15328 #else
15329 char (*f) () = hes_getmailhost;
15330 #endif
15331 #ifdef __cplusplus
15332 }
15333 #endif
15334
15335 int
15336 main ()
15337 {
15338 return f != hes_getmailhost;
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345 (eval $ac_link) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -s conftest$ac_exeext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_func_hes_getmailhost=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_cv_func_hes_getmailhost=no
15361 fi
15362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15363 fi
15364 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15365 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15366 if test $ac_cv_func_hes_getmailhost = yes; then
15367 :
15368 else
15369 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15370 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15371 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 ac_check_lib_save_LIBS=$LIBS
15375 LIBS="-lhesiod $RESOLVLIB $LIBS"
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383
15384 /* Override any gcc2 internal prototype to avoid an error. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 /* We use char because int might match the return type of a gcc2
15389 builtin and then its argument prototype would still apply. */
15390 char hes_getmailhost ();
15391 int
15392 main ()
15393 {
15394 hes_getmailhost ();
15395 ;
15396 return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401 (eval $ac_link) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -s conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 ac_cv_lib_hesiod_hes_getmailhost=yes
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 ac_cv_lib_hesiod_hes_getmailhost=no
15417 fi
15418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15420 fi
15421 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15422 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15423 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15424
15425 cat >>confdefs.h <<\_ACEOF
15426 #define HAVE_LIBHESIOD 1
15427 _ACEOF
15428
15429 else
15430 :
15431 fi
15432
15433 fi
15434
15435 fi
15436
15437 # These tell us which Kerberos-related libraries to use.
15438 if test "${with_kerberos+set}" = set; then
15439
15440 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15441 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15442 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 ac_check_lib_save_LIBS=$LIBS
15446 LIBS="-lcom_err $LIBS"
15447 cat >conftest.$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454
15455 /* Override any gcc2 internal prototype to avoid an error. */
15456 #ifdef __cplusplus
15457 extern "C"
15458 #endif
15459 /* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15461 char com_err ();
15462 int
15463 main ()
15464 {
15465 com_err ();
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -s conftest$ac_exeext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_cv_lib_com_err_com_err=yes
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 ac_cv_lib_com_err_com_err=no
15488 fi
15489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15490 LIBS=$ac_check_lib_save_LIBS
15491 fi
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15493 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15494 if test $ac_cv_lib_com_err_com_err = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define HAVE_LIBCOM_ERR 1
15497 _ACEOF
15498
15499 LIBS="-lcom_err $LIBS"
15500
15501 fi
15502
15503
15504 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15505 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15506 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-lk5crypto $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15512 #line $LINENO "configure"
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 #ifdef __cplusplus
15521 extern "C"
15522 #endif
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char mit_des_cbc_encrypt ();
15526 int
15527 main ()
15528 {
15529 mit_des_cbc_encrypt ();
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15547 else
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15550
15551 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15552 fi
15553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15557 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15558 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_LIBK5CRYPTO 1
15561 _ACEOF
15562
15563 LIBS="-lk5crypto $LIBS"
15564
15565 fi
15566
15567
15568 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15569 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15570 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573 ac_check_lib_save_LIBS=$LIBS
15574 LIBS="-lcrypto $LIBS"
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582
15583 /* Override any gcc2 internal prototype to avoid an error. */
15584 #ifdef __cplusplus
15585 extern "C"
15586 #endif
15587 /* We use char because int might match the return type of a gcc2
15588 builtin and then its argument prototype would still apply. */
15589 char mit_des_cbc_encrypt ();
15590 int
15591 main ()
15592 {
15593 mit_des_cbc_encrypt ();
15594 ;
15595 return 0;
15596 }
15597 _ACEOF
15598 rm -f conftest.$ac_objext conftest$ac_exeext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15616 fi
15617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618 LIBS=$ac_check_lib_save_LIBS
15619 fi
15620 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15621 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15622 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define HAVE_LIBCRYPTO 1
15625 _ACEOF
15626
15627 LIBS="-lcrypto $LIBS"
15628
15629 fi
15630
15631
15632 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15633 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15634 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 ac_check_lib_save_LIBS=$LIBS
15638 LIBS="-lkrb5 $LIBS"
15639 cat >conftest.$ac_ext <<_ACEOF
15640 #line $LINENO "configure"
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646
15647 /* Override any gcc2 internal prototype to avoid an error. */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653 char krb5_init_context ();
15654 int
15655 main ()
15656 {
15657 krb5_init_context ();
15658 ;
15659 return 0;
15660 }
15661 _ACEOF
15662 rm -f conftest.$ac_objext conftest$ac_exeext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664 (eval $ac_link) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -s conftest$ac_exeext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_lib_krb5_krb5_init_context=yes
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 ac_cv_lib_krb5_krb5_init_context=no
15680 fi
15681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15683 fi
15684 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15685 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15686 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBKRB5 1
15689 _ACEOF
15690
15691 LIBS="-lkrb5 $LIBS"
15692
15693 fi
15694
15695 if test "${with_kerberos5+set}" != set; then
15696
15697 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15698 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15699 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 ac_check_lib_save_LIBS=$LIBS
15703 LIBS="-ldes425 $LIBS"
15704 cat >conftest.$ac_ext <<_ACEOF
15705 #line $LINENO "configure"
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711
15712 /* Override any gcc2 internal prototype to avoid an error. */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 /* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15718 char des_cbc_encrypt ();
15719 int
15720 main ()
15721 {
15722 des_cbc_encrypt ();
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_des425_des_cbc_encrypt=yes
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ac_cv_lib_des425_des_cbc_encrypt=no
15745 fi
15746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15748 fi
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15750 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15751 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBDES425 1
15754 _ACEOF
15755
15756 LIBS="-ldes425 $LIBS"
15757
15758 else
15759
15760 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15761 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15762 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 ac_check_lib_save_LIBS=$LIBS
15766 LIBS="-ldes $LIBS"
15767 cat >conftest.$ac_ext <<_ACEOF
15768 #line $LINENO "configure"
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15774
15775 /* Override any gcc2 internal prototype to avoid an error. */
15776 #ifdef __cplusplus
15777 extern "C"
15778 #endif
15779 /* We use char because int might match the return type of a gcc2
15780 builtin and then its argument prototype would still apply. */
15781 char des_cbc_encrypt ();
15782 int
15783 main ()
15784 {
15785 des_cbc_encrypt ();
15786 ;
15787 return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_lib_des_des_cbc_encrypt=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_cv_lib_des_des_cbc_encrypt=no
15808 fi
15809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15810 LIBS=$ac_check_lib_save_LIBS
15811 fi
15812 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15813 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15814 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15815 cat >>confdefs.h <<_ACEOF
15816 #define HAVE_LIBDES 1
15817 _ACEOF
15818
15819 LIBS="-ldes $LIBS"
15820
15821 fi
15822
15823 fi
15824
15825
15826 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15827 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15828 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 ac_check_lib_save_LIBS=$LIBS
15832 LIBS="-lkrb4 $LIBS"
15833 cat >conftest.$ac_ext <<_ACEOF
15834 #line $LINENO "configure"
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840
15841 /* Override any gcc2 internal prototype to avoid an error. */
15842 #ifdef __cplusplus
15843 extern "C"
15844 #endif
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847 char krb_get_cred ();
15848 int
15849 main ()
15850 {
15851 krb_get_cred ();
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_lib_krb4_krb_get_cred=yes
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_cv_lib_krb4_krb_get_cred=no
15874 fi
15875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15876 LIBS=$ac_check_lib_save_LIBS
15877 fi
15878 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15879 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15880 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_LIBKRB4 1
15883 _ACEOF
15884
15885 LIBS="-lkrb4 $LIBS"
15886
15887 else
15888
15889 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15890 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15891 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lkrb $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15897 #line $LINENO "configure"
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903
15904 /* Override any gcc2 internal prototype to avoid an error. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 /* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910 char krb_get_cred ();
15911 int
15912 main ()
15913 {
15914 krb_get_cred ();
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15921 (eval $ac_link) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest$ac_exeext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_cv_lib_krb_krb_get_cred=yes
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_cv_lib_krb_krb_get_cred=no
15937 fi
15938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15940 fi
15941 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15942 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15943 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15944 cat >>confdefs.h <<_ACEOF
15945 #define HAVE_LIBKRB 1
15946 _ACEOF
15947
15948 LIBS="-lkrb $LIBS"
15949
15950 fi
15951
15952 fi
15953
15954 fi
15955
15956 if test "${with_kerberos5+set}" = set; then
15957
15958 for ac_header in krb5.h
15959 do
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 fi
15967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15969 else
15970 # Is the header compilable?
15971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15974 #line $LINENO "configure"
15975 /* confdefs.h. */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 #include <$ac_header>
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_header_compiler=yes
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 ac_header_compiler=no
16001 fi
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16004 echo "${ECHO_T}$ac_header_compiler" >&6
16005
16006 # Is the header present?
16007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <$ac_header>
16017 _ACEOF
16018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } >/dev/null; then
16026 if test -s conftest.err; then
16027 ac_cpp_err=$ac_c_preproc_warn_flag
16028 else
16029 ac_cpp_err=
16030 fi
16031 else
16032 ac_cpp_err=yes
16033 fi
16034 if test -z "$ac_cpp_err"; then
16035 ac_header_preproc=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_header_preproc=no
16041 fi
16042 rm -f conftest.err conftest.$ac_ext
16043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16044 echo "${ECHO_T}$ac_header_preproc" >&6
16045
16046 # So? What about this header?
16047 case $ac_header_compiler:$ac_header_preproc in
16048 yes:no )
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16053 (
16054 cat <<\_ASBOX
16055 ## ------------------------------------ ##
16056 ## Report this to bug-autoconf@gnu.org. ##
16057 ## ------------------------------------ ##
16058 _ASBOX
16059 ) |
16060 sed "s/^/$as_me: WARNING: /" >&2
16061 ;;
16062 no:yes )
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16069 (
16070 cat <<\_ASBOX
16071 ## ------------------------------------ ##
16072 ## Report this to bug-autoconf@gnu.org. ##
16073 ## ------------------------------------ ##
16074 _ASBOX
16075 ) |
16076 sed "s/^/$as_me: WARNING: /" >&2
16077 ;;
16078 esac
16079 echo "$as_me:$LINENO: checking for $ac_header" >&5
16080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084 eval "$as_ac_Header=$ac_header_preproc"
16085 fi
16086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16088
16089 fi
16090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16091 cat >>confdefs.h <<_ACEOF
16092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16093 _ACEOF
16094
16095 fi
16096
16097 done
16098
16099 else
16100
16101 for ac_header in des.h
16102 do
16103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16105 echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 fi
16110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16112 else
16113 # Is the header compilable?
16114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $ac_includes_default
16124 #include <$ac_header>
16125 _ACEOF
16126 rm -f conftest.$ac_objext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128 (eval $ac_compile) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -s conftest.$ac_objext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_header_compiler=yes
16139 else
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143 ac_header_compiler=no
16144 fi
16145 rm -f conftest.$ac_objext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16147 echo "${ECHO_T}$ac_header_compiler" >&6
16148
16149 # Is the header present?
16150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 #include <$ac_header>
16160 _ACEOF
16161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16163 ac_status=$?
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } >/dev/null; then
16169 if test -s conftest.err; then
16170 ac_cpp_err=$ac_c_preproc_warn_flag
16171 else
16172 ac_cpp_err=
16173 fi
16174 else
16175 ac_cpp_err=yes
16176 fi
16177 if test -z "$ac_cpp_err"; then
16178 ac_header_preproc=yes
16179 else
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_header_preproc=no
16184 fi
16185 rm -f conftest.err conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16187 echo "${ECHO_T}$ac_header_preproc" >&6
16188
16189 # So? What about this header?
16190 case $ac_header_compiler:$ac_header_preproc in
16191 yes:no )
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16196 (
16197 cat <<\_ASBOX
16198 ## ------------------------------------ ##
16199 ## Report this to bug-autoconf@gnu.org. ##
16200 ## ------------------------------------ ##
16201 _ASBOX
16202 ) |
16203 sed "s/^/$as_me: WARNING: /" >&2
16204 ;;
16205 no:yes )
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 (
16213 cat <<\_ASBOX
16214 ## ------------------------------------ ##
16215 ## Report this to bug-autoconf@gnu.org. ##
16216 ## ------------------------------------ ##
16217 _ASBOX
16218 ) |
16219 sed "s/^/$as_me: WARNING: /" >&2
16220 ;;
16221 esac
16222 echo "$as_me:$LINENO: checking for $ac_header" >&5
16223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227 eval "$as_ac_Header=$ac_header_preproc"
16228 fi
16229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16231
16232 fi
16233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16236 _ACEOF
16237
16238 else
16239
16240 for ac_header in kerberosIV/des.h
16241 do
16242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16244 echo "$as_me:$LINENO: checking for $ac_header" >&5
16245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 fi
16249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16251 else
16252 # Is the header compilable?
16253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16255 cat >conftest.$ac_ext <<_ACEOF
16256 #line $LINENO "configure"
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 $ac_includes_default
16263 #include <$ac_header>
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_header_compiler=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282 ac_header_compiler=no
16283 fi
16284 rm -f conftest.$ac_objext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16286 echo "${ECHO_T}$ac_header_compiler" >&6
16287
16288 # Is the header present?
16289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16299 _ACEOF
16300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev/null; then
16308 if test -s conftest.err; then
16309 ac_cpp_err=$ac_c_preproc_warn_flag
16310 else
16311 ac_cpp_err=
16312 fi
16313 else
16314 ac_cpp_err=yes
16315 fi
16316 if test -z "$ac_cpp_err"; then
16317 ac_header_preproc=yes
16318 else
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 ac_header_preproc=no
16323 fi
16324 rm -f conftest.err conftest.$ac_ext
16325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16326 echo "${ECHO_T}$ac_header_preproc" >&6
16327
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc in
16330 yes:no )
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16335 (
16336 cat <<\_ASBOX
16337 ## ------------------------------------ ##
16338 ## Report this to bug-autoconf@gnu.org. ##
16339 ## ------------------------------------ ##
16340 _ASBOX
16341 ) |
16342 sed "s/^/$as_me: WARNING: /" >&2
16343 ;;
16344 no:yes )
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16351 (
16352 cat <<\_ASBOX
16353 ## ------------------------------------ ##
16354 ## Report this to bug-autoconf@gnu.org. ##
16355 ## ------------------------------------ ##
16356 _ASBOX
16357 ) |
16358 sed "s/^/$as_me: WARNING: /" >&2
16359 ;;
16360 esac
16361 echo "$as_me:$LINENO: checking for $ac_header" >&5
16362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366 eval "$as_ac_Header=$ac_header_preproc"
16367 fi
16368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16370
16371 fi
16372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16373 cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16375 _ACEOF
16376
16377 else
16378
16379 for ac_header in kerberos/des.h
16380 do
16381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16383 echo "$as_me:$LINENO: checking for $ac_header" >&5
16384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 fi
16388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16390 else
16391 # Is the header compilable?
16392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16395 #line $LINENO "configure"
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 $ac_includes_default
16402 #include <$ac_header>
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_header_compiler=yes
16417 else
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 ac_header_compiler=no
16422 fi
16423 rm -f conftest.$ac_objext conftest.$ac_ext
16424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16425 echo "${ECHO_T}$ac_header_compiler" >&6
16426
16427 # Is the header present?
16428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16432 /* confdefs.h. */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 #include <$ac_header>
16438 _ACEOF
16439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } >/dev/null; then
16447 if test -s conftest.err; then
16448 ac_cpp_err=$ac_c_preproc_warn_flag
16449 else
16450 ac_cpp_err=
16451 fi
16452 else
16453 ac_cpp_err=yes
16454 fi
16455 if test -z "$ac_cpp_err"; then
16456 ac_header_preproc=yes
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 ac_header_preproc=no
16462 fi
16463 rm -f conftest.err conftest.$ac_ext
16464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16465 echo "${ECHO_T}$ac_header_preproc" >&6
16466
16467 # So? What about this header?
16468 case $ac_header_compiler:$ac_header_preproc in
16469 yes:no )
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16474 (
16475 cat <<\_ASBOX
16476 ## ------------------------------------ ##
16477 ## Report this to bug-autoconf@gnu.org. ##
16478 ## ------------------------------------ ##
16479 _ASBOX
16480 ) |
16481 sed "s/^/$as_me: WARNING: /" >&2
16482 ;;
16483 no:yes )
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 (
16491 cat <<\_ASBOX
16492 ## ------------------------------------ ##
16493 ## Report this to bug-autoconf@gnu.org. ##
16494 ## ------------------------------------ ##
16495 _ASBOX
16496 ) |
16497 sed "s/^/$as_me: WARNING: /" >&2
16498 ;;
16499 esac
16500 echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505 eval "$as_ac_Header=$ac_header_preproc"
16506 fi
16507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16509
16510 fi
16511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 _ACEOF
16515
16516 fi
16517
16518 done
16519
16520 fi
16521
16522 done
16523
16524 fi
16525
16526 done
16527
16528
16529 for ac_header in krb.h
16530 do
16531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16533 echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 fi
16538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16540 else
16541 # Is the header compilable?
16542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16546 /* confdefs.h. */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 #include <$ac_header>
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 ac_header_compiler=no
16572 fi
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16576
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16581 #line $LINENO "configure"
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include <$ac_header>
16588 _ACEOF
16589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } >/dev/null; then
16597 if test -s conftest.err; then
16598 ac_cpp_err=$ac_c_preproc_warn_flag
16599 else
16600 ac_cpp_err=
16601 fi
16602 else
16603 ac_cpp_err=yes
16604 fi
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_header_preproc=no
16612 fi
16613 rm -f conftest.err conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16616
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc in
16619 yes:no )
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16624 (
16625 cat <<\_ASBOX
16626 ## ------------------------------------ ##
16627 ## Report this to bug-autoconf@gnu.org. ##
16628 ## ------------------------------------ ##
16629 _ASBOX
16630 ) |
16631 sed "s/^/$as_me: WARNING: /" >&2
16632 ;;
16633 no:yes )
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16640 (
16641 cat <<\_ASBOX
16642 ## ------------------------------------ ##
16643 ## Report this to bug-autoconf@gnu.org. ##
16644 ## ------------------------------------ ##
16645 _ASBOX
16646 ) |
16647 sed "s/^/$as_me: WARNING: /" >&2
16648 ;;
16649 esac
16650 echo "$as_me:$LINENO: checking for $ac_header" >&5
16651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655 eval "$as_ac_Header=$ac_header_preproc"
16656 fi
16657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16659
16660 fi
16661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664 _ACEOF
16665
16666 else
16667
16668 for ac_header in kerberosIV/krb.h
16669 do
16670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16672 echo "$as_me:$LINENO: checking for $ac_header" >&5
16673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 fi
16677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16679 else
16680 # Is the header compilable?
16681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16683 cat >conftest.$ac_ext <<_ACEOF
16684 #line $LINENO "configure"
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 $ac_includes_default
16691 #include <$ac_header>
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_header_compiler=yes
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_header_compiler=no
16711 fi
16712 rm -f conftest.$ac_objext conftest.$ac_ext
16713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16714 echo "${ECHO_T}$ac_header_compiler" >&6
16715
16716 # Is the header present?
16717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 /* confdefs.h. */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 #include <$ac_header>
16727 _ACEOF
16728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } >/dev/null; then
16736 if test -s conftest.err; then
16737 ac_cpp_err=$ac_c_preproc_warn_flag
16738 else
16739 ac_cpp_err=
16740 fi
16741 else
16742 ac_cpp_err=yes
16743 fi
16744 if test -z "$ac_cpp_err"; then
16745 ac_header_preproc=yes
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 ac_header_preproc=no
16751 fi
16752 rm -f conftest.err conftest.$ac_ext
16753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16754 echo "${ECHO_T}$ac_header_preproc" >&6
16755
16756 # So? What about this header?
16757 case $ac_header_compiler:$ac_header_preproc in
16758 yes:no )
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16763 (
16764 cat <<\_ASBOX
16765 ## ------------------------------------ ##
16766 ## Report this to bug-autoconf@gnu.org. ##
16767 ## ------------------------------------ ##
16768 _ASBOX
16769 ) |
16770 sed "s/^/$as_me: WARNING: /" >&2
16771 ;;
16772 no:yes )
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 (
16780 cat <<\_ASBOX
16781 ## ------------------------------------ ##
16782 ## Report this to bug-autoconf@gnu.org. ##
16783 ## ------------------------------------ ##
16784 _ASBOX
16785 ) |
16786 sed "s/^/$as_me: WARNING: /" >&2
16787 ;;
16788 esac
16789 echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 eval "$as_ac_Header=$ac_header_preproc"
16795 fi
16796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16798
16799 fi
16800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16803 _ACEOF
16804
16805 else
16806
16807 for ac_header in kerberos/krb.h
16808 do
16809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16811 echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 fi
16816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16818 else
16819 # Is the header compilable?
16820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16822 cat >conftest.$ac_ext <<_ACEOF
16823 #line $LINENO "configure"
16824 /* confdefs.h. */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 $ac_includes_default
16830 #include <$ac_header>
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_header_compiler=yes
16845 else
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_header_compiler=no
16850 fi
16851 rm -f conftest.$ac_objext conftest.$ac_ext
16852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6
16854
16855 # Is the header present?
16856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <$ac_header>
16866 _ACEOF
16867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } >/dev/null; then
16875 if test -s conftest.err; then
16876 ac_cpp_err=$ac_c_preproc_warn_flag
16877 else
16878 ac_cpp_err=
16879 fi
16880 else
16881 ac_cpp_err=yes
16882 fi
16883 if test -z "$ac_cpp_err"; then
16884 ac_header_preproc=yes
16885 else
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889 ac_header_preproc=no
16890 fi
16891 rm -f conftest.err conftest.$ac_ext
16892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16893 echo "${ECHO_T}$ac_header_preproc" >&6
16894
16895 # So? What about this header?
16896 case $ac_header_compiler:$ac_header_preproc in
16897 yes:no )
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16902 (
16903 cat <<\_ASBOX
16904 ## ------------------------------------ ##
16905 ## Report this to bug-autoconf@gnu.org. ##
16906 ## ------------------------------------ ##
16907 _ASBOX
16908 ) |
16909 sed "s/^/$as_me: WARNING: /" >&2
16910 ;;
16911 no:yes )
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16918 (
16919 cat <<\_ASBOX
16920 ## ------------------------------------ ##
16921 ## Report this to bug-autoconf@gnu.org. ##
16922 ## ------------------------------------ ##
16923 _ASBOX
16924 ) |
16925 sed "s/^/$as_me: WARNING: /" >&2
16926 ;;
16927 esac
16928 echo "$as_me:$LINENO: checking for $ac_header" >&5
16929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 eval "$as_ac_Header=$ac_header_preproc"
16934 fi
16935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937
16938 fi
16939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16942 _ACEOF
16943
16944 fi
16945
16946 done
16947
16948 fi
16949
16950 done
16951
16952 fi
16953
16954 done
16955
16956 fi
16957
16958 for ac_header in com_err.h
16959 do
16960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 fi
16967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969 else
16970 # Is the header compilable?
16971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16973 cat >conftest.$ac_ext <<_ACEOF
16974 #line $LINENO "configure"
16975 /* confdefs.h. */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 $ac_includes_default
16981 #include <$ac_header>
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -s conftest.$ac_objext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_header_compiler=yes
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 ac_header_compiler=no
17001 fi
17002 rm -f conftest.$ac_objext conftest.$ac_ext
17003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17004 echo "${ECHO_T}$ac_header_compiler" >&6
17005
17006 # Is the header present?
17007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17009 cat >conftest.$ac_ext <<_ACEOF
17010 #line $LINENO "configure"
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <$ac_header>
17017 _ACEOF
17018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } >/dev/null; then
17026 if test -s conftest.err; then
17027 ac_cpp_err=$ac_c_preproc_warn_flag
17028 else
17029 ac_cpp_err=
17030 fi
17031 else
17032 ac_cpp_err=yes
17033 fi
17034 if test -z "$ac_cpp_err"; then
17035 ac_header_preproc=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ac_header_preproc=no
17041 fi
17042 rm -f conftest.err conftest.$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17044 echo "${ECHO_T}$ac_header_preproc" >&6
17045
17046 # So? What about this header?
17047 case $ac_header_compiler:$ac_header_preproc in
17048 yes:no )
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17053 (
17054 cat <<\_ASBOX
17055 ## ------------------------------------ ##
17056 ## Report this to bug-autoconf@gnu.org. ##
17057 ## ------------------------------------ ##
17058 _ASBOX
17059 ) |
17060 sed "s/^/$as_me: WARNING: /" >&2
17061 ;;
17062 no:yes )
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17069 (
17070 cat <<\_ASBOX
17071 ## ------------------------------------ ##
17072 ## Report this to bug-autoconf@gnu.org. ##
17073 ## ------------------------------------ ##
17074 _ASBOX
17075 ) |
17076 sed "s/^/$as_me: WARNING: /" >&2
17077 ;;
17078 esac
17079 echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084 eval "$as_ac_Header=$ac_header_preproc"
17085 fi
17086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088
17089 fi
17090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17093 _ACEOF
17094
17095 fi
17096
17097 done
17098
17099 fi
17100
17101 # Solaris requires -lintl if you want strerror (which calls dgettext)
17102 # to return localized messages.
17103
17104 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17105 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17106 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 ac_check_lib_save_LIBS=$LIBS
17110 LIBS="-lintl $LIBS"
17111 cat >conftest.$ac_ext <<_ACEOF
17112 #line $LINENO "configure"
17113 /* confdefs.h. */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118
17119 /* Override any gcc2 internal prototype to avoid an error. */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 /* We use char because int might match the return type of a gcc2
17124 builtin and then its argument prototype would still apply. */
17125 char dgettext ();
17126 int
17127 main ()
17128 {
17129 dgettext ();
17130 ;
17131 return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_cv_lib_intl_dgettext=yes
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151 ac_cv_lib_intl_dgettext=no
17152 fi
17153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17154 LIBS=$ac_check_lib_save_LIBS
17155 fi
17156 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17157 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17158 if test $ac_cv_lib_intl_dgettext = yes; then
17159 cat >>confdefs.h <<_ACEOF
17160 #define HAVE_LIBINTL 1
17161 _ACEOF
17162
17163 LIBS="-lintl $LIBS"
17164
17165 fi
17166
17167
17168 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17169 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17170 if test "${emacs_cv_localtime_cache+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173 if test x$ac_cv_func_tzset = xyes; then
17174 if test "$cross_compiling" = yes; then
17175 # If we have tzset, assume the worst when cross-compiling.
17176 emacs_cv_localtime_cache=yes
17177 else
17178 cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17180 /* confdefs.h. */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 #include <time.h>
17186 extern char **environ;
17187 unset_TZ ()
17188 {
17189 char **from, **to;
17190 for (to = from = environ; (*to = *from); from++)
17191 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17192 to++;
17193 }
17194 char TZ_GMT0[] = "TZ=GMT0";
17195 char TZ_PST8[] = "TZ=PST8";
17196 main()
17197 {
17198 time_t now = time ((time_t *) 0);
17199 int hour_GMT0, hour_unset;
17200 if (putenv (TZ_GMT0) != 0)
17201 exit (1);
17202 hour_GMT0 = localtime (&now)->tm_hour;
17203 unset_TZ ();
17204 hour_unset = localtime (&now)->tm_hour;
17205 if (putenv (TZ_PST8) != 0)
17206 exit (1);
17207 if (localtime (&now)->tm_hour == hour_GMT0)
17208 exit (1);
17209 unset_TZ ();
17210 if (localtime (&now)->tm_hour != hour_unset)
17211 exit (1);
17212 exit (0);
17213 }
17214 _ACEOF
17215 rm -f conftest$ac_exeext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17217 (eval $ac_link) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 emacs_cv_localtime_cache=no
17227 else
17228 echo "$as_me: program exited with status $ac_status" >&5
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ( exit $ac_status )
17233 emacs_cv_localtime_cache=yes
17234 fi
17235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17236 fi
17237 else
17238 # If we lack tzset, report that localtime does not cache TZ,
17239 # since we can't invalidate the cache if we don't have tzset.
17240 emacs_cv_localtime_cache=no
17241 fi
17242 fi
17243 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17244 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17245 if test $emacs_cv_localtime_cache = yes; then
17246
17247 cat >>confdefs.h <<\_ACEOF
17248 #define LOCALTIME_CACHE 1
17249 _ACEOF
17250
17251 fi
17252
17253 if test "x$HAVE_TIMEVAL" = xyes; then
17254
17255 for ac_func in gettimeofday
17256 do
17257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258 echo "$as_me:$LINENO: checking for $ac_func" >&5
17259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17260 if eval "test \"\${$as_ac_var+set}\" = set"; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263 cat >conftest.$ac_ext <<_ACEOF
17264 #line $LINENO "configure"
17265 /* confdefs.h. */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274 #ifdef __STDC__
17275 # include <limits.h>
17276 #else
17277 # include <assert.h>
17278 #endif
17279 /* Override any gcc2 internal prototype to avoid an error. */
17280 #ifdef __cplusplus
17281 extern "C"
17282 {
17283 #endif
17284 /* We use char because int might match the return type of a gcc2
17285 builtin and then its argument prototype would still apply. */
17286 char $ac_func ();
17287 /* The GNU C library defines this for functions which it implements
17288 to always fail with ENOSYS. Some functions are actually named
17289 something starting with __ and the normal name is an alias. */
17290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17291 choke me
17292 #else
17293 char (*f) () = $ac_func;
17294 #endif
17295 #ifdef __cplusplus
17296 }
17297 #endif
17298
17299 int
17300 main ()
17301 {
17302 return f != $ac_func;
17303 ;
17304 return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17309 (eval $ac_link) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 eval "$as_ac_var=yes"
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 eval "$as_ac_var=no"
17325 fi
17326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17327 fi
17328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17330 if test `eval echo '${'$as_ac_var'}'` = yes; then
17331 cat >>confdefs.h <<_ACEOF
17332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17333 _ACEOF
17334
17335 fi
17336 done
17337
17338 if test $ac_cv_func_gettimeofday = yes; then
17339 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17340 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17341 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351
17352 #ifdef TIME_WITH_SYS_TIME
17353 #include <sys/time.h>
17354 #include <time.h>
17355 #else
17356 #ifdef HAVE_SYS_TIME_H
17357 #include <sys/time.h>
17358 #else
17359 #include <time.h>
17360 #endif
17361 #endif
17362 int
17363 main ()
17364 {
17365 struct timeval time;
17366 gettimeofday (&time, 0);
17367 ;
17368 return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 emacs_cv_gettimeofday_two_arguments=yes
17384 else
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 emacs_cv_gettimeofday_two_arguments=no
17389 fi
17390 rm -f conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17393 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17394 if test $emacs_cv_gettimeofday_two_arguments = no; then
17395
17396 cat >>confdefs.h <<\_ACEOF
17397 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17398 _ACEOF
17399
17400 fi
17401 fi
17402 fi
17403
17404 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17405 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17406 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17407 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410 cat >conftest.$ac_ext <<_ACEOF
17411 #line $LINENO "configure"
17412 /* confdefs.h. */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 #include <sys/types.h>
17418 #include <$ac_cv_struct_tm>
17419
17420
17421 int
17422 main ()
17423 {
17424 static struct tm ac_aggr;
17425 if (ac_aggr.tm_zone)
17426 return 0;
17427 ;
17428 return 0;
17429 }
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_tm_tm_zone=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 cat >conftest.$ac_ext <<_ACEOF
17449 #line $LINENO "configure"
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 #include <sys/types.h>
17456 #include <$ac_cv_struct_tm>
17457
17458
17459 int
17460 main ()
17461 {
17462 static struct tm ac_aggr;
17463 if (sizeof ac_aggr.tm_zone)
17464 return 0;
17465 ;
17466 return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471 (eval $ac_compile) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_member_struct_tm_tm_zone=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_cv_member_struct_tm_tm_zone=no
17487 fi
17488 rm -f conftest.$ac_objext conftest.$ac_ext
17489 fi
17490 rm -f conftest.$ac_objext conftest.$ac_ext
17491 fi
17492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17493 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17494 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17495
17496 cat >>confdefs.h <<_ACEOF
17497 #define HAVE_STRUCT_TM_TM_ZONE 1
17498 _ACEOF
17499
17500
17501 fi
17502
17503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17504
17505 cat >>confdefs.h <<\_ACEOF
17506 #define HAVE_TM_ZONE 1
17507 _ACEOF
17508
17509 else
17510 echo "$as_me:$LINENO: checking for tzname" >&5
17511 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17512 if test "${ac_cv_var_tzname+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 cat >conftest.$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 #include <time.h>
17523 #ifndef tzname /* For SGI. */
17524 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17525 #endif
17526
17527 int
17528 main ()
17529 {
17530 atoi(*tzname);
17531 ;
17532 return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_var_tzname=yes
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_cv_var_tzname=no
17553 fi
17554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17555 fi
17556 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17557 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17558 if test $ac_cv_var_tzname = yes; then
17559
17560 cat >>confdefs.h <<\_ACEOF
17561 #define HAVE_TZNAME 1
17562 _ACEOF
17563
17564 fi
17565 fi
17566
17567
17568 if test "$ac_cv_func_gettimeofday" = yes; then
17569 echo "$as_me:$LINENO: checking for struct timezone" >&5
17570 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17571 if test "${emacs_cv_struct_timezone+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 #include <sys/time.h>
17582 int
17583 main ()
17584 {
17585 struct timezone tz;
17586 ;
17587 return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17592 (eval $ac_compile) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -s conftest.$ac_objext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 if test "$cross_compiling" = yes; then
17603 emacs_cv_struct_timezone=yes
17604 else
17605 cat >conftest.$ac_ext <<_ACEOF
17606 #line $LINENO "configure"
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612
17613 #ifdef TIME_WITH_SYS_TIME
17614 #include <sys/time.h>
17615 #include <time.h>
17616 #else
17617 #ifdef HAVE_SYS_TIME_H
17618 #include <sys/time.h>
17619 #else
17620 #include <time.h>
17621 #endif
17622 #endif
17623 main () {
17624 struct timeval time;
17625 struct timezone dummy;
17626 exit (gettimeofday (&time, &dummy));
17627 }
17628 _ACEOF
17629 rm -f conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 emacs_cv_struct_timezone=yes
17641 else
17642 echo "$as_me: program exited with status $ac_status" >&5
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 ( exit $ac_status )
17647 emacs_cv_struct_timezone=no
17648 fi
17649 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17650 fi
17651 else
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 emacs_cv_struct_timezone=no
17656 fi
17657 rm -f conftest.$ac_objext conftest.$ac_ext
17658 fi
17659 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17660 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17661 fi
17662
17663 ok_so_far=yes
17664 echo "$as_me:$LINENO: checking for socket" >&5
17665 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17666 if test "${ac_cv_func_socket+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 cat >conftest.$ac_ext <<_ACEOF
17670 #line $LINENO "configure"
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char socket (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17680 #ifdef __STDC__
17681 # include <limits.h>
17682 #else
17683 # include <assert.h>
17684 #endif
17685 /* Override any gcc2 internal prototype to avoid an error. */
17686 #ifdef __cplusplus
17687 extern "C"
17688 {
17689 #endif
17690 /* We use char because int might match the return type of a gcc2
17691 builtin and then its argument prototype would still apply. */
17692 char socket ();
17693 /* The GNU C library defines this for functions which it implements
17694 to always fail with ENOSYS. Some functions are actually named
17695 something starting with __ and the normal name is an alias. */
17696 #if defined (__stub_socket) || defined (__stub___socket)
17697 choke me
17698 #else
17699 char (*f) () = socket;
17700 #endif
17701 #ifdef __cplusplus
17702 }
17703 #endif
17704
17705 int
17706 main ()
17707 {
17708 return f != socket;
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -s 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_socket=yes
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_cv_func_socket=no
17731 fi
17732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17733 fi
17734 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17735 echo "${ECHO_T}$ac_cv_func_socket" >&6
17736 if test $ac_cv_func_socket = yes; then
17737 :
17738 else
17739 ok_so_far=no
17740 fi
17741
17742 if test $ok_so_far = yes; then
17743 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17744 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17745 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17746 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17748 fi
17749 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17750 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17751 else
17752 # Is the header compilable?
17753 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17754 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17756 #line $LINENO "configure"
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 #include <netinet/in.h>
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767 (eval $ac_compile) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -s conftest.$ac_objext'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_header_compiler=yes
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 ac_header_compiler=no
17783 fi
17784 rm -f conftest.$ac_objext conftest.$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17786 echo "${ECHO_T}$ac_header_compiler" >&6
17787
17788 # Is the header present?
17789 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17790 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17791 cat >conftest.$ac_ext <<_ACEOF
17792 #line $LINENO "configure"
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 #include <netinet/in.h>
17799 _ACEOF
17800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } >/dev/null; then
17808 if test -s conftest.err; then
17809 ac_cpp_err=$ac_c_preproc_warn_flag
17810 else
17811 ac_cpp_err=
17812 fi
17813 else
17814 ac_cpp_err=yes
17815 fi
17816 if test -z "$ac_cpp_err"; then
17817 ac_header_preproc=yes
17818 else
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822 ac_header_preproc=no
17823 fi
17824 rm -f conftest.err conftest.$ac_ext
17825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17826 echo "${ECHO_T}$ac_header_preproc" >&6
17827
17828 # So? What about this header?
17829 case $ac_header_compiler:$ac_header_preproc in
17830 yes:no )
17831 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17832 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17834 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17835 (
17836 cat <<\_ASBOX
17837 ## ------------------------------------ ##
17838 ## Report this to bug-autoconf@gnu.org. ##
17839 ## ------------------------------------ ##
17840 _ASBOX
17841 ) |
17842 sed "s/^/$as_me: WARNING: /" >&2
17843 ;;
17844 no:yes )
17845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17846 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17848 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17850 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17851 (
17852 cat <<\_ASBOX
17853 ## ------------------------------------ ##
17854 ## Report this to bug-autoconf@gnu.org. ##
17855 ## ------------------------------------ ##
17856 _ASBOX
17857 ) |
17858 sed "s/^/$as_me: WARNING: /" >&2
17859 ;;
17860 esac
17861 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17862 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17863 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866 ac_cv_header_netinet_in_h=$ac_header_preproc
17867 fi
17868 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17869 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17870
17871 fi
17872 if test $ac_cv_header_netinet_in_h = yes; then
17873 :
17874 else
17875 ok_so_far=no
17876 fi
17877
17878
17879 fi
17880 if test $ok_so_far = yes; then
17881 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17882 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17883 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17884 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 fi
17887 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17889 else
17890 # Is the header compilable?
17891 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17892 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line $LINENO "configure"
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17901 #include <arpa/inet.h>
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_header_compiler=yes
17916 else
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 ac_header_compiler=no
17921 fi
17922 rm -f conftest.$ac_objext conftest.$ac_ext
17923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17924 echo "${ECHO_T}$ac_header_compiler" >&6
17925
17926 # Is the header present?
17927 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17928 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
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 <arpa/inet.h>
17937 _ACEOF
17938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17940 ac_status=$?
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } >/dev/null; then
17946 if test -s conftest.err; then
17947 ac_cpp_err=$ac_c_preproc_warn_flag
17948 else
17949 ac_cpp_err=
17950 fi
17951 else
17952 ac_cpp_err=yes
17953 fi
17954 if test -z "$ac_cpp_err"; then
17955 ac_header_preproc=yes
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_header_preproc=no
17961 fi
17962 rm -f conftest.err conftest.$ac_ext
17963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964 echo "${ECHO_T}$ac_header_preproc" >&6
17965
17966 # So? What about this header?
17967 case $ac_header_compiler:$ac_header_preproc in
17968 yes:no )
17969 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17970 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17973 (
17974 cat <<\_ASBOX
17975 ## ------------------------------------ ##
17976 ## Report this to bug-autoconf@gnu.org. ##
17977 ## ------------------------------------ ##
17978 _ASBOX
17979 ) |
17980 sed "s/^/$as_me: WARNING: /" >&2
17981 ;;
17982 no:yes )
17983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17984 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17986 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17989 (
17990 cat <<\_ASBOX
17991 ## ------------------------------------ ##
17992 ## Report this to bug-autoconf@gnu.org. ##
17993 ## ------------------------------------ ##
17994 _ASBOX
17995 ) |
17996 sed "s/^/$as_me: WARNING: /" >&2
17997 ;;
17998 esac
17999 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18000 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004 ac_cv_header_arpa_inet_h=$ac_header_preproc
18005 fi
18006 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18007 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18008
18009 fi
18010 if test $ac_cv_header_arpa_inet_h = yes; then
18011 :
18012 else
18013 ok_so_far=no
18014 fi
18015
18016
18017 fi
18018 if test $ok_so_far = yes; then
18019
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_INET_SOCKETS 1
18022 _ACEOF
18023
18024 fi
18025
18026
18027
18028 for ac_header in sys/ioctl.h net/if.h
18029 do
18030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18032 echo "$as_me:$LINENO: checking for $ac_header" >&5
18033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 fi
18037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18039 else
18040 # Is the header compilable?
18041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18044 #line $LINENO "configure"
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 $ac_includes_default
18051 #include <$ac_header>
18052 _ACEOF
18053 rm -f conftest.$ac_objext
18054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18055 (eval $ac_compile) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -s conftest.$ac_objext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_header_compiler=yes
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_header_compiler=no
18071 fi
18072 rm -f conftest.$ac_objext conftest.$ac_ext
18073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18074 echo "${ECHO_T}$ac_header_compiler" >&6
18075
18076 # Is the header present?
18077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18079 cat >conftest.$ac_ext <<_ACEOF
18080 #line $LINENO "configure"
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 #include <$ac_header>
18087 _ACEOF
18088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } >/dev/null; then
18096 if test -s conftest.err; then
18097 ac_cpp_err=$ac_c_preproc_warn_flag
18098 else
18099 ac_cpp_err=
18100 fi
18101 else
18102 ac_cpp_err=yes
18103 fi
18104 if test -z "$ac_cpp_err"; then
18105 ac_header_preproc=yes
18106 else
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110 ac_header_preproc=no
18111 fi
18112 rm -f conftest.err conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18114 echo "${ECHO_T}$ac_header_preproc" >&6
18115
18116 # So? What about this header?
18117 case $ac_header_compiler:$ac_header_preproc in
18118 yes:no )
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18123 (
18124 cat <<\_ASBOX
18125 ## ------------------------------------ ##
18126 ## Report this to bug-autoconf@gnu.org. ##
18127 ## ------------------------------------ ##
18128 _ASBOX
18129 ) |
18130 sed "s/^/$as_me: WARNING: /" >&2
18131 ;;
18132 no:yes )
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18139 (
18140 cat <<\_ASBOX
18141 ## ------------------------------------ ##
18142 ## Report this to bug-autoconf@gnu.org. ##
18143 ## ------------------------------------ ##
18144 _ASBOX
18145 ) |
18146 sed "s/^/$as_me: WARNING: /" >&2
18147 ;;
18148 esac
18149 echo "$as_me:$LINENO: checking for $ac_header" >&5
18150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154 eval "$as_ac_Header=$ac_header_preproc"
18155 fi
18156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18158
18159 fi
18160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18163 _ACEOF
18164
18165 fi
18166
18167 done
18168
18169
18170 if test -f /usr/lpp/X11/bin/smt.exp; then
18171
18172 cat >>confdefs.h <<\_ACEOF
18173 #define HAVE_AIX_SMT_EXP 1
18174 _ACEOF
18175
18176 fi
18177
18178 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18179 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18180 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18181 echo "$as_me:$LINENO: result: yes" >&5
18182 echo "${ECHO_T}yes" >&6
18183
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_DEV_PTMX 1
18186 _ACEOF
18187
18188 else
18189 echo "$as_me:$LINENO: result: no" >&5
18190 echo "${ECHO_T}no" >&6
18191 fi
18192
18193 echo "$as_me:$LINENO: checking for pid_t" >&5
18194 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18195 if test "${ac_cv_type_pid_t+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 cat >conftest.$ac_ext <<_ACEOF
18199 #line $LINENO "configure"
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 $ac_includes_default
18206 int
18207 main ()
18208 {
18209 if ((pid_t *) 0)
18210 return 0;
18211 if (sizeof (pid_t))
18212 return 0;
18213 ;
18214 return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_type_pid_t=yes
18230 else
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234 ac_cv_type_pid_t=no
18235 fi
18236 rm -f conftest.$ac_objext conftest.$ac_ext
18237 fi
18238 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18239 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18240 if test $ac_cv_type_pid_t = yes; then
18241 :
18242 else
18243
18244 cat >>confdefs.h <<_ACEOF
18245 #define pid_t int
18246 _ACEOF
18247
18248 fi
18249
18250
18251
18252 for ac_header in unistd.h vfork.h
18253 do
18254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256 echo "$as_me:$LINENO: checking for $ac_header" >&5
18257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 fi
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18263 else
18264 # Is the header compilable?
18265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18267 cat >conftest.$ac_ext <<_ACEOF
18268 #line $LINENO "configure"
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18275 #include <$ac_header>
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_header_compiler=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_header_compiler=no
18295 fi
18296 rm -f conftest.$ac_objext conftest.$ac_ext
18297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18298 echo "${ECHO_T}$ac_header_compiler" >&6
18299
18300 # Is the header present?
18301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <$ac_header>
18311 _ACEOF
18312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev/null; then
18320 if test -s conftest.err; then
18321 ac_cpp_err=$ac_c_preproc_warn_flag
18322 else
18323 ac_cpp_err=
18324 fi
18325 else
18326 ac_cpp_err=yes
18327 fi
18328 if test -z "$ac_cpp_err"; then
18329 ac_header_preproc=yes
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 ac_header_preproc=no
18335 fi
18336 rm -f conftest.err conftest.$ac_ext
18337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18338 echo "${ECHO_T}$ac_header_preproc" >&6
18339
18340 # So? What about this header?
18341 case $ac_header_compiler:$ac_header_preproc in
18342 yes:no )
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18347 (
18348 cat <<\_ASBOX
18349 ## ------------------------------------ ##
18350 ## Report this to bug-autoconf@gnu.org. ##
18351 ## ------------------------------------ ##
18352 _ASBOX
18353 ) |
18354 sed "s/^/$as_me: WARNING: /" >&2
18355 ;;
18356 no:yes )
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18363 (
18364 cat <<\_ASBOX
18365 ## ------------------------------------ ##
18366 ## Report this to bug-autoconf@gnu.org. ##
18367 ## ------------------------------------ ##
18368 _ASBOX
18369 ) |
18370 sed "s/^/$as_me: WARNING: /" >&2
18371 ;;
18372 esac
18373 echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378 eval "$as_ac_Header=$ac_header_preproc"
18379 fi
18380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18382
18383 fi
18384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18387 _ACEOF
18388
18389 fi
18390
18391 done
18392
18393
18394
18395 for ac_func in fork vfork
18396 do
18397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18400 if eval "test \"\${$as_ac_var+set}\" = set"; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403 cat >conftest.$ac_ext <<_ACEOF
18404 #line $LINENO "configure"
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 /* System header to define __stub macros and hopefully few prototypes,
18411 which can conflict with char $ac_func (); below.
18412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18413 <limits.h> exists even on freestanding compilers. */
18414 #ifdef __STDC__
18415 # include <limits.h>
18416 #else
18417 # include <assert.h>
18418 #endif
18419 /* Override any gcc2 internal prototype to avoid an error. */
18420 #ifdef __cplusplus
18421 extern "C"
18422 {
18423 #endif
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426 char $ac_func ();
18427 /* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18431 choke me
18432 #else
18433 char (*f) () = $ac_func;
18434 #endif
18435 #ifdef __cplusplus
18436 }
18437 #endif
18438
18439 int
18440 main ()
18441 {
18442 return f != $ac_func;
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18449 (eval $ac_link) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -s conftest$ac_exeext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 eval "$as_ac_var=yes"
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 eval "$as_ac_var=no"
18465 fi
18466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18467 fi
18468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18470 if test `eval echo '${'$as_ac_var'}'` = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18473 _ACEOF
18474
18475 fi
18476 done
18477
18478 if test "x$ac_cv_func_fork" = xyes; then
18479 echo "$as_me:$LINENO: checking for working fork" >&5
18480 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18481 if test "${ac_cv_func_fork_works+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 if test "$cross_compiling" = yes; then
18485 ac_cv_func_fork_works=cross
18486 else
18487 cat >conftest.$ac_ext <<_ACEOF
18488 /* By Ruediger Kuhlmann. */
18489 #include <sys/types.h>
18490 #if HAVE_UNISTD_H
18491 # include <unistd.h>
18492 #endif
18493 /* Some systems only have a dummy stub for fork() */
18494 int main ()
18495 {
18496 if (fork() < 0)
18497 exit (1);
18498 exit (0);
18499 }
18500 _ACEOF
18501 rm -f conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_func_fork_works=yes
18513 else
18514 echo "$as_me: program exited with status $ac_status" >&5
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 ( exit $ac_status )
18519 ac_cv_func_fork_works=no
18520 fi
18521 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18522 fi
18523 fi
18524 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18525 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18526
18527 else
18528 ac_cv_func_fork_works=$ac_cv_func_fork
18529 fi
18530 if test "x$ac_cv_func_fork_works" = xcross; then
18531 case $host in
18532 *-*-amigaos* | *-*-msdosdjgpp*)
18533 # Override, as these systems have only a dummy fork() stub
18534 ac_cv_func_fork_works=no
18535 ;;
18536 *)
18537 ac_cv_func_fork_works=yes
18538 ;;
18539 esac
18540 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18541 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18542 fi
18543 ac_cv_func_vfork_works=$ac_cv_func_vfork
18544 if test "x$ac_cv_func_vfork" = xyes; then
18545 echo "$as_me:$LINENO: checking for working vfork" >&5
18546 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18547 if test "${ac_cv_func_vfork_works+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550 if test "$cross_compiling" = yes; then
18551 ac_cv_func_vfork_works=cross
18552 else
18553 cat >conftest.$ac_ext <<_ACEOF
18554 #line $LINENO "configure"
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 /* Thanks to Paul Eggert for this test. */
18561 #include <stdio.h>
18562 #include <stdlib.h>
18563 #include <sys/types.h>
18564 #include <sys/stat.h>
18565 #include <sys/wait.h>
18566 #if HAVE_UNISTD_H
18567 # include <unistd.h>
18568 #endif
18569 #if HAVE_VFORK_H
18570 # include <vfork.h>
18571 #endif
18572 /* On some sparc systems, changes by the child to local and incoming
18573 argument registers are propagated back to the parent. The compiler
18574 is told about this with #include <vfork.h>, but some compilers
18575 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18576 static variable whose address is put into a register that is
18577 clobbered by the vfork. */
18578 static void
18579 #ifdef __cplusplus
18580 sparc_address_test (int arg)
18581 # else
18582 sparc_address_test (arg) int arg;
18583 #endif
18584 {
18585 static pid_t child;
18586 if (!child) {
18587 child = vfork ();
18588 if (child < 0) {
18589 perror ("vfork");
18590 _exit(2);
18591 }
18592 if (!child) {
18593 arg = getpid();
18594 write(-1, "", 0);
18595 _exit (arg);
18596 }
18597 }
18598 }
18599
18600 int
18601 main ()
18602 {
18603 pid_t parent = getpid ();
18604 pid_t child;
18605
18606 sparc_address_test (0);
18607
18608 child = vfork ();
18609
18610 if (child == 0) {
18611 /* Here is another test for sparc vfork register problems. This
18612 test uses lots of local variables, at least as many local
18613 variables as main has allocated so far including compiler
18614 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18615 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18616 reuse the register of parent for one of the local variables,
18617 since it will think that parent can't possibly be used any more
18618 in this routine. Assigning to the local variable will thus
18619 munge parent in the parent process. */
18620 pid_t
18621 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18622 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18623 /* Convince the compiler that p..p7 are live; otherwise, it might
18624 use the same hardware register for all 8 local variables. */
18625 if (p != p1 || p != p2 || p != p3 || p != p4
18626 || p != p5 || p != p6 || p != p7)
18627 _exit(1);
18628
18629 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18630 from child file descriptors. If the child closes a descriptor
18631 before it execs or exits, this munges the parent's descriptor
18632 as well. Test for this by closing stdout in the child. */
18633 _exit(close(fileno(stdout)) != 0);
18634 } else {
18635 int status;
18636 struct stat st;
18637
18638 while (wait(&status) != child)
18639 ;
18640 exit(
18641 /* Was there some problem with vforking? */
18642 child < 0
18643
18644 /* Did the child fail? (This shouldn't happen.) */
18645 || status
18646
18647 /* Did the vfork/compiler bug occur? */
18648 || parent != getpid()
18649
18650 /* Did the file descriptor bug occur? */
18651 || fstat(fileno(stdout), &st) != 0
18652 );
18653 }
18654 }
18655 _ACEOF
18656 rm -f conftest$ac_exeext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658 (eval $ac_link) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_func_vfork_works=yes
18668 else
18669 echo "$as_me: program exited with status $ac_status" >&5
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ( exit $ac_status )
18674 ac_cv_func_vfork_works=no
18675 fi
18676 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18677 fi
18678 fi
18679 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18680 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18681
18682 fi;
18683 if test "x$ac_cv_func_fork_works" = xcross; then
18684 ac_cv_func_vfork_works=ac_cv_func_vfork
18685 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18686 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18687 fi
18688
18689 if test "x$ac_cv_func_vfork_works" = xyes; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_WORKING_VFORK 1
18693 _ACEOF
18694
18695 else
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define vfork fork
18699 _ACEOF
18700
18701 fi
18702 if test "x$ac_cv_func_fork_works" = xyes; then
18703
18704 cat >>confdefs.h <<\_ACEOF
18705 #define HAVE_WORKING_FORK 1
18706 _ACEOF
18707
18708 fi
18709
18710
18711 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18712 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18713 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 cat >conftest.$ac_ext <<_ACEOF
18717 #line $LINENO "configure"
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <langinfo.h>
18724 int
18725 main ()
18726 {
18727 char* cs = nl_langinfo(CODESET);
18728 ;
18729 return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18734 (eval $ac_link) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 emacs_cv_langinfo_codeset=yes
18745 else
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 emacs_cv_langinfo_codeset=no
18750 fi
18751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18752
18753 fi
18754 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18755 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18756 if test $emacs_cv_langinfo_codeset = yes; then
18757
18758 cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_LANGINFO_CODESET 1
18760 _ACEOF
18761
18762 fi
18763
18764 echo "$as_me:$LINENO: checking for size_t" >&5
18765 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18766 if test "${ac_cv_type_size_t+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769 cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 $ac_includes_default
18777 int
18778 main ()
18779 {
18780 if ((size_t *) 0)
18781 return 0;
18782 if (sizeof (size_t))
18783 return 0;
18784 ;
18785 return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_type_size_t=yes
18801 else
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_cv_type_size_t=no
18806 fi
18807 rm -f conftest.$ac_objext conftest.$ac_ext
18808 fi
18809 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18810 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18811 if test $ac_cv_type_size_t = yes; then
18812
18813 cat >>confdefs.h <<_ACEOF
18814 #define HAVE_SIZE_T 1
18815 _ACEOF
18816
18817
18818 fi
18819
18820
18821 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18822 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18823 if test "${ac_cv_type_mbstate_t+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 cat >conftest.$ac_ext <<_ACEOF
18827 #line $LINENO "configure"
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 $ac_includes_default
18834 # include <wchar.h>
18835 int
18836 main ()
18837 {
18838 mbstate_t x; return sizeof x;
18839 ;
18840 return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_cv_type_mbstate_t=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_cv_type_mbstate_t=no
18861 fi
18862 rm -f conftest.$ac_objext conftest.$ac_ext
18863 fi
18864 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18865 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18866 if test $ac_cv_type_mbstate_t = yes; then
18867
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE_MBSTATE_T 1
18870 _ACEOF
18871
18872 else
18873
18874 cat >>confdefs.h <<\_ACEOF
18875 #define mbstate_t int
18876 _ACEOF
18877
18878 fi
18879
18880 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18881 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18882 if test "${emacs_cv_c_restrict+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885 cat >conftest.$ac_ext <<_ACEOF
18886 #line $LINENO "configure"
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 void fred (int *restrict x);
18893 int
18894 main ()
18895 {
18896
18897 ;
18898 return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18903 (eval $ac_compile) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -s conftest.$ac_objext'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 emacs_cv_c_restrict=yes
18914 else
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 cat >conftest.$ac_ext <<_ACEOF
18919 #line $LINENO "configure"
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 void fred (int *__restrict x);
18926 int
18927 main ()
18928 {
18929
18930 ;
18931 return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest.$ac_objext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936 (eval $ac_compile) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 emacs_cv_c_restrict=__restrict
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 emacs_cv_c_restrict=no
18952 fi
18953 rm -f conftest.$ac_objext conftest.$ac_ext
18954 fi
18955 rm -f conftest.$ac_objext conftest.$ac_ext
18956 fi
18957 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18958 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18959 case "$emacs_cv_c_restrict" in
18960 yes) emacs_restrict=restrict;;
18961 no) emacs_restrict="";;
18962 *) emacs_restrict="$emacs_cv_c_restrict";;
18963 esac
18964 if test "$emacs_restrict" != __restrict; then
18965
18966 cat >>confdefs.h <<_ACEOF
18967 #define __restrict $emacs_restrict
18968 _ACEOF
18969
18970 fi
18971
18972 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18973 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18974 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 cat >conftest.$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18979 /* confdefs.h. */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 void fred (int x[__restrict]);
18985 int
18986 main ()
18987 {
18988
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18995 (eval $ac_compile) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -s conftest.$ac_objext'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
19005 emacs_cv_c_restrict_arr=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 emacs_cv_c_restrict_arr=no
19011 fi
19012 rm -f conftest.$ac_objext conftest.$ac_ext
19013 fi
19014 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
19015 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
19016 if test "$emacs_cv_c_restrict_arr" = yes; then
19017
19018 cat >>confdefs.h <<\_ACEOF
19019 #define __restrict_arr __restrict
19020 _ACEOF
19021
19022 fi
19023
19024
19025
19026 # Set up the CFLAGS for real compilation, so we can substitute it.
19027 CFLAGS="$REAL_CFLAGS"
19028 CPPFLAGS="$REAL_CPPFLAGS"
19029
19030 #### Find out which version of Emacs this is.
19031 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
19032 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
19033 if test x"${version}" = x; then
19034 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
19035 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
19036 { (exit 1); exit 1; }; }
19037 fi
19038
19039 ### Specify what sort of things we'll be editing into Makefile and config.h.
19040 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076 cat >>confdefs.h <<_ACEOF
19077 #define EMACS_CONFIGURATION "${canonical}"
19078 _ACEOF
19079
19080
19081 cat >>confdefs.h <<_ACEOF
19082 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19083 _ACEOF
19084
19085
19086 cat >>confdefs.h <<_ACEOF
19087 #define config_machfile "${machfile}"
19088 _ACEOF
19089
19090
19091 cat >>confdefs.h <<_ACEOF
19092 #define config_opsysfile "${opsysfile}"
19093 _ACEOF
19094
19095
19096 cat >>confdefs.h <<_ACEOF
19097 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19098 _ACEOF
19099
19100
19101 cat >>confdefs.h <<_ACEOF
19102 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19103 _ACEOF
19104
19105
19106 cat >>confdefs.h <<_ACEOF
19107 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19108 _ACEOF
19109
19110
19111 cat >>confdefs.h <<_ACEOF
19112 #define UNEXEC_SRC ${UNEXEC_SRC}
19113 _ACEOF
19114
19115
19116 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_X_WINDOWS 1
19120 _ACEOF
19121
19122 fi
19123 if test "${USE_X_TOOLKIT}" != "none" ; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define USE_X_TOOLKIT 1
19127 _ACEOF
19128
19129 fi
19130 if test "${HAVE_X11}" = "yes" ; then
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_X11 1
19134 _ACEOF
19135
19136 fi
19137 if test "${HAVE_XFREE386}" = "yes" ; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_XFREE386 1
19141 _ACEOF
19142
19143 fi
19144 if test "${HAVE_MENUS}" = "yes" ; then
19145
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_MENUS 1
19148 _ACEOF
19149
19150 fi
19151 if test "${GNU_MALLOC}" = "yes" ; then
19152
19153 cat >>confdefs.h <<\_ACEOF
19154 #define GNU_MALLOC 1
19155 _ACEOF
19156
19157 fi
19158 if test "${REL_ALLOC}" = "yes" ; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define REL_ALLOC 1
19162 _ACEOF
19163
19164 fi
19165
19166
19167
19168
19169
19170 #### Report on what we decided to do.
19171 #### Report GTK as a toolkit, even if it doesn't use Xt.
19172 #### It makes printing result more understandable as using GTK sets
19173 #### toolkit_scroll_bars to yes by default.
19174 if test "${HAVE_GTK}" = "yes"; then
19175 USE_X_TOOLKIT=GTK
19176 fi
19177
19178 echo "
19179 Configured for \`${canonical}'.
19180
19181 Where should the build process find the source code? ${srcdir}
19182 What operating system and machine description files should Emacs use?
19183 \`${opsysfile}' and \`${machfile}'
19184 What compiler should emacs be built with? ${CC} ${CFLAGS}
19185 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19186 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19187 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19188 What window system should Emacs use? ${window_system}
19189 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19190
19191 if test -n "${x_includes}"; then
19192 echo " Where do we find X Windows header files? ${x_includes}"
19193 else
19194 echo " Where do we find X Windows header files? Standard dirs"
19195 fi
19196 if test -n "${x_libraries}"; then
19197 echo " Where do we find X Windows libraries? ${x_libraries}"
19198 else
19199 echo " Where do we find X Windows libraries? Standard dirs"
19200 fi
19201
19202 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19203 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19204 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19205 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19206 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19207 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19208 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19209 echo
19210
19211 # Remove any trailing slashes in these variables.
19212 test "${prefix}" != NONE &&
19213 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19214 test "${exec_prefix}" != NONE &&
19215 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19216
19217 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19218 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19219 ## from Makefile.c can correctly provide the arg `-traditional' to the
19220 ## C preprocessor.
19221
19222 cat >conftest.$ac_ext <<_ACEOF
19223 #line $LINENO "configure"
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 yes..yes
19230 _ACEOF
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232 $EGREP "yes..yes" >/dev/null 2>&1; then
19233 CPP_NEED_TRADITIONAL=no
19234 else
19235 CPP_NEED_TRADITIONAL=yes
19236 fi
19237 rm -f conftest*
19238
19239
19240 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"
19241 ac_config_commands="$ac_config_commands default"
19242 cat >confcache <<\_ACEOF
19243 # This file is a shell script that caches the results of configure
19244 # tests run on this system so they can be shared between configure
19245 # scripts and configure runs, see configure's option --config-cache.
19246 # It is not useful on other systems. If it contains results you don't
19247 # want to keep, you may remove or edit it.
19248 #
19249 # config.status only pays attention to the cache file if you give it
19250 # the --recheck option to rerun configure.
19251 #
19252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19254 # following values.
19255
19256 _ACEOF
19257
19258 # The following way of writing the cache mishandles newlines in values,
19259 # but we know of no workaround that is simple, portable, and efficient.
19260 # So, don't put newlines in cache variables' values.
19261 # Ultrix sh set writes to stderr and can't be redirected directly,
19262 # and sets the high bit in the cache file unless we assign to the vars.
19263 {
19264 (set) 2>&1 |
19265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19266 *ac_space=\ *)
19267 # `set' does not quote correctly, so add quotes (double-quote
19268 # substitution turns \\\\ into \\, and sed turns \\ into \).
19269 sed -n \
19270 "s/'/'\\\\''/g;
19271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19272 ;;
19273 *)
19274 # `set' quotes correctly as required by POSIX, so do not add quotes.
19275 sed -n \
19276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19277 ;;
19278 esac;
19279 } |
19280 sed '
19281 t clear
19282 : clear
19283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19284 t end
19285 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19286 : end' >>confcache
19287 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19288 if test -w $cache_file; then
19289 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19290 cat confcache >$cache_file
19291 else
19292 echo "not updating unwritable cache $cache_file"
19293 fi
19294 fi
19295 rm -f confcache
19296
19297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19298 # Let make expand exec_prefix.
19299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19300
19301 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19303 # trailing colons and then remove the whole line if VPATH becomes empty
19304 # (actually we leave an empty line to preserve line numbers).
19305 if test "x$srcdir" = x.; then
19306 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19307 s/:*\$(srcdir):*/:/;
19308 s/:*\${srcdir}:*/:/;
19309 s/:*@srcdir@:*/:/;
19310 s/^\([^=]*=[ ]*\):*/\1/;
19311 s/:*$//;
19312 s/^[^=]*=[ ]*$//;
19313 }'
19314 fi
19315
19316 DEFS=-DHAVE_CONFIG_H
19317
19318 ac_libobjs=
19319 ac_ltlibobjs=
19320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19321 # 1. Remove the extension, and $U if already installed.
19322 ac_i=`echo "$ac_i" |
19323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19324 # 2. Add them.
19325 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19326 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19327 done
19328 LIBOBJS=$ac_libobjs
19329
19330 LTLIBOBJS=$ac_ltlibobjs
19331
19332
19333
19334 : ${CONFIG_STATUS=./config.status}
19335 ac_clean_files_save=$ac_clean_files
19336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19339 cat >$CONFIG_STATUS <<_ACEOF
19340 #! $SHELL
19341 # Generated by $as_me.
19342 # Run this file to recreate the current configuration.
19343 # Compiler output produced by configure, useful for debugging
19344 # configure, is in config.log if it exists.
19345
19346 debug=false
19347 ac_cs_recheck=false
19348 ac_cs_silent=false
19349 SHELL=\${CONFIG_SHELL-$SHELL}
19350 _ACEOF
19351
19352 cat >>$CONFIG_STATUS <<\_ACEOF
19353 ## --------------------- ##
19354 ## M4sh Initialization. ##
19355 ## --------------------- ##
19356
19357 # Be Bourne compatible
19358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19359 emulate sh
19360 NULLCMD=:
19361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19362 # is contrary to our usage. Disable this feature.
19363 alias -g '${1+"$@"}'='"$@"'
19364 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19365 set -o posix
19366 fi
19367
19368 # Support unset when possible.
19369 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19370 as_unset=unset
19371 else
19372 as_unset=false
19373 fi
19374
19375
19376 # Work around bugs in pre-3.0 UWIN ksh.
19377 $as_unset ENV MAIL MAILPATH
19378 PS1='$ '
19379 PS2='> '
19380 PS4='+ '
19381
19382 # NLS nuisances.
19383 for as_var in \
19384 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19385 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19386 LC_TELEPHONE LC_TIME
19387 do
19388 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19389 eval $as_var=C; export $as_var
19390 else
19391 $as_unset $as_var
19392 fi
19393 done
19394
19395 # Required to use basename.
19396 if expr a : '\(a\)' >/dev/null 2>&1; then
19397 as_expr=expr
19398 else
19399 as_expr=false
19400 fi
19401
19402 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19403 as_basename=basename
19404 else
19405 as_basename=false
19406 fi
19407
19408
19409 # Name of the executable.
19410 as_me=`$as_basename "$0" ||
19411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19412 X"$0" : 'X\(//\)$' \| \
19413 X"$0" : 'X\(/\)$' \| \
19414 . : '\(.\)' 2>/dev/null ||
19415 echo X/"$0" |
19416 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19417 /^X\/\(\/\/\)$/{ s//\1/; q; }
19418 /^X\/\(\/\).*/{ s//\1/; q; }
19419 s/.*/./; q'`
19420
19421
19422 # PATH needs CR, and LINENO needs CR and PATH.
19423 # Avoid depending upon Character Ranges.
19424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19427 as_cr_digits='0123456789'
19428 as_cr_alnum=$as_cr_Letters$as_cr_digits
19429
19430 # The user is always right.
19431 if test "${PATH_SEPARATOR+set}" != set; then
19432 echo "#! /bin/sh" >conf$$.sh
19433 echo "exit 0" >>conf$$.sh
19434 chmod +x conf$$.sh
19435 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19436 PATH_SEPARATOR=';'
19437 else
19438 PATH_SEPARATOR=:
19439 fi
19440 rm -f conf$$.sh
19441 fi
19442
19443
19444 as_lineno_1=$LINENO
19445 as_lineno_2=$LINENO
19446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19447 test "x$as_lineno_1" != "x$as_lineno_2" &&
19448 test "x$as_lineno_3" = "x$as_lineno_2" || {
19449 # Find who we are. Look in the path if we contain no path at all
19450 # relative or not.
19451 case $0 in
19452 *[\\/]* ) as_myself=$0 ;;
19453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454 for as_dir in $PATH
19455 do
19456 IFS=$as_save_IFS
19457 test -z "$as_dir" && as_dir=.
19458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19459 done
19460
19461 ;;
19462 esac
19463 # We did not find ourselves, most probably we were run as `sh COMMAND'
19464 # in which case we are not to be found in the path.
19465 if test "x$as_myself" = x; then
19466 as_myself=$0
19467 fi
19468 if test ! -f "$as_myself"; then
19469 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19470 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19471 { (exit 1); exit 1; }; }
19472 fi
19473 case $CONFIG_SHELL in
19474 '')
19475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19476 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19477 do
19478 IFS=$as_save_IFS
19479 test -z "$as_dir" && as_dir=.
19480 for as_base in sh bash ksh sh5; do
19481 case $as_dir in
19482 /*)
19483 if ("$as_dir/$as_base" -c '
19484 as_lineno_1=$LINENO
19485 as_lineno_2=$LINENO
19486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19487 test "x$as_lineno_1" != "x$as_lineno_2" &&
19488 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19489 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19490 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19491 CONFIG_SHELL=$as_dir/$as_base
19492 export CONFIG_SHELL
19493 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19494 fi;;
19495 esac
19496 done
19497 done
19498 ;;
19499 esac
19500
19501 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19502 # uniformly replaced by the line number. The first 'sed' inserts a
19503 # line-number line before each line; the second 'sed' does the real
19504 # work. The second script uses 'N' to pair each line-number line
19505 # with the numbered line, and appends trailing '-' during
19506 # substitution so that $LINENO is not a special case at line end.
19507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19508 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19509 sed '=' <$as_myself |
19510 sed '
19511 N
19512 s,$,-,
19513 : loop
19514 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19515 t loop
19516 s,-$,,
19517 s,^['$as_cr_digits']*\n,,
19518 ' >$as_me.lineno &&
19519 chmod +x $as_me.lineno ||
19520 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19521 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19522 { (exit 1); exit 1; }; }
19523
19524 # Don't try to exec as it changes $[0], causing all sort of problems
19525 # (the dirname of $[0] is not the place where we might find the
19526 # original and so on. Autoconf is especially sensible to this).
19527 . ./$as_me.lineno
19528 # Exit status is that of the last command.
19529 exit
19530 }
19531
19532
19533 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19534 *c*,-n*) ECHO_N= ECHO_C='
19535 ' ECHO_T=' ' ;;
19536 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19537 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19538 esac
19539
19540 if expr a : '\(a\)' >/dev/null 2>&1; then
19541 as_expr=expr
19542 else
19543 as_expr=false
19544 fi
19545
19546 rm -f conf$$ conf$$.exe conf$$.file
19547 echo >conf$$.file
19548 if ln -s conf$$.file conf$$ 2>/dev/null; then
19549 # We could just check for DJGPP; but this test a) works b) is more generic
19550 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19551 if test -f conf$$.exe; then
19552 # Don't use ln at all; we don't have any links
19553 as_ln_s='cp -p'
19554 else
19555 as_ln_s='ln -s'
19556 fi
19557 elif ln conf$$.file conf$$ 2>/dev/null; then
19558 as_ln_s=ln
19559 else
19560 as_ln_s='cp -p'
19561 fi
19562 rm -f conf$$ conf$$.exe conf$$.file
19563
19564 if mkdir -p . 2>/dev/null; then
19565 as_mkdir_p=:
19566 else
19567 as_mkdir_p=false
19568 fi
19569
19570 as_executable_p="test -f"
19571
19572 # Sed expression to map a string onto a valid CPP name.
19573 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19574
19575 # Sed expression to map a string onto a valid variable name.
19576 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19577
19578
19579 # IFS
19580 # We need space, tab and new line, in precisely that order.
19581 as_nl='
19582 '
19583 IFS=" $as_nl"
19584
19585 # CDPATH.
19586 $as_unset CDPATH
19587
19588 exec 6>&1
19589
19590 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19591 # report actual input values of CONFIG_FILES etc. instead of their
19592 # values after options handling. Logging --version etc. is OK.
19593 exec 5>>config.log
19594 {
19595 echo
19596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19597 ## Running $as_me. ##
19598 _ASBOX
19599 } >&5
19600 cat >&5 <<_CSEOF
19601
19602 This file was extended by $as_me, which was
19603 generated by GNU Autoconf 2.57. Invocation command line was
19604
19605 CONFIG_FILES = $CONFIG_FILES
19606 CONFIG_HEADERS = $CONFIG_HEADERS
19607 CONFIG_LINKS = $CONFIG_LINKS
19608 CONFIG_COMMANDS = $CONFIG_COMMANDS
19609 $ $0 $@
19610
19611 _CSEOF
19612 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19613 echo >&5
19614 _ACEOF
19615
19616 # Files that config.status was made for.
19617 if test -n "$ac_config_files"; then
19618 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19619 fi
19620
19621 if test -n "$ac_config_headers"; then
19622 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19623 fi
19624
19625 if test -n "$ac_config_links"; then
19626 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19627 fi
19628
19629 if test -n "$ac_config_commands"; then
19630 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19631 fi
19632
19633 cat >>$CONFIG_STATUS <<\_ACEOF
19634
19635 ac_cs_usage="\
19636 \`$as_me' instantiates files from templates according to the
19637 current configuration.
19638
19639 Usage: $0 [OPTIONS] [FILE]...
19640
19641 -h, --help print this help, then exit
19642 -V, --version print version number, then exit
19643 -q, --quiet do not print progress messages
19644 -d, --debug don't remove temporary files
19645 --recheck update $as_me by reconfiguring in the same conditions
19646 --file=FILE[:TEMPLATE]
19647 instantiate the configuration file FILE
19648 --header=FILE[:TEMPLATE]
19649 instantiate the configuration header FILE
19650
19651 Configuration files:
19652 $config_files
19653
19654 Configuration headers:
19655 $config_headers
19656
19657 Configuration commands:
19658 $config_commands
19659
19660 Report bugs to <bug-autoconf@gnu.org>."
19661 _ACEOF
19662
19663 cat >>$CONFIG_STATUS <<_ACEOF
19664 ac_cs_version="\\
19665 config.status
19666 configured by $0, generated by GNU Autoconf 2.57,
19667 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19668
19669 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19670 Free Software Foundation, Inc.
19671 This config.status script is free software; the Free Software Foundation
19672 gives unlimited permission to copy, distribute and modify it."
19673 srcdir=$srcdir
19674 INSTALL="$INSTALL"
19675 _ACEOF
19676
19677 cat >>$CONFIG_STATUS <<\_ACEOF
19678 # If no file are specified by the user, then we need to provide default
19679 # value. By we need to know if files were specified by the user.
19680 ac_need_defaults=:
19681 while test $# != 0
19682 do
19683 case $1 in
19684 --*=*)
19685 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19686 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19687 ac_shift=:
19688 ;;
19689 -*)
19690 ac_option=$1
19691 ac_optarg=$2
19692 ac_shift=shift
19693 ;;
19694 *) # This is not an option, so the user has probably given explicit
19695 # arguments.
19696 ac_option=$1
19697 ac_need_defaults=false;;
19698 esac
19699
19700 case $ac_option in
19701 # Handling of the options.
19702 _ACEOF
19703 cat >>$CONFIG_STATUS <<\_ACEOF
19704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19705 ac_cs_recheck=: ;;
19706 --version | --vers* | -V )
19707 echo "$ac_cs_version"; exit 0 ;;
19708 --he | --h)
19709 # Conflict between --help and --header
19710 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19711 Try \`$0 --help' for more information." >&5
19712 echo "$as_me: error: ambiguous option: $1
19713 Try \`$0 --help' for more information." >&2;}
19714 { (exit 1); exit 1; }; };;
19715 --help | --hel | -h )
19716 echo "$ac_cs_usage"; exit 0 ;;
19717 --debug | --d* | -d )
19718 debug=: ;;
19719 --file | --fil | --fi | --f )
19720 $ac_shift
19721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19722 ac_need_defaults=false;;
19723 --header | --heade | --head | --hea )
19724 $ac_shift
19725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19726 ac_need_defaults=false;;
19727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19729 ac_cs_silent=: ;;
19730
19731 # This is an error.
19732 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19733 Try \`$0 --help' for more information." >&5
19734 echo "$as_me: error: unrecognized option: $1
19735 Try \`$0 --help' for more information." >&2;}
19736 { (exit 1); exit 1; }; } ;;
19737
19738 *) ac_config_targets="$ac_config_targets $1" ;;
19739
19740 esac
19741 shift
19742 done
19743
19744 ac_configure_extra_args=
19745
19746 if $ac_cs_silent; then
19747 exec 6>/dev/null
19748 ac_configure_extra_args="$ac_configure_extra_args --silent"
19749 fi
19750
19751 _ACEOF
19752 cat >>$CONFIG_STATUS <<_ACEOF
19753 if \$ac_cs_recheck; then
19754 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19755 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19756 fi
19757
19758 _ACEOF
19759
19760 cat >>$CONFIG_STATUS <<_ACEOF
19761 #
19762 # INIT-COMMANDS section.
19763 #
19764
19765 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19766
19767 _ACEOF
19768
19769
19770
19771 cat >>$CONFIG_STATUS <<\_ACEOF
19772 for ac_config_target in $ac_config_targets
19773 do
19774 case "$ac_config_target" in
19775 # Handling of arguments.
19776 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19777 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19778 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19779 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19780 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19781 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19782 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19783 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
19784 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
19785 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19786 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19787 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19790 { (exit 1); exit 1; }; };;
19791 esac
19792 done
19793
19794 # If the user did not use the arguments to specify the items to instantiate,
19795 # then the envvar interface is used. Set only those that are not.
19796 # We use the long form for the default assignment because of an extremely
19797 # bizarre bug on SunOS 4.1.3.
19798 if $ac_need_defaults; then
19799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19802 fi
19803
19804 # Have a temporary directory for convenience. Make it in the build tree
19805 # simply because there is no reason to put it here, and in addition,
19806 # creating and moving files from /tmp can sometimes cause problems.
19807 # Create a temporary directory, and hook for its removal unless debugging.
19808 $debug ||
19809 {
19810 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19811 trap '{ (exit 1); exit 1; }' 1 2 13 15
19812 }
19813
19814 # Create a (secure) tmp directory for tmp files.
19815
19816 {
19817 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19818 test -n "$tmp" && test -d "$tmp"
19819 } ||
19820 {
19821 tmp=./confstat$$-$RANDOM
19822 (umask 077 && mkdir $tmp)
19823 } ||
19824 {
19825 echo "$me: cannot create a temporary directory in ." >&2
19826 { (exit 1); exit 1; }
19827 }
19828
19829 _ACEOF
19830
19831 cat >>$CONFIG_STATUS <<_ACEOF
19832
19833 #
19834 # CONFIG_FILES section.
19835 #
19836
19837 # No need to generate the scripts if there are no CONFIG_FILES.
19838 # This happens for instance when ./config.status config.h
19839 if test -n "\$CONFIG_FILES"; then
19840 # Protect against being on the right side of a sed subst in config.status.
19841 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19842 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19843 s,@SHELL@,$SHELL,;t t
19844 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19845 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19846 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19847 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19848 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19849 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19850 s,@exec_prefix@,$exec_prefix,;t t
19851 s,@prefix@,$prefix,;t t
19852 s,@program_transform_name@,$program_transform_name,;t t
19853 s,@bindir@,$bindir,;t t
19854 s,@sbindir@,$sbindir,;t t
19855 s,@libexecdir@,$libexecdir,;t t
19856 s,@datadir@,$datadir,;t t
19857 s,@sysconfdir@,$sysconfdir,;t t
19858 s,@sharedstatedir@,$sharedstatedir,;t t
19859 s,@localstatedir@,$localstatedir,;t t
19860 s,@libdir@,$libdir,;t t
19861 s,@includedir@,$includedir,;t t
19862 s,@oldincludedir@,$oldincludedir,;t t
19863 s,@infodir@,$infodir,;t t
19864 s,@mandir@,$mandir,;t t
19865 s,@build_alias@,$build_alias,;t t
19866 s,@host_alias@,$host_alias,;t t
19867 s,@target_alias@,$target_alias,;t t
19868 s,@DEFS@,$DEFS,;t t
19869 s,@ECHO_C@,$ECHO_C,;t t
19870 s,@ECHO_N@,$ECHO_N,;t t
19871 s,@ECHO_T@,$ECHO_T,;t t
19872 s,@LIBS@,$LIBS,;t t
19873 s,@MAINT@,$MAINT,;t t
19874 s,@build@,$build,;t t
19875 s,@build_cpu@,$build_cpu,;t t
19876 s,@build_vendor@,$build_vendor,;t t
19877 s,@build_os@,$build_os,;t t
19878 s,@host@,$host,;t t
19879 s,@host_cpu@,$host_cpu,;t t
19880 s,@host_vendor@,$host_vendor,;t t
19881 s,@host_os@,$host_os,;t t
19882 s,@CC@,$CC,;t t
19883 s,@CFLAGS@,$CFLAGS,;t t
19884 s,@LDFLAGS@,$LDFLAGS,;t t
19885 s,@CPPFLAGS@,$CPPFLAGS,;t t
19886 s,@ac_ct_CC@,$ac_ct_CC,;t t
19887 s,@EXEEXT@,$EXEEXT,;t t
19888 s,@OBJEXT@,$OBJEXT,;t t
19889 s,@LN_S@,$LN_S,;t t
19890 s,@CPP@,$CPP,;t t
19891 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19892 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19894 s,@RANLIB@,$RANLIB,;t t
19895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19896 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19897 s,@EGREP@,$EGREP,;t t
19898 s,@LIBSOUND@,$LIBSOUND,;t t
19899 s,@SET_MAKE@,$SET_MAKE,;t t
19900 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19901 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19902 s,@GTK_LIBS@,$GTK_LIBS,;t t
19903 s,@ALLOCA@,$ALLOCA,;t t
19904 s,@liblockfile@,$liblockfile,;t t
19905 s,@LIBOBJS@,$LIBOBJS,;t t
19906 s,@NEED_SETGID@,$NEED_SETGID,;t t
19907 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19908 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19909 s,@version@,$version,;t t
19910 s,@configuration@,$configuration,;t t
19911 s,@canonical@,$canonical,;t t
19912 s,@srcdir@,$srcdir,;t t
19913 s,@lispdir@,$lispdir,;t t
19914 s,@locallisppath@,$locallisppath,;t t
19915 s,@lisppath@,$lisppath,;t t
19916 s,@x_default_search_path@,$x_default_search_path,;t t
19917 s,@etcdir@,$etcdir,;t t
19918 s,@archlibdir@,$archlibdir,;t t
19919 s,@docdir@,$docdir,;t t
19920 s,@bitmapdir@,$bitmapdir,;t t
19921 s,@gamedir@,$gamedir,;t t
19922 s,@gameuser@,$gameuser,;t t
19923 s,@c_switch_system@,$c_switch_system,;t t
19924 s,@c_switch_machine@,$c_switch_machine,;t t
19925 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19926 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19927 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19928 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19929 s,@machfile@,$machfile,;t t
19930 s,@opsysfile@,$opsysfile,;t t
19931 s,@carbon_appdir@,$carbon_appdir,;t t
19932 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19933 CEOF
19934
19935 _ACEOF
19936
19937 cat >>$CONFIG_STATUS <<\_ACEOF
19938 # Split the substitutions into bite-sized pieces for seds with
19939 # small command number limits, like on Digital OSF/1 and HP-UX.
19940 ac_max_sed_lines=48
19941 ac_sed_frag=1 # Number of current file.
19942 ac_beg=1 # First line for current file.
19943 ac_end=$ac_max_sed_lines # Line after last line for current file.
19944 ac_more_lines=:
19945 ac_sed_cmds=
19946 while $ac_more_lines; do
19947 if test $ac_beg -gt 1; then
19948 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19949 else
19950 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19951 fi
19952 if test ! -s $tmp/subs.frag; then
19953 ac_more_lines=false
19954 else
19955 # The purpose of the label and of the branching condition is to
19956 # speed up the sed processing (if there are no `@' at all, there
19957 # is no need to browse any of the substitutions).
19958 # These are the two extra sed commands mentioned above.
19959 (echo ':t
19960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19961 if test -z "$ac_sed_cmds"; then
19962 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19963 else
19964 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19965 fi
19966 ac_sed_frag=`expr $ac_sed_frag + 1`
19967 ac_beg=$ac_end
19968 ac_end=`expr $ac_end + $ac_max_sed_lines`
19969 fi
19970 done
19971 if test -z "$ac_sed_cmds"; then
19972 ac_sed_cmds=cat
19973 fi
19974 fi # test -n "$CONFIG_FILES"
19975
19976 _ACEOF
19977 cat >>$CONFIG_STATUS <<\_ACEOF
19978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19980 case $ac_file in
19981 - | *:- | *:-:* ) # input from stdin
19982 cat >$tmp/stdin
19983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19987 * ) ac_file_in=$ac_file.in ;;
19988 esac
19989
19990 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993 X"$ac_file" : 'X\(//\)[^/]' \| \
19994 X"$ac_file" : 'X\(//\)$' \| \
19995 X"$ac_file" : 'X\(/\)' \| \
19996 . : '\(.\)' 2>/dev/null ||
19997 echo X"$ac_file" |
19998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20000 /^X\(\/\/\)$/{ s//\1/; q; }
20001 /^X\(\/\).*/{ s//\1/; q; }
20002 s/.*/./; q'`
20003 { if $as_mkdir_p; then
20004 mkdir -p "$ac_dir"
20005 else
20006 as_dir="$ac_dir"
20007 as_dirs=
20008 while test ! -d "$as_dir"; do
20009 as_dirs="$as_dir $as_dirs"
20010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20012 X"$as_dir" : 'X\(//\)[^/]' \| \
20013 X"$as_dir" : 'X\(//\)$' \| \
20014 X"$as_dir" : 'X\(/\)' \| \
20015 . : '\(.\)' 2>/dev/null ||
20016 echo X"$as_dir" |
20017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20019 /^X\(\/\/\)$/{ s//\1/; q; }
20020 /^X\(\/\).*/{ s//\1/; q; }
20021 s/.*/./; q'`
20022 done
20023 test ! -n "$as_dirs" || mkdir $as_dirs
20024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20026 { (exit 1); exit 1; }; }; }
20027
20028 ac_builddir=.
20029
20030 if test "$ac_dir" != .; then
20031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20032 # A "../" for each directory in $ac_dir_suffix.
20033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20034 else
20035 ac_dir_suffix= ac_top_builddir=
20036 fi
20037
20038 case $srcdir in
20039 .) # No --srcdir option. We are building in place.
20040 ac_srcdir=.
20041 if test -z "$ac_top_builddir"; then
20042 ac_top_srcdir=.
20043 else
20044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20045 fi ;;
20046 [\\/]* | ?:[\\/]* ) # Absolute path.
20047 ac_srcdir=$srcdir$ac_dir_suffix;
20048 ac_top_srcdir=$srcdir ;;
20049 *) # Relative path.
20050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20052 esac
20053 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20054 # absolute.
20055 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20056 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20057 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20058 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20059
20060
20061 case $INSTALL in
20062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20063 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20064 esac
20065
20066 if test x"$ac_file" != x-; then
20067 { echo "$as_me:$LINENO: creating $ac_file" >&5
20068 echo "$as_me: creating $ac_file" >&6;}
20069 rm -f "$ac_file"
20070 fi
20071 # Let's still pretend it is `configure' which instantiates (i.e., don't
20072 # use $as_me), people would be surprised to read:
20073 # /* config.h. Generated by config.status. */
20074 if test x"$ac_file" = x-; then
20075 configure_input=
20076 else
20077 configure_input="$ac_file. "
20078 fi
20079 configure_input=$configure_input"Generated from `echo $ac_file_in |
20080 sed 's,.*/,,'` by configure."
20081
20082 # First look for the input files in the build tree, otherwise in the
20083 # src tree.
20084 ac_file_inputs=`IFS=:
20085 for f in $ac_file_in; do
20086 case $f in
20087 -) echo $tmp/stdin ;;
20088 [\\/$]*)
20089 # Absolute (can't be DOS-style, as IFS=:)
20090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20091 echo "$as_me: error: cannot find input file: $f" >&2;}
20092 { (exit 1); exit 1; }; }
20093 echo $f;;
20094 *) # Relative
20095 if test -f "$f"; then
20096 # Build tree
20097 echo $f
20098 elif test -f "$srcdir/$f"; then
20099 # Source tree
20100 echo $srcdir/$f
20101 else
20102 # /dev/null tree
20103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20104 echo "$as_me: error: cannot find input file: $f" >&2;}
20105 { (exit 1); exit 1; }; }
20106 fi;;
20107 esac
20108 done` || { (exit 1); exit 1; }
20109 _ACEOF
20110 cat >>$CONFIG_STATUS <<_ACEOF
20111 sed "$ac_vpsub
20112 $extrasub
20113 _ACEOF
20114 cat >>$CONFIG_STATUS <<\_ACEOF
20115 :t
20116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20117 s,@configure_input@,$configure_input,;t t
20118 s,@srcdir@,$ac_srcdir,;t t
20119 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20120 s,@top_srcdir@,$ac_top_srcdir,;t t
20121 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20122 s,@builddir@,$ac_builddir,;t t
20123 s,@abs_builddir@,$ac_abs_builddir,;t t
20124 s,@top_builddir@,$ac_top_builddir,;t t
20125 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20126 s,@INSTALL@,$ac_INSTALL,;t t
20127 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20128 rm -f $tmp/stdin
20129 if test x"$ac_file" != x-; then
20130 mv $tmp/out $ac_file
20131 else
20132 cat $tmp/out
20133 rm -f $tmp/out
20134 fi
20135
20136 done
20137 _ACEOF
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139
20140 #
20141 # CONFIG_HEADER section.
20142 #
20143
20144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20146 #
20147 # ac_d sets the value in "#define NAME VALUE" lines.
20148 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20149 ac_dB='[ ].*$,\1#\2'
20150 ac_dC=' '
20151 ac_dD=',;t'
20152 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20153 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20154 ac_uB='$,\1#\2define\3'
20155 ac_uC=' '
20156 ac_uD=',;t'
20157
20158 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20160 case $ac_file in
20161 - | *:- | *:-:* ) # input from stdin
20162 cat >$tmp/stdin
20163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20167 * ) ac_file_in=$ac_file.in ;;
20168 esac
20169
20170 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20171 echo "$as_me: creating $ac_file" >&6;}
20172
20173 # First look for the input files in the build tree, otherwise in the
20174 # src tree.
20175 ac_file_inputs=`IFS=:
20176 for f in $ac_file_in; do
20177 case $f in
20178 -) echo $tmp/stdin ;;
20179 [\\/$]*)
20180 # Absolute (can't be DOS-style, as IFS=:)
20181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20182 echo "$as_me: error: cannot find input file: $f" >&2;}
20183 { (exit 1); exit 1; }; }
20184 echo $f;;
20185 *) # Relative
20186 if test -f "$f"; then
20187 # Build tree
20188 echo $f
20189 elif test -f "$srcdir/$f"; then
20190 # Source tree
20191 echo $srcdir/$f
20192 else
20193 # /dev/null tree
20194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20195 echo "$as_me: error: cannot find input file: $f" >&2;}
20196 { (exit 1); exit 1; }; }
20197 fi;;
20198 esac
20199 done` || { (exit 1); exit 1; }
20200 # Remove the trailing spaces.
20201 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20202
20203 _ACEOF
20204
20205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20206 # `conftest.undefs', that substitutes the proper values into
20207 # config.h.in to produce config.h. The first handles `#define'
20208 # templates, and the second `#undef' templates.
20209 # And first: Protect against being on the right side of a sed subst in
20210 # config.status. Protect against being in an unquoted here document
20211 # in config.status.
20212 rm -f conftest.defines conftest.undefs
20213 # Using a here document instead of a string reduces the quoting nightmare.
20214 # Putting comments in sed scripts is not portable.
20215 #
20216 # `end' is used to avoid that the second main sed command (meant for
20217 # 0-ary CPP macros) applies to n-ary macro definitions.
20218 # See the Autoconf documentation for `clear'.
20219 cat >confdef2sed.sed <<\_ACEOF
20220 s/[\\&,]/\\&/g
20221 s,[\\$`],\\&,g
20222 t clear
20223 : clear
20224 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20225 t end
20226 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20227 : end
20228 _ACEOF
20229 # If some macros were called several times there might be several times
20230 # the same #defines, which is useless. Nevertheless, we may not want to
20231 # sort them, since we want the *last* AC-DEFINE to be honored.
20232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20234 rm -f confdef2sed.sed
20235
20236 # This sed command replaces #undef with comments. This is necessary, for
20237 # example, in the case of _POSIX_SOURCE, which is predefined and required
20238 # on some systems where configure will not decide to define it.
20239 cat >>conftest.undefs <<\_ACEOF
20240 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20241 _ACEOF
20242
20243 # Break up conftest.defines because some shells have a limit on the size
20244 # of here documents, and old seds have small limits too (100 cmds).
20245 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20246 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20247 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20248 echo ' :' >>$CONFIG_STATUS
20249 rm -f conftest.tail
20250 while grep . conftest.defines >/dev/null
20251 do
20252 # Write a limited-size here document to $tmp/defines.sed.
20253 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20254 # Speed up: don't consider the non `#define' lines.
20255 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20256 # Work around the forget-to-reset-the-flag bug.
20257 echo 't clr' >>$CONFIG_STATUS
20258 echo ': clr' >>$CONFIG_STATUS
20259 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20260 echo 'CEOF
20261 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20262 rm -f $tmp/in
20263 mv $tmp/out $tmp/in
20264 ' >>$CONFIG_STATUS
20265 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20266 rm -f conftest.defines
20267 mv conftest.tail conftest.defines
20268 done
20269 rm -f conftest.defines
20270 echo ' fi # grep' >>$CONFIG_STATUS
20271 echo >>$CONFIG_STATUS
20272
20273 # Break up conftest.undefs because some shells have a limit on the size
20274 # of here documents, and old seds have small limits too (100 cmds).
20275 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20276 rm -f conftest.tail
20277 while grep . conftest.undefs >/dev/null
20278 do
20279 # Write a limited-size here document to $tmp/undefs.sed.
20280 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20281 # Speed up: don't consider the non `#undef'
20282 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20283 # Work around the forget-to-reset-the-flag bug.
20284 echo 't clr' >>$CONFIG_STATUS
20285 echo ': clr' >>$CONFIG_STATUS
20286 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20287 echo 'CEOF
20288 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20289 rm -f $tmp/in
20290 mv $tmp/out $tmp/in
20291 ' >>$CONFIG_STATUS
20292 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20293 rm -f conftest.undefs
20294 mv conftest.tail conftest.undefs
20295 done
20296 rm -f conftest.undefs
20297
20298 cat >>$CONFIG_STATUS <<\_ACEOF
20299 # Let's still pretend it is `configure' which instantiates (i.e., don't
20300 # use $as_me), people would be surprised to read:
20301 # /* config.h. Generated by config.status. */
20302 if test x"$ac_file" = x-; then
20303 echo "/* Generated by configure. */" >$tmp/config.h
20304 else
20305 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20306 fi
20307 cat $tmp/in >>$tmp/config.h
20308 rm -f $tmp/in
20309 if test x"$ac_file" != x-; then
20310 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20312 echo "$as_me: $ac_file is unchanged" >&6;}
20313 else
20314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20316 X"$ac_file" : 'X\(//\)[^/]' \| \
20317 X"$ac_file" : 'X\(//\)$' \| \
20318 X"$ac_file" : 'X\(/\)' \| \
20319 . : '\(.\)' 2>/dev/null ||
20320 echo X"$ac_file" |
20321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20323 /^X\(\/\/\)$/{ s//\1/; q; }
20324 /^X\(\/\).*/{ s//\1/; q; }
20325 s/.*/./; q'`
20326 { if $as_mkdir_p; then
20327 mkdir -p "$ac_dir"
20328 else
20329 as_dir="$ac_dir"
20330 as_dirs=
20331 while test ! -d "$as_dir"; do
20332 as_dirs="$as_dir $as_dirs"
20333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20335 X"$as_dir" : 'X\(//\)[^/]' \| \
20336 X"$as_dir" : 'X\(//\)$' \| \
20337 X"$as_dir" : 'X\(/\)' \| \
20338 . : '\(.\)' 2>/dev/null ||
20339 echo X"$as_dir" |
20340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20342 /^X\(\/\/\)$/{ s//\1/; q; }
20343 /^X\(\/\).*/{ s//\1/; q; }
20344 s/.*/./; q'`
20345 done
20346 test ! -n "$as_dirs" || mkdir $as_dirs
20347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20349 { (exit 1); exit 1; }; }; }
20350
20351 rm -f $ac_file
20352 mv $tmp/config.h $ac_file
20353 fi
20354 else
20355 cat $tmp/config.h
20356 rm -f $tmp/config.h
20357 fi
20358 done
20359 _ACEOF
20360 cat >>$CONFIG_STATUS <<\_ACEOF
20361
20362 #
20363 # CONFIG_COMMANDS section.
20364 #
20365 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20366 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20367 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20368 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20369 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20370 X"$ac_dest" : 'X\(//\)[^/]' \| \
20371 X"$ac_dest" : 'X\(//\)$' \| \
20372 X"$ac_dest" : 'X\(/\)' \| \
20373 . : '\(.\)' 2>/dev/null ||
20374 echo X"$ac_dest" |
20375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20377 /^X\(\/\/\)$/{ s//\1/; q; }
20378 /^X\(\/\).*/{ s//\1/; q; }
20379 s/.*/./; q'`
20380 ac_builddir=.
20381
20382 if test "$ac_dir" != .; then
20383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20384 # A "../" for each directory in $ac_dir_suffix.
20385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20386 else
20387 ac_dir_suffix= ac_top_builddir=
20388 fi
20389
20390 case $srcdir in
20391 .) # No --srcdir option. We are building in place.
20392 ac_srcdir=.
20393 if test -z "$ac_top_builddir"; then
20394 ac_top_srcdir=.
20395 else
20396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20397 fi ;;
20398 [\\/]* | ?:[\\/]* ) # Absolute path.
20399 ac_srcdir=$srcdir$ac_dir_suffix;
20400 ac_top_srcdir=$srcdir ;;
20401 *) # Relative path.
20402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20403 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20404 esac
20405 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20406 # absolute.
20407 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20408 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20409 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20410 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20411
20412
20413 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20414 echo "$as_me: executing $ac_dest commands" >&6;}
20415 case $ac_dest in
20416 default )
20417
20418 ### Make the necessary directories, if they don't exist.
20419 for dir in etc lisp ; do
20420 test -d ${dir} || mkdir ${dir}
20421 done
20422
20423 # Build src/Makefile from ${srcdir}/src/Makefile.c
20424 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20425 # This must be done after src/config.h is built, since we rely on that file.
20426
20427 # Now get this: Some word that is part of the ${srcdir} directory name
20428 # or the ${configuration} value might, just might, happen to be an
20429 # identifier like `sun4' or `i386' or something, and be predefined by
20430 # the C preprocessor to some helpful value like 1, or maybe the empty
20431 # string. Needless to say consequent macro substitutions are less
20432 # than conducive to the makefile finding the correct directory.
20433 undefs="`echo $top_srcdir $configuration $canonical |
20434 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20435 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20436 `"
20437
20438 echo creating src/epaths.h
20439 ${MAKE-make} epaths-force
20440
20441 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20442 # `..' to `. .' unless invoked with -traditional
20443
20444 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
20445 CPPFLAGS="$CPPFLAGS -traditional"
20446 fi
20447
20448 echo creating lib-src/Makefile
20449 ( cd lib-src
20450 rm -f junk.c junk1.c junk2.c
20451 sed -e '/start of cpp stuff/q' \
20452 < Makefile.c > junk1.c
20453 sed -e '1,/start of cpp stuff/d'\
20454 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20455 < Makefile.c > junk.c
20456 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20457 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20458 cat junk1.c junk2.c > Makefile.new
20459 rm -f junk.c junk1.c junk2.c
20460 chmod 444 Makefile.new
20461 mv -f Makefile.new Makefile
20462 )
20463
20464 echo creating src/Makefile
20465 ( cd src
20466 rm -f junk.c junk1.c junk2.c
20467 sed -e '/start of cpp stuff/q' \
20468 < Makefile.c > junk1.c
20469 sed -e '1,/start of cpp stuff/d'\
20470 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20471 < Makefile.c > junk.c
20472 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20473 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20474 cat junk1.c junk2.c > Makefile.new
20475 rm -f junk.c junk1.c junk2.c
20476 chmod 444 Makefile.new
20477 mv -f Makefile.new Makefile
20478 )
20479
20480 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20481 echo creating src/.gdbinit
20482 echo source $srcdir/src/.gdbinit > src/.gdbinit
20483 fi
20484
20485 # This is how we know whether to re-run configure in certain cases.
20486 touch src/config.stamp
20487
20488 ;;
20489 esac
20490 done
20491 _ACEOF
20492
20493 cat >>$CONFIG_STATUS <<\_ACEOF
20494
20495 { (exit 0); exit 0; }
20496 _ACEOF
20497 chmod +x $CONFIG_STATUS
20498 ac_clean_files=$ac_clean_files_save
20499
20500
20501 # configure is writing to config.log, and then calls config.status.
20502 # config.status does its own redirection, appending to config.log.
20503 # Unfortunately, on DOS this fails, as config.log is still kept open
20504 # by configure, so config.status won't be able to write to it; its
20505 # output is simply discarded. So we exec the FD to /dev/null,
20506 # effectively closing config.log, so it can be properly (re)opened and
20507 # appended to by config.status. When coming back to configure, we
20508 # need to make the FD available again.
20509 if test "$no_create" != yes; then
20510 ac_cs_success=:
20511 ac_config_status_args=
20512 test "$silent" = yes &&
20513 ac_config_status_args="$ac_config_status_args --quiet"
20514 exec 5>/dev/null
20515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20516 exec 5>>config.log
20517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20518 # would make configure fail if this is the last instruction.
20519 $ac_cs_success || { (exit 1); exit 1; }
20520 fi
20521
20522