*** empty log message ***
[emacs/old-mirror.git] / configure
bloba655838d017d87ffe368374d7bf958475f82b94a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
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`
248 exec 6>&1
251 # Initializations.
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}
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}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
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"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
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
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
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
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1034 for ac_arg
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1081 echo
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 esac;
1104 echo
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1205 done
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1325 gameuser=games
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1342 else :
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1418 esac
1419 with_x_toolkit=$val
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 canonical=$host
1623 configuration=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2013 hppa*-hp-hpux10.2* )
2014 machine=hp800 opsys=hpux10-20
2016 hppa*-hp-hpux10* )
2017 machine=hp800 opsys=hpux10
2019 hppa*-hp-hpux1[1-9]* )
2020 machine=hp800 opsys=hpux11
2023 hppa*-*-linux-gnu* )
2024 machine=hp800 opsys=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2028 hppa*-hp-hpux* )
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2034 *.08.* ) machine=hp800 opsys=hpux8 ;;
2035 *.09.* ) machine=hp800 opsys=hpux9 ;;
2036 *) machine=hp800 opsys=hpux10 ;;
2037 esac
2039 hppa*-*-nextstep* )
2040 machine=hp800 opsys=nextstep
2043 ## Orion machines
2044 orion-orion-bsd* )
2045 machine=orion opsys=bsd4-2
2047 clipper-orion-bsd* )
2048 machine=orion105 opsys=bsd4-2
2051 ## IBM machines
2052 i[3456]86-ibm-aix1.1* )
2053 machine=ibmps2-aix opsys=usg5-2-2
2055 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2056 machine=ibmps2-aix opsys=usg5-3
2058 i370-ibm-aix*)
2059 machine=ibm370aix opsys=usg5-3
2061 s390-*-linux-gnu)
2062 machine=ibms390 opsys=gnu-linux
2064 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2065 machine=ibmrs6000 opsys=aix3-1
2067 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2068 machine=ibmrs6000 opsys=aix3-2-5
2070 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2071 machine=ibmrs6000 opsys=aix4-1
2073 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2074 machine=ibmrs6000 opsys=aix4-2
2076 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2077 machine=ibmrs6000 opsys=aix4-2
2079 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2080 machine=ibmrs6000 opsys=aix4
2082 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2083 machine=ibmrs6000 opsys=aix4-1
2085 rs6000-ibm-aix* | powerpc-ibm-aix* )
2086 machine=ibmrs6000 opsys=aix3-2
2088 romp-ibm-bsd4.3* )
2089 machine=ibmrt opsys=bsd4-3
2091 romp-ibm-bsd4.2* )
2092 machine=ibmrt opsys=bsd4-2
2094 romp-ibm-aos4.3* )
2095 machine=ibmrt opsys=bsd4-3
2097 romp-ibm-aos4.2* )
2098 machine=ibmrt opsys=bsd4-2
2100 romp-ibm-aos* )
2101 machine=ibmrt opsys=bsd4-3
2103 romp-ibm-bsd* )
2104 machine=ibmrt opsys=bsd4-3
2106 romp-ibm-aix* )
2107 machine=ibmrt-aix opsys=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2111 m68*-isi-bsd4.2* )
2112 machine=isi-ov opsys=bsd4-2
2114 m68*-isi-bsd4.3* )
2115 machine=isi-ov opsys=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i[3456]86-intsys-sysv* )
2120 machine=is386 opsys=usg5-2-2
2123 ## Prime EXL
2124 i[3456]86-prime-sysv* )
2125 machine=i386 opsys=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i[3456]86-sequent-bsd* )
2130 machine=symmetry opsys=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2135 machine=sequent-ptx opsys=ptx4
2136 NON_GNU_CPP=/lib/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i[3456]86-sequent-ptx* )
2142 machine=sequent-ptx opsys=ptx
2143 NON_GNU_CPP="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i[3456]86-ncr-sysv4.3 )
2148 machine=ncr386 opsys=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i[3456]86-ncr-sysv* )
2154 machine=ncr386 opsys=usg5-4-2
2157 ## Intel Paragon OSF/1
2158 i860-intel-osf1* )
2159 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2162 ## Intel 860
2163 i860-*-sysv4* )
2164 machine=i860 opsys=usg5-4
2165 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc*-*-linux-gnu* )
2171 machine=macppc opsys=gnu-linux
2174 ## Masscomp machines
2175 m68*-masscomp-rtu* )
2176 machine=masscomp opsys=rtu
2179 ## Megatest machines
2180 m68*-megatest-bsd* )
2181 machine=mega68 opsys=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2195 mips-mips-usg* )
2196 machine=mips4
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4* )
2200 machine=mips4 opsys=bsd4-3
2201 NON_GNU_CC="cc -systype bsd43"
2202 NON_GNU_CPP="cc -systype bsd43 -E"
2204 mips-mips-riscos5* )
2205 machine=mips4 opsys=riscos5
2206 NON_GNU_CC="cc -systype bsd43"
2207 NON_GNU_CPP="cc -systype bsd43 -E"
2209 mips-mips-bsd* )
2210 machine=mips opsys=bsd4-3
2212 mips-mips-* )
2213 machine=mips opsys=usg5-2-2
2216 ## NeXT
2217 m68*-next-* | m68k-*-nextstep* )
2218 machine=m68k opsys=nextstep
2221 ## The complete machine from National Semiconductor
2222 ns32k-ns-genix* )
2223 machine=ns32000 opsys=usg5-2
2226 ## NCR machines
2227 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2228 machine=tower32 opsys=usg5-2-2
2230 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2231 machine=tower32v3 opsys=usg5-3
2234 ## NEC EWS4800
2235 mips-nec-sysv4*)
2236 machine=ews4800 opsys=ux4800
2239 ## Nixdorf Targon 31
2240 m68*-nixdorf-sysv* )
2241 machine=targon31 opsys=usg5-2-2
2244 ## Nu (TI or LMI)
2245 m68*-nu-sysv* )
2246 machine=nu opsys=usg5-2
2249 ## Plexus
2250 m68*-plexus-sysv* )
2251 machine=plexus opsys=usg5-2
2254 ## Pyramid machines
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd* )
2258 machine=pyramid opsys=bsd4-2
2261 ## Sequent Balance
2262 ns32k-sequent-bsd4.2* )
2263 machine=sequent opsys=bsd4-2
2265 ns32k-sequent-bsd4.3* )
2266 machine=sequent opsys=bsd4-3
2269 ## Siemens Nixdorf
2270 mips-siemens-sysv* | mips-sni-sysv*)
2271 machine=mips-siemens opsys=usg5-4
2272 NON_GNU_CC=/usr/ccs/bin/cc
2273 NON_GNU_CPP=/usr/ccs/lib/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2278 m68*-sgi-iris3.5* )
2279 machine=irist opsys=iris3-5
2281 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2282 machine=irist opsys=iris3-6
2284 ## Iris 4D
2285 mips-sgi-irix3* )
2286 machine=iris4d opsys=irix3-3
2288 mips-sgi-irix4* )
2289 machine=iris4d opsys=irix4-0
2291 mips-sgi-irix6.5 )
2292 machine=iris4d opsys=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2299 mips-sgi-irix6* )
2300 machine=iris4d opsys=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS=-32
2307 mips-sgi-irix5.[01]* )
2308 machine=iris4d opsys=irix5-0
2310 mips-sgi-irix5* | mips-sgi-irix* )
2311 machine=iris4d opsys=irix5-2
2314 ## SONY machines
2315 m68*-sony-bsd4.2* )
2316 machine=news opsys=bsd4-2
2318 m68*-sony-bsd4.3* )
2319 machine=news opsys=bsd4-3
2321 m68*-sony-newsos3* | m68*-sony-news3*)
2322 machine=news opsys=bsd4-3
2324 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2325 machine=news-risc opsys=bsd4-3
2327 mips-sony-newsos6* )
2328 machine=news-r6 opsys=newsos6
2330 mips-sony-news* )
2331 machine=news-risc opsys=newsos5
2334 ## Stride
2335 m68*-stride-sysv* )
2336 machine=stride opsys=usg5-2
2339 ## Suns
2340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2341 machine=sparc opsys=gnu-linux
2344 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2346 | rs6000-*-solaris2*)
2347 case "${canonical}" in
2348 m68*-sunos1* ) machine=sun1 ;;
2349 m68*-sunos2* ) machine=sun2 ;;
2350 m68* ) machine=sun3 ;;
2351 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2352 i[3456]86-*-* ) machine=intel386 ;;
2353 powerpcle* ) machine=powerpcle ;;
2354 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2355 sparc* ) machine=sparc ;;
2356 * ) unported=yes ;;
2357 esac
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2361 *-sunos4.0* ) opsys=sunos4-0 ;;
2362 *-sunos4.1.[3-9]*noshare )
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2365 opsys=sunos413
2366 NON_GNU_CPP=/usr/lib/cpp
2367 NON_GCC_TEST_OPTIONS=-Bstatic
2368 GCC_TEST_OPTIONS=-static
2370 *-sunos4.1.[3-9]* | *-sunos4shr*)
2371 opsys=sunos4shr
2372 NON_GNU_CPP=/usr/lib/cpp
2374 *-sunos4* | *-sunos )
2375 opsys=sunos4-1
2376 NON_GCC_TEST_OPTIONS=-Bstatic
2377 GCC_TEST_OPTIONS=-static
2379 *-sunos5.3* | *-solaris2.3* )
2380 opsys=sol2-3
2381 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 *-sunos5.4* | *-solaris2.4* )
2384 opsys=sol2-4
2385 NON_GNU_CPP=/usr/ccs/lib/cpp
2386 RANLIB="ar -ts"
2388 *-sunos5.5* | *-solaris2.5* )
2389 opsys=sol2-5
2390 NON_GNU_CPP=/usr/ccs/lib/cpp
2391 RANLIB="ar -ts"
2393 *-sunos5.6* | *-solaris2.6* )
2394 opsys=sol2-6
2395 NON_GNU_CPP=/usr/ccs/lib/cpp
2396 RANLIB="ar -ts"
2398 *-sunos5* | *-solaris* )
2399 opsys=sol2-6
2400 NON_GNU_CPP=/usr/ccs/lib/cpp
2402 * ) opsys=bsd4-2 ;;
2403 esac
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* | *-sunos5* )
2407 if [ "x$CC" = x/usr/ucb/cc ]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2410 unset CC
2413 *) ;;
2414 esac
2416 sparc-*-nextstep* )
2417 machine=sparc opsys=nextstep
2420 ## Tadpole 68k
2421 m68*-tadpole-sysv* )
2422 machine=tad68k opsys=usg5-3
2425 ## Tahoe machines
2426 tahoe-tahoe-bsd4.2* )
2427 machine=tahoe opsys=bsd4-2
2429 tahoe-tahoe-bsd4.3* )
2430 machine=tahoe opsys=bsd4-3
2433 ## Tandem Integrity S2
2434 mips-tandem-sysv* )
2435 machine=tandem-s2 opsys=usg5-3
2438 ## Tektronix XD88
2439 m88k-tektronix-sysv3* )
2440 machine=tekxd88 opsys=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd* )
2445 machine=ns16000 opsys=bsd4-2
2447 ## Tektronix 4300
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68*-tektronix-bsd* )
2450 machine=tek4300 opsys=bsd4-3
2453 ## Titan P2 or P3
2454 ## We seem to have lost the machine-description file titan.h!
2455 titan-titan-sysv* )
2456 machine=titan opsys=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68*-unisys-uniplus* )
2461 machine=ustation opsystem=unipl5-2
2464 ## Vaxen.
2465 vax-dec-* )
2466 machine=vax
2467 case "${canonical}" in
2468 *-bsd4.1* ) opsys=bsd4-1 ;;
2469 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2470 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2473 *-vms* ) opsys=vms ;;
2474 * ) unported=yes
2475 esac
2478 ## Whitechapel MG1
2479 ns16k-whitechapel-* )
2480 machine=mg1
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2485 ## Wicat
2486 m68*-wicat-sysv* )
2487 machine=wicat opsys=usg5-2
2490 ## IA-64
2491 ia64*-*-linux* )
2492 machine=ia64 opsys=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2496 i[3456]86-*-* )
2497 machine=intel386
2498 case "${canonical}" in
2499 *-cygwin ) opsys=cygwin ;;
2500 *-lynxos* ) opsys=lynxos ;;
2501 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2502 *-isc2.2* ) opsys=isc2-2 ;;
2503 *-isc4.0* ) opsys=isc4-0 ;;
2504 *-isc4.* ) opsys=isc4-1
2505 GCC_TEST_OPTIONS=-posix
2506 NON_GCC_TEST_OPTIONS=-Xp
2508 *-isc* ) opsys=isc3-0 ;;
2509 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2510 *-esix* ) opsys=esix ;;
2511 *-xenix* ) opsys=xenix ;;
2512 *-linux-gnu* ) opsys=gnu-linux ;;
2513 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2514 *-sco3.2v5* ) opsys=sco5
2515 NON_GNU_CPP=/lib/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS=" "
2520 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2521 *-386bsd* ) opsys=386bsd ;;
2522 *-nextstep* ) opsys=nextstep ;;
2523 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2524 esac
2527 ## m68k Linux-based GNU system
2528 m68k-*-linux-gnu* )
2529 machine=m68k opsys=gnu-linux
2532 ## Mips Linux-based GNU system
2533 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2534 machine=mips opsys=gnu-linux
2537 ## UXP/DS
2538 sparc-fujitsu-sysv4* )
2539 machine=sparc opsys=uxpds
2540 NON_GNU_CPP=/usr/ccs/lib/cpp
2541 RANLIB="ar -ts"
2544 ## UXP/V
2545 f301-fujitsu-uxpv4.1)
2546 machine=f301 opsys=uxpv
2549 ## Darwin / Mac OS X
2550 powerpc-apple-darwin* )
2551 machine=powermac opsys=darwin
2552 # Define CPP as follows to make autoconf work correctly.
2553 CPP="cc -E -traditional-cpp"
2556 ## AMD x86-64 Linux-based GNU system
2557 x86_64-*-linux-gnu* )
2558 machine=amdx86-64 opsys=gnu-linux
2562 unported=yes
2564 esac
2566 ### If the code above didn't choose an operating system, just choose
2567 ### an operating system based on the configuration name. You really
2568 ### only want to use this when you have no idea what the right
2569 ### operating system is; if you know what operating systems a machine
2570 ### runs, it's cleaner to make it explicit in the case statement
2571 ### above.
2572 if test x"${opsys}" = x; then
2573 case "${canonical}" in
2574 *-gnu* ) opsys=gnu ;;
2575 *-bsd4.[01] ) opsys=bsd4-1 ;;
2576 *-bsd4.2 ) opsys=bsd4-2 ;;
2577 *-bsd4.3 ) opsys=bsd4-3 ;;
2578 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2579 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2580 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2581 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2582 *-sysv4.2uw* ) opsys=unixware ;;
2583 *-sysv4.1* | *-sysvr4.1* )
2584 NON_GNU_CPP=/usr/lib/cpp
2585 opsys=usg5-4 ;;
2586 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2587 if [ x$NON_GNU_CPP = x ]; then
2588 if [ -f /usr/ccs/lib/cpp ]; then
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2590 else
2591 NON_GNU_CPP=/lib/cpp
2594 opsys=usg5-4-2 ;;
2595 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2597 unported=yes
2599 esac
2604 if test $unported = yes; then
2605 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2606 Check \`etc/MACHINES' for recognized configuration names." >&5
2607 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2608 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2609 { (exit 1); exit 1; }; }
2612 machfile="m/${machine}.h"
2613 opsysfile="s/${opsys}.h"
2616 #### Choose a compiler.
2617 test -n "$CC" && cc_specified=yes
2619 # Save the value of CFLAGS that the user specified.
2620 SPECIFIED_CFLAGS="$CFLAGS"
2622 case ${with_gcc} in
2623 "yes" ) CC="gcc" GCC=yes ;;
2624 "no" ) : ${CC=cc} ;;
2626 esac
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635 echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2669 if test -z "$ac_cv_prog_CC"; then
2670 ac_ct_CC=$CC
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc; ac_word=$2
2673 echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_CC="gcc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 CC=$ac_ct_CC
2707 else
2708 CC="$ac_cv_prog_CC"
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}cc; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}cc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2734 done
2735 done
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_CC"; then
2750 ac_ct_CC=$CC
2751 # Extract the first word of "cc", so it can be a program name with args.
2752 set dummy cc; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC="cc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780 echo "${ECHO_T}$ac_ct_CC" >&6
2781 else
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2786 CC=$ac_ct_CC
2787 else
2788 CC="$ac_cv_prog_CC"
2792 if test -z "$CC"; then
2793 # Extract the first word of "cc", so it can be a program name with args.
2794 set dummy cc; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 ac_prog_rejected=no
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2812 ac_prog_rejected=yes
2813 continue
2815 ac_cv_prog_CC="cc"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2819 done
2820 done
2822 if test $ac_prog_rejected = yes; then
2823 # We found a bogon in the path, so make sure we never use it.
2824 set dummy $ac_cv_prog_CC
2825 shift
2826 if test $# != 0; then
2827 # We chose a different compiler from the bogus one.
2828 # However, it has the same basename, so the bogon will be chosen
2829 # first if we set CC to just the basename; use the full file name.
2830 shift
2831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838 echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2846 if test -z "$CC"; then
2847 if test -n "$ac_tool_prefix"; then
2848 for ac_prog in cl
2850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2871 done
2872 done
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6
2880 else
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2885 test -n "$CC" && break
2886 done
2888 if test -z "$CC"; then
2889 ac_ct_CC=$CC
2890 for ac_prog in cl
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2921 echo "${ECHO_T}$ac_ct_CC" >&6
2922 else
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2927 test -n "$ac_ct_CC" && break
2928 done
2930 CC=$ac_ct_CC
2936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2942 # Provide some information about the compiler.
2943 echo "$as_me:$LINENO:" \
2944 "checking for C compiler version" >&5
2945 ac_compiler=`set X $ac_compile; echo $2`
2946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2947 (eval $ac_compiler --version </dev/null >&5) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2952 (eval $ac_compiler -v </dev/null >&5) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }
2956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2957 (eval $ac_compiler -V </dev/null >&5) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2982 # of exeext.
2983 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2984 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2985 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2987 (eval $ac_link_default) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # Find the output, starting from the most likely. This scheme is
2992 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2993 # resort.
2995 # Be careful to initialize this variable, since it used to be cached.
2996 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2997 ac_cv_exeext=
2998 # b.out is created by i960 compilers.
2999 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3005 conftest.$ac_ext )
3006 # This is the source file.
3008 [ab].out )
3009 # We found the default executable, but exeext='' is most
3010 # certainly right.
3011 break;;
3012 *.* )
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 # FIXME: I believe we export ac_cv_exeext for Libtool,
3015 # but it would be cool to find out if it's true. Does anybody
3016 # maintain Libtool? --akim.
3017 export ac_cv_exeext
3018 break;;
3020 break;;
3021 esac
3022 done
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&2;}
3031 { (exit 77); exit 77; }; }
3034 ac_exeext=$ac_cv_exeext
3035 echo "$as_me:$LINENO: result: $ac_file" >&5
3036 echo "${ECHO_T}$ac_file" >&6
3038 # Check the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3043 # If not cross compiling, check that we can run a simple program.
3044 if test "$cross_compiling" != yes; then
3045 if { ac_try='./$ac_file'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 cross_compiling=no
3052 else
3053 if test "$cross_compiling" = maybe; then
3054 cross_compiling=yes
3055 else
3056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3057 If you meant to cross compile, use \`--host'.
3058 See \`config.log' for more details." >&5
3059 echo "$as_me: error: cannot run C compiled programs.
3060 If you meant to cross compile, use \`--host'.
3061 See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3069 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3070 ac_clean_files=$ac_clean_files_save
3071 # Check the compiler produces executables we can run. If not, either
3072 # the compiler is broken, or we cross compile.
3073 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3074 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3075 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3076 echo "${ECHO_T}$cross_compiling" >&6
3078 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3079 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3086 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3087 # work properly (i.e., refer to `conftest.exe'), while it won't with
3088 # `rm'.
3089 for ac_file in conftest.exe conftest conftest.*; do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 export ac_cv_exeext
3095 break;;
3096 * ) break;;
3097 esac
3098 done
3099 else
3100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3107 rm -f conftest$ac_cv_exeext
3108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109 echo "${ECHO_T}$ac_cv_exeext" >&6
3111 rm -f conftest.$ac_ext
3112 EXEEXT=$ac_cv_exeext
3113 ac_exeext=$EXEEXT
3114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3116 if test "${ac_cv_objext+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3128 main ()
3132 return 0;
3134 _ACEOF
3135 rm -f conftest.o conftest.obj
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3145 break;;
3146 esac
3147 done
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162 echo "${ECHO_T}$ac_cv_objext" >&6
3163 OBJEXT=$ac_cv_objext
3164 ac_objext=$OBJEXT
3165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170 cat >conftest.$ac_ext <<_ACEOF
3171 #line $LINENO "configure"
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3179 main ()
3181 #ifndef __GNUC__
3182 choke me
3183 #endif
3186 return 0;
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_compiler_gnu=yes
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 ac_compiler_gnu=no
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3214 GCC=`test $ac_compiler_gnu = yes && echo yes`
3215 ac_test_CFLAGS=${CFLAGS+set}
3216 ac_save_CFLAGS=$CFLAGS
3217 CFLAGS="-g"
3218 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3220 if test "${ac_cv_prog_cc_g+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_prog_cc_g=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 ac_cv_prog_cc_g=no
3258 rm -f conftest.$ac_objext conftest.$ac_ext
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3261 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3262 if test "$ac_test_CFLAGS" = set; then
3263 CFLAGS=$ac_save_CFLAGS
3264 elif test $ac_cv_prog_cc_g = yes; then
3265 if test "$GCC" = yes; then
3266 CFLAGS="-g -O2"
3267 else
3268 CFLAGS="-g"
3270 else
3271 if test "$GCC" = yes; then
3272 CFLAGS="-O2"
3273 else
3274 CFLAGS=
3277 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3278 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3279 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 ac_cv_prog_cc_stdc=no
3283 ac_save_CC=$CC
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <stdarg.h>
3292 #include <stdio.h>
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3299 char **p;
3300 int i;
3302 return p[i];
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3313 int test (int i, double x);
3314 struct s1 {int (*f) (int a);};
3315 struct s2 {int (*f) (double a);};
3316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 int argc;
3318 char **argv;
3320 main ()
3322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 return 0;
3326 _ACEOF
3327 # Don't try gcc -ansi; that turns off useful extensions and
3328 # breaks some systems' header files.
3329 # AIX -qlanglvl=ansi
3330 # Ultrix and OSF/1 -std1
3331 # HP-UX 10.20 and later -Ae
3332 # HP-UX older versions -Aa -D_HPUX_SOURCE
3333 # SVR4 -Xc -D__EXTENSIONS__
3334 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_stdc=$ac_arg
3350 break
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3356 rm -f conftest.$ac_objext
3357 done
3358 rm -f conftest.$ac_ext conftest.$ac_objext
3359 CC=$ac_save_CC
3363 case "x$ac_cv_prog_cc_stdc" in
3364 x|xno)
3365 echo "$as_me:$LINENO: result: none needed" >&5
3366 echo "${ECHO_T}none needed" >&6 ;;
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3370 CC="$CC $ac_cv_prog_cc_stdc" ;;
3371 esac
3373 # Some people use a C++ compiler to compile C. Since we use `exit',
3374 # in C++ we need to declare it. In case someone uses the same compiler
3375 # for both compiling C and C++ we need to have the C++ compiler decide
3376 # the declaration of exit, since it's the most demanding environment.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #ifndef __cplusplus
3379 choke me
3380 #endif
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 for ac_declaration in \
3396 '#include <stdlib.h>' \
3397 'extern "C" void std::exit (int) throw (); using std::exit;' \
3398 'extern "C" void std::exit (int); using std::exit;' \
3399 'extern "C" void exit (int) throw ();' \
3400 'extern "C" void exit (int);' \
3401 'void exit (int);'
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <stdlib.h>
3411 $ac_declaration
3413 main ()
3415 exit (42);
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 continue
3439 rm -f conftest.$ac_objext conftest.$ac_ext
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 $ac_declaration
3449 main ()
3451 exit (42);
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 break
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3474 rm -f conftest.$ac_objext conftest.$ac_ext
3475 done
3476 rm -f conftest*
3477 if test -n "$ac_declaration"; then
3478 echo '#ifdef __cplusplus' >>confdefs.h
3479 echo $ac_declaration >>confdefs.h
3480 echo '#endif' >>confdefs.h
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3488 rm -f conftest.$ac_objext conftest.$ac_ext
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3498 CPP=
3501 #### Some systems specify a CPP to use unless we are using GCC.
3502 #### Now that we know whether we are using GCC, we can decide whether
3503 #### to use that one.
3504 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3505 then
3506 CPP="$NON_GNU_CPP"
3509 #### Some systems specify a CC to use unless we are using GCC.
3510 #### Now that we know whether we are using GCC, we can decide whether
3511 #### to use that one.
3512 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3513 test x$cc_specified != xyes
3514 then
3515 CC="$NON_GNU_CC"
3518 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3519 then
3520 CC="$CC $GCC_TEST_OPTIONS"
3523 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3524 then
3525 CC="$CC $NON_GCC_TEST_OPTIONS"
3528 #### Some other nice autoconf tests.
3530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3532 LN_S=$as_ln_s
3533 if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3536 else
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538 echo "${ECHO_T}no, using $LN_S" >&6
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3550 CPP=
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null; then
3590 if test -s conftest.err; then
3591 ac_cpp_err=$ac_c_preproc_warn_flag
3592 else
3593 ac_cpp_err=
3595 else
3596 ac_cpp_err=yes
3598 if test -z "$ac_cpp_err"; then
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Broken: fails on valid input.
3605 continue
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 #line $LINENO "configure"
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <ac_nonexistent.h>
3619 _ACEOF
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 else
3631 ac_cpp_err=
3633 else
3634 ac_cpp_err=yes
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3647 rm -f conftest.err conftest.$ac_ext
3649 done
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.$ac_ext
3652 if $ac_preproc_ok; then
3653 break
3656 done
3657 ac_cv_prog_CPP=$CPP
3660 CPP=$ac_cv_prog_CPP
3661 else
3662 ac_cv_prog_CPP=$CPP
3664 echo "$as_me:$LINENO: result: $CPP" >&5
3665 echo "${ECHO_T}$CPP" >&6
3666 ac_preproc_ok=false
3667 for ac_c_preproc_warn_flag in '' yes
3669 # Use a header file that comes with gcc, so configuring glibc
3670 # with a fresh cross-compiler works.
3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672 # <limits.h> exists even on freestanding compilers.
3673 # On the NeXT, cc -E runs the code through the compiler's parser,
3674 # not just through cpp. "Syntax error" is here to catch this case.
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687 Syntax error
3688 _ACEOF
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 else
3700 ac_cpp_err=
3702 else
3703 ac_cpp_err=yes
3705 if test -z "$ac_cpp_err"; then
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 # Broken: fails on valid input.
3712 continue
3714 rm -f conftest.err conftest.$ac_ext
3716 # OK, works on sane cases. Now check whether non-existent headers
3717 # can be detected and how.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3726 _ACEOF
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null; then
3735 if test -s conftest.err; then
3736 ac_cpp_err=$ac_c_preproc_warn_flag
3737 else
3738 ac_cpp_err=
3740 else
3741 ac_cpp_err=yes
3743 if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3745 continue
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3754 rm -f conftest.err conftest.$ac_ext
3756 done
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.err conftest.$ac_ext
3759 if $ac_preproc_ok; then
3761 else
3762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3781 # AIX /bin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # ./install, which can be erroneously created by make from ./install.sh.
3787 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3789 if test -z "$INSTALL"; then
3790 if test "${ac_cv_path_install+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 # Account for people who put trailing slashes in PATH elements.
3799 case $as_dir/ in
3800 ./ | .// | /cC/* | \
3801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3802 /usr/ucb/* ) ;;
3804 # OSF1 and SCO ODT 3.0 have their own names for install.
3805 # Don't use installbsd from OSF since it installs stuff as root
3806 # by default.
3807 for ac_prog in ginstall scoinst install; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3810 if test $ac_prog = install &&
3811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3814 elif test $ac_prog = install &&
3815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3818 else
3819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820 break 3
3823 done
3824 done
3826 esac
3827 done
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL=$ac_cv_path_install
3833 else
3834 # As a last resort, use the slow shell script. We don't cache a
3835 # path for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the path is relative.
3838 INSTALL=$ac_install_sh
3841 echo "$as_me:$LINENO: result: $INSTALL" >&5
3842 echo "${ECHO_T}$INSTALL" >&6
3844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845 # It thinks the first close brace ends the variable substitution.
3846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3850 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3852 if test "x$RANLIB" = x; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3856 echo "$as_me:$LINENO: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_prog_RANLIB+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3875 done
3876 done
3880 RANLIB=$ac_cv_prog_RANLIB
3881 if test -n "$RANLIB"; then
3882 echo "$as_me:$LINENO: result: $RANLIB" >&5
3883 echo "${ECHO_T}$RANLIB" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3890 if test -z "$ac_cv_prog_RANLIB"; then
3891 ac_ct_RANLIB=$RANLIB
3892 # Extract the first word of "ranlib", so it can be a program name with args.
3893 set dummy ranlib; ac_word=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 if test -n "$ac_ct_RANLIB"; then
3900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_RANLIB="ranlib"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3920 if test -n "$ac_ct_RANLIB"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3922 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3928 RANLIB=$ac_ct_RANLIB
3929 else
3930 RANLIB="$ac_cv_prog_RANLIB"
3934 # Extract the first word of "install-info", so it can be a program name with args.
3935 set dummy install-info; ac_word=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 case $INSTALL_INFO in
3942 [\\/]* | ?:[\\/]*)
3943 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3961 esac
3963 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3965 if test -n "$INSTALL_INFO"; then
3966 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3967 echo "${ECHO_T}$INSTALL_INFO" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3973 # Extract the first word of "install-info", so it can be a program name with args.
3974 set dummy install-info; ac_word=$2
3975 echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 case $INSTALL_INFO in
3981 [\\/]* | ?:[\\/]*)
3982 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in /usr/sbin
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3996 done
3997 done
4000 esac
4002 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4004 if test -n "$INSTALL_INFO"; then
4005 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4006 echo "${ECHO_T}$INSTALL_INFO" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 # Extract the first word of "install-info", so it can be a program name with args.
4013 set dummy install-info; ac_word=$2
4014 echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 case $INSTALL_INFO in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in /sbin
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4035 done
4036 done
4038 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4040 esac
4042 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4044 if test -n "$INSTALL_INFO"; then
4045 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4046 echo "${ECHO_T}$INSTALL_INFO" >&6
4047 else
4048 echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4054 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4055 then
4056 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4059 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4060 then
4061 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4066 echo "$as_me:$LINENO: checking for egrep" >&5
4067 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4068 if test "${ac_cv_prog_egrep+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4072 then ac_cv_prog_egrep='grep -E'
4073 else ac_cv_prog_egrep='egrep'
4076 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4077 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4078 EGREP=$ac_cv_prog_egrep
4082 echo "$as_me:$LINENO: checking for AIX" >&5
4083 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #ifdef _AIX
4093 #endif
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "yes" >/dev/null 2>&1; then
4098 echo "$as_me:$LINENO: result: yes" >&5
4099 echo "${ECHO_T}yes" >&6
4100 cat >>confdefs.h <<\_ACEOF
4101 #define _ALL_SOURCE 1
4102 _ACEOF
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4108 rm -f conftest*
4112 #### Extract some information from the operating system and machine files.
4114 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4115 - which libraries the lib-src programs will want, and
4116 - whether the GNU malloc routines are usable..." >&5
4117 echo "$as_me: checking the machine- and system-dependent files to find out
4118 - which libraries the lib-src programs will want, and
4119 - whether the GNU malloc routines are usable..." >&6;}
4121 ### First figure out CFLAGS (which we use for running the compiler here)
4122 ### and REAL_CFLAGS (which we use for real compilation).
4123 ### The two are the same except on a few systems, where they are made
4124 ### different to work around various lossages. For example,
4125 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4126 ### as implying static linking.
4128 ### If the CFLAGS env var is specified, we use that value
4129 ### instead of the default.
4131 ### It's not important that this name contain the PID; you can't run
4132 ### two configures in the same directory and have anything work
4133 ### anyway.
4134 tempcname="conftest.c"
4136 echo '
4137 #include "'${srcdir}'/src/'${opsysfile}'"
4138 #include "'${srcdir}'/src/'${machfile}'"
4139 #ifndef LIBS_MACHINE
4140 #define LIBS_MACHINE
4141 #endif
4142 #ifndef LIBS_SYSTEM
4143 #define LIBS_SYSTEM
4144 #endif
4145 #ifndef C_SWITCH_SYSTEM
4146 #define C_SWITCH_SYSTEM
4147 #endif
4148 #ifndef C_SWITCH_MACHINE
4149 #define C_SWITCH_MACHINE
4150 #endif
4151 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4152 configure___ c_switch_system=C_SWITCH_SYSTEM
4153 configure___ c_switch_machine=C_SWITCH_MACHINE
4155 #ifndef LIB_X11_LIB
4156 #define LIB_X11_LIB -lX11
4157 #endif
4159 #ifndef LIBX11_MACHINE
4160 #define LIBX11_MACHINE
4161 #endif
4163 #ifndef LIBX11_SYSTEM
4164 #define LIBX11_SYSTEM
4165 #endif
4166 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4168 #ifdef UNEXEC
4169 configure___ unexec=UNEXEC
4170 #else
4171 configure___ unexec=unexec.o
4172 #endif
4174 #ifdef SYSTEM_MALLOC
4175 configure___ system_malloc=yes
4176 #else
4177 configure___ system_malloc=no
4178 #endif
4180 #ifdef USE_MMAP_FOR_BUFFERS
4181 configure___ use_mmap_for_buffers=yes
4182 #else
4183 configure___ use_mmap_for_buffers=no
4184 #endif
4186 #ifndef C_DEBUG_SWITCH
4187 #define C_DEBUG_SWITCH -g
4188 #endif
4190 #ifndef C_OPTIMIZE_SWITCH
4191 #ifdef __GNUC__
4192 #define C_OPTIMIZE_SWITCH -O2
4193 #else
4194 #define C_OPTIMIZE_SWITCH -O
4195 #endif
4196 #endif
4198 #ifndef LD_SWITCH_MACHINE
4199 #define LD_SWITCH_MACHINE
4200 #endif
4202 #ifndef LD_SWITCH_SYSTEM
4203 #define LD_SWITCH_SYSTEM
4204 #endif
4206 #ifndef LD_SWITCH_X_SITE_AUX
4207 #define LD_SWITCH_X_SITE_AUX
4208 #endif
4210 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4211 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4213 #ifdef THIS_IS_CONFIGURE
4215 /* Get the CFLAGS for tests in configure. */
4216 #ifdef __GNUC__
4217 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4218 #else
4219 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4220 #endif
4222 #else /* not THIS_IS_CONFIGURE */
4224 /* Get the CFLAGS for real compilation. */
4225 #ifdef __GNUC__
4226 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4227 #else
4228 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4229 #endif
4231 #endif /* not THIS_IS_CONFIGURE */
4232 ' > ${tempcname}
4234 # The value of CPP is a quoted variable reference, so we need to do this
4235 # to get its actual value...
4236 CPP=`eval "echo $CPP"`
4237 eval `${CPP} -Isrc ${tempcname} \
4238 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4239 if test "x$SPECIFIED_CFLAGS" = x; then
4240 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4241 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4242 else
4243 REAL_CFLAGS="$CFLAGS"
4245 rm ${tempcname}
4247 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4249 ### Make sure subsequent tests use flags consistent with the build flags.
4251 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4252 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4253 else
4254 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4260 cat >>confdefs.h <<\_ACEOF
4261 #define _GNU_SOURCE 1
4262 _ACEOF
4266 # Check whether --enable-largefile or --disable-largefile was given.
4267 if test "${enable_largefile+set}" = set; then
4268 enableval="$enable_largefile"
4271 if test "$enable_largefile" != no; then
4273 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4274 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4275 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 ac_cv_sys_largefile_CC=no
4279 if test "$GCC" != yes; then
4280 ac_save_CC=$CC
4281 while :; do
4282 # IRIX 6.2 and later do not support large files by default,
4283 # so use the C compiler's -n32 option if that helps.
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 /* confdefs.h. */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 #include <sys/types.h>
4292 /* Check that off_t can represent 2**63 - 1 correctly.
4293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4294 since some C++ compilers masquerading as C compilers
4295 incorrectly reject 9223372036854775807. */
4296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4298 && LARGE_OFF_T % 2147483647 == 1)
4299 ? 1 : -1];
4301 main ()
4305 return 0;
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 break
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f conftest.$ac_objext
4327 CC="$CC -n32"
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_sys_largefile_CC=' -n32'; break
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4346 rm -f conftest.$ac_objext
4347 break
4348 done
4349 CC=$ac_save_CC
4350 rm -f conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4354 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4355 if test "$ac_cv_sys_largefile_CC" != no; then
4356 CC=$CC$ac_cv_sys_largefile_CC
4359 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4360 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4361 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 while :; do
4365 ac_cv_sys_file_offset_bits=no
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4381 ? 1 : -1];
4383 main ()
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 break
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #define _FILE_OFFSET_BITS 64
4417 #include <sys/types.h>
4418 /* Check that off_t can represent 2**63 - 1 correctly.
4419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4420 since some C++ compilers masquerading as C compilers
4421 incorrectly reject 9223372036854775807. */
4422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4424 && LARGE_OFF_T % 2147483647 == 1)
4425 ? 1 : -1];
4427 main ()
4431 return 0;
4433 _ACEOF
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_sys_file_offset_bits=64; break
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4452 rm -f conftest.$ac_objext conftest.$ac_ext
4453 break
4454 done
4456 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4457 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4458 if test "$ac_cv_sys_file_offset_bits" != no; then
4460 cat >>confdefs.h <<_ACEOF
4461 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4462 _ACEOF
4465 rm -f conftest*
4466 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4467 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4468 if test "${ac_cv_sys_large_files+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 while :; do
4472 ac_cv_sys_large_files=no
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <sys/types.h>
4481 /* Check that off_t can represent 2**63 - 1 correctly.
4482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4483 since some C++ compilers masquerading as C compilers
4484 incorrectly reject 9223372036854775807. */
4485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4487 && LARGE_OFF_T % 2147483647 == 1)
4488 ? 1 : -1];
4490 main ()
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 break
4510 else
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4515 rm -f conftest.$ac_objext conftest.$ac_ext
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4518 /* confdefs.h. */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 #define _LARGE_FILES 1
4524 #include <sys/types.h>
4525 /* Check that off_t can represent 2**63 - 1 correctly.
4526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4527 since some C++ compilers masquerading as C compilers
4528 incorrectly reject 9223372036854775807. */
4529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4531 && LARGE_OFF_T % 2147483647 == 1)
4532 ? 1 : -1];
4534 main ()
4538 return 0;
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_sys_large_files=1; break
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 break
4561 done
4563 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4564 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4565 if test "$ac_cv_sys_large_files" != no; then
4567 cat >>confdefs.h <<_ACEOF
4568 #define _LARGE_FILES $ac_cv_sys_large_files
4569 _ACEOF
4572 rm -f conftest*
4576 if test "${with_sound}" != "no"; then
4577 # Sound support for GNU/Linux and the free BSDs.
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 cat >conftest.$ac_ext <<_ACEOF
4584 #line $LINENO "configure"
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 #include <stdlib.h>
4591 #include <stdarg.h>
4592 #include <string.h>
4593 #include <float.h>
4596 main ()
4600 return 0;
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_header_stdc=yes
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_cv_header_stdc=no
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4624 if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat >conftest.$ac_ext <<_ACEOF
4627 #line $LINENO "configure"
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #include <string.h>
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev/null 2>&1; then
4639 else
4640 ac_cv_header_stdc=no
4642 rm -f conftest*
4646 if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 #include <stdlib.h>
4657 _ACEOF
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "free" >/dev/null 2>&1; then
4661 else
4662 ac_cv_header_stdc=no
4664 rm -f conftest*
4668 if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4675 /* confdefs.h. */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680 #include <ctype.h>
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684 #else
4685 # define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
4687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #endif
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4694 main ()
4696 int i;
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4700 exit(2);
4701 exit (0);
4703 _ACEOF
4704 rm -f conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4716 else
4717 echo "$as_me: program exited with status $ac_status" >&5
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 ( exit $ac_status )
4722 ac_cv_header_stdc=no
4724 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730 if test $ac_cv_header_stdc = yes; then
4732 cat >>confdefs.h <<\_ACEOF
4733 #define STDC_HEADERS 1
4734 _ACEOF
4738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749 inttypes.h stdint.h unistd.h
4751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 echo "$as_me:$LINENO: checking for $ac_header" >&5
4753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4766 #include <$ac_header>
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 eval "$as_ac_Header=yes"
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 eval "$as_ac_Header=no"
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4798 done
4804 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815 else
4816 # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 #include <$ac_header>
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_header_compiler=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 ac_header_compiler=no
4848 rm -f conftest.$ac_objext conftest.$ac_ext
4849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4850 echo "${ECHO_T}$ac_header_compiler" >&6
4852 # Is the header present?
4853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <$ac_header>
4863 _ACEOF
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_c_preproc_warn_flag
4874 else
4875 ac_cpp_err=
4877 else
4878 ac_cpp_err=yes
4880 if test -z "$ac_cpp_err"; then
4881 ac_header_preproc=yes
4882 else
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_header_preproc=no
4888 rm -f conftest.err conftest.$ac_ext
4889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4890 echo "${ECHO_T}$ac_header_preproc" >&6
4892 # So? What about this header?
4893 case $ac_header_compiler:$ac_header_preproc in
4894 yes:no )
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4900 cat <<\_ASBOX
4901 ## ------------------------------------ ##
4902 ## Report this to bug-autoconf@gnu.org. ##
4903 ## ------------------------------------ ##
4904 _ASBOX
4906 sed "s/^/$as_me: WARNING: /" >&2
4908 no:yes )
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4916 cat <<\_ASBOX
4917 ## ------------------------------------ ##
4918 ## Report this to bug-autoconf@gnu.org. ##
4919 ## ------------------------------------ ##
4920 _ASBOX
4922 sed "s/^/$as_me: WARNING: /" >&2
4924 esac
4925 echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 eval "$as_ac_Header=$ac_header_preproc"
4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939 _ACEOF
4943 done
4945 # Emulation library used on NetBSD.
4946 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4947 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4948 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 ac_check_lib_save_LIBS=$LIBS
4952 LIBS="-lossaudio $LIBS"
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 #ifdef __cplusplus
4963 extern "C"
4964 #endif
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967 char _oss_ioctl ();
4969 main ()
4971 _oss_ioctl ();
4973 return 0;
4975 _ACEOF
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -s conftest$ac_exeext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_lib_ossaudio__oss_ioctl=yes
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_lib_ossaudio__oss_ioctl=no
4995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996 LIBS=$ac_check_lib_save_LIBS
4998 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4999 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5000 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5001 LIBSOUND=-lossaudio
5002 else
5003 LIBSOUND=
5031 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5032 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5033 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5034 sys/param.h sys/vlimit.h sys/resource.h
5036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5038 echo "$as_me:$LINENO: checking for $ac_header" >&5
5039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5045 else
5046 # Is the header compilable?
5047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5049 cat >conftest.$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 $ac_includes_default
5057 #include <$ac_header>
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_header_compiler=yes
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_header_compiler=no
5078 rm -f conftest.$ac_objext conftest.$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080 echo "${ECHO_T}$ac_header_compiler" >&6
5082 # Is the header present?
5083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <$ac_header>
5093 _ACEOF
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5104 else
5105 ac_cpp_err=
5107 else
5108 ac_cpp_err=yes
5110 if test -z "$ac_cpp_err"; then
5111 ac_header_preproc=yes
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_header_preproc=no
5118 rm -f conftest.err conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120 echo "${ECHO_T}$ac_header_preproc" >&6
5122 # So? What about this header?
5123 case $ac_header_compiler:$ac_header_preproc in
5124 yes:no )
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130 cat <<\_ASBOX
5131 ## ------------------------------------ ##
5132 ## Report this to bug-autoconf@gnu.org. ##
5133 ## ------------------------------------ ##
5134 _ASBOX
5136 sed "s/^/$as_me: WARNING: /" >&2
5138 no:yes )
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 cat <<\_ASBOX
5147 ## ------------------------------------ ##
5148 ## Report this to bug-autoconf@gnu.org. ##
5149 ## ------------------------------------ ##
5150 _ASBOX
5152 sed "s/^/$as_me: WARNING: /" >&2
5154 esac
5155 echo "$as_me:$LINENO: checking for $ac_header" >&5
5156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 eval "$as_ac_Header=$ac_header_preproc"
5162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169 _ACEOF
5173 done
5176 for ac_header in term.h
5178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179 echo "$as_me:$LINENO: checking for $ac_header" >&5
5180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 #line $LINENO "configure"
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #include <$ac_header>
5192 _ACEOF
5193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev/null; then
5201 if test -s conftest.err; then
5202 ac_cpp_err=$ac_c_preproc_warn_flag
5203 else
5204 ac_cpp_err=
5206 else
5207 ac_cpp_err=yes
5209 if test -z "$ac_cpp_err"; then
5210 eval "$as_ac_Header=yes"
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 eval "$as_ac_Header=no"
5217 rm -f conftest.err conftest.$ac_ext
5219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5222 cat >>confdefs.h <<_ACEOF
5223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5224 _ACEOF
5228 done
5230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5232 if test "${ac_cv_header_stdc+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #include <stdlib.h>
5243 #include <stdarg.h>
5244 #include <string.h>
5245 #include <float.h>
5248 main ()
5252 return 0;
5254 _ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_header_stdc=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 ac_cv_header_stdc=no
5274 rm -f conftest.$ac_objext conftest.$ac_ext
5276 if test $ac_cv_header_stdc = yes; then
5277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 #line $LINENO "configure"
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <string.h>
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "memchr" >/dev/null 2>&1; then
5291 else
5292 ac_cv_header_stdc=no
5294 rm -f conftest*
5298 if test $ac_cv_header_stdc = yes; then
5299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 #line $LINENO "configure"
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <stdlib.h>
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "free" >/dev/null 2>&1; then
5313 else
5314 ac_cv_header_stdc=no
5316 rm -f conftest*
5320 if test $ac_cv_header_stdc = yes; then
5321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5322 if test "$cross_compiling" = yes; then
5324 else
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <ctype.h>
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5336 #else
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5342 #endif
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5346 main ()
5348 int i;
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5352 exit(2);
5353 exit (0);
5355 _ACEOF
5356 rm -f conftest$ac_exeext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5358 (eval $ac_link) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5368 else
5369 echo "$as_me: program exited with status $ac_status" >&5
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 ( exit $ac_status )
5374 ac_cv_header_stdc=no
5376 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5382 if test $ac_cv_header_stdc = yes; then
5384 cat >>confdefs.h <<\_ACEOF
5385 #define STDC_HEADERS 1
5386 _ACEOF
5390 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5391 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5392 if test "${ac_cv_header_time+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <sys/types.h>
5403 #include <sys/time.h>
5404 #include <time.h>
5407 main ()
5409 if ((struct tm *) 0)
5410 return 0;
5412 return 0;
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_header_time=yes
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_cv_header_time=no
5434 rm -f conftest.$ac_objext conftest.$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5437 echo "${ECHO_T}$ac_cv_header_time" >&6
5438 if test $ac_cv_header_time = yes; then
5440 cat >>confdefs.h <<\_ACEOF
5441 #define TIME_WITH_SYS_TIME 1
5442 _ACEOF
5446 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5447 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5448 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 #line $LINENO "configure"
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5460 main ()
5462 #ifndef sys_siglist
5463 char *p = (char *) sys_siglist;
5464 #endif
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_have_decl_sys_siglist=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 ac_cv_have_decl_sys_siglist=no
5489 rm -f conftest.$ac_objext conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5492 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5493 if test $ac_cv_have_decl_sys_siglist = yes; then
5495 cat >>confdefs.h <<_ACEOF
5496 #define HAVE_DECL_SYS_SIGLIST 1
5497 _ACEOF
5500 else
5501 cat >>confdefs.h <<_ACEOF
5502 #define HAVE_DECL_SYS_SIGLIST 0
5503 _ACEOF
5509 if test $ac_cv_have_decl_sys_siglist != yes; then
5510 # For Tru64, at least:
5511 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5512 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5513 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5525 main ()
5527 #ifndef __sys_siglist
5528 char *p = (char *) __sys_siglist;
5529 #endif
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_have_decl___sys_siglist=yes
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 ac_cv_have_decl___sys_siglist=no
5554 rm -f conftest.$ac_objext conftest.$ac_ext
5556 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5557 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5558 if test $ac_cv_have_decl___sys_siglist = yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_DECL___SYS_SIGLIST 1
5562 _ACEOF
5565 else
5566 cat >>confdefs.h <<_ACEOF
5567 #define HAVE_DECL___SYS_SIGLIST 0
5568 _ACEOF
5574 if test $ac_cv_have_decl___sys_siglist = yes; then
5576 cat >>confdefs.h <<\_ACEOF
5577 #define sys_siglist __sys_siglist
5578 _ACEOF
5582 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5583 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5584 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 #include <sys/wait.h>
5596 #ifndef WEXITSTATUS
5597 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5598 #endif
5599 #ifndef WIFEXITED
5600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5601 #endif
5604 main ()
5606 int s;
5607 wait (&s);
5608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5610 return 0;
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_header_sys_wait_h=yes
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 ac_cv_header_sys_wait_h=no
5632 rm -f conftest.$ac_objext conftest.$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5635 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5636 if test $ac_cv_header_sys_wait_h = yes; then
5638 cat >>confdefs.h <<\_ACEOF
5639 #define HAVE_SYS_WAIT_H 1
5640 _ACEOF
5645 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5646 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5647 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #ifdef TIME_WITH_SYS_TIME
5658 #include <sys/time.h>
5659 #include <time.h>
5660 #else
5661 #ifdef HAVE_SYS_TIME_H
5662 #include <sys/time.h>
5663 #else
5664 #include <time.h>
5665 #endif
5666 #endif
5667 #ifdef HAVE_UTIME_H
5668 #include <utime.h>
5669 #endif
5671 main ()
5673 static struct utimbuf x; x.actime = x.modtime;
5675 return 0;
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 emacs_cv_struct_utimbuf=yes
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5695 emacs_cv_struct_utimbuf=no
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5699 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5700 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5701 if test $emacs_cv_struct_utimbuf = yes; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_STRUCT_UTIMBUF 1
5705 _ACEOF
5709 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5710 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5711 if test "${ac_cv_type_signal+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714 cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <sys/types.h>
5722 #include <signal.h>
5723 #ifdef signal
5724 # undef signal
5725 #endif
5726 #ifdef __cplusplus
5727 extern "C" void (*signal (int, void (*)(int)))(int);
5728 #else
5729 void (*signal ()) ();
5730 #endif
5733 main ()
5735 int i;
5737 return 0;
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_type_signal=void
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_type_signal=int
5759 rm -f conftest.$ac_objext conftest.$ac_ext
5761 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5762 echo "${ECHO_T}$ac_cv_type_signal" >&6
5764 cat >>confdefs.h <<_ACEOF
5765 #define RETSIGTYPE $ac_cv_type_signal
5766 _ACEOF
5770 echo "$as_me:$LINENO: checking for speed_t" >&5
5771 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5772 if test "${emacs_cv_speed_t+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 cat >conftest.$ac_ext <<_ACEOF
5776 #line $LINENO "configure"
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <termios.h>
5784 main ()
5786 speed_t x = 1;
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 emacs_cv_speed_t=yes
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 emacs_cv_speed_t=no
5810 rm -f conftest.$ac_objext conftest.$ac_ext
5812 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5813 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5814 if test $emacs_cv_speed_t = yes; then
5816 cat >>confdefs.h <<\_ACEOF
5817 #define HAVE_SPEED_T 1
5818 _ACEOF
5822 echo "$as_me:$LINENO: checking for struct timeval" >&5
5823 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5824 if test "${emacs_cv_struct_timeval+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #ifdef TIME_WITH_SYS_TIME
5835 #include <sys/time.h>
5836 #include <time.h>
5837 #else
5838 #ifdef HAVE_SYS_TIME_H
5839 #include <sys/time.h>
5840 #else
5841 #include <time.h>
5842 #endif
5843 #endif
5845 main ()
5847 static struct timeval x; x.tv_sec = x.tv_usec;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 emacs_cv_struct_timeval=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 emacs_cv_struct_timeval=no
5871 rm -f conftest.$ac_objext conftest.$ac_ext
5873 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5874 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5875 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5876 if test $emacs_cv_struct_timeval = yes; then
5878 cat >>confdefs.h <<\_ACEOF
5879 #define HAVE_TIMEVAL 1
5880 _ACEOF
5884 echo "$as_me:$LINENO: checking for struct exception" >&5
5885 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5886 if test "${emacs_cv_struct_exception+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <math.h>
5898 main ()
5900 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 emacs_cv_struct_exception=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 emacs_cv_struct_exception=no
5924 rm -f conftest.$ac_objext conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5927 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5928 HAVE_EXCEPTION=$emacs_cv_struct_exception
5929 if test $emacs_cv_struct_exception != yes; then
5931 cat >>confdefs.h <<\_ACEOF
5932 #define NO_MATHERR 1
5933 _ACEOF
5937 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5938 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5939 if test "${ac_cv_struct_tm+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 cat >conftest.$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/types.h>
5950 #include <time.h>
5953 main ()
5955 struct tm *tp; tp->tm_sec;
5957 return 0;
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_struct_tm=time.h
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_cv_struct_tm=sys/time.h
5979 rm -f conftest.$ac_objext conftest.$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5982 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5983 if test $ac_cv_struct_tm = sys/time.h; then
5985 cat >>confdefs.h <<\_ACEOF
5986 #define TM_IN_SYS_TIME 1
5987 _ACEOF
5991 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5992 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5993 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <sys/types.h>
6004 #include <$ac_cv_struct_tm>
6008 main ()
6010 static struct tm ac_aggr;
6011 if (ac_aggr.tm_zone)
6012 return 0;
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_member_struct_tm_tm_zone=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <$ac_cv_struct_tm>
6046 main ()
6048 static struct tm ac_aggr;
6049 if (sizeof ac_aggr.tm_zone)
6050 return 0;
6052 return 0;
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_member_struct_tm_tm_zone=yes
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_cv_member_struct_tm_tm_zone=no
6074 rm -f conftest.$ac_objext conftest.$ac_ext
6076 rm -f conftest.$ac_objext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6079 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6080 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6082 cat >>confdefs.h <<_ACEOF
6083 #define HAVE_STRUCT_TM_TM_ZONE 1
6084 _ACEOF
6089 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_TM_ZONE 1
6093 _ACEOF
6095 else
6096 echo "$as_me:$LINENO: checking for tzname" >&5
6097 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6098 if test "${ac_cv_var_tzname+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <time.h>
6109 #ifndef tzname /* For SGI. */
6110 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6111 #endif
6114 main ()
6116 atoi(*tzname);
6118 return 0;
6120 _ACEOF
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_var_tzname=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_var_tzname=no
6140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6143 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6144 if test $ac_cv_var_tzname = yes; then
6146 cat >>confdefs.h <<\_ACEOF
6147 #define HAVE_TZNAME 1
6148 _ACEOF
6153 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6154 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6155 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <time.h>
6168 main ()
6170 static struct tm ac_aggr;
6171 if (ac_aggr.tm_gmtoff)
6172 return 0;
6174 return 0;
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_member_struct_tm_tm_gmtoff=yes
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 cat >conftest.$ac_ext <<_ACEOF
6195 #line $LINENO "configure"
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #include <time.h>
6204 main ()
6206 static struct tm ac_aggr;
6207 if (sizeof ac_aggr.tm_gmtoff)
6208 return 0;
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_member_struct_tm_tm_gmtoff=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_cv_member_struct_tm_tm_gmtoff=no
6232 rm -f conftest.$ac_objext conftest.$ac_ext
6234 rm -f conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6238 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6240 cat >>confdefs.h <<\_ACEOF
6241 #define HAVE_TM_GMTOFF 1
6242 _ACEOF
6248 echo "$as_me:$LINENO: checking for function prototypes" >&5
6249 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6250 if test "$ac_cv_prog_cc_stdc" != no; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252 echo "${ECHO_T}yes" >&6
6254 cat >>confdefs.h <<\_ACEOF
6255 #define PROTOTYPES 1
6256 _ACEOF
6259 cat >>confdefs.h <<\_ACEOF
6260 #define __PROTOTYPES 1
6261 _ACEOF
6263 else
6264 echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6
6268 echo "$as_me:$LINENO: checking for working volatile" >&5
6269 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6270 if test "${ac_cv_c_volatile+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6282 main ()
6285 volatile int x;
6286 int * volatile y;
6288 return 0;
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_c_volatile=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_cv_c_volatile=no
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6313 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6314 if test $ac_cv_c_volatile = no; then
6316 cat >>confdefs.h <<\_ACEOF
6317 #define volatile
6318 _ACEOF
6322 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6323 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6324 if test "${ac_cv_c_const+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6336 main ()
6338 /* FIXME: Include the comments suggested by Paul. */
6339 #ifndef __cplusplus
6340 /* Ultrix mips cc rejects this. */
6341 typedef int charset[2];
6342 const charset x;
6343 /* SunOS 4.1.1 cc rejects this. */
6344 char const *const *ccp;
6345 char **p;
6346 /* NEC SVR4.0.2 mips cc rejects this. */
6347 struct point {int x, y;};
6348 static struct point const zero = {0,0};
6349 /* AIX XL C 1.02.0.0 rejects this.
6350 It does not let you subtract one const X* pointer from another in
6351 an arm of an if-expression whose if-part is not a constant
6352 expression */
6353 const char *g = "string";
6354 ccp = &g + (g ? g-g : 0);
6355 /* HPUX 7.0 cc rejects these. */
6356 ++ccp;
6357 p = (char**) ccp;
6358 ccp = (char const *const *) p;
6359 { /* SCO 3.2v4 cc rejects this. */
6360 char *t;
6361 char const *s = 0 ? (char *) 0 : (char const *) 0;
6363 *t++ = 0;
6365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6366 int x[] = {25, 17};
6367 const int *foo = &x[0];
6368 ++foo;
6370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6371 typedef const int *iptr;
6372 iptr p = 0;
6373 ++p;
6375 { /* AIX XL C 1.02.0.0 rejects this saying
6376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6377 struct s { int j; const int *ap[3]; };
6378 struct s *b; b->j = 5;
6380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6381 const int foo = 10;
6383 #endif
6386 return 0;
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_c_const=yes
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_cv_c_const=no
6408 rm -f conftest.$ac_objext conftest.$ac_ext
6410 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6411 echo "${ECHO_T}$ac_cv_c_const" >&6
6412 if test $ac_cv_c_const = no; then
6414 cat >>confdefs.h <<\_ACEOF
6415 #define const
6416 _ACEOF
6420 echo "$as_me:$LINENO: checking for void * support" >&5
6421 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6422 if test "${emacs_cv_void_star+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6434 main ()
6436 void * foo;
6438 return 0;
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 emacs_cv_void_star=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 emacs_cv_void_star=no
6460 rm -f conftest.$ac_objext conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6463 echo "${ECHO_T}$emacs_cv_void_star" >&6
6464 if test $emacs_cv_void_star = yes; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define POINTER_TYPE void
6467 _ACEOF
6469 else
6470 cat >>confdefs.h <<\_ACEOF
6471 #define POINTER_TYPE char
6472 _ACEOF
6478 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6479 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6480 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6481 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 cat >conftest.make <<\_ACEOF
6485 all:
6486 @echo 'ac_maketemp="$(MAKE)"'
6487 _ACEOF
6488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6489 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6490 if test -n "$ac_maketemp"; then
6491 eval ac_cv_prog_make_${ac_make}_set=yes
6492 else
6493 eval ac_cv_prog_make_${ac_make}_set=no
6495 rm -f conftest.make
6497 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499 echo "${ECHO_T}yes" >&6
6500 SET_MAKE=
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6
6504 SET_MAKE="MAKE=${MAKE-make}"
6508 echo "$as_me:$LINENO: checking for long file names" >&5
6509 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6510 if test "${ac_cv_sys_long_file_names+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 ac_cv_sys_long_file_names=yes
6514 # Test for long file names in all the places we know might matter:
6515 # . the current directory, where building will happen
6516 # $prefix/lib where we will be installing things
6517 # $exec_prefix/lib likewise
6518 # eval it to expand exec_prefix.
6519 # $TMPDIR if set, where it might want to write temporary files
6520 # if $TMPDIR is not set:
6521 # /tmp where it might want to write temporary files
6522 # /var/tmp likewise
6523 # /usr/tmp likewise
6524 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6525 ac_tmpdirs=$TMPDIR
6526 else
6527 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6529 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6530 test -d $ac_dir || continue
6531 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6532 ac_xdir=$ac_dir/cf$$
6533 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6534 ac_tf1=$ac_xdir/conftest9012345
6535 ac_tf2=$ac_xdir/conftest9012346
6536 (echo 1 >$ac_tf1) 2>/dev/null
6537 (echo 2 >$ac_tf2) 2>/dev/null
6538 ac_val=`cat $ac_tf1 2>/dev/null`
6539 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6540 ac_cv_sys_long_file_names=no
6541 rm -rf $ac_xdir 2>/dev/null
6542 break
6544 rm -rf $ac_xdir 2>/dev/null
6545 done
6547 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6548 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6549 if test $ac_cv_sys_long_file_names = yes; then
6551 cat >>confdefs.h <<\_ACEOF
6552 #define HAVE_LONG_FILE_NAMES 1
6553 _ACEOF
6558 #### Choose a window system.
6560 echo "$as_me:$LINENO: checking for X" >&5
6561 echo $ECHO_N "checking for X... $ECHO_C" >&6
6564 # Check whether --with-x or --without-x was given.
6565 if test "${with_x+set}" = set; then
6566 withval="$with_x"
6569 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6570 if test "x$with_x" = xno; then
6571 # The user explicitly disabled X.
6572 have_x=disabled
6573 else
6574 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6575 # Both variables are already set.
6576 have_x=yes
6577 else
6578 if test "${ac_cv_have_x+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 # One or both of the vars are not set, and there is no cached value.
6582 ac_x_includes=no ac_x_libraries=no
6583 rm -fr conftest.dir
6584 if mkdir conftest.dir; then
6585 cd conftest.dir
6586 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6587 cat >Imakefile <<'_ACEOF'
6588 acfindx:
6589 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6590 _ACEOF
6591 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6593 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6595 for ac_extension in a so sl; do
6596 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6597 test -f $ac_im_libdir/libX11.$ac_extension; then
6598 ac_im_usrlibdir=$ac_im_libdir; break
6600 done
6601 # Screen out bogus values from the imake configuration. They are
6602 # bogus both because they are the default anyway, and because
6603 # using them would break gcc on systems where it needs fixed includes.
6604 case $ac_im_incroot in
6605 /usr/include) ;;
6606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6607 esac
6608 case $ac_im_usrlibdir in
6609 /usr/lib | /lib) ;;
6610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6611 esac
6613 cd ..
6614 rm -fr conftest.dir
6617 # Standard set of common directories for X headers.
6618 # Check X11 before X11Rn because it is often a symlink to the current release.
6619 ac_x_header_dirs='
6620 /usr/X11/include
6621 /usr/X11R6/include
6622 /usr/X11R5/include
6623 /usr/X11R4/include
6625 /usr/include/X11
6626 /usr/include/X11R6
6627 /usr/include/X11R5
6628 /usr/include/X11R4
6630 /usr/local/X11/include
6631 /usr/local/X11R6/include
6632 /usr/local/X11R5/include
6633 /usr/local/X11R4/include
6635 /usr/local/include/X11
6636 /usr/local/include/X11R6
6637 /usr/local/include/X11R5
6638 /usr/local/include/X11R4
6640 /usr/X386/include
6641 /usr/x386/include
6642 /usr/XFree86/include/X11
6644 /usr/include
6645 /usr/local/include
6646 /usr/unsupported/include
6647 /usr/athena/include
6648 /usr/local/x11r5/include
6649 /usr/lpp/Xamples/include
6651 /usr/openwin/include
6652 /usr/openwin/share/include'
6654 if test "$ac_x_includes" = no; then
6655 # Guess where to find include files, by looking for Intrinsic.h.
6656 # First, try using that file with no special directory specified.
6657 cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <X11/Intrinsic.h>
6665 _ACEOF
6666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } >/dev/null; then
6674 if test -s conftest.err; then
6675 ac_cpp_err=$ac_c_preproc_warn_flag
6676 else
6677 ac_cpp_err=
6679 else
6680 ac_cpp_err=yes
6682 if test -z "$ac_cpp_err"; then
6683 # We can compile using X headers with no special include directory.
6684 ac_x_includes=
6685 else
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6689 for ac_dir in $ac_x_header_dirs; do
6690 if test -r "$ac_dir/X11/Intrinsic.h"; then
6691 ac_x_includes=$ac_dir
6692 break
6694 done
6696 rm -f conftest.err conftest.$ac_ext
6697 fi # $ac_x_includes = no
6699 if test "$ac_x_libraries" = no; then
6700 # Check for the libraries.
6701 # See if we find them without any special options.
6702 # Don't add to $LIBS permanently.
6703 ac_save_LIBS=$LIBS
6704 LIBS="-lXt $LIBS"
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <X11/Intrinsic.h>
6714 main ()
6716 XtMalloc (0)
6718 return 0;
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 LIBS=$ac_save_LIBS
6734 # We can link X programs with no special library path.
6735 ac_x_libraries=
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 LIBS=$ac_save_LIBS
6741 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6743 # Don't even attempt the hair of trying to link an X program!
6744 for ac_extension in a so sl; do
6745 if test -r $ac_dir/libXt.$ac_extension; then
6746 ac_x_libraries=$ac_dir
6747 break 2
6749 done
6750 done
6752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753 fi # $ac_x_libraries = no
6755 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6756 # Didn't find X anywhere. Cache the known absence of X.
6757 ac_cv_have_x="have_x=no"
6758 else
6759 # Record where we found X for the cache.
6760 ac_cv_have_x="have_x=yes \
6761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6766 eval "$ac_cv_have_x"
6767 fi # $with_x != no
6769 if test "$have_x" != yes; then
6770 echo "$as_me:$LINENO: result: $have_x" >&5
6771 echo "${ECHO_T}$have_x" >&6
6772 no_x=yes
6773 else
6774 # If each of the values was on the command line, it overrides each guess.
6775 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6776 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6777 # Update the cache value to reflect the command line values.
6778 ac_cv_have_x="have_x=yes \
6779 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6780 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6781 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6784 if test "$no_x" = yes; then
6785 window_system=none
6786 else
6787 window_system=x11
6790 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6791 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6792 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6793 x_default_search_path=""
6794 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6795 x_search_path="\
6796 ${x_library}/X11/%L/%T/%N%C%S:\
6797 ${x_library}/X11/%l/%T/%N%C%S:\
6798 ${x_library}/X11/%T/%N%C%S:\
6799 ${x_library}/X11/%L/%T/%N%S:\
6800 ${x_library}/X11/%l/%T/%N%S:\
6801 ${x_library}/X11/%T/%N%S"
6802 if test x"${x_default_search_path}" = x; then
6803 x_default_search_path=${x_search_path}
6804 else
6805 x_default_search_path="${x_search_path}:${x_default_search_path}"
6807 done
6809 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6810 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6813 if test x"${x_includes}" = x; then
6814 bitmapdir=/usr/include/X11/bitmaps
6815 else
6816 # accumulate include directories that have X11 bitmap subdirectories
6817 bmd_acc="dummyval"
6818 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6819 if test -d "${bmd}/X11/bitmaps"; then
6820 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6822 if test -d "${bmd}/bitmaps"; then
6823 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6825 done
6826 if test ${bmd_acc} != "dummyval"; then
6827 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6831 case "${window_system}" in
6832 x11 )
6833 HAVE_X_WINDOWS=yes
6834 HAVE_X11=yes
6835 case "${with_x_toolkit}" in
6836 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6837 motif ) USE_X_TOOLKIT=MOTIF ;;
6838 gtk ) with_gtk=yes
6839 USE_X_TOOLKIT=none ;;
6840 no ) USE_X_TOOLKIT=none ;;
6841 * ) USE_X_TOOLKIT=maybe ;;
6842 esac
6844 none )
6845 HAVE_X_WINDOWS=no
6846 HAVE_X11=no
6847 USE_X_TOOLKIT=none
6849 esac
6851 ### If we're using X11, we should use the X menu package.
6852 HAVE_MENUS=no
6853 case ${HAVE_X11} in
6854 yes ) HAVE_MENUS=yes ;;
6855 esac
6857 if test "${opsys}" = "hpux9"; then
6858 case "${x_libraries}" in
6859 *X11R4* )
6860 opsysfile="s/hpux9-x11r4.h"
6862 esac
6865 if test "${opsys}" = "hpux9shr"; then
6866 case "${x_libraries}" in
6867 *X11R4* )
6868 opsysfile="s/hpux9shxr4.h"
6870 esac
6873 ### Compute the unexec source name from the object name.
6874 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6876 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6877 # Assume not, until told otherwise.
6878 GNU_MALLOC=yes
6879 doug_lea_malloc=yes
6880 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6881 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6882 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 /* System header to define __stub macros and hopefully few prototypes,
6893 which can conflict with char malloc_get_state (); below.
6894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6895 <limits.h> exists even on freestanding compilers. */
6896 #ifdef __STDC__
6897 # include <limits.h>
6898 #else
6899 # include <assert.h>
6900 #endif
6901 /* Override any gcc2 internal prototype to avoid an error. */
6902 #ifdef __cplusplus
6903 extern "C"
6905 #endif
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908 char malloc_get_state ();
6909 /* The GNU C library defines this for functions which it implements
6910 to always fail with ENOSYS. Some functions are actually named
6911 something starting with __ and the normal name is an alias. */
6912 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6913 choke me
6914 #else
6915 char (*f) () = malloc_get_state;
6916 #endif
6917 #ifdef __cplusplus
6919 #endif
6922 main ()
6924 return f != malloc_get_state;
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_func_malloc_get_state=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_func_malloc_get_state=no
6948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6951 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6952 if test $ac_cv_func_malloc_get_state = yes; then
6954 else
6955 doug_lea_malloc=no
6958 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6959 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6960 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 /* System header to define __stub macros and hopefully few prototypes,
6971 which can conflict with char malloc_set_state (); below.
6972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973 <limits.h> exists even on freestanding compilers. */
6974 #ifdef __STDC__
6975 # include <limits.h>
6976 #else
6977 # include <assert.h>
6978 #endif
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 #ifdef __cplusplus
6981 extern "C"
6983 #endif
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char malloc_set_state ();
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6991 choke me
6992 #else
6993 char (*f) () = malloc_set_state;
6994 #endif
6995 #ifdef __cplusplus
6997 #endif
7000 main ()
7002 return f != malloc_set_state;
7004 return 0;
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_func_malloc_set_state=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_func_malloc_set_state=no
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7029 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7030 if test $ac_cv_func_malloc_set_state = yes; then
7032 else
7033 doug_lea_malloc=no
7036 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7037 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7038 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 extern void (* __after_morecore_hook)();
7050 main ()
7052 __after_morecore_hook = 0
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 emacs_cv_var___after_morecore_hook=yes
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 emacs_cv_var___after_morecore_hook=no
7076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7078 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7079 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7080 if test $emacs_cv_var___after_morecore_hook = no; then
7081 doug_lea_malloc=no
7083 if test "${system_malloc}" = "yes"; then
7084 GNU_MALLOC=no
7085 GNU_MALLOC_reason="
7086 (The GNU allocators don't work with this system configuration.)"
7088 if test "$doug_lea_malloc" = "yes" ; then
7089 if test "$GNU_MALLOC" = yes ; then
7090 GNU_MALLOC_reason="
7091 (Using Doug Lea's new malloc from the GNU C Library.)"
7094 cat >>confdefs.h <<\_ACEOF
7095 #define DOUG_LEA_MALLOC 1
7096 _ACEOF
7100 if test x"${REL_ALLOC}" = x; then
7101 REL_ALLOC=${GNU_MALLOC}
7107 for ac_header in stdlib.h unistd.h
7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo "$as_me:$LINENO: checking for $ac_header" >&5
7112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7118 else
7119 # Is the header compilable?
7120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7130 #include <$ac_header>
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest.$ac_objext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_header_compiler=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_header_compiler=no
7151 rm -f conftest.$ac_objext conftest.$ac_ext
7152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7153 echo "${ECHO_T}$ac_header_compiler" >&6
7155 # Is the header present?
7156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7158 cat >conftest.$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 #include <$ac_header>
7166 _ACEOF
7167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } >/dev/null; then
7175 if test -s conftest.err; then
7176 ac_cpp_err=$ac_c_preproc_warn_flag
7177 else
7178 ac_cpp_err=
7180 else
7181 ac_cpp_err=yes
7183 if test -z "$ac_cpp_err"; then
7184 ac_header_preproc=yes
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_header_preproc=no
7191 rm -f conftest.err conftest.$ac_ext
7192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7193 echo "${ECHO_T}$ac_header_preproc" >&6
7195 # So? What about this header?
7196 case $ac_header_compiler:$ac_header_preproc in
7197 yes:no )
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203 cat <<\_ASBOX
7204 ## ------------------------------------ ##
7205 ## Report this to bug-autoconf@gnu.org. ##
7206 ## ------------------------------------ ##
7207 _ASBOX
7209 sed "s/^/$as_me: WARNING: /" >&2
7211 no:yes )
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7219 cat <<\_ASBOX
7220 ## ------------------------------------ ##
7221 ## Report this to bug-autoconf@gnu.org. ##
7222 ## ------------------------------------ ##
7223 _ASBOX
7225 sed "s/^/$as_me: WARNING: /" >&2
7227 esac
7228 echo "$as_me:$LINENO: checking for $ac_header" >&5
7229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 eval "$as_ac_Header=$ac_header_preproc"
7235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7240 cat >>confdefs.h <<_ACEOF
7241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7242 _ACEOF
7246 done
7249 for ac_func in getpagesize
7251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7252 echo "$as_me:$LINENO: checking for $ac_func" >&5
7253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7254 if eval "test \"\${$as_ac_var+set}\" = set"; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 /* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char $ac_func (); below.
7266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267 <limits.h> exists even on freestanding compilers. */
7268 #ifdef __STDC__
7269 # include <limits.h>
7270 #else
7271 # include <assert.h>
7272 #endif
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 #ifdef __cplusplus
7275 extern "C"
7277 #endif
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280 char $ac_func ();
7281 /* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7285 choke me
7286 #else
7287 char (*f) () = $ac_func;
7288 #endif
7289 #ifdef __cplusplus
7291 #endif
7294 main ()
7296 return f != $ac_func;
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 eval "$as_ac_var=yes"
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 eval "$as_ac_var=no"
7320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7324 if test `eval echo '${'$as_ac_var'}'` = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7327 _ACEOF
7330 done
7332 echo "$as_me:$LINENO: checking for working mmap" >&5
7333 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7334 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 if test "$cross_compiling" = yes; then
7338 ac_cv_func_mmap_fixed_mapped=no
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 $ac_includes_default
7348 /* malloc might have been renamed as rpl_malloc. */
7349 #undef malloc
7351 /* Thanks to Mike Haertel and Jim Avera for this test.
7352 Here is a matrix of mmap possibilities:
7353 mmap private not fixed
7354 mmap private fixed at somewhere currently unmapped
7355 mmap private fixed at somewhere already mapped
7356 mmap shared not fixed
7357 mmap shared fixed at somewhere currently unmapped
7358 mmap shared fixed at somewhere already mapped
7359 For private mappings, we should verify that changes cannot be read()
7360 back from the file, nor mmap's back from the file at a different
7361 address. (There have been systems where private was not correctly
7362 implemented like the infamous i386 svr4.0, and systems where the
7363 VM page cache was not coherent with the file system buffer cache
7364 like early versions of FreeBSD and possibly contemporary NetBSD.)
7365 For shared mappings, we should conversely verify that changes get
7366 propagated back to all the places they're supposed to be.
7368 Grep wants private fixed already mapped.
7369 The main things grep needs to know about mmap are:
7370 * does it exist and is it safe to write into the mmap'd area
7371 * how to use it (BSD variants) */
7373 #include <fcntl.h>
7374 #include <sys/mman.h>
7376 #if !STDC_HEADERS && !HAVE_STDLIB_H
7377 char *malloc ();
7378 #endif
7380 /* This mess was copied from the GNU getpagesize.h. */
7381 #if !HAVE_GETPAGESIZE
7382 /* Assume that all systems that can run configure have sys/param.h. */
7383 # if !HAVE_SYS_PARAM_H
7384 # define HAVE_SYS_PARAM_H 1
7385 # endif
7387 # ifdef _SC_PAGESIZE
7388 # define getpagesize() sysconf(_SC_PAGESIZE)
7389 # else /* no _SC_PAGESIZE */
7390 # if HAVE_SYS_PARAM_H
7391 # include <sys/param.h>
7392 # ifdef EXEC_PAGESIZE
7393 # define getpagesize() EXEC_PAGESIZE
7394 # else /* no EXEC_PAGESIZE */
7395 # ifdef NBPG
7396 # define getpagesize() NBPG * CLSIZE
7397 # ifndef CLSIZE
7398 # define CLSIZE 1
7399 # endif /* no CLSIZE */
7400 # else /* no NBPG */
7401 # ifdef NBPC
7402 # define getpagesize() NBPC
7403 # else /* no NBPC */
7404 # ifdef PAGESIZE
7405 # define getpagesize() PAGESIZE
7406 # endif /* PAGESIZE */
7407 # endif /* no NBPC */
7408 # endif /* no NBPG */
7409 # endif /* no EXEC_PAGESIZE */
7410 # else /* no HAVE_SYS_PARAM_H */
7411 # define getpagesize() 8192 /* punt totally */
7412 # endif /* no HAVE_SYS_PARAM_H */
7413 # endif /* no _SC_PAGESIZE */
7415 #endif /* no HAVE_GETPAGESIZE */
7418 main ()
7420 char *data, *data2, *data3;
7421 int i, pagesize;
7422 int fd;
7424 pagesize = getpagesize ();
7426 /* First, make a file with some known garbage in it. */
7427 data = (char *) malloc (pagesize);
7428 if (!data)
7429 exit (1);
7430 for (i = 0; i < pagesize; ++i)
7431 *(data + i) = rand ();
7432 umask (0);
7433 fd = creat ("conftest.mmap", 0600);
7434 if (fd < 0)
7435 exit (1);
7436 if (write (fd, data, pagesize) != pagesize)
7437 exit (1);
7438 close (fd);
7440 /* Next, try to mmap the file at a fixed address which already has
7441 something else allocated at it. If we can, also make sure that
7442 we see the same garbage. */
7443 fd = open ("conftest.mmap", O_RDWR);
7444 if (fd < 0)
7445 exit (1);
7446 data2 = (char *) malloc (2 * pagesize);
7447 if (!data2)
7448 exit (1);
7449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7452 exit (1);
7453 for (i = 0; i < pagesize; ++i)
7454 if (*(data + i) != *(data2 + i))
7455 exit (1);
7457 /* Finally, make sure that changes to the mapped area do not
7458 percolate back to the file as seen by read(). (This is a bug on
7459 some variants of i386 svr4.0.) */
7460 for (i = 0; i < pagesize; ++i)
7461 *(data2 + i) = *(data2 + i) + 1;
7462 data3 = (char *) malloc (pagesize);
7463 if (!data3)
7464 exit (1);
7465 if (read (fd, data3, pagesize) != pagesize)
7466 exit (1);
7467 for (i = 0; i < pagesize; ++i)
7468 if (*(data + i) != *(data3 + i))
7469 exit (1);
7470 close (fd);
7471 exit (0);
7473 _ACEOF
7474 rm -f conftest$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_func_mmap_fixed_mapped=yes
7486 else
7487 echo "$as_me: program exited with status $ac_status" >&5
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7491 ( exit $ac_status )
7492 ac_cv_func_mmap_fixed_mapped=no
7494 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7497 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7498 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_MMAP 1
7503 _ACEOF
7506 rm -f conftest.mmap
7508 if test $use_mmap_for_buffers = yes; then
7509 REL_ALLOC=no
7512 LIBS="$libsrc_libs $LIBS"
7515 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7516 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 ac_check_lib_save_LIBS=$LIBS
7521 LIBS="-ldnet $LIBS"
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7530 /* Override any gcc2 internal prototype to avoid an error. */
7531 #ifdef __cplusplus
7532 extern "C"
7533 #endif
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7536 char dnet_ntoa ();
7538 main ()
7540 dnet_ntoa ();
7542 return 0;
7544 _ACEOF
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_cv_lib_dnet_dnet_ntoa=yes
7558 else
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 ac_cv_lib_dnet_dnet_ntoa=no
7564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7565 LIBS=$ac_check_lib_save_LIBS
7567 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7568 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7569 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_LIBDNET 1
7572 _ACEOF
7574 LIBS="-ldnet $LIBS"
7579 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7580 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7581 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 ac_check_lib_save_LIBS=$LIBS
7585 LIBS="-lXbsd $LIBS"
7586 cat >conftest.$ac_ext <<_ACEOF
7587 #line $LINENO "configure"
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7596 main ()
7598 main ();
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_Xbsd_main=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_cv_lib_Xbsd_main=no
7622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7623 LIBS=$ac_check_lib_save_LIBS
7625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7626 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7627 if test $ac_cv_lib_Xbsd_main = yes; then
7628 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7633 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7634 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7635 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lpthreads $LIBS"
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 #ifdef __cplusplus
7650 extern "C"
7651 #endif
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7654 char cma_open ();
7656 main ()
7658 cma_open ();
7660 return 0;
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_pthreads_cma_open=yes
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_cv_lib_pthreads_cma_open=no
7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7686 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7687 if test $ac_cv_lib_pthreads_cma_open = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_LIBPTHREADS 1
7690 _ACEOF
7692 LIBS="-lpthreads $LIBS"
7697 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7698 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7699 if test -d /usr/X386/include; then
7700 HAVE_XFREE386=yes
7701 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7702 else
7703 HAVE_XFREE386=no
7705 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7706 echo "${ECHO_T}$HAVE_XFREE386" >&6
7708 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7709 # used for the tests that follow. We set them back to REAL_CFLAGS and
7710 # REAL_CPPFLAGS later on.
7712 REAL_CPPFLAGS="$CPPFLAGS"
7714 if test "${HAVE_X11}" = "yes"; then
7715 DEFS="$C_SWITCH_X_SITE $DEFS"
7716 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7717 LIBS="$LIBX $LIBS"
7718 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7719 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7721 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7722 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7723 # but it's more convenient here to set LD_RUN_PATH
7724 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7725 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7726 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7727 export LD_RUN_PATH
7730 if test "${opsys}" = "gnu-linux"; then
7731 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7732 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7742 main ()
7744 XOpenDisplay ("foo");
7746 return 0;
7748 _ACEOF
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 xlinux_first_failure=no
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 xlinux_first_failure=yes
7768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7769 if test "${xlinux_first_failure}" = "yes"; then
7770 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7771 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7772 OLD_CPPFLAGS="$CPPFLAGS"
7773 OLD_LIBS="$LIBS"
7774 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7775 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7776 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7777 LIBS="$LIBS -b i486-linuxaout"
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7787 main ()
7789 XOpenDisplay ("foo");
7791 return 0;
7793 _ACEOF
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7796 (eval $ac_link) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 xlinux_second_failure=no
7807 else
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 xlinux_second_failure=yes
7813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7814 if test "${xlinux_second_failure}" = "yes"; then
7815 # If we get the same failure with -b, there is no use adding -b.
7816 # So take it out. This plays safe.
7817 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7818 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7819 CPPFLAGS="$OLD_CPPFLAGS"
7820 LIBS="$OLD_LIBS"
7821 echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7823 else
7824 echo "$as_me:$LINENO: result: yes" >&5
7825 echo "${ECHO_T}yes" >&6
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7833 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7834 # header files included from there.
7835 echo "$as_me:$LINENO: checking for Xkb" >&5
7836 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <X11/Xlib.h>
7845 #include <X11/XKBlib.h>
7847 main ()
7849 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7851 return 0;
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 emacs_xkb=yes
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 emacs_xkb=no
7873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7874 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7875 echo "${ECHO_T}$emacs_xkb" >&6
7876 if test $emacs_xkb = yes; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_XKBGETKEYBOARD 1
7880 _ACEOF
7888 for ac_func in XrmSetDatabase XScreenResourceString \
7889 XScreenNumberOfScreen XSetWMProtocols
7891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7892 echo "$as_me:$LINENO: checking for $ac_func" >&5
7893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7894 if eval "test \"\${$as_ac_var+set}\" = set"; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 /* System header to define __stub macros and hopefully few prototypes,
7905 which can conflict with char $ac_func (); below.
7906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7907 <limits.h> exists even on freestanding compilers. */
7908 #ifdef __STDC__
7909 # include <limits.h>
7910 #else
7911 # include <assert.h>
7912 #endif
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 #ifdef __cplusplus
7915 extern "C"
7917 #endif
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7920 char $ac_func ();
7921 /* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7925 choke me
7926 #else
7927 char (*f) () = $ac_func;
7928 #endif
7929 #ifdef __cplusplus
7931 #endif
7934 main ()
7936 return f != $ac_func;
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 eval "$as_ac_var=yes"
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 eval "$as_ac_var=no"
7960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964 if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7967 _ACEOF
7970 done
7974 if test "${window_system}" = "x11"; then
7975 echo "$as_me:$LINENO: checking X11 version 6" >&5
7976 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7977 if test "${emacs_cv_x11_version_6+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line $LINENO "configure"
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <X11/Xlib.h>
7989 main ()
7991 #if XlibSpecificationRelease < 6
7992 fail;
7993 #endif
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 emacs_cv_x11_version_6=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 emacs_cv_x11_version_6=no
8018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8021 if test $emacs_cv_x11_version_6 = yes; then
8022 echo "$as_me:$LINENO: result: 6 or newer" >&5
8023 echo "${ECHO_T}6 or newer" >&6
8025 cat >>confdefs.h <<\_ACEOF
8026 #define HAVE_X11R6 1
8027 _ACEOF
8029 else
8030 echo "$as_me:$LINENO: result: before 6" >&5
8031 echo "${ECHO_T}before 6" >&6
8035 if test "${window_system}" = "x11"; then
8036 echo "$as_me:$LINENO: checking X11 version 5" >&5
8037 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8038 if test "${emacs_cv_x11_version_5+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8050 main ()
8052 #if XlibSpecificationRelease < 5
8053 fail;
8054 #endif
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 emacs_cv_x11_version_5=yes
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 emacs_cv_x11_version_5=no
8079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test $emacs_cv_x11_version_5 = yes; then
8083 echo "$as_me:$LINENO: result: 5 or newer" >&5
8084 echo "${ECHO_T}5 or newer" >&6
8085 HAVE_X11R5=yes
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_X11R5 1
8089 _ACEOF
8091 else
8092 HAVE_X11R5=no
8093 echo "$as_me:$LINENO: result: before 5" >&5
8094 echo "${ECHO_T}before 5" >&6
8100 HAVE_GTK=no
8101 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8102 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8103 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8104 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8105 { (exit 1); exit 1; }; };
8107 GLIB_REQUIRED=2.0.1
8108 GTK_REQUIRED=2.0.1
8109 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8111 if test "X${with_pkg_config_prog}" != X; then
8112 PKG_CONFIG="${with_pkg_config_prog}"
8115 succeeded=no
8117 if test -z "$PKG_CONFIG"; then
8118 # Extract the first word of "pkg-config", so it can be a program name with args.
8119 set dummy pkg-config; ac_word=$2
8120 echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 case $PKG_CONFIG in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8141 done
8142 done
8144 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8146 esac
8148 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8150 if test -n "$PKG_CONFIG"; then
8151 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8152 echo "${ECHO_T}$PKG_CONFIG" >&6
8153 else
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8160 if test "$PKG_CONFIG" = "no" ; then
8161 echo "*** The pkg-config script could not be found. Make sure it is"
8162 echo "*** in your path, or give the full path to pkg-config with"
8163 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8164 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8165 else
8166 PKG_CONFIG_MIN_VERSION=0.9.0
8167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8168 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8169 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8171 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8174 succeeded=yes
8176 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8177 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8178 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8179 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8180 echo "${ECHO_T}$GTK_CFLAGS" >&6
8182 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8183 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8184 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8185 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8186 echo "${ECHO_T}$GTK_LIBS" >&6
8187 else
8188 GTK_CFLAGS=""
8189 GTK_LIBS=""
8190 ## If we have a custom action on failure, don't print errors, but
8191 ## do set a variable so people can do so.
8192 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8193 echo $GTK_PKG_ERRORS
8198 else
8199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8204 if test $succeeded = yes; then
8206 else
8207 { { 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
8208 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;}
8209 { (exit 1); exit 1; }; }
8214 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8215 HAVE_GTK=yes
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_GTK 1
8219 _ACEOF
8221 USE_X_TOOLKIT=none
8223 with_toolkit_scroll_bars=yes
8226 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8227 if test x"${HAVE_X11R5}" = xyes; then
8228 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8229 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8230 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 #include <X11/Intrinsic.h>
8242 #include <X11/Xaw/Simple.h>
8244 main ()
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 emacs_cv_x11_version_5_with_xaw=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 emacs_cv_x11_version_5_with_xaw=no
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8273 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8274 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8275 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8276 USE_X_TOOLKIT=LUCID
8277 else
8278 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8279 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8280 USE_X_TOOLKIT=none
8282 else
8283 USE_X_TOOLKIT=none
8287 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8289 if test "${USE_X_TOOLKIT}" != "none"; then
8290 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8291 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8292 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <X11/Intrinsic.h>
8304 main ()
8306 #if XtSpecificationRelease < 6
8307 fail;
8308 #endif
8311 return 0;
8313 _ACEOF
8314 rm -f conftest.$ac_objext conftest$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 emacs_cv_x11_toolkit_version_6=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 emacs_cv_x11_toolkit_version_6=no
8333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8336 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8337 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8338 echo "$as_me:$LINENO: result: 6 or newer" >&5
8339 echo "${ECHO_T}6 or newer" >&6
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HAVE_X11XTR6 1
8343 _ACEOF
8345 else
8346 echo "$as_me:$LINENO: result: before 6" >&5
8347 echo "${ECHO_T}before 6" >&6
8350 OLDLIBS="$LIBS"
8351 if test x$HAVE_X11XTR6 = xyes; then
8352 LIBS="-lXt -lSM -lICE $LIBS"
8353 else
8354 LIBS="-lXt $LIBS"
8357 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8358 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8359 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-lXmu $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char XmuConvertStandardSelection ();
8380 main ()
8382 XmuConvertStandardSelection ();
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8404 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8407 LIBS=$ac_check_lib_save_LIBS
8409 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8410 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8411 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8412 cat >>confdefs.h <<_ACEOF
8413 #define HAVE_LIBXMU 1
8414 _ACEOF
8416 LIBS="-lXmu $LIBS"
8420 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8423 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8424 if test "${HAVE_X11}" = "yes"; then
8425 if test "${USE_X_TOOLKIT}" != "none"; then
8427 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8428 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8429 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432 ac_check_lib_save_LIBS=$LIBS
8433 LIBS="-lXext $LIBS"
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 /* Override any gcc2 internal prototype to avoid an error. */
8443 #ifdef __cplusplus
8444 extern "C"
8445 #endif
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8448 char XShapeQueryExtension ();
8450 main ()
8452 XShapeQueryExtension ();
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_Xext_XShapeQueryExtension=yes
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_lib_Xext_XShapeQueryExtension=no
8476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8480 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8481 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBXEXT 1
8484 _ACEOF
8486 LIBS="-lXext $LIBS"
8493 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8494 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8495 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8496 if test "${emacs_cv_lesstif+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 # We put this in CFLAGS temporarily to precede other -I options
8500 # that might be in CFLAGS temporarily.
8501 # We put this in CPPFLAGS where it precedes the other -I options.
8502 OLD_CPPFLAGS=$CPPFLAGS
8503 OLD_CFLAGS=$CFLAGS
8504 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8505 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8506 cat >conftest.$ac_ext <<_ACEOF
8507 #line $LINENO "configure"
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8515 main ()
8517 int x = 5;
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 emacs_cv_lesstif=yes
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 emacs_cv_lesstif=no
8541 rm -f conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8544 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8545 if test $emacs_cv_lesstif = yes; then
8546 # Make sure this -I option remains in CPPFLAGS after it is set
8547 # back to REAL_CPPFLAGS.
8548 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8549 # have those other -I options anyway. Ultimately, having this
8550 # directory ultimately in CPPFLAGS will be enough.
8551 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8552 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8553 else
8554 CFLAGS=$OLD_CFLAGS
8555 CPPFLAGS=$OLD_CPPFLAGS
8557 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8558 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8559 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <Xm/Xm.h>
8571 main ()
8573 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8574 int x = 5;
8575 #else
8576 Motif version prior to 2.1.
8577 #endif
8579 return 0;
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 emacs_cv_motif_version_2_1=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 emacs_cv_motif_version_2_1=no
8601 rm -f conftest.$ac_objext conftest.$ac_ext
8603 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8604 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8605 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8606 if test $emacs_cv_motif_version_2_1 = yes; then
8607 HAVE_LIBXP=no
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_MOTIF_2_1 1
8611 _ACEOF
8613 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8614 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8615 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 ac_check_lib_save_LIBS=$LIBS
8619 LIBS="-lXp $LIBS"
8620 cat >conftest.$ac_ext <<_ACEOF
8621 #line $LINENO "configure"
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 /* Override any gcc2 internal prototype to avoid an error. */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634 char XpCreateContext ();
8636 main ()
8638 XpCreateContext ();
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_Xp_XpCreateContext=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_cv_lib_Xp_XpCreateContext=no
8662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8663 LIBS=$ac_check_lib_save_LIBS
8665 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8666 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8667 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8668 HAVE_LIBXP=yes
8671 if test ${HAVE_LIBXP} = yes; then
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_LIBXP 1
8675 _ACEOF
8681 ### Is -lXaw3d available?
8682 HAVE_XAW3D=no
8683 if test "${HAVE_X11}" = "yes"; then
8684 if test "${USE_X_TOOLKIT}" != "none"; then
8685 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8686 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8687 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 #include <X11/Xaw3d/Scrollbar.h>
8698 _ACEOF
8699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } >/dev/null; then
8707 if test -s conftest.err; then
8708 ac_cpp_err=$ac_c_preproc_warn_flag
8709 else
8710 ac_cpp_err=
8712 else
8713 ac_cpp_err=yes
8715 if test -z "$ac_cpp_err"; then
8716 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8723 rm -f conftest.err conftest.$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8727 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8728 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8729 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8730 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lXaw3d $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749 char XawScrollbarSetThumb ();
8751 main ()
8753 XawScrollbarSetThumb ();
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8781 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8782 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8783 HAVE_XAW3D=yes
8789 if test "${HAVE_XAW3D}" = "yes"; then
8791 cat >>confdefs.h <<\_ACEOF
8792 #define HAVE_XAW3D 1
8793 _ACEOF
8801 USE_TOOLKIT_SCROLL_BARS=no
8802 if test "${with_toolkit_scroll_bars}" != "no"; then
8803 if test "${USE_X_TOOLKIT}" != "none"; then
8804 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8805 cat >>confdefs.h <<\_ACEOF
8806 #define USE_TOOLKIT_SCROLL_BARS 1
8807 _ACEOF
8809 HAVE_XAW3D=no
8810 USE_TOOLKIT_SCROLL_BARS=yes
8811 elif test "${HAVE_XAW3D}" = "yes"; then
8812 cat >>confdefs.h <<\_ACEOF
8813 #define USE_TOOLKIT_SCROLL_BARS 1
8814 _ACEOF
8816 USE_TOOLKIT_SCROLL_BARS=yes
8818 elif test "${HAVE_GTK}" = "yes"; then
8819 cat >>confdefs.h <<\_ACEOF
8820 #define USE_TOOLKIT_SCROLL_BARS 1
8821 _ACEOF
8823 USE_TOOLKIT_SCROLL_BARS=yes
8828 if test "${with_xim}" != "no"; then
8830 cat >>confdefs.h <<\_ACEOF
8831 #define USE_XIM 1
8832 _ACEOF
8836 ### Use -lXpm if available, unless `--with-xpm=no'.
8837 HAVE_XPM=no
8838 if test "${HAVE_X11}" = "yes"; then
8839 if test "${with_xpm}" != "no"; then
8840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8841 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8842 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8843 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8847 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8848 else
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8851 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #include <X11/xpm.h>
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_compiler=no
8881 rm -f conftest.$ac_objext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8887 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 #include <X11/xpm.h>
8896 _ACEOF
8897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } >/dev/null; then
8905 if test -s conftest.err; then
8906 ac_cpp_err=$ac_c_preproc_warn_flag
8907 else
8908 ac_cpp_err=
8910 else
8911 ac_cpp_err=yes
8913 if test -z "$ac_cpp_err"; then
8914 ac_header_preproc=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_header_preproc=no
8921 rm -f conftest.err conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8925 # So? What about this header?
8926 case $ac_header_compiler:$ac_header_preproc in
8927 yes:no )
8928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8931 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8933 cat <<\_ASBOX
8934 ## ------------------------------------ ##
8935 ## Report this to bug-autoconf@gnu.org. ##
8936 ## ------------------------------------ ##
8937 _ASBOX
8939 sed "s/^/$as_me: WARNING: /" >&2
8941 no:yes )
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8943 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8945 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8949 cat <<\_ASBOX
8950 ## ------------------------------------ ##
8951 ## Report this to bug-autoconf@gnu.org. ##
8952 ## ------------------------------------ ##
8953 _ASBOX
8955 sed "s/^/$as_me: WARNING: /" >&2
8957 esac
8958 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8959 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8960 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 ac_cv_header_X11_xpm_h=$ac_header_preproc
8965 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8969 if test $ac_cv_header_X11_xpm_h = yes; then
8970 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8971 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8972 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-lXpm -lX11 $LIBS"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any gcc2 internal prototype to avoid an error. */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991 char XpmReadFileToPixmap ();
8993 main ()
8995 XpmReadFileToPixmap ();
8997 return 0;
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9020 LIBS=$ac_check_lib_save_LIBS
9022 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9023 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9024 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9025 HAVE_XPM=yes
9031 if test "${HAVE_XPM}" = "yes"; then
9032 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9033 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9035 #line $LINENO "configure"
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 #include "X11/xpm.h"
9042 #ifndef XpmReturnAllocPixels
9043 no_return_alloc_pixels
9044 #endif
9046 _ACEOF
9047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9049 HAVE_XPM=no
9050 else
9051 HAVE_XPM=yes
9053 rm -f conftest*
9056 if test "${HAVE_XPM}" = "yes"; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9066 if test "${HAVE_XPM}" = "yes"; then
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_XPM 1
9070 _ACEOF
9075 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9076 HAVE_JPEG=no
9077 if test "${HAVE_X11}" = "yes"; then
9078 if test "${with_jpeg}" != "no"; then
9079 if test "${ac_cv_header_jerror_h+set}" = set; then
9080 echo "$as_me:$LINENO: checking for jerror.h" >&5
9081 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9082 if test "${ac_cv_header_jerror_h+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9086 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9087 else
9088 # Is the header compilable?
9089 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9090 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 #include <jerror.h>
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_header_compiler=yes
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_header_compiler=no
9120 rm -f conftest.$ac_objext conftest.$ac_ext
9121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9122 echo "${ECHO_T}$ac_header_compiler" >&6
9124 # Is the header present?
9125 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9126 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #include <jerror.h>
9135 _ACEOF
9136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } >/dev/null; then
9144 if test -s conftest.err; then
9145 ac_cpp_err=$ac_c_preproc_warn_flag
9146 else
9147 ac_cpp_err=
9149 else
9150 ac_cpp_err=yes
9152 if test -z "$ac_cpp_err"; then
9153 ac_header_preproc=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_header_preproc=no
9160 rm -f conftest.err conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9162 echo "${ECHO_T}$ac_header_preproc" >&6
9164 # So? What about this header?
9165 case $ac_header_compiler:$ac_header_preproc in
9166 yes:no )
9167 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9168 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9170 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9172 cat <<\_ASBOX
9173 ## ------------------------------------ ##
9174 ## Report this to bug-autoconf@gnu.org. ##
9175 ## ------------------------------------ ##
9176 _ASBOX
9178 sed "s/^/$as_me: WARNING: /" >&2
9180 no:yes )
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9186 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9188 cat <<\_ASBOX
9189 ## ------------------------------------ ##
9190 ## Report this to bug-autoconf@gnu.org. ##
9191 ## ------------------------------------ ##
9192 _ASBOX
9194 sed "s/^/$as_me: WARNING: /" >&2
9196 esac
9197 echo "$as_me:$LINENO: checking for jerror.h" >&5
9198 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9199 if test "${ac_cv_header_jerror_h+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202 ac_cv_header_jerror_h=$ac_header_preproc
9204 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9208 if test $ac_cv_header_jerror_h = yes; then
9209 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9210 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9211 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214 ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-ljpeg $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char jpeg_destroy_compress ();
9232 main ()
9234 jpeg_destroy_compress ();
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_lib_save_LIBS
9261 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9262 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9263 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9264 HAVE_JPEG=yes
9273 if test "${HAVE_JPEG}" = "yes"; then
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_JPEG 1
9276 _ACEOF
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <jpeglib.h>
9286 version=JPEG_LIB_VERSION
9288 _ACEOF
9289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9290 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9291 cat >>confdefs.h <<\_ACEOF
9292 #define HAVE_JPEG 1
9293 _ACEOF
9295 else
9296 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9297 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9298 HAVE_JPEG=no
9300 rm -f conftest*
9305 ### Use -lpng if available, unless `--with-png=no'.
9306 HAVE_PNG=no
9307 if test "${HAVE_X11}" = "yes"; then
9308 if test "${with_png}" != "no"; then
9309 if test "${ac_cv_header_png_h+set}" = set; then
9310 echo "$as_me:$LINENO: checking for png.h" >&5
9311 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9312 if test "${ac_cv_header_png_h+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9316 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9317 else
9318 # Is the header compilable?
9319 echo "$as_me:$LINENO: checking png.h usability" >&5
9320 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 #include <png.h>
9330 _ACEOF
9331 rm -f conftest.$ac_objext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333 (eval $ac_compile) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_header_compiler=yes
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_header_compiler=no
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9352 echo "${ECHO_T}$ac_header_compiler" >&6
9354 # Is the header present?
9355 echo "$as_me:$LINENO: checking png.h presence" >&5
9356 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9357 cat >conftest.$ac_ext <<_ACEOF
9358 #line $LINENO "configure"
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 #include <png.h>
9365 _ACEOF
9366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null; then
9374 if test -s conftest.err; then
9375 ac_cpp_err=$ac_c_preproc_warn_flag
9376 else
9377 ac_cpp_err=
9379 else
9380 ac_cpp_err=yes
9382 if test -z "$ac_cpp_err"; then
9383 ac_header_preproc=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_header_preproc=no
9390 rm -f conftest.err conftest.$ac_ext
9391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9392 echo "${ECHO_T}$ac_header_preproc" >&6
9394 # So? What about this header?
9395 case $ac_header_compiler:$ac_header_preproc in
9396 yes:no )
9397 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9398 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9400 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9402 cat <<\_ASBOX
9403 ## ------------------------------------ ##
9404 ## Report this to bug-autoconf@gnu.org. ##
9405 ## ------------------------------------ ##
9406 _ASBOX
9408 sed "s/^/$as_me: WARNING: /" >&2
9410 no:yes )
9411 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9412 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9414 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9416 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9418 cat <<\_ASBOX
9419 ## ------------------------------------ ##
9420 ## Report this to bug-autoconf@gnu.org. ##
9421 ## ------------------------------------ ##
9422 _ASBOX
9424 sed "s/^/$as_me: WARNING: /" >&2
9426 esac
9427 echo "$as_me:$LINENO: checking for png.h" >&5
9428 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9429 if test "${ac_cv_header_png_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 ac_cv_header_png_h=$ac_header_preproc
9434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9438 if test $ac_cv_header_png_h = yes; then
9439 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9440 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9441 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-lpng -lz -lm $LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9454 /* Override any gcc2 internal prototype to avoid an error. */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9460 char png_get_channels ();
9462 main ()
9464 png_get_channels ();
9466 return 0;
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_lib_png_png_get_channels=yes
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_lib_png_png_get_channels=no
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9492 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9493 if test $ac_cv_lib_png_png_get_channels = yes; then
9494 HAVE_PNG=yes
9502 if test "${HAVE_PNG}" = "yes"; then
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_PNG 1
9506 _ACEOF
9511 ### Use -ltiff if available, unless `--with-tiff=no'.
9512 HAVE_TIFF=no
9513 if test "${HAVE_X11}" = "yes"; then
9514 if test "${with_tiff}" != "no"; then
9515 if test "${ac_cv_header_tiffio_h+set}" = set; then
9516 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9517 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9518 if test "${ac_cv_header_tiffio_h+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9523 else
9524 # Is the header compilable?
9525 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9526 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <tiffio.h>
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_header_compiler=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_compiler=no
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9558 echo "${ECHO_T}$ac_header_compiler" >&6
9560 # Is the header present?
9561 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9562 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 #include <tiffio.h>
9571 _ACEOF
9572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } >/dev/null; then
9580 if test -s conftest.err; then
9581 ac_cpp_err=$ac_c_preproc_warn_flag
9582 else
9583 ac_cpp_err=
9585 else
9586 ac_cpp_err=yes
9588 if test -z "$ac_cpp_err"; then
9589 ac_header_preproc=yes
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_header_preproc=no
9596 rm -f conftest.err conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598 echo "${ECHO_T}$ac_header_preproc" >&6
9600 # So? What about this header?
9601 case $ac_header_compiler:$ac_header_preproc in
9602 yes:no )
9603 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9604 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9608 cat <<\_ASBOX
9609 ## ------------------------------------ ##
9610 ## Report this to bug-autoconf@gnu.org. ##
9611 ## ------------------------------------ ##
9612 _ASBOX
9614 sed "s/^/$as_me: WARNING: /" >&2
9616 no:yes )
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9622 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9624 cat <<\_ASBOX
9625 ## ------------------------------------ ##
9626 ## Report this to bug-autoconf@gnu.org. ##
9627 ## ------------------------------------ ##
9628 _ASBOX
9630 sed "s/^/$as_me: WARNING: /" >&2
9632 esac
9633 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9634 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9635 if test "${ac_cv_header_tiffio_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 ac_cv_header_tiffio_h=$ac_header_preproc
9640 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9644 if test $ac_cv_header_tiffio_h = yes; then
9645 tifflibs="-lz -lm"
9646 # At least one tiff package requires the jpeg library.
9647 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9648 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9649 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9650 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653 ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-ltiff $tifflibs $LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any gcc2 internal prototype to avoid an error. */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669 char TIFFGetVersion ();
9671 main ()
9673 TIFFGetVersion ();
9675 return 0;
9677 _ACEOF
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_tiff_TIFFGetVersion=yes
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_lib_tiff_TIFFGetVersion=no
9697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9700 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9701 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9702 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9703 HAVE_TIFF=yes
9711 if test "${HAVE_TIFF}" = "yes"; then
9713 cat >>confdefs.h <<\_ACEOF
9714 #define HAVE_TIFF 1
9715 _ACEOF
9720 ### Use -lgif if available, unless `--with-gif=no'.
9721 HAVE_GIF=no
9722 if test "${HAVE_X11}" = "yes"; then
9723 if test "${with_gif}" != "no"; then
9724 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9726 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9732 else
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9735 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <gif_lib.h>
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_header_compiler=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_header_compiler=no
9765 rm -f conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6
9769 # Is the header present?
9770 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9771 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9774 /* confdefs.h. */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 #include <gif_lib.h>
9780 _ACEOF
9781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } >/dev/null; then
9789 if test -s conftest.err; then
9790 ac_cpp_err=$ac_c_preproc_warn_flag
9791 else
9792 ac_cpp_err=
9794 else
9795 ac_cpp_err=yes
9797 if test -z "$ac_cpp_err"; then
9798 ac_header_preproc=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_header_preproc=no
9805 rm -f conftest.err conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807 echo "${ECHO_T}$ac_header_preproc" >&6
9809 # So? What about this header?
9810 case $ac_header_compiler:$ac_header_preproc in
9811 yes:no )
9812 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9813 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9815 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9817 cat <<\_ASBOX
9818 ## ------------------------------------ ##
9819 ## Report this to bug-autoconf@gnu.org. ##
9820 ## ------------------------------------ ##
9821 _ASBOX
9823 sed "s/^/$as_me: WARNING: /" >&2
9825 no:yes )
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9831 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9833 cat <<\_ASBOX
9834 ## ------------------------------------ ##
9835 ## Report this to bug-autoconf@gnu.org. ##
9836 ## ------------------------------------ ##
9837 _ASBOX
9839 sed "s/^/$as_me: WARNING: /" >&2
9841 esac
9842 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9843 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9844 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 ac_cv_header_gif_lib_h=$ac_header_preproc
9849 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9853 if test $ac_cv_header_gif_lib_h = yes; then
9854 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9855 # Earlier versions can crash Emacs.
9856 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9857 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9858 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-lungif $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9871 /* Override any gcc2 internal prototype to avoid an error. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 /* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9877 char EGifPutExtensionLast ();
9879 main ()
9881 EGifPutExtensionLast ();
9883 return 0;
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_lib_ungif_EGifPutExtensionLast=no
9905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9909 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9910 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9911 HAVE_GIF=yes
9919 if test "${HAVE_GIF}" = "yes"; then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_GIF 1
9923 _ACEOF
9928 ### Use Mac OS X Carbon API to implement GUI.
9929 HAVE_CARBON=no
9930 if test "${with_carbon}" != "no"; then
9931 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9932 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9933 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9934 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9938 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9939 else
9940 # Is the header compilable?
9941 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9942 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 $ac_includes_default
9951 #include <Carbon/Carbon.h>
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_header_compiler=no
9972 rm -f conftest.$ac_objext conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9978 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
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 #include <Carbon/Carbon.h>
9987 _ACEOF
9988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null; then
9996 if test -s conftest.err; then
9997 ac_cpp_err=$ac_c_preproc_warn_flag
9998 else
9999 ac_cpp_err=
10001 else
10002 ac_cpp_err=yes
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc=yes
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_header_preproc=no
10012 rm -f conftest.err conftest.$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc in
10018 yes:no )
10019 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10022 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10024 cat <<\_ASBOX
10025 ## ------------------------------------ ##
10026 ## Report this to bug-autoconf@gnu.org. ##
10027 ## ------------------------------------ ##
10028 _ASBOX
10030 sed "s/^/$as_me: WARNING: /" >&2
10032 no:yes )
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10040 cat <<\_ASBOX
10041 ## ------------------------------------ ##
10042 ## Report this to bug-autoconf@gnu.org. ##
10043 ## ------------------------------------ ##
10044 _ASBOX
10046 sed "s/^/$as_me: WARNING: /" >&2
10048 esac
10049 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10050 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10051 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10056 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10060 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10061 HAVE_CARBON=yes
10067 if test "${HAVE_CARBON}" = "yes"; then
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_CARBON 1
10071 _ACEOF
10073 window_system=mac
10074 ## Specify the install directory
10075 carbon_appdir=
10076 if test "${carbon_appdir_x}" != ""; then
10077 case ${carbon_appdir_x} in
10078 y | ye | yes) carbon_appdir=/Applications ;;
10079 * ) carbon_appdir=${carbon_appdir_x} ;;
10080 esac
10082 # We also have mouse menus.
10083 HAVE_MENUS=yes
10086 ### Use session management (-lSM -lICE) if available
10087 HAVE_X_SM=no
10088 if test "${HAVE_X11}" = "yes"; then
10089 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10090 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10091 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10092 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10096 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10097 else
10098 # Is the header compilable?
10099 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10100 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 $ac_includes_default
10109 #include <X11/SM/SMlib.h>
10110 _ACEOF
10111 rm -f conftest.$ac_objext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_header_compiler=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_header_compiler=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132 echo "${ECHO_T}$ac_header_compiler" >&6
10134 # Is the header present?
10135 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10136 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10138 #line $LINENO "configure"
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 #include <X11/SM/SMlib.h>
10145 _ACEOF
10146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } >/dev/null; then
10154 if test -s conftest.err; then
10155 ac_cpp_err=$ac_c_preproc_warn_flag
10156 else
10157 ac_cpp_err=
10159 else
10160 ac_cpp_err=yes
10162 if test -z "$ac_cpp_err"; then
10163 ac_header_preproc=yes
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_header_preproc=no
10170 rm -f conftest.err conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172 echo "${ECHO_T}$ac_header_preproc" >&6
10174 # So? What about this header?
10175 case $ac_header_compiler:$ac_header_preproc in
10176 yes:no )
10177 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10178 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10180 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10182 cat <<\_ASBOX
10183 ## ------------------------------------ ##
10184 ## Report this to bug-autoconf@gnu.org. ##
10185 ## ------------------------------------ ##
10186 _ASBOX
10188 sed "s/^/$as_me: WARNING: /" >&2
10190 no:yes )
10191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10192 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10194 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10198 cat <<\_ASBOX
10199 ## ------------------------------------ ##
10200 ## Report this to bug-autoconf@gnu.org. ##
10201 ## ------------------------------------ ##
10202 _ASBOX
10204 sed "s/^/$as_me: WARNING: /" >&2
10206 esac
10207 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10208 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10209 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10214 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10218 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10219 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10220 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10221 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lSM $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 #line $LINENO "configure"
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10234 /* Override any gcc2 internal prototype to avoid an error. */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10240 char SmcOpenConnection ();
10242 main ()
10244 SmcOpenConnection ();
10246 return 0;
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_SM_SmcOpenConnection=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_SM_SmcOpenConnection=no
10268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10272 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10273 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10274 HAVE_X_SM=yes
10275 else
10276 -lICE
10283 if test "${HAVE_X_SM}" = "yes"; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_X_SM 1
10287 _ACEOF
10289 case "$LIBS" in
10290 *-lSM*) ;;
10291 *) LIBS="-lSM -lICE $LIBS" ;;
10292 esac
10296 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10297 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10298 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10299 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <netdb.h>
10311 main ()
10313 return h_errno;
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 emacs_cv_netdb_declares_h_errno=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 emacs_cv_netdb_declares_h_errno=no
10337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10340 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10341 if test $emacs_cv_netdb_declares_h_errno = yes; then
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_H_ERRNO 1
10345 _ACEOF
10349 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10350 # for constant arguments. Useless!
10351 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10352 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10353 if test "${ac_cv_working_alloca_h+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <alloca.h>
10365 main ()
10367 char *p = (char *) alloca (2 * sizeof (int));
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_working_alloca_h=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_working_alloca_h=no
10391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10393 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10394 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10395 if test $ac_cv_working_alloca_h = yes; then
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_ALLOCA_H 1
10399 _ACEOF
10403 echo "$as_me:$LINENO: checking for alloca" >&5
10404 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10405 if test "${ac_cv_func_alloca_works+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #ifdef __GNUC__
10416 # define alloca __builtin_alloca
10417 #else
10418 # ifdef _MSC_VER
10419 # include <malloc.h>
10420 # define alloca _alloca
10421 # else
10422 # if HAVE_ALLOCA_H
10423 # include <alloca.h>
10424 # else
10425 # ifdef _AIX
10426 #pragma alloca
10427 # else
10428 # ifndef alloca /* predefined by HP cc +Olibcalls */
10429 char *alloca ();
10430 # endif
10431 # endif
10432 # endif
10433 # endif
10434 #endif
10437 main ()
10439 char *p = (char *) alloca (1);
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_func_alloca_works=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_cv_func_alloca_works=no
10463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10466 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10468 if test $ac_cv_func_alloca_works = yes; then
10470 cat >>confdefs.h <<\_ACEOF
10471 #define HAVE_ALLOCA 1
10472 _ACEOF
10474 else
10475 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10476 # that cause trouble. Some versions do not even contain alloca or
10477 # contain a buggy version. If you still want to use their alloca,
10478 # use ar to extract alloca.o from them instead of compiling alloca.c.
10480 ALLOCA=alloca.$ac_objext
10482 cat >>confdefs.h <<\_ACEOF
10483 #define C_ALLOCA 1
10484 _ACEOF
10487 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10488 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10489 if test "${ac_cv_os_cray+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #if defined(CRAY) && ! defined(CRAY2)
10500 webecray
10501 #else
10502 wenotbecray
10503 #endif
10505 _ACEOF
10506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10507 $EGREP "webecray" >/dev/null 2>&1; then
10508 ac_cv_os_cray=yes
10509 else
10510 ac_cv_os_cray=no
10512 rm -f conftest*
10515 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10516 echo "${ECHO_T}$ac_cv_os_cray" >&6
10517 if test $ac_cv_os_cray = yes; then
10518 for ac_func in _getb67 GETB67 getb67; do
10519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10520 echo "$as_me:$LINENO: checking for $ac_func" >&5
10521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10522 if eval "test \"\${$as_ac_var+set}\" = set"; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 /* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char $ac_func (); below.
10534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 <limits.h> exists even on freestanding compilers. */
10536 #ifdef __STDC__
10537 # include <limits.h>
10538 #else
10539 # include <assert.h>
10540 #endif
10541 /* Override any gcc2 internal prototype to avoid an error. */
10542 #ifdef __cplusplus
10543 extern "C"
10545 #endif
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10548 char $ac_func ();
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553 choke me
10554 #else
10555 char (*f) () = $ac_func;
10556 #endif
10557 #ifdef __cplusplus
10559 #endif
10562 main ()
10564 return f != $ac_func;
10566 return 0;
10568 _ACEOF
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 eval "$as_ac_var=no"
10588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10592 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define CRAY_STACKSEG_END $ac_func
10596 _ACEOF
10598 break
10601 done
10604 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10605 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10606 if test "${ac_cv_c_stack_direction+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_c_stack_direction=0
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 find_stack_direction ()
10622 static char *addr = 0;
10623 auto char dummy;
10624 if (addr == 0)
10626 addr = &dummy;
10627 return find_stack_direction ();
10629 else
10630 return (&dummy > addr) ? 1 : -1;
10634 main ()
10636 exit (find_stack_direction () < 0);
10638 _ACEOF
10639 rm -f conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_c_stack_direction=1
10651 else
10652 echo "$as_me: program exited with status $ac_status" >&5
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ( exit $ac_status )
10657 ac_cv_c_stack_direction=-1
10659 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10665 cat >>confdefs.h <<_ACEOF
10666 #define STACK_DIRECTION $ac_cv_c_stack_direction
10667 _ACEOF
10673 # fmod, logb, and frexp are found in -lm on most systems.
10674 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10676 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10677 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-lm $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10691 /* Override any gcc2 internal prototype to avoid an error. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10697 char sqrt ();
10699 main ()
10701 sqrt ();
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_lib_m_sqrt=yes
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ac_cv_lib_m_sqrt=no
10725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10728 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10729 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10730 if test $ac_cv_lib_m_sqrt = yes; then
10731 cat >>confdefs.h <<_ACEOF
10732 #define HAVE_LIBM 1
10733 _ACEOF
10735 LIBS="-lm $LIBS"
10740 # Check for mail-locking functions in a "mail" library
10742 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10743 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10744 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 ac_check_lib_save_LIBS=$LIBS
10748 LIBS="-lmail $LIBS"
10749 cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10757 /* Override any gcc2 internal prototype to avoid an error. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10763 char maillock ();
10765 main ()
10767 maillock ();
10769 return 0;
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_mail_maillock=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_lib_mail_maillock=no
10791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10794 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10795 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10796 if test $ac_cv_lib_mail_maillock = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_LIBMAIL 1
10799 _ACEOF
10801 LIBS="-lmail $LIBS"
10806 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10807 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10808 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-llockfile $LIBS"
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char maillock ();
10829 main ()
10831 maillock ();
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_lockfile_maillock=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_lib_lockfile_maillock=no
10855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10859 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10860 if test $ac_cv_lib_lockfile_maillock = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_LIBLOCKFILE 1
10863 _ACEOF
10865 LIBS="-llockfile $LIBS"
10869 # If we have the shared liblockfile, assume we must use it for mail
10870 # locking (e.g. Debian). If we couldn't link against liblockfile
10871 # (no liblockfile.a installed), ensure that we don't need to.
10872 if test "$ac_cv_lib_lockfile_maillock" = no; then
10873 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10874 set dummy liblockfile.so; ac_word=$2
10875 echo "$as_me:$LINENO: checking for $ac_word" >&5
10876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10877 if test "${ac_cv_prog_liblockfile+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 if test -n "$liblockfile"; then
10881 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10885 for as_dir in $as_dummy
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_liblockfile="yes"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10898 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10901 liblockfile=$ac_cv_prog_liblockfile
10902 if test -n "$liblockfile"; then
10903 echo "$as_me:$LINENO: result: $liblockfile" >&5
10904 echo "${ECHO_T}$liblockfile" >&6
10905 else
10906 echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6
10910 if test $ac_cv_prog_liblockfile = yes; then
10911 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10912 This probably means that movemail could lose mail.
10913 There may be a \`development' package to install containing liblockfile." >&5
10914 echo "$as_me: error: Shared liblockfile found but can't link against it.
10915 This probably means that movemail could lose mail.
10916 There may be a \`development' package to install containing liblockfile." >&2;}
10917 { (exit 1); exit 1; }; }
10918 else
10919 cat >>confdefs.h <<\_ACEOF
10920 #define LIBMAIL -llockfile
10921 _ACEOF
10924 else :
10927 for ac_func in touchlock
10929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_func" >&5
10931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_var+set}\" = set"; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char $ac_func (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10946 #ifdef __STDC__
10947 # include <limits.h>
10948 #else
10949 # include <assert.h>
10950 #endif
10951 /* Override any gcc2 internal prototype to avoid an error. */
10952 #ifdef __cplusplus
10953 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char $ac_func ();
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10963 choke me
10964 #else
10965 char (*f) () = $ac_func;
10966 #endif
10967 #ifdef __cplusplus
10969 #endif
10972 main ()
10974 return f != $ac_func;
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 eval "$as_ac_var=no"
10998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11002 if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 _ACEOF
11008 done
11011 for ac_header in maillock.h
11013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11015 echo "$as_me:$LINENO: checking for $ac_header" >&5
11016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11022 else
11023 # Is the header compilable?
11024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 $ac_includes_default
11034 #include <$ac_header>
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038 (eval $ac_compile) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_header_compiler=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_compiler=no
11055 rm -f conftest.$ac_objext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11057 echo "${ECHO_T}$ac_header_compiler" >&6
11059 # Is the header present?
11060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <$ac_header>
11070 _ACEOF
11071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
11081 else
11082 ac_cpp_err=
11084 else
11085 ac_cpp_err=yes
11087 if test -z "$ac_cpp_err"; then
11088 ac_header_preproc=yes
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 ac_header_preproc=no
11095 rm -f conftest.err conftest.$ac_ext
11096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097 echo "${ECHO_T}$ac_header_preproc" >&6
11099 # So? What about this header?
11100 case $ac_header_compiler:$ac_header_preproc in
11101 yes:no )
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11107 cat <<\_ASBOX
11108 ## ------------------------------------ ##
11109 ## Report this to bug-autoconf@gnu.org. ##
11110 ## ------------------------------------ ##
11111 _ASBOX
11113 sed "s/^/$as_me: WARNING: /" >&2
11115 no:yes )
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 cat <<\_ASBOX
11124 ## ------------------------------------ ##
11125 ## Report this to bug-autoconf@gnu.org. ##
11126 ## ------------------------------------ ##
11127 _ASBOX
11129 sed "s/^/$as_me: WARNING: /" >&2
11131 esac
11132 echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 eval "$as_ac_Header=$ac_header_preproc"
11139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 _ACEOF
11150 done
11215 for ac_func in gethostname getdomainname dup2 \
11216 rename closedir mkdir rmdir sysinfo \
11217 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11218 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11219 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11220 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11221 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11222 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11223 memset memcmp memmove
11225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11226 echo "$as_me:$LINENO: checking for $ac_func" >&5
11227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11228 if eval "test \"\${$as_ac_var+set}\" = set"; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231 cat >conftest.$ac_ext <<_ACEOF
11232 #line $LINENO "configure"
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 /* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11242 #ifdef __STDC__
11243 # include <limits.h>
11244 #else
11245 # include <assert.h>
11246 #endif
11247 /* Override any gcc2 internal prototype to avoid an error. */
11248 #ifdef __cplusplus
11249 extern "C"
11251 #endif
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254 char $ac_func ();
11255 /* The GNU C library defines this for functions which it implements
11256 to always fail with ENOSYS. Some functions are actually named
11257 something starting with __ and the normal name is an alias. */
11258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11259 choke me
11260 #else
11261 char (*f) () = $ac_func;
11262 #endif
11263 #ifdef __cplusplus
11265 #endif
11268 main ()
11270 return f != $ac_func;
11272 return 0;
11274 _ACEOF
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277 (eval $ac_link) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -s conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 eval "$as_ac_var=yes"
11288 else
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 eval "$as_ac_var=no"
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 _ACEOF
11304 done
11308 for ac_header in sys/un.h
11310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11312 echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11319 else
11320 # Is the header compilable?
11321 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11323 cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 #include <$ac_header>
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_header_compiler=yes
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_header_compiler=no
11352 rm -f conftest.$ac_objext conftest.$ac_ext
11353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 echo "${ECHO_T}$ac_header_compiler" >&6
11356 # Is the header present?
11357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11359 cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 #include <$ac_header>
11367 _ACEOF
11368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 else
11379 ac_cpp_err=
11381 else
11382 ac_cpp_err=yes
11384 if test -z "$ac_cpp_err"; then
11385 ac_header_preproc=yes
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc in
11398 yes:no )
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 cat <<\_ASBOX
11405 ## ------------------------------------ ##
11406 ## Report this to bug-autoconf@gnu.org. ##
11407 ## ------------------------------------ ##
11408 _ASBOX
11410 sed "s/^/$as_me: WARNING: /" >&2
11412 no:yes )
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 cat <<\_ASBOX
11421 ## ------------------------------------ ##
11422 ## Report this to bug-autoconf@gnu.org. ##
11423 ## ------------------------------------ ##
11424 _ASBOX
11426 sed "s/^/$as_me: WARNING: /" >&2
11428 esac
11429 echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434 eval "$as_ac_Header=$ac_header_preproc"
11436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11441 cat >>confdefs.h <<_ACEOF
11442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443 _ACEOF
11447 done
11452 for ac_header in sys/time.h unistd.h
11454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11456 echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11463 else
11464 # Is the header compilable?
11465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11468 #line $LINENO "configure"
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <$ac_header>
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_header_compiler=yes
11490 else
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_compiler=no
11496 rm -f conftest.$ac_objext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 echo "${ECHO_T}$ac_header_compiler" >&6
11500 # Is the header present?
11501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11503 cat >conftest.$ac_ext <<_ACEOF
11504 #line $LINENO "configure"
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11511 _ACEOF
11512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 else
11523 ac_cpp_err=
11525 else
11526 ac_cpp_err=yes
11528 if test -z "$ac_cpp_err"; then
11529 ac_header_preproc=yes
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_header_preproc=no
11536 rm -f conftest.err conftest.$ac_ext
11537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 echo "${ECHO_T}$ac_header_preproc" >&6
11540 # So? What about this header?
11541 case $ac_header_compiler:$ac_header_preproc in
11542 yes:no )
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548 cat <<\_ASBOX
11549 ## ------------------------------------ ##
11550 ## Report this to bug-autoconf@gnu.org. ##
11551 ## ------------------------------------ ##
11552 _ASBOX
11554 sed "s/^/$as_me: WARNING: /" >&2
11556 no:yes )
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 cat <<\_ASBOX
11565 ## ------------------------------------ ##
11566 ## Report this to bug-autoconf@gnu.org. ##
11567 ## ------------------------------------ ##
11568 _ASBOX
11570 sed "s/^/$as_me: WARNING: /" >&2
11572 esac
11573 echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 eval "$as_ac_Header=$ac_header_preproc"
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11591 done
11594 for ac_func in alarm
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 /* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char $ac_func (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11613 #ifdef __STDC__
11614 # include <limits.h>
11615 #else
11616 # include <assert.h>
11617 #endif
11618 /* Override any gcc2 internal prototype to avoid an error. */
11619 #ifdef __cplusplus
11620 extern "C"
11622 #endif
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11625 char $ac_func ();
11626 /* The GNU C library defines this for functions which it implements
11627 to always fail with ENOSYS. Some functions are actually named
11628 something starting with __ and the normal name is an alias. */
11629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11630 choke me
11631 #else
11632 char (*f) () = $ac_func;
11633 #endif
11634 #ifdef __cplusplus
11636 #endif
11639 main ()
11641 return f != $ac_func;
11643 return 0;
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no"
11665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672 _ACEOF
11675 done
11677 echo "$as_me:$LINENO: checking for working mktime" >&5
11678 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11679 if test "${ac_cv_func_working_mktime+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 if test "$cross_compiling" = yes; then
11683 ac_cv_func_working_mktime=no
11684 else
11685 cat >conftest.$ac_ext <<_ACEOF
11686 #line $LINENO "configure"
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 /* Test program from Paul Eggert and Tony Leneis. */
11693 #if TIME_WITH_SYS_TIME
11694 # include <sys/time.h>
11695 # include <time.h>
11696 #else
11697 # if HAVE_SYS_TIME_H
11698 # include <sys/time.h>
11699 # else
11700 # include <time.h>
11701 # endif
11702 #endif
11704 #if HAVE_UNISTD_H
11705 # include <unistd.h>
11706 #endif
11708 #if !HAVE_ALARM
11709 # define alarm(X) /* empty */
11710 #endif
11712 /* Work around redefinition to rpl_putenv by other config tests. */
11713 #undef putenv
11715 static time_t time_t_max;
11717 /* Values we'll use to set the TZ environment variable. */
11718 static const char *const tz_strings[] = {
11719 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11720 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11722 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11724 /* Fail if mktime fails to convert a date in the spring-forward gap.
11725 Based on a problem report from Andreas Jaeger. */
11726 static void
11727 spring_forward_gap ()
11729 /* glibc (up to about 1998-10-07) failed this test. */
11730 struct tm tm;
11732 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11733 instead of "TZ=America/Vancouver" in order to detect the bug even
11734 on systems that don't support the Olson extension, or don't have the
11735 full zoneinfo tables installed. */
11736 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11738 tm.tm_year = 98;
11739 tm.tm_mon = 3;
11740 tm.tm_mday = 5;
11741 tm.tm_hour = 2;
11742 tm.tm_min = 0;
11743 tm.tm_sec = 0;
11744 tm.tm_isdst = -1;
11745 if (mktime (&tm) == (time_t)-1)
11746 exit (1);
11749 static void
11750 mktime_test (now)
11751 time_t now;
11753 struct tm *lt;
11754 if ((lt = localtime (&now)) && mktime (lt) != now)
11755 exit (1);
11756 now = time_t_max - now;
11757 if ((lt = localtime (&now)) && mktime (lt) != now)
11758 exit (1);
11761 static void
11762 irix_6_4_bug ()
11764 /* Based on code from Ariel Faigon. */
11765 struct tm tm;
11766 tm.tm_year = 96;
11767 tm.tm_mon = 3;
11768 tm.tm_mday = 0;
11769 tm.tm_hour = 0;
11770 tm.tm_min = 0;
11771 tm.tm_sec = 0;
11772 tm.tm_isdst = -1;
11773 mktime (&tm);
11774 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11775 exit (1);
11778 static void
11779 bigtime_test (j)
11780 int j;
11782 struct tm tm;
11783 time_t now;
11784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11785 now = mktime (&tm);
11786 if (now != (time_t) -1)
11788 struct tm *lt = localtime (&now);
11789 if (! (lt
11790 && lt->tm_year == tm.tm_year
11791 && lt->tm_mon == tm.tm_mon
11792 && lt->tm_mday == tm.tm_mday
11793 && lt->tm_hour == tm.tm_hour
11794 && lt->tm_min == tm.tm_min
11795 && lt->tm_sec == tm.tm_sec
11796 && lt->tm_yday == tm.tm_yday
11797 && lt->tm_wday == tm.tm_wday
11798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11800 exit (1);
11805 main ()
11807 time_t t, delta;
11808 int i, j;
11810 /* This test makes some buggy mktime implementations loop.
11811 Give up after 60 seconds; a mktime slower than that
11812 isn't worth using anyway. */
11813 alarm (60);
11815 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11816 continue;
11817 time_t_max--;
11818 delta = time_t_max / 997; /* a suitable prime number */
11819 for (i = 0; i < N_STRINGS; i++)
11821 if (tz_strings[i])
11822 putenv (tz_strings[i]);
11824 for (t = 0; t <= time_t_max - delta; t += delta)
11825 mktime_test (t);
11826 mktime_test ((time_t) 60 * 60);
11827 mktime_test ((time_t) 60 * 60 * 24);
11829 for (j = 1; 0 < j; j *= 2)
11830 bigtime_test (j);
11831 bigtime_test (j - 1);
11833 irix_6_4_bug ();
11834 spring_forward_gap ();
11835 exit (0);
11837 _ACEOF
11838 rm -f conftest$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_cv_func_working_mktime=yes
11850 else
11851 echo "$as_me: program exited with status $ac_status" >&5
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ( exit $ac_status )
11856 ac_cv_func_working_mktime=no
11858 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11862 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11863 if test $ac_cv_func_working_mktime = no; then
11864 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11867 if test "$ac_cv_func_working_mktime" = no; then
11869 cat >>confdefs.h <<\_ACEOF
11870 #define BROKEN_MKTIME 1
11871 _ACEOF
11875 ac_have_func=no # yes means we've found a way to get the load average.
11877 # Make sure getloadavg.c is where it belongs, at configure-time.
11878 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11879 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11880 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11881 { (exit 1); exit 1; }; }
11883 ac_save_LIBS=$LIBS
11885 # Check for getloadavg, but be sure not to touch the cache variable.
11886 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11887 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11888 if test "${ac_cv_func_getloadavg+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891 cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char getloadavg (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11902 #ifdef __STDC__
11903 # include <limits.h>
11904 #else
11905 # include <assert.h>
11906 #endif
11907 /* Override any gcc2 internal prototype to avoid an error. */
11908 #ifdef __cplusplus
11909 extern "C"
11911 #endif
11912 /* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914 char getloadavg ();
11915 /* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11919 choke me
11920 #else
11921 char (*f) () = getloadavg;
11922 #endif
11923 #ifdef __cplusplus
11925 #endif
11928 main ()
11930 return f != getloadavg;
11932 return 0;
11934 _ACEOF
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_func_getloadavg=yes
11948 else
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ac_cv_func_getloadavg=no
11954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11957 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11958 if test $ac_cv_func_getloadavg = yes; then
11959 exit 0
11960 else
11961 exit 1
11963 ) && ac_have_func=yes
11965 # On HPUX9, an unprivileged user can get load averages through this function.
11967 for ac_func in pstat_getdynamic
11969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972 if eval "test \"\${$as_ac_var+set}\" = set"; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 #line $LINENO "configure"
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func (); below.
11984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11985 <limits.h> exists even on freestanding compilers. */
11986 #ifdef __STDC__
11987 # include <limits.h>
11988 #else
11989 # include <assert.h>
11990 #endif
11991 /* Override any gcc2 internal prototype to avoid an error. */
11992 #ifdef __cplusplus
11993 extern "C"
11995 #endif
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998 char $ac_func ();
11999 /* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12003 choke me
12004 #else
12005 char (*f) () = $ac_func;
12006 #endif
12007 #ifdef __cplusplus
12009 #endif
12012 main ()
12014 return f != $ac_func;
12016 return 0;
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 eval "$as_ac_var=yes"
12032 else
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 eval "$as_ac_var=no"
12038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12042 if test `eval echo '${'$as_ac_var'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 _ACEOF
12048 done
12051 # Solaris has libkstat which does not require root.
12053 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12054 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12055 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-lkstat $LIBS"
12060 cat >conftest.$ac_ext <<_ACEOF
12061 #line $LINENO "configure"
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12068 /* Override any gcc2 internal prototype to avoid an error. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 /* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074 char kstat_open ();
12076 main ()
12078 kstat_open ();
12080 return 0;
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_lib_kstat_kstat_open=yes
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_lib_kstat_kstat_open=no
12102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12105 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12106 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12107 if test $ac_cv_lib_kstat_kstat_open = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109 #define HAVE_LIBKSTAT 1
12110 _ACEOF
12112 LIBS="-lkstat $LIBS"
12116 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12118 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12119 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12120 # to get the right answer into the cache.
12121 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12122 if test $ac_have_func = no; then
12123 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12124 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12125 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lelf $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 /* Override any gcc2 internal prototype to avoid an error. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12144 char elf_begin ();
12146 main ()
12148 elf_begin ();
12150 return 0;
12152 _ACEOF
12153 rm -f conftest.$ac_objext conftest$ac_exeext
12154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_elf_elf_begin=yes
12166 else
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ac_cv_lib_elf_elf_begin=no
12172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12173 LIBS=$ac_check_lib_save_LIBS
12175 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12176 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12177 if test $ac_cv_lib_elf_elf_begin = yes; then
12178 LIBS="-lelf $LIBS"
12182 if test $ac_have_func = no; then
12183 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12184 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12185 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lkvm $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 #line $LINENO "configure"
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char kvm_open ();
12206 main ()
12208 kvm_open ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_kvm_kvm_open=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_kvm_kvm_open=no
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233 LIBS=$ac_check_lib_save_LIBS
12235 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12237 if test $ac_cv_lib_kvm_kvm_open = yes; then
12238 LIBS="-lkvm $LIBS"
12241 # Check for the 4.4BSD definition of getloadavg.
12242 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-lutil $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any gcc2 internal prototype to avoid an error. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char getloadavg ();
12265 main ()
12267 getloadavg ();
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_util_getloadavg=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_util_getloadavg=no
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12295 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12296 if test $ac_cv_lib_util_getloadavg = yes; then
12297 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12302 if test $ac_have_func = no; then
12303 # There is a commonly available library for RS/6000 AIX.
12304 # Since it is not a standard part of AIX, it might be installed locally.
12305 ac_getloadavg_LIBS=$LIBS
12306 LIBS="-L/usr/local/lib $LIBS"
12307 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12308 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12309 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-lgetloadavg $LIBS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 #line $LINENO "configure"
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328 char getloadavg ();
12330 main ()
12332 getloadavg ();
12334 return 0;
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_getloadavg_getloadavg=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_getloadavg_getloadavg=no
12356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12359 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12360 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12361 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12362 LIBS="-lgetloadavg $LIBS"
12363 else
12364 LIBS=$ac_getloadavg_LIBS
12369 # Make sure it is really in the library, if we think we found it,
12370 # otherwise set up the replacement function.
12372 for ac_func in getloadavg
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"
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
12414 #endif
12417 main ()
12419 return f != $ac_func;
12421 return 0;
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
12441 eval "$as_ac_var=no"
12443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
12452 else
12453 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12455 cat >>confdefs.h <<\_ACEOF
12456 #define C_GETLOADAVG 1
12457 _ACEOF
12459 # Figure out what our getloadavg.c needs.
12460 ac_have_func=no
12461 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12463 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12464 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12468 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12469 else
12470 # Is the header compilable?
12471 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12472 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <sys/dg_sys_info.h>
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_header_compiler=yes
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_header_compiler=no
12502 rm -f conftest.$ac_objext conftest.$ac_ext
12503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12504 echo "${ECHO_T}$ac_header_compiler" >&6
12506 # Is the header present?
12507 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12508 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 #include <sys/dg_sys_info.h>
12517 _ACEOF
12518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } >/dev/null; then
12526 if test -s conftest.err; then
12527 ac_cpp_err=$ac_c_preproc_warn_flag
12528 else
12529 ac_cpp_err=
12531 else
12532 ac_cpp_err=yes
12534 if test -z "$ac_cpp_err"; then
12535 ac_header_preproc=yes
12536 else
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 ac_header_preproc=no
12542 rm -f conftest.err conftest.$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12544 echo "${ECHO_T}$ac_header_preproc" >&6
12546 # So? What about this header?
12547 case $ac_header_compiler:$ac_header_preproc in
12548 yes:no )
12549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12550 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12554 cat <<\_ASBOX
12555 ## ------------------------------------ ##
12556 ## Report this to bug-autoconf@gnu.org. ##
12557 ## ------------------------------------ ##
12558 _ASBOX
12560 sed "s/^/$as_me: WARNING: /" >&2
12562 no:yes )
12563 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12564 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12566 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12568 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12570 cat <<\_ASBOX
12571 ## ------------------------------------ ##
12572 ## Report this to bug-autoconf@gnu.org. ##
12573 ## ------------------------------------ ##
12574 _ASBOX
12576 sed "s/^/$as_me: WARNING: /" >&2
12578 esac
12579 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12580 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12581 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12590 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12591 ac_have_func=yes
12593 cat >>confdefs.h <<\_ACEOF
12594 #define DGUX 1
12595 _ACEOF
12598 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12599 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12600 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603 ac_check_lib_save_LIBS=$LIBS
12604 LIBS="-ldgc $LIBS"
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any gcc2 internal prototype to avoid an error. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619 char dg_sys_info ();
12621 main ()
12623 dg_sys_info ();
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_lib_dgc_dg_sys_info=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_cv_lib_dgc_dg_sys_info=no
12647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12650 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12651 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12652 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_LIBDGC 1
12655 _ACEOF
12657 LIBS="-ldgc $LIBS"
12665 if test "${ac_cv_header_locale_h+set}" = set; then
12666 echo "$as_me:$LINENO: checking for locale.h" >&5
12667 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12668 if test "${ac_cv_header_locale_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12672 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12673 else
12674 # Is the header compilable?
12675 echo "$as_me:$LINENO: checking locale.h usability" >&5
12676 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12677 cat >conftest.$ac_ext <<_ACEOF
12678 #line $LINENO "configure"
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 #include <locale.h>
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -s conftest.$ac_objext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_header_compiler=yes
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_header_compiler=no
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708 echo "${ECHO_T}$ac_header_compiler" >&6
12710 # Is the header present?
12711 echo "$as_me:$LINENO: checking locale.h presence" >&5
12712 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12713 cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #include <locale.h>
12721 _ACEOF
12722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev/null; then
12730 if test -s conftest.err; then
12731 ac_cpp_err=$ac_c_preproc_warn_flag
12732 else
12733 ac_cpp_err=
12735 else
12736 ac_cpp_err=yes
12738 if test -z "$ac_cpp_err"; then
12739 ac_header_preproc=yes
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12744 ac_header_preproc=no
12746 rm -f conftest.err conftest.$ac_ext
12747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12748 echo "${ECHO_T}$ac_header_preproc" >&6
12750 # So? What about this header?
12751 case $ac_header_compiler:$ac_header_preproc in
12752 yes:no )
12753 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12754 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12756 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12758 cat <<\_ASBOX
12759 ## ------------------------------------ ##
12760 ## Report this to bug-autoconf@gnu.org. ##
12761 ## ------------------------------------ ##
12762 _ASBOX
12764 sed "s/^/$as_me: WARNING: /" >&2
12766 no:yes )
12767 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12768 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12770 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12772 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12774 cat <<\_ASBOX
12775 ## ------------------------------------ ##
12776 ## Report this to bug-autoconf@gnu.org. ##
12777 ## ------------------------------------ ##
12778 _ASBOX
12780 sed "s/^/$as_me: WARNING: /" >&2
12782 esac
12783 echo "$as_me:$LINENO: checking for locale.h" >&5
12784 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12785 if test "${ac_cv_header_locale_h+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 ac_cv_header_locale_h=$ac_header_preproc
12790 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12791 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12797 for ac_func in setlocale
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 cat >conftest.$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 /* System header to define __stub macros and hopefully few prototypes,
12813 which can conflict with char $ac_func (); below.
12814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 <limits.h> exists even on freestanding compilers. */
12816 #ifdef __STDC__
12817 # include <limits.h>
12818 #else
12819 # include <assert.h>
12820 #endif
12821 /* Override any gcc2 internal prototype to avoid an error. */
12822 #ifdef __cplusplus
12823 extern "C"
12825 #endif
12826 /* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12828 char $ac_func ();
12829 /* The GNU C library defines this for functions which it implements
12830 to always fail with ENOSYS. Some functions are actually named
12831 something starting with __ and the normal name is an alias. */
12832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12833 choke me
12834 #else
12835 char (*f) () = $ac_func;
12836 #endif
12837 #ifdef __cplusplus
12839 #endif
12842 main ()
12844 return f != $ac_func;
12846 return 0;
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 eval "$as_ac_var=yes"
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 eval "$as_ac_var=no"
12868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12872 if test `eval echo '${'$as_ac_var'}'` = yes; then
12873 cat >>confdefs.h <<_ACEOF
12874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12875 _ACEOF
12878 done
12881 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12882 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12883 # Irix 4.0.5F has the header but not the library.
12884 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12885 ac_have_func=yes
12887 cat >>confdefs.h <<\_ACEOF
12888 #define SVR4 1
12889 _ACEOF
12893 if test $ac_have_func = no; then
12894 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12895 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12896 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12897 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12901 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12902 else
12903 # Is the header compilable?
12904 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12905 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 $ac_includes_default
12914 #include <inq_stats/cpustats.h>
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_header_compiler=yes
12929 else
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_header_compiler=no
12935 rm -f conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12941 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12942 cat >conftest.$ac_ext <<_ACEOF
12943 #line $LINENO "configure"
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <inq_stats/cpustats.h>
12950 _ACEOF
12951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } >/dev/null; then
12959 if test -s conftest.err; then
12960 ac_cpp_err=$ac_c_preproc_warn_flag
12961 else
12962 ac_cpp_err=
12964 else
12965 ac_cpp_err=yes
12967 if test -z "$ac_cpp_err"; then
12968 ac_header_preproc=yes
12969 else
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_header_preproc=no
12975 rm -f conftest.err conftest.$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12979 # So? What about this header?
12980 case $ac_header_compiler:$ac_header_preproc in
12981 yes:no )
12982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12985 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12987 cat <<\_ASBOX
12988 ## ------------------------------------ ##
12989 ## Report this to bug-autoconf@gnu.org. ##
12990 ## ------------------------------------ ##
12991 _ASBOX
12993 sed "s/^/$as_me: WARNING: /" >&2
12995 no:yes )
12996 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12997 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12999 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13001 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13003 cat <<\_ASBOX
13004 ## ------------------------------------ ##
13005 ## Report this to bug-autoconf@gnu.org. ##
13006 ## ------------------------------------ ##
13007 _ASBOX
13009 sed "s/^/$as_me: WARNING: /" >&2
13011 esac
13012 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13013 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13014 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13019 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13020 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13023 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13024 ac_have_func=yes
13026 cat >>confdefs.h <<\_ACEOF
13027 #define UMAX 1
13028 _ACEOF
13031 cat >>confdefs.h <<\_ACEOF
13032 #define UMAX4_3 1
13033 _ACEOF
13040 if test $ac_have_func = no; then
13041 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13042 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13043 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13044 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13048 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13049 else
13050 # Is the header compilable?
13051 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13052 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <sys/cpustats.h>
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_header_compiler=yes
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_header_compiler=no
13082 rm -f conftest.$ac_objext conftest.$ac_ext
13083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084 echo "${ECHO_T}$ac_header_compiler" >&6
13086 # Is the header present?
13087 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13088 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <sys/cpustats.h>
13097 _ACEOF
13098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } >/dev/null; then
13106 if test -s conftest.err; then
13107 ac_cpp_err=$ac_c_preproc_warn_flag
13108 else
13109 ac_cpp_err=
13111 else
13112 ac_cpp_err=yes
13114 if test -z "$ac_cpp_err"; then
13115 ac_header_preproc=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_header_preproc=no
13122 rm -f conftest.err conftest.$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13124 echo "${ECHO_T}$ac_header_preproc" >&6
13126 # So? What about this header?
13127 case $ac_header_compiler:$ac_header_preproc in
13128 yes:no )
13129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13130 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13134 cat <<\_ASBOX
13135 ## ------------------------------------ ##
13136 ## Report this to bug-autoconf@gnu.org. ##
13137 ## ------------------------------------ ##
13138 _ASBOX
13140 sed "s/^/$as_me: WARNING: /" >&2
13142 no:yes )
13143 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13144 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13146 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13148 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13150 cat <<\_ASBOX
13151 ## ------------------------------------ ##
13152 ## Report this to bug-autoconf@gnu.org. ##
13153 ## ------------------------------------ ##
13154 _ASBOX
13156 sed "s/^/$as_me: WARNING: /" >&2
13158 esac
13159 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13160 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13161 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13170 if test $ac_cv_header_sys_cpustats_h = yes; then
13171 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13172 #define UMAX 1
13173 _ACEOF
13180 if test $ac_have_func = no; then
13182 for ac_header in mach/mach.h
13184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193 else
13194 # Is the header compilable?
13195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <$ac_header>
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler=yes
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_header_compiler=no
13226 rm -f conftest.$ac_objext conftest.$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228 echo "${ECHO_T}$ac_header_compiler" >&6
13230 # Is the header present?
13231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240 #include <$ac_header>
13241 _ACEOF
13242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } >/dev/null; then
13250 if test -s conftest.err; then
13251 ac_cpp_err=$ac_c_preproc_warn_flag
13252 else
13253 ac_cpp_err=
13255 else
13256 ac_cpp_err=yes
13258 if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_header_preproc=no
13266 rm -f conftest.err conftest.$ac_ext
13267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268 echo "${ECHO_T}$ac_header_preproc" >&6
13270 # So? What about this header?
13271 case $ac_header_compiler:$ac_header_preproc in
13272 yes:no )
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13278 cat <<\_ASBOX
13279 ## ------------------------------------ ##
13280 ## Report this to bug-autoconf@gnu.org. ##
13281 ## ------------------------------------ ##
13282 _ASBOX
13284 sed "s/^/$as_me: WARNING: /" >&2
13286 no:yes )
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13294 cat <<\_ASBOX
13295 ## ------------------------------------ ##
13296 ## Report this to bug-autoconf@gnu.org. ##
13297 ## ------------------------------------ ##
13298 _ASBOX
13300 sed "s/^/$as_me: WARNING: /" >&2
13302 esac
13303 echo "$as_me:$LINENO: checking for $ac_header" >&5
13304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308 eval "$as_ac_Header=$ac_header_preproc"
13310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13315 cat >>confdefs.h <<_ACEOF
13316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13317 _ACEOF
13321 done
13326 for ac_header in nlist.h
13328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330 echo "$as_me:$LINENO: checking for $ac_header" >&5
13331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13337 else
13338 # Is the header compilable?
13339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13342 #line $LINENO "configure"
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 $ac_includes_default
13349 #include <$ac_header>
13350 _ACEOF
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -s conftest.$ac_objext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_header_compiler=yes
13364 else
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ac_header_compiler=no
13370 rm -f conftest.$ac_objext conftest.$ac_ext
13371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372 echo "${ECHO_T}$ac_header_compiler" >&6
13374 # Is the header present?
13375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13377 cat >conftest.$ac_ext <<_ACEOF
13378 #line $LINENO "configure"
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 #include <$ac_header>
13385 _ACEOF
13386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } >/dev/null; then
13394 if test -s conftest.err; then
13395 ac_cpp_err=$ac_c_preproc_warn_flag
13396 else
13397 ac_cpp_err=
13399 else
13400 ac_cpp_err=yes
13402 if test -z "$ac_cpp_err"; then
13403 ac_header_preproc=yes
13404 else
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 ac_header_preproc=no
13410 rm -f conftest.err conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412 echo "${ECHO_T}$ac_header_preproc" >&6
13414 # So? What about this header?
13415 case $ac_header_compiler:$ac_header_preproc in
13416 yes:no )
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13422 cat <<\_ASBOX
13423 ## ------------------------------------ ##
13424 ## Report this to bug-autoconf@gnu.org. ##
13425 ## ------------------------------------ ##
13426 _ASBOX
13428 sed "s/^/$as_me: WARNING: /" >&2
13430 no:yes )
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13438 cat <<\_ASBOX
13439 ## ------------------------------------ ##
13440 ## Report this to bug-autoconf@gnu.org. ##
13441 ## ------------------------------------ ##
13442 _ASBOX
13444 sed "s/^/$as_me: WARNING: /" >&2
13446 esac
13447 echo "$as_me:$LINENO: checking for $ac_header" >&5
13448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 eval "$as_ac_Header=$ac_header_preproc"
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13459 cat >>confdefs.h <<_ACEOF
13460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13461 _ACEOF
13462 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13463 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13464 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <nlist.h>
13477 main ()
13479 static struct nlist ac_aggr;
13480 if (ac_aggr.n_un.n_name)
13481 return 0;
13483 return 0;
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_member_struct_nlist_n_un_n_name=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 #include <nlist.h>
13513 main ()
13515 static struct nlist ac_aggr;
13516 if (sizeof ac_aggr.n_un.n_name)
13517 return 0;
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_member_struct_nlist_n_un_n_name=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_cv_member_struct_nlist_n_un_n_name=no
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13546 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13547 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13551 _ACEOF
13554 cat >>confdefs.h <<\_ACEOF
13555 #define NLIST_NAME_UNION 1
13556 _ACEOF
13563 done
13566 done
13569 # Some definitions of getloadavg require that the program be installed setgid.
13570 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13571 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13572 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13583 #ifdef LDAV_PRIVILEGED
13584 Yowza Am I SETGID yet
13585 #endif
13586 _ACEOF
13587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13588 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13589 ac_cv_func_getloadavg_setgid=yes
13590 else
13591 ac_cv_func_getloadavg_setgid=no
13593 rm -f conftest*
13596 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13597 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13598 if test $ac_cv_func_getloadavg_setgid = yes; then
13599 NEED_SETGID=true
13601 cat >>confdefs.h <<\_ACEOF
13602 #define GETLOADAVG_PRIVILEGED 1
13603 _ACEOF
13605 else
13606 NEED_SETGID=false
13609 if test $ac_cv_func_getloadavg_setgid = yes; then
13610 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13611 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13612 if test "${ac_cv_group_kmem+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13616 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13617 # If we got an error (system does not support symlinks), try without -L.
13618 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13619 ac_cv_group_kmem=`echo $ac_ls_output \
13620 | sed -ne 's/[ ][ ]*/ /g;
13621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13622 / /s/.* //;p;'`
13625 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13626 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13627 KMEM_GROUP=$ac_cv_group_kmem
13629 if test "x$ac_save_LIBS" = x; then
13630 GETLOADAVG_LIBS=$LIBS
13631 else
13632 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13634 LIBS=$ac_save_LIBS
13638 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13639 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13640 if test "${ac_cv_sys_largefile_source+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 while :; do
13644 ac_cv_sys_largefile_source=no
13645 cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 #include <stdio.h>
13654 main ()
13656 return !fseeko;
13658 return 0;
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 break
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13680 cat >conftest.$ac_ext <<_ACEOF
13681 #line $LINENO "configure"
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #define _LARGEFILE_SOURCE 1
13688 #include <stdio.h>
13690 main ()
13692 return !fseeko;
13694 return 0;
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sys_largefile_source=1; break
13710 else
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13715 rm -f conftest.$ac_objext conftest.$ac_ext
13716 break
13717 done
13719 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13720 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13721 if test "$ac_cv_sys_largefile_source" != no; then
13723 cat >>confdefs.h <<_ACEOF
13724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13725 _ACEOF
13728 rm -f conftest*
13730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13731 # in glibc 2.1.3, but that breaks too many other things.
13732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13733 echo "$as_me:$LINENO: checking for fseeko" >&5
13734 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13735 if test "${ac_cv_func_fseeko+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <stdio.h>
13747 main ()
13749 return fseeko && fseeko (stdin, 0, 0);
13751 return 0;
13753 _ACEOF
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_func_fseeko=yes
13767 else
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_func_fseeko=no
13773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13776 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13777 if test $ac_cv_func_fseeko = yes; then
13779 cat >>confdefs.h <<\_ACEOF
13780 #define HAVE_FSEEKO 1
13781 _ACEOF
13786 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13787 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13788 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791 # Use it with a single arg.
13792 cat >conftest.$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13801 main ()
13803 getpgrp (0);
13805 return 0;
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_func_getpgrp_void=no
13821 else
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 ac_cv_func_getpgrp_void=yes
13827 rm -f conftest.$ac_objext conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13831 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13832 if test $ac_cv_func_getpgrp_void = yes; then
13834 cat >>confdefs.h <<\_ACEOF
13835 #define GETPGRP_VOID 1
13836 _ACEOF
13841 # UNIX98 PTYs.
13843 for ac_func in grantpt
13845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846 echo "$as_me:$LINENO: checking for $ac_func" >&5
13847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848 if eval "test \"\${$as_ac_var+set}\" = set"; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 /* System header to define __stub macros and hopefully few prototypes,
13859 which can conflict with char $ac_func (); below.
13860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13861 <limits.h> exists even on freestanding compilers. */
13862 #ifdef __STDC__
13863 # include <limits.h>
13864 #else
13865 # include <assert.h>
13866 #endif
13867 /* Override any gcc2 internal prototype to avoid an error. */
13868 #ifdef __cplusplus
13869 extern "C"
13871 #endif
13872 /* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13874 char $ac_func ();
13875 /* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879 choke me
13880 #else
13881 char (*f) () = $ac_func;
13882 #endif
13883 #ifdef __cplusplus
13885 #endif
13888 main ()
13890 return f != $ac_func;
13892 return 0;
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_var=yes"
13908 else
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 eval "$as_ac_var=no"
13914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13918 if test `eval echo '${'$as_ac_var'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13921 _ACEOF
13924 done
13927 # PTY-related GNU extensions.
13929 for ac_func in getpt
13931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13932 echo "$as_me:$LINENO: checking for $ac_func" >&5
13933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13934 if eval "test \"\${$as_ac_var+set}\" = set"; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 cat >conftest.$ac_ext <<_ACEOF
13938 #line $LINENO "configure"
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char $ac_func (); below.
13946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13947 <limits.h> exists even on freestanding compilers. */
13948 #ifdef __STDC__
13949 # include <limits.h>
13950 #else
13951 # include <assert.h>
13952 #endif
13953 /* Override any gcc2 internal prototype to avoid an error. */
13954 #ifdef __cplusplus
13955 extern "C"
13957 #endif
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960 char $ac_func ();
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13965 choke me
13966 #else
13967 char (*f) () = $ac_func;
13968 #endif
13969 #ifdef __cplusplus
13971 #endif
13974 main ()
13976 return f != $ac_func;
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest$ac_exeext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 eval "$as_ac_var=yes"
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 eval "$as_ac_var=no"
14000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004 if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h <<_ACEOF
14006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007 _ACEOF
14010 done
14013 # Check this now, so that we will NOT find the above functions in ncurses.
14014 # That is because we have not set up to link ncurses in lib-src.
14015 # It's better to believe a function is not available
14016 # than to expect to find it in ncurses.
14018 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14019 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14020 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023 ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-lncurses $LIBS"
14025 cat >conftest.$ac_ext <<_ACEOF
14026 #line $LINENO "configure"
14027 /* confdefs.h. */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14033 /* Override any gcc2 internal prototype to avoid an error. */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039 char tparm ();
14041 main ()
14043 tparm ();
14045 return 0;
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_ncurses_tparm=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_lib_ncurses_tparm=no
14067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14070 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14071 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14072 if test $ac_cv_lib_ncurses_tparm = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_LIBNCURSES 1
14075 _ACEOF
14077 LIBS="-lncurses $LIBS"
14082 # Do we need the Hesiod library to provide the support routines?
14083 if test "$with_hesiod" = yes ; then
14084 # Don't set $LIBS here -- see comments above.
14085 resolv=no
14086 echo "$as_me:$LINENO: checking for res_send" >&5
14087 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14088 if test "${ac_cv_func_res_send+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 /* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char res_send (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14102 #ifdef __STDC__
14103 # include <limits.h>
14104 #else
14105 # include <assert.h>
14106 #endif
14107 /* Override any gcc2 internal prototype to avoid an error. */
14108 #ifdef __cplusplus
14109 extern "C"
14111 #endif
14112 /* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14114 char res_send ();
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined (__stub_res_send) || defined (__stub___res_send)
14119 choke me
14120 #else
14121 char (*f) () = res_send;
14122 #endif
14123 #ifdef __cplusplus
14125 #endif
14128 main ()
14130 return f != res_send;
14132 return 0;
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_func_res_send=yes
14148 else
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_cv_func_res_send=no
14154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14157 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14158 if test $ac_cv_func_res_send = yes; then
14160 else
14161 echo "$as_me:$LINENO: checking for __res_send" >&5
14162 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14163 if test "${ac_cv_func___res_send+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 cat >conftest.$ac_ext <<_ACEOF
14167 #line $LINENO "configure"
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 /* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char __res_send (); below.
14175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14176 <limits.h> exists even on freestanding compilers. */
14177 #ifdef __STDC__
14178 # include <limits.h>
14179 #else
14180 # include <assert.h>
14181 #endif
14182 /* Override any gcc2 internal prototype to avoid an error. */
14183 #ifdef __cplusplus
14184 extern "C"
14186 #endif
14187 /* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14189 char __res_send ();
14190 /* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193 #if defined (__stub___res_send) || defined (__stub_____res_send)
14194 choke me
14195 #else
14196 char (*f) () = __res_send;
14197 #endif
14198 #ifdef __cplusplus
14200 #endif
14203 main ()
14205 return f != __res_send;
14207 return 0;
14209 _ACEOF
14210 rm -f conftest.$ac_objext conftest$ac_exeext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14212 (eval $ac_link) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_func___res_send=yes
14223 else
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_cv_func___res_send=no
14229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14232 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14233 if test $ac_cv_func___res_send = yes; then
14235 else
14236 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14237 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14238 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lresolv $LIBS"
14243 cat >conftest.$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257 char res_send ();
14259 main ()
14261 res_send ();
14263 return 0;
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_lib_resolv_res_send=yes
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_cv_lib_resolv_res_send=no
14285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14286 LIBS=$ac_check_lib_save_LIBS
14288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14289 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14290 if test $ac_cv_lib_resolv_res_send = yes; then
14291 resolv=yes
14292 else
14293 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14294 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14295 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 ac_check_lib_save_LIBS=$LIBS
14299 LIBS="-lresolv $LIBS"
14300 cat >conftest.$ac_ext <<_ACEOF
14301 #line $LINENO "configure"
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14308 /* Override any gcc2 internal prototype to avoid an error. */
14309 #ifdef __cplusplus
14310 extern "C"
14311 #endif
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14314 char __res_send ();
14316 main ()
14318 __res_send ();
14320 return 0;
14322 _ACEOF
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_lib_resolv___res_send=yes
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_lib_resolv___res_send=no
14342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14343 LIBS=$ac_check_lib_save_LIBS
14345 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14346 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14347 if test $ac_cv_lib_resolv___res_send = yes; then
14348 resolv=yes
14357 if test "$resolv" = yes ; then
14358 RESOLVLIB=-lresolv
14360 cat >>confdefs.h <<\_ACEOF
14361 #define HAVE_LIBRESOLV 1
14362 _ACEOF
14364 else
14365 RESOLVLIB=
14367 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14368 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14369 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 cat >conftest.$ac_ext <<_ACEOF
14373 #line $LINENO "configure"
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 /* System header to define __stub macros and hopefully few prototypes,
14380 which can conflict with char hes_getmailhost (); below.
14381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382 <limits.h> exists even on freestanding compilers. */
14383 #ifdef __STDC__
14384 # include <limits.h>
14385 #else
14386 # include <assert.h>
14387 #endif
14388 /* Override any gcc2 internal prototype to avoid an error. */
14389 #ifdef __cplusplus
14390 extern "C"
14392 #endif
14393 /* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395 char hes_getmailhost ();
14396 /* The GNU C library defines this for functions which it implements
14397 to always fail with ENOSYS. Some functions are actually named
14398 something starting with __ and the normal name is an alias. */
14399 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14400 choke me
14401 #else
14402 char (*f) () = hes_getmailhost;
14403 #endif
14404 #ifdef __cplusplus
14406 #endif
14409 main ()
14411 return f != hes_getmailhost;
14413 return 0;
14415 _ACEOF
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14418 (eval $ac_link) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_func_hes_getmailhost=yes
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_func_hes_getmailhost=no
14435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14437 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14438 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14439 if test $ac_cv_func_hes_getmailhost = yes; then
14441 else
14442 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14443 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14444 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lhesiod $RESOLVLIB $LIBS"
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14457 /* Override any gcc2 internal prototype to avoid an error. */
14458 #ifdef __cplusplus
14459 extern "C"
14460 #endif
14461 /* We use char because int might match the return type of a gcc2
14462 builtin and then its argument prototype would still apply. */
14463 char hes_getmailhost ();
14465 main ()
14467 hes_getmailhost ();
14469 return 0;
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_lib_hesiod_hes_getmailhost=yes
14485 else
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_lib_hesiod_hes_getmailhost=no
14491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14492 LIBS=$ac_check_lib_save_LIBS
14494 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14495 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14496 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14498 cat >>confdefs.h <<\_ACEOF
14499 #define HAVE_LIBHESIOD 1
14500 _ACEOF
14502 else
14510 # These tell us which Kerberos-related libraries to use.
14511 if test "${with_kerberos+set}" = set; then
14513 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14514 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14515 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-lcom_err $LIBS"
14520 cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 /* Override any gcc2 internal prototype to avoid an error. */
14529 #ifdef __cplusplus
14530 extern "C"
14531 #endif
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534 char com_err ();
14536 main ()
14538 com_err ();
14540 return 0;
14542 _ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 (eval $ac_link) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_com_err_com_err=yes
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 ac_cv_lib_com_err_com_err=no
14562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14563 LIBS=$ac_check_lib_save_LIBS
14565 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14566 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14567 if test $ac_cv_lib_com_err_com_err = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_LIBCOM_ERR 1
14570 _ACEOF
14572 LIBS="-lcom_err $LIBS"
14577 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14578 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14579 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lk5crypto $LIBS"
14584 cat >conftest.$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14592 /* Override any gcc2 internal prototype to avoid an error. */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char mit_des_cbc_encrypt ();
14600 main ()
14602 mit_des_cbc_encrypt ();
14604 return 0;
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14630 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14631 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define HAVE_LIBK5CRYPTO 1
14634 _ACEOF
14636 LIBS="-lk5crypto $LIBS"
14641 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14642 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14643 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646 ac_check_lib_save_LIBS=$LIBS
14647 LIBS="-lcrypto $LIBS"
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any gcc2 internal prototype to avoid an error. */
14657 #ifdef __cplusplus
14658 extern "C"
14659 #endif
14660 /* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14662 char mit_des_cbc_encrypt ();
14664 main ()
14666 mit_des_cbc_encrypt ();
14668 return 0;
14670 _ACEOF
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_check_lib_save_LIBS
14693 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14694 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14695 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697 #define HAVE_LIBCRYPTO 1
14698 _ACEOF
14700 LIBS="-lcrypto $LIBS"
14705 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14706 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14707 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710 ac_check_lib_save_LIBS=$LIBS
14711 LIBS="-lkrb5 $LIBS"
14712 cat >conftest.$ac_ext <<_ACEOF
14713 #line $LINENO "configure"
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 /* Override any gcc2 internal prototype to avoid an error. */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14726 char krb5_init_context ();
14728 main ()
14730 krb5_init_context ();
14732 return 0;
14734 _ACEOF
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_lib_krb5_krb5_init_context=yes
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 ac_cv_lib_krb5_krb5_init_context=no
14754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14755 LIBS=$ac_check_lib_save_LIBS
14757 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14758 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14759 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761 #define HAVE_LIBKRB5 1
14762 _ACEOF
14764 LIBS="-lkrb5 $LIBS"
14768 if test "${with_kerberos5+set}" != set; then
14770 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14771 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14772 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 ac_check_lib_save_LIBS=$LIBS
14776 LIBS="-ldes425 $LIBS"
14777 cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14785 /* Override any gcc2 internal prototype to avoid an error. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char des_cbc_encrypt ();
14793 main ()
14795 des_cbc_encrypt ();
14797 return 0;
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -s conftest$ac_exeext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_lib_des425_des_cbc_encrypt=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ac_cv_lib_des425_des_cbc_encrypt=no
14819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14820 LIBS=$ac_check_lib_save_LIBS
14822 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14823 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14824 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_LIBDES425 1
14827 _ACEOF
14829 LIBS="-ldes425 $LIBS"
14831 else
14833 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14834 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14835 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838 ac_check_lib_save_LIBS=$LIBS
14839 LIBS="-ldes $LIBS"
14840 cat >conftest.$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14842 /* confdefs.h. */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14848 /* Override any gcc2 internal prototype to avoid an error. */
14849 #ifdef __cplusplus
14850 extern "C"
14851 #endif
14852 /* We use char because int might match the return type of a gcc2
14853 builtin and then its argument prototype would still apply. */
14854 char des_cbc_encrypt ();
14856 main ()
14858 des_cbc_encrypt ();
14860 return 0;
14862 _ACEOF
14863 rm -f conftest.$ac_objext conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_cv_lib_des_des_cbc_encrypt=yes
14876 else
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_cv_lib_des_des_cbc_encrypt=no
14882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14885 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14886 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14887 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14888 cat >>confdefs.h <<_ACEOF
14889 #define HAVE_LIBDES 1
14890 _ACEOF
14892 LIBS="-ldes $LIBS"
14899 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14900 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14901 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904 ac_check_lib_save_LIBS=$LIBS
14905 LIBS="-lkrb4 $LIBS"
14906 cat >conftest.$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 /* Override any gcc2 internal prototype to avoid an error. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char krb_get_cred ();
14922 main ()
14924 krb_get_cred ();
14926 return 0;
14928 _ACEOF
14929 rm -f conftest.$ac_objext conftest$ac_exeext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14931 (eval $ac_link) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_krb4_krb_get_cred=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_krb4_krb_get_cred=no
14948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14952 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14953 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBKRB4 1
14956 _ACEOF
14958 LIBS="-lkrb4 $LIBS"
14960 else
14962 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14963 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14964 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967 ac_check_lib_save_LIBS=$LIBS
14968 LIBS="-lkrb $LIBS"
14969 cat >conftest.$ac_ext <<_ACEOF
14970 #line $LINENO "configure"
14971 /* confdefs.h. */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14977 /* Override any gcc2 internal prototype to avoid an error. */
14978 #ifdef __cplusplus
14979 extern "C"
14980 #endif
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char krb_get_cred ();
14985 main ()
14987 krb_get_cred ();
14989 return 0;
14991 _ACEOF
14992 rm -f conftest.$ac_objext conftest$ac_exeext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14994 (eval $ac_link) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -s conftest$ac_exeext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_lib_krb_krb_get_cred=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ac_cv_lib_krb_krb_get_cred=no
15011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15015 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15016 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018 #define HAVE_LIBKRB 1
15019 _ACEOF
15021 LIBS="-lkrb $LIBS"
15029 if test "${with_kerberos5+set}" = set; then
15031 for ac_header in krb5.h
15033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15035 echo "$as_me:$LINENO: checking for $ac_header" >&5
15036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15042 else
15043 # Is the header compilable?
15044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 $ac_includes_default
15054 #include <$ac_header>
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_header_compiler=yes
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_header_compiler=no
15075 rm -f conftest.$ac_objext conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6
15079 # Is the header present?
15080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15082 cat >conftest.$ac_ext <<_ACEOF
15083 #line $LINENO "configure"
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <$ac_header>
15090 _ACEOF
15091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15093 ac_status=$?
15094 grep -v '^ *+' conftest.er1 >conftest.err
15095 rm -f conftest.er1
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } >/dev/null; then
15099 if test -s conftest.err; then
15100 ac_cpp_err=$ac_c_preproc_warn_flag
15101 else
15102 ac_cpp_err=
15104 else
15105 ac_cpp_err=yes
15107 if test -z "$ac_cpp_err"; then
15108 ac_header_preproc=yes
15109 else
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_header_preproc=no
15115 rm -f conftest.err conftest.$ac_ext
15116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15117 echo "${ECHO_T}$ac_header_preproc" >&6
15119 # So? What about this header?
15120 case $ac_header_compiler:$ac_header_preproc in
15121 yes:no )
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15127 cat <<\_ASBOX
15128 ## ------------------------------------ ##
15129 ## Report this to bug-autoconf@gnu.org. ##
15130 ## ------------------------------------ ##
15131 _ASBOX
15133 sed "s/^/$as_me: WARNING: /" >&2
15135 no:yes )
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143 cat <<\_ASBOX
15144 ## ------------------------------------ ##
15145 ## Report this to bug-autoconf@gnu.org. ##
15146 ## ------------------------------------ ##
15147 _ASBOX
15149 sed "s/^/$as_me: WARNING: /" >&2
15151 esac
15152 echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 eval "$as_ac_Header=$ac_header_preproc"
15159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166 _ACEOF
15170 done
15172 else
15174 for ac_header in des.h
15176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15178 echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15185 else
15186 # Is the header compilable?
15187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15190 #line $LINENO "configure"
15191 /* confdefs.h. */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <$ac_header>
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 ac_header_compiler=yes
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_header_compiler=no
15218 rm -f conftest.$ac_objext conftest.$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6
15222 # Is the header present?
15223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15226 #line $LINENO "configure"
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <$ac_header>
15233 _ACEOF
15234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev/null; then
15242 if test -s conftest.err; then
15243 ac_cpp_err=$ac_c_preproc_warn_flag
15244 else
15245 ac_cpp_err=
15247 else
15248 ac_cpp_err=yes
15250 if test -z "$ac_cpp_err"; then
15251 ac_header_preproc=yes
15252 else
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_header_preproc=no
15258 rm -f conftest.err conftest.$ac_ext
15259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15260 echo "${ECHO_T}$ac_header_preproc" >&6
15262 # So? What about this header?
15263 case $ac_header_compiler:$ac_header_preproc in
15264 yes:no )
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270 cat <<\_ASBOX
15271 ## ------------------------------------ ##
15272 ## Report this to bug-autoconf@gnu.org. ##
15273 ## ------------------------------------ ##
15274 _ASBOX
15276 sed "s/^/$as_me: WARNING: /" >&2
15278 no:yes )
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15286 cat <<\_ASBOX
15287 ## ------------------------------------ ##
15288 ## Report this to bug-autoconf@gnu.org. ##
15289 ## ------------------------------------ ##
15290 _ASBOX
15292 sed "s/^/$as_me: WARNING: /" >&2
15294 esac
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300 eval "$as_ac_Header=$ac_header_preproc"
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15309 _ACEOF
15311 else
15313 for ac_header in kerberosIV/des.h
15315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15317 echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15324 else
15325 # Is the header compilable?
15326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15329 #line $LINENO "configure"
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 $ac_includes_default
15336 #include <$ac_header>
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler=yes
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_header_compiler=no
15357 rm -f conftest.$ac_objext conftest.$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6
15361 # Is the header present?
15362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h. */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 #include <$ac_header>
15372 _ACEOF
15373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } >/dev/null; then
15381 if test -s conftest.err; then
15382 ac_cpp_err=$ac_c_preproc_warn_flag
15383 else
15384 ac_cpp_err=
15386 else
15387 ac_cpp_err=yes
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_preproc=no
15397 rm -f conftest.err conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc in
15403 yes:no )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409 cat <<\_ASBOX
15410 ## ------------------------------------ ##
15411 ## Report this to bug-autoconf@gnu.org. ##
15412 ## ------------------------------------ ##
15413 _ASBOX
15415 sed "s/^/$as_me: WARNING: /" >&2
15417 no:yes )
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15425 cat <<\_ASBOX
15426 ## ------------------------------------ ##
15427 ## Report this to bug-autoconf@gnu.org. ##
15428 ## ------------------------------------ ##
15429 _ASBOX
15431 sed "s/^/$as_me: WARNING: /" >&2
15433 esac
15434 echo "$as_me:$LINENO: checking for $ac_header" >&5
15435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439 eval "$as_ac_Header=$ac_header_preproc"
15441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15446 cat >>confdefs.h <<_ACEOF
15447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15448 _ACEOF
15450 else
15452 for ac_header in kerberos/des.h
15454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15463 else
15464 # Is the header compilable?
15465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15467 cat >conftest.$ac_ext <<_ACEOF
15468 #line $LINENO "configure"
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15475 #include <$ac_header>
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_header_compiler=yes
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_header_compiler=no
15496 rm -f conftest.$ac_objext conftest.$ac_ext
15497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498 echo "${ECHO_T}$ac_header_compiler" >&6
15500 # Is the header present?
15501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15503 cat >conftest.$ac_ext <<_ACEOF
15504 #line $LINENO "configure"
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <$ac_header>
15511 _ACEOF
15512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev/null; then
15520 if test -s conftest.err; then
15521 ac_cpp_err=$ac_c_preproc_warn_flag
15522 else
15523 ac_cpp_err=
15525 else
15526 ac_cpp_err=yes
15528 if test -z "$ac_cpp_err"; then
15529 ac_header_preproc=yes
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_header_preproc=no
15536 rm -f conftest.err conftest.$ac_ext
15537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc in
15542 yes:no )
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15548 cat <<\_ASBOX
15549 ## ------------------------------------ ##
15550 ## Report this to bug-autoconf@gnu.org. ##
15551 ## ------------------------------------ ##
15552 _ASBOX
15554 sed "s/^/$as_me: WARNING: /" >&2
15556 no:yes )
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564 cat <<\_ASBOX
15565 ## ------------------------------------ ##
15566 ## Report this to bug-autoconf@gnu.org. ##
15567 ## ------------------------------------ ##
15568 _ASBOX
15570 sed "s/^/$as_me: WARNING: /" >&2
15572 esac
15573 echo "$as_me:$LINENO: checking for $ac_header" >&5
15574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578 eval "$as_ac_Header=$ac_header_preproc"
15580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587 _ACEOF
15591 done
15595 done
15599 done
15602 for ac_header in krb.h
15604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo "$as_me:$LINENO: checking for $ac_header" >&5
15607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15613 else
15614 # Is the header compilable?
15615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <$ac_header>
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_header_compiler=yes
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 ac_header_compiler=no
15646 rm -f conftest.$ac_objext conftest.$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6
15650 # Is the header present?
15651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15653 cat >conftest.$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 #include <$ac_header>
15661 _ACEOF
15662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } >/dev/null; then
15670 if test -s conftest.err; then
15671 ac_cpp_err=$ac_c_preproc_warn_flag
15672 else
15673 ac_cpp_err=
15675 else
15676 ac_cpp_err=yes
15678 if test -z "$ac_cpp_err"; then
15679 ac_header_preproc=yes
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_preproc=no
15686 rm -f conftest.err conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688 echo "${ECHO_T}$ac_header_preproc" >&6
15690 # So? What about this header?
15691 case $ac_header_compiler:$ac_header_preproc in
15692 yes:no )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 cat <<\_ASBOX
15699 ## ------------------------------------ ##
15700 ## Report this to bug-autoconf@gnu.org. ##
15701 ## ------------------------------------ ##
15702 _ASBOX
15704 sed "s/^/$as_me: WARNING: /" >&2
15706 no:yes )
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 cat <<\_ASBOX
15715 ## ------------------------------------ ##
15716 ## Report this to bug-autoconf@gnu.org. ##
15717 ## ------------------------------------ ##
15718 _ASBOX
15720 sed "s/^/$as_me: WARNING: /" >&2
15722 esac
15723 echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728 eval "$as_ac_Header=$ac_header_preproc"
15730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15737 _ACEOF
15739 else
15741 for ac_header in kerberosIV/krb.h
15743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15745 echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15752 else
15753 # Is the header compilable?
15754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15756 cat >conftest.$ac_ext <<_ACEOF
15757 #line $LINENO "configure"
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 #include <$ac_header>
15765 _ACEOF
15766 rm -f conftest.$ac_objext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768 (eval $ac_compile) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_header_compiler=yes
15779 else
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15785 rm -f conftest.$ac_objext conftest.$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787 echo "${ECHO_T}$ac_header_compiler" >&6
15789 # Is the header present?
15790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <$ac_header>
15800 _ACEOF
15801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 else
15812 ac_cpp_err=
15814 else
15815 ac_cpp_err=yes
15817 if test -z "$ac_cpp_err"; then
15818 ac_header_preproc=yes
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_header_preproc=no
15825 rm -f conftest.err conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15827 echo "${ECHO_T}$ac_header_preproc" >&6
15829 # So? What about this header?
15830 case $ac_header_compiler:$ac_header_preproc in
15831 yes:no )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 cat <<\_ASBOX
15838 ## ------------------------------------ ##
15839 ## Report this to bug-autoconf@gnu.org. ##
15840 ## ------------------------------------ ##
15841 _ASBOX
15843 sed "s/^/$as_me: WARNING: /" >&2
15845 no:yes )
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15853 cat <<\_ASBOX
15854 ## ------------------------------------ ##
15855 ## Report this to bug-autoconf@gnu.org. ##
15856 ## ------------------------------------ ##
15857 _ASBOX
15859 sed "s/^/$as_me: WARNING: /" >&2
15861 esac
15862 echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867 eval "$as_ac_Header=$ac_header_preproc"
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h <<_ACEOF
15875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15876 _ACEOF
15878 else
15880 for ac_header in kerberos/krb.h
15882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo "$as_me:$LINENO: checking for $ac_header" >&5
15885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15891 else
15892 # Is the header compilable?
15893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15895 cat >conftest.$ac_ext <<_ACEOF
15896 #line $LINENO "configure"
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15903 #include <$ac_header>
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_header_compiler=yes
15918 else
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_compiler=no
15924 rm -f conftest.$ac_objext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 echo "${ECHO_T}$ac_header_compiler" >&6
15928 # Is the header present?
15929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15931 cat >conftest.$ac_ext <<_ACEOF
15932 #line $LINENO "configure"
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <$ac_header>
15939 _ACEOF
15940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } >/dev/null; then
15948 if test -s conftest.err; then
15949 ac_cpp_err=$ac_c_preproc_warn_flag
15950 else
15951 ac_cpp_err=
15953 else
15954 ac_cpp_err=yes
15956 if test -z "$ac_cpp_err"; then
15957 ac_header_preproc=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_header_preproc=no
15964 rm -f conftest.err conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc in
15970 yes:no )
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15976 cat <<\_ASBOX
15977 ## ------------------------------------ ##
15978 ## Report this to bug-autoconf@gnu.org. ##
15979 ## ------------------------------------ ##
15980 _ASBOX
15982 sed "s/^/$as_me: WARNING: /" >&2
15984 no:yes )
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 cat <<\_ASBOX
15993 ## ------------------------------------ ##
15994 ## Report this to bug-autoconf@gnu.org. ##
15995 ## ------------------------------------ ##
15996 _ASBOX
15998 sed "s/^/$as_me: WARNING: /" >&2
16000 esac
16001 echo "$as_me:$LINENO: checking for $ac_header" >&5
16002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006 eval "$as_ac_Header=$ac_header_preproc"
16008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16013 cat >>confdefs.h <<_ACEOF
16014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16015 _ACEOF
16019 done
16023 done
16027 done
16031 for ac_header in com_err.h
16033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16035 echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16042 else
16043 # Is the header compilable?
16044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16046 cat >conftest.$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 #include <$ac_header>
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler=yes
16069 else
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_header_compiler=no
16075 rm -f conftest.$ac_objext conftest.$ac_ext
16076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6
16079 # Is the header present?
16080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16082 cat >conftest.$ac_ext <<_ACEOF
16083 #line $LINENO "configure"
16084 /* confdefs.h. */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 #include <$ac_header>
16090 _ACEOF
16091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev/null; then
16099 if test -s conftest.err; then
16100 ac_cpp_err=$ac_c_preproc_warn_flag
16101 else
16102 ac_cpp_err=
16104 else
16105 ac_cpp_err=yes
16107 if test -z "$ac_cpp_err"; then
16108 ac_header_preproc=yes
16109 else
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_preproc=no
16115 rm -f conftest.err conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117 echo "${ECHO_T}$ac_header_preproc" >&6
16119 # So? What about this header?
16120 case $ac_header_compiler:$ac_header_preproc in
16121 yes:no )
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16127 cat <<\_ASBOX
16128 ## ------------------------------------ ##
16129 ## Report this to bug-autoconf@gnu.org. ##
16130 ## ------------------------------------ ##
16131 _ASBOX
16133 sed "s/^/$as_me: WARNING: /" >&2
16135 no:yes )
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143 cat <<\_ASBOX
16144 ## ------------------------------------ ##
16145 ## Report this to bug-autoconf@gnu.org. ##
16146 ## ------------------------------------ ##
16147 _ASBOX
16149 sed "s/^/$as_me: WARNING: /" >&2
16151 esac
16152 echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157 eval "$as_ac_Header=$ac_header_preproc"
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16164 cat >>confdefs.h <<_ACEOF
16165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16166 _ACEOF
16170 done
16174 # Solaris requires -lintl if you want strerror (which calls dgettext)
16175 # to return localized messages.
16177 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16178 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16179 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 ac_check_lib_save_LIBS=$LIBS
16183 LIBS="-lintl $LIBS"
16184 cat >conftest.$ac_ext <<_ACEOF
16185 #line $LINENO "configure"
16186 /* confdefs.h. */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16192 /* Override any gcc2 internal prototype to avoid an error. */
16193 #ifdef __cplusplus
16194 extern "C"
16195 #endif
16196 /* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16198 char dgettext ();
16200 main ()
16202 dgettext ();
16204 return 0;
16206 _ACEOF
16207 rm -f conftest.$ac_objext conftest$ac_exeext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209 (eval $ac_link) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -s conftest$ac_exeext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_lib_intl_dgettext=yes
16220 else
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_cv_lib_intl_dgettext=no
16226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16229 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16230 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16231 if test $ac_cv_lib_intl_dgettext = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_LIBINTL 1
16234 _ACEOF
16236 LIBS="-lintl $LIBS"
16241 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16242 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16243 if test "${emacs_cv_localtime_cache+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246 if test x$ac_cv_func_tzset = xyes; then
16247 if test "$cross_compiling" = yes; then
16248 # If we have tzset, assume the worst when cross-compiling.
16249 emacs_cv_localtime_cache=yes
16250 else
16251 cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 #include <time.h>
16259 extern char **environ;
16260 unset_TZ ()
16262 char **from, **to;
16263 for (to = from = environ; (*to = *from); from++)
16264 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16265 to++;
16267 char TZ_GMT0[] = "TZ=GMT0";
16268 char TZ_PST8[] = "TZ=PST8";
16269 main()
16271 time_t now = time ((time_t *) 0);
16272 int hour_GMT0, hour_unset;
16273 if (putenv (TZ_GMT0) != 0)
16274 exit (1);
16275 hour_GMT0 = localtime (&now)->tm_hour;
16276 unset_TZ ();
16277 hour_unset = localtime (&now)->tm_hour;
16278 if (putenv (TZ_PST8) != 0)
16279 exit (1);
16280 if (localtime (&now)->tm_hour == hour_GMT0)
16281 exit (1);
16282 unset_TZ ();
16283 if (localtime (&now)->tm_hour != hour_unset)
16284 exit (1);
16285 exit (0);
16287 _ACEOF
16288 rm -f conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 emacs_cv_localtime_cache=no
16300 else
16301 echo "$as_me: program exited with status $ac_status" >&5
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ( exit $ac_status )
16306 emacs_cv_localtime_cache=yes
16308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16310 else
16311 # If we lack tzset, report that localtime does not cache TZ,
16312 # since we can't invalidate the cache if we don't have tzset.
16313 emacs_cv_localtime_cache=no
16316 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16317 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16318 if test $emacs_cv_localtime_cache = yes; then
16320 cat >>confdefs.h <<\_ACEOF
16321 #define LOCALTIME_CACHE 1
16322 _ACEOF
16326 if test "x$HAVE_TIMEVAL" = xyes; then
16328 for ac_func in gettimeofday
16330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333 if eval "test \"\${$as_ac_var+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 cat >conftest.$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 /* System header to define __stub macros and hopefully few prototypes,
16344 which can conflict with char $ac_func (); below.
16345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16346 <limits.h> exists even on freestanding compilers. */
16347 #ifdef __STDC__
16348 # include <limits.h>
16349 #else
16350 # include <assert.h>
16351 #endif
16352 /* Override any gcc2 internal prototype to avoid an error. */
16353 #ifdef __cplusplus
16354 extern "C"
16356 #endif
16357 /* We use char because int might match the return type of a gcc2
16358 builtin and then its argument prototype would still apply. */
16359 char $ac_func ();
16360 /* The GNU C library defines this for functions which it implements
16361 to always fail with ENOSYS. Some functions are actually named
16362 something starting with __ and the normal name is an alias. */
16363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364 choke me
16365 #else
16366 char (*f) () = $ac_func;
16367 #endif
16368 #ifdef __cplusplus
16370 #endif
16373 main ()
16375 return f != $ac_func;
16377 return 0;
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -s conftest$ac_exeext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 eval "$as_ac_var=yes"
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 eval "$as_ac_var=no"
16399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403 if test `eval echo '${'$as_ac_var'}'` = yes; then
16404 cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406 _ACEOF
16409 done
16411 if test $ac_cv_func_gettimeofday = yes; then
16412 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16413 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16414 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 cat >conftest.$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16425 #ifdef TIME_WITH_SYS_TIME
16426 #include <sys/time.h>
16427 #include <time.h>
16428 #else
16429 #ifdef HAVE_SYS_TIME_H
16430 #include <sys/time.h>
16431 #else
16432 #include <time.h>
16433 #endif
16434 #endif
16436 main ()
16438 struct timeval time;
16439 gettimeofday (&time, 0);
16441 return 0;
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -s conftest.$ac_objext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 emacs_cv_gettimeofday_two_arguments=yes
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 emacs_cv_gettimeofday_two_arguments=no
16463 rm -f conftest.$ac_objext conftest.$ac_ext
16465 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16466 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16467 if test $emacs_cv_gettimeofday_two_arguments = no; then
16469 cat >>confdefs.h <<\_ACEOF
16470 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16471 _ACEOF
16477 if test "$ac_cv_func_gettimeofday" = yes; then
16478 echo "$as_me:$LINENO: checking for struct timezone" >&5
16479 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16480 if test "${emacs_cv_struct_timezone+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483 cat >conftest.$ac_ext <<_ACEOF
16484 #line $LINENO "configure"
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 #include <sys/time.h>
16492 main ()
16494 struct timezone tz;
16496 return 0;
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 if test "$cross_compiling" = yes; then
16512 emacs_cv_struct_timezone=yes
16513 else
16514 cat >conftest.$ac_ext <<_ACEOF
16515 #line $LINENO "configure"
16516 /* confdefs.h. */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16522 #ifdef TIME_WITH_SYS_TIME
16523 #include <sys/time.h>
16524 #include <time.h>
16525 #else
16526 #ifdef HAVE_SYS_TIME_H
16527 #include <sys/time.h>
16528 #else
16529 #include <time.h>
16530 #endif
16531 #endif
16532 main () {
16533 struct timeval time;
16534 struct timezone dummy;
16535 exit (gettimeofday (&time, &dummy));
16537 _ACEOF
16538 rm -f conftest$ac_exeext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16540 (eval $ac_link) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 emacs_cv_struct_timezone=yes
16550 else
16551 echo "$as_me: program exited with status $ac_status" >&5
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ( exit $ac_status )
16556 emacs_cv_struct_timezone=no
16558 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16560 else
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 emacs_cv_struct_timezone=no
16566 rm -f conftest.$ac_objext conftest.$ac_ext
16568 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16569 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16572 ok_so_far=yes
16573 echo "$as_me:$LINENO: checking for socket" >&5
16574 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16575 if test "${ac_cv_func_socket+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char socket (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16589 #ifdef __STDC__
16590 # include <limits.h>
16591 #else
16592 # include <assert.h>
16593 #endif
16594 /* Override any gcc2 internal prototype to avoid an error. */
16595 #ifdef __cplusplus
16596 extern "C"
16598 #endif
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16601 char socket ();
16602 /* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605 #if defined (__stub_socket) || defined (__stub___socket)
16606 choke me
16607 #else
16608 char (*f) () = socket;
16609 #endif
16610 #ifdef __cplusplus
16612 #endif
16615 main ()
16617 return f != socket;
16619 return 0;
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_socket=yes
16635 else
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_func_socket=no
16641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16643 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16644 echo "${ECHO_T}$ac_cv_func_socket" >&6
16645 if test $ac_cv_func_socket = yes; then
16647 else
16648 ok_so_far=no
16651 if test $ok_so_far = yes; then
16652 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16653 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16654 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16659 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16660 else
16661 # Is the header compilable?
16662 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16663 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16664 cat >conftest.$ac_ext <<_ACEOF
16665 #line $LINENO "configure"
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16672 #include <netinet/in.h>
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_header_compiler=yes
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_header_compiler=no
16693 rm -f conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16695 echo "${ECHO_T}$ac_header_compiler" >&6
16697 # Is the header present?
16698 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16699 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16701 #line $LINENO "configure"
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <netinet/in.h>
16708 _ACEOF
16709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null; then
16717 if test -s conftest.err; then
16718 ac_cpp_err=$ac_c_preproc_warn_flag
16719 else
16720 ac_cpp_err=
16722 else
16723 ac_cpp_err=yes
16725 if test -z "$ac_cpp_err"; then
16726 ac_header_preproc=yes
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_header_preproc=no
16733 rm -f conftest.err conftest.$ac_ext
16734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16735 echo "${ECHO_T}$ac_header_preproc" >&6
16737 # So? What about this header?
16738 case $ac_header_compiler:$ac_header_preproc in
16739 yes:no )
16740 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16741 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16745 cat <<\_ASBOX
16746 ## ------------------------------------ ##
16747 ## Report this to bug-autoconf@gnu.org. ##
16748 ## ------------------------------------ ##
16749 _ASBOX
16751 sed "s/^/$as_me: WARNING: /" >&2
16753 no:yes )
16754 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16755 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16757 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16759 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16761 cat <<\_ASBOX
16762 ## ------------------------------------ ##
16763 ## Report this to bug-autoconf@gnu.org. ##
16764 ## ------------------------------------ ##
16765 _ASBOX
16767 sed "s/^/$as_me: WARNING: /" >&2
16769 esac
16770 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16771 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16772 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 ac_cv_header_netinet_in_h=$ac_header_preproc
16777 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16778 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16781 if test $ac_cv_header_netinet_in_h = yes; then
16783 else
16784 ok_so_far=no
16789 if test $ok_so_far = yes; then
16790 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16791 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16792 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16793 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16797 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16798 else
16799 # Is the header compilable?
16800 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16801 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16802 cat >conftest.$ac_ext <<_ACEOF
16803 #line $LINENO "configure"
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16810 #include <arpa/inet.h>
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_header_compiler=yes
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_header_compiler=no
16831 rm -f conftest.$ac_objext conftest.$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833 echo "${ECHO_T}$ac_header_compiler" >&6
16835 # Is the header present?
16836 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16837 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16838 cat >conftest.$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 #include <arpa/inet.h>
16846 _ACEOF
16847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } >/dev/null; then
16855 if test -s conftest.err; then
16856 ac_cpp_err=$ac_c_preproc_warn_flag
16857 else
16858 ac_cpp_err=
16860 else
16861 ac_cpp_err=yes
16863 if test -z "$ac_cpp_err"; then
16864 ac_header_preproc=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_header_preproc=no
16871 rm -f conftest.err conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873 echo "${ECHO_T}$ac_header_preproc" >&6
16875 # So? What about this header?
16876 case $ac_header_compiler:$ac_header_preproc in
16877 yes:no )
16878 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16879 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16881 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16883 cat <<\_ASBOX
16884 ## ------------------------------------ ##
16885 ## Report this to bug-autoconf@gnu.org. ##
16886 ## ------------------------------------ ##
16887 _ASBOX
16889 sed "s/^/$as_me: WARNING: /" >&2
16891 no:yes )
16892 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16893 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16895 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16897 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16899 cat <<\_ASBOX
16900 ## ------------------------------------ ##
16901 ## Report this to bug-autoconf@gnu.org. ##
16902 ## ------------------------------------ ##
16903 _ASBOX
16905 sed "s/^/$as_me: WARNING: /" >&2
16907 esac
16908 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16909 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16910 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 ac_cv_header_arpa_inet_h=$ac_header_preproc
16915 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16916 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16919 if test $ac_cv_header_arpa_inet_h = yes; then
16921 else
16922 ok_so_far=no
16927 if test $ok_so_far = yes; then
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_INET_SOCKETS 1
16931 _ACEOF
16935 if test -f /usr/lpp/X11/bin/smt.exp; then
16937 cat >>confdefs.h <<\_ACEOF
16938 #define HAVE_AIX_SMT_EXP 1
16939 _ACEOF
16943 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16944 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16945 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16946 echo "$as_me:$LINENO: result: yes" >&5
16947 echo "${ECHO_T}yes" >&6
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_DEV_PTMX 1
16951 _ACEOF
16953 else
16954 echo "$as_me:$LINENO: result: no" >&5
16955 echo "${ECHO_T}no" >&6
16958 echo "$as_me:$LINENO: checking for pid_t" >&5
16959 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16960 if test "${ac_cv_type_pid_t+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963 cat >conftest.$ac_ext <<_ACEOF
16964 #line $LINENO "configure"
16965 /* confdefs.h. */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 $ac_includes_default
16972 main ()
16974 if ((pid_t *) 0)
16975 return 0;
16976 if (sizeof (pid_t))
16977 return 0;
16979 return 0;
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_type_pid_t=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_cv_type_pid_t=no
17001 rm -f conftest.$ac_objext conftest.$ac_ext
17003 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17005 if test $ac_cv_type_pid_t = yes; then
17007 else
17009 cat >>confdefs.h <<_ACEOF
17010 #define pid_t int
17011 _ACEOF
17017 for ac_header in unistd.h vfork.h
17019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17021 echo "$as_me:$LINENO: checking for $ac_header" >&5
17022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17028 else
17029 # Is the header compilable?
17030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17032 cat >conftest.$ac_ext <<_ACEOF
17033 #line $LINENO "configure"
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17040 #include <$ac_header>
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_header_compiler=yes
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 ac_header_compiler=no
17061 rm -f conftest.$ac_objext conftest.$ac_ext
17062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17063 echo "${ECHO_T}$ac_header_compiler" >&6
17065 # Is the header present?
17066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17068 cat >conftest.$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <$ac_header>
17076 _ACEOF
17077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } >/dev/null; then
17085 if test -s conftest.err; then
17086 ac_cpp_err=$ac_c_preproc_warn_flag
17087 else
17088 ac_cpp_err=
17090 else
17091 ac_cpp_err=yes
17093 if test -z "$ac_cpp_err"; then
17094 ac_header_preproc=yes
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_header_preproc=no
17101 rm -f conftest.err conftest.$ac_ext
17102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17103 echo "${ECHO_T}$ac_header_preproc" >&6
17105 # So? What about this header?
17106 case $ac_header_compiler:$ac_header_preproc in
17107 yes:no )
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17113 cat <<\_ASBOX
17114 ## ------------------------------------ ##
17115 ## Report this to bug-autoconf@gnu.org. ##
17116 ## ------------------------------------ ##
17117 _ASBOX
17119 sed "s/^/$as_me: WARNING: /" >&2
17121 no:yes )
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17129 cat <<\_ASBOX
17130 ## ------------------------------------ ##
17131 ## Report this to bug-autoconf@gnu.org. ##
17132 ## ------------------------------------ ##
17133 _ASBOX
17135 sed "s/^/$as_me: WARNING: /" >&2
17137 esac
17138 echo "$as_me:$LINENO: checking for $ac_header" >&5
17139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143 eval "$as_ac_Header=$ac_header_preproc"
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17152 _ACEOF
17156 done
17160 for ac_func in fork vfork
17162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 echo "$as_me:$LINENO: checking for $ac_func" >&5
17164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_var+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 /* System header to define __stub macros and hopefully few prototypes,
17176 which can conflict with char $ac_func (); below.
17177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178 <limits.h> exists even on freestanding compilers. */
17179 #ifdef __STDC__
17180 # include <limits.h>
17181 #else
17182 # include <assert.h>
17183 #endif
17184 /* Override any gcc2 internal prototype to avoid an error. */
17185 #ifdef __cplusplus
17186 extern "C"
17188 #endif
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17191 char $ac_func ();
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17196 choke me
17197 #else
17198 char (*f) () = $ac_func;
17199 #endif
17200 #ifdef __cplusplus
17202 #endif
17205 main ()
17207 return f != $ac_func;
17209 return 0;
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 eval "$as_ac_var=yes"
17225 else
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 eval "$as_ac_var=no"
17231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h <<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 _ACEOF
17241 done
17243 if test "x$ac_cv_func_fork" = xyes; then
17244 echo "$as_me:$LINENO: checking for working fork" >&5
17245 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17246 if test "${ac_cv_func_fork_works+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 else
17249 if test "$cross_compiling" = yes; then
17250 ac_cv_func_fork_works=cross
17251 else
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* By Ruediger Kuhlmann. */
17254 #include <sys/types.h>
17255 #if HAVE_UNISTD_H
17256 # include <unistd.h>
17257 #endif
17258 /* Some systems only have a dummy stub for fork() */
17259 int main ()
17261 if (fork() < 0)
17262 exit (1);
17263 exit (0);
17265 _ACEOF
17266 rm -f conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_func_fork_works=yes
17278 else
17279 echo "$as_me: program exited with status $ac_status" >&5
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ( exit $ac_status )
17284 ac_cv_func_fork_works=no
17286 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17289 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17290 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17292 else
17293 ac_cv_func_fork_works=$ac_cv_func_fork
17295 if test "x$ac_cv_func_fork_works" = xcross; then
17296 case $host in
17297 *-*-amigaos* | *-*-msdosdjgpp*)
17298 # Override, as these systems have only a dummy fork() stub
17299 ac_cv_func_fork_works=no
17302 ac_cv_func_fork_works=yes
17304 esac
17305 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17306 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17308 ac_cv_func_vfork_works=$ac_cv_func_vfork
17309 if test "x$ac_cv_func_vfork" = xyes; then
17310 echo "$as_me:$LINENO: checking for working vfork" >&5
17311 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17312 if test "${ac_cv_func_vfork_works+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_func_vfork_works=cross
17317 else
17318 cat >conftest.$ac_ext <<_ACEOF
17319 #line $LINENO "configure"
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 /* Thanks to Paul Eggert for this test. */
17326 #include <stdio.h>
17327 #include <stdlib.h>
17328 #include <sys/types.h>
17329 #include <sys/stat.h>
17330 #include <sys/wait.h>
17331 #if HAVE_UNISTD_H
17332 # include <unistd.h>
17333 #endif
17334 #if HAVE_VFORK_H
17335 # include <vfork.h>
17336 #endif
17337 /* On some sparc systems, changes by the child to local and incoming
17338 argument registers are propagated back to the parent. The compiler
17339 is told about this with #include <vfork.h>, but some compilers
17340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17341 static variable whose address is put into a register that is
17342 clobbered by the vfork. */
17343 static void
17344 #ifdef __cplusplus
17345 sparc_address_test (int arg)
17346 # else
17347 sparc_address_test (arg) int arg;
17348 #endif
17350 static pid_t child;
17351 if (!child) {
17352 child = vfork ();
17353 if (child < 0) {
17354 perror ("vfork");
17355 _exit(2);
17357 if (!child) {
17358 arg = getpid();
17359 write(-1, "", 0);
17360 _exit (arg);
17366 main ()
17368 pid_t parent = getpid ();
17369 pid_t child;
17371 sparc_address_test (0);
17373 child = vfork ();
17375 if (child == 0) {
17376 /* Here is another test for sparc vfork register problems. This
17377 test uses lots of local variables, at least as many local
17378 variables as main has allocated so far including compiler
17379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17381 reuse the register of parent for one of the local variables,
17382 since it will think that parent can't possibly be used any more
17383 in this routine. Assigning to the local variable will thus
17384 munge parent in the parent process. */
17385 pid_t
17386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17388 /* Convince the compiler that p..p7 are live; otherwise, it might
17389 use the same hardware register for all 8 local variables. */
17390 if (p != p1 || p != p2 || p != p3 || p != p4
17391 || p != p5 || p != p6 || p != p7)
17392 _exit(1);
17394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17395 from child file descriptors. If the child closes a descriptor
17396 before it execs or exits, this munges the parent's descriptor
17397 as well. Test for this by closing stdout in the child. */
17398 _exit(close(fileno(stdout)) != 0);
17399 } else {
17400 int status;
17401 struct stat st;
17403 while (wait(&status) != child)
17405 exit(
17406 /* Was there some problem with vforking? */
17407 child < 0
17409 /* Did the child fail? (This shouldn't happen.) */
17410 || status
17412 /* Did the vfork/compiler bug occur? */
17413 || parent != getpid()
17415 /* Did the file descriptor bug occur? */
17416 || fstat(fileno(stdout), &st) != 0
17420 _ACEOF
17421 rm -f conftest$ac_exeext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_func_vfork_works=yes
17433 else
17434 echo "$as_me: program exited with status $ac_status" >&5
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ( exit $ac_status )
17439 ac_cv_func_vfork_works=no
17441 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17444 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17445 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17448 if test "x$ac_cv_func_fork_works" = xcross; then
17449 ac_cv_func_vfork_works=ac_cv_func_vfork
17450 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17451 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17454 if test "x$ac_cv_func_vfork_works" = xyes; then
17456 cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_WORKING_VFORK 1
17458 _ACEOF
17460 else
17462 cat >>confdefs.h <<\_ACEOF
17463 #define vfork fork
17464 _ACEOF
17467 if test "x$ac_cv_func_fork_works" = xyes; then
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_WORKING_FORK 1
17471 _ACEOF
17476 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17477 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17478 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481 cat >conftest.$ac_ext <<_ACEOF
17482 #line $LINENO "configure"
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 #include <langinfo.h>
17490 main ()
17492 char* cs = nl_langinfo(CODESET);
17494 return 0;
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 emacs_cv_langinfo_codeset=yes
17510 else
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 emacs_cv_langinfo_codeset=no
17516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17520 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17521 if test $emacs_cv_langinfo_codeset = yes; then
17523 cat >>confdefs.h <<\_ACEOF
17524 #define HAVE_LANGINFO_CODESET 1
17525 _ACEOF
17529 echo "$as_me:$LINENO: checking for size_t" >&5
17530 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17531 if test "${ac_cv_type_size_t+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534 cat >conftest.$ac_ext <<_ACEOF
17535 #line $LINENO "configure"
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17543 main ()
17545 if ((size_t *) 0)
17546 return 0;
17547 if (sizeof (size_t))
17548 return 0;
17550 return 0;
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_type_size_t=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_type_size_t=no
17572 rm -f conftest.$ac_objext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17576 if test $ac_cv_type_size_t = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_SIZE_T 1
17580 _ACEOF
17586 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17587 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17588 if test "${emacs_cv_c_restrict+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 void fred (int *restrict x);
17600 main ()
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -s conftest.$ac_objext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 emacs_cv_c_restrict=yes
17620 else
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 cat >conftest.$ac_ext <<_ACEOF
17625 #line $LINENO "configure"
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 void fred (int *__restrict x);
17633 main ()
17637 return 0;
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 emacs_cv_c_restrict=__restrict
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 emacs_cv_c_restrict=no
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17661 rm -f conftest.$ac_objext conftest.$ac_ext
17663 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17664 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17665 case "$emacs_cv_c_restrict" in
17666 yes) emacs_restrict=restrict;;
17667 no) emacs_restrict="";;
17668 *) emacs_restrict="$emacs_cv_c_restrict";;
17669 esac
17670 if test "$emacs_restrict" != __restrict; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define __restrict $emacs_restrict
17674 _ACEOF
17678 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17679 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17680 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 cat >conftest.$ac_ext <<_ACEOF
17684 #line $LINENO "configure"
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 void fred (int x[__restrict]);
17692 main ()
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 emacs_cv_c_restrict_arr=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 emacs_cv_c_restrict_arr=no
17718 rm -f conftest.$ac_objext conftest.$ac_ext
17720 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17721 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17722 if test "$emacs_cv_c_restrict_arr" = yes; then
17724 cat >>confdefs.h <<\_ACEOF
17725 #define __restrict_arr __restrict
17726 _ACEOF
17731 for ac_header in nlist.h
17733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735 echo "$as_me:$LINENO: checking for $ac_header" >&5
17736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17742 else
17743 # Is the header compilable?
17744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17747 #line $LINENO "configure"
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 $ac_includes_default
17754 #include <$ac_header>
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_header_compiler=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_header_compiler=no
17775 rm -f conftest.$ac_objext conftest.$ac_ext
17776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17777 echo "${ECHO_T}$ac_header_compiler" >&6
17779 # Is the header present?
17780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17782 cat >conftest.$ac_ext <<_ACEOF
17783 #line $LINENO "configure"
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <$ac_header>
17790 _ACEOF
17791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } >/dev/null; then
17799 if test -s conftest.err; then
17800 ac_cpp_err=$ac_c_preproc_warn_flag
17801 else
17802 ac_cpp_err=
17804 else
17805 ac_cpp_err=yes
17807 if test -z "$ac_cpp_err"; then
17808 ac_header_preproc=yes
17809 else
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_header_preproc=no
17815 rm -f conftest.err conftest.$ac_ext
17816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17817 echo "${ECHO_T}$ac_header_preproc" >&6
17819 # So? What about this header?
17820 case $ac_header_compiler:$ac_header_preproc in
17821 yes:no )
17822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17827 cat <<\_ASBOX
17828 ## ------------------------------------ ##
17829 ## Report this to bug-autoconf@gnu.org. ##
17830 ## ------------------------------------ ##
17831 _ASBOX
17833 sed "s/^/$as_me: WARNING: /" >&2
17835 no:yes )
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17843 cat <<\_ASBOX
17844 ## ------------------------------------ ##
17845 ## Report this to bug-autoconf@gnu.org. ##
17846 ## ------------------------------------ ##
17847 _ASBOX
17849 sed "s/^/$as_me: WARNING: /" >&2
17851 esac
17852 echo "$as_me:$LINENO: checking for $ac_header" >&5
17853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857 eval "$as_ac_Header=$ac_header_preproc"
17859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17864 cat >>confdefs.h <<_ACEOF
17865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17866 _ACEOF
17868 cat >>confdefs.h <<\_ACEOF
17869 #define NLIST_STRUCT 1
17870 _ACEOF
17874 done
17879 # Set up the CFLAGS for real compilation, so we can substitute it.
17880 CFLAGS="$REAL_CFLAGS"
17881 CPPFLAGS="$REAL_CPPFLAGS"
17883 #### Find out which version of Emacs this is.
17884 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17885 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17886 if test x"${version}" = x; then
17887 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17888 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17889 { (exit 1); exit 1; }; }
17892 ### Specify what sort of things we'll be editing into Makefile and config.h.
17893 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17929 cat >>confdefs.h <<_ACEOF
17930 #define EMACS_CONFIGURATION "${canonical}"
17931 _ACEOF
17934 cat >>confdefs.h <<_ACEOF
17935 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17936 _ACEOF
17939 cat >>confdefs.h <<_ACEOF
17940 #define config_machfile "${machfile}"
17941 _ACEOF
17944 cat >>confdefs.h <<_ACEOF
17945 #define config_opsysfile "${opsysfile}"
17946 _ACEOF
17949 cat >>confdefs.h <<_ACEOF
17950 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17951 _ACEOF
17954 cat >>confdefs.h <<_ACEOF
17955 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17956 _ACEOF
17959 cat >>confdefs.h <<_ACEOF
17960 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17961 _ACEOF
17964 cat >>confdefs.h <<_ACEOF
17965 #define UNEXEC_SRC ${UNEXEC_SRC}
17966 _ACEOF
17969 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_X_WINDOWS 1
17973 _ACEOF
17976 if test "${USE_X_TOOLKIT}" != "none" ; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define USE_X_TOOLKIT 1
17980 _ACEOF
17983 if test "${HAVE_X11}" = "yes" ; then
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_X11 1
17987 _ACEOF
17990 if test "${HAVE_XFREE386}" = "yes" ; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_XFREE386 1
17994 _ACEOF
17997 if test "${HAVE_MENUS}" = "yes" ; then
17999 cat >>confdefs.h <<\_ACEOF
18000 #define HAVE_MENUS 1
18001 _ACEOF
18004 if test "${GNU_MALLOC}" = "yes" ; then
18006 cat >>confdefs.h <<\_ACEOF
18007 #define GNU_MALLOC 1
18008 _ACEOF
18011 if test "${REL_ALLOC}" = "yes" ; then
18013 cat >>confdefs.h <<\_ACEOF
18014 #define REL_ALLOC 1
18015 _ACEOF
18023 #### Report on what we decided to do.
18024 #### Report GTK as a toolkit, even if it doesn't use Xt.
18025 #### It makes printing result more understandable as using GTK sets
18026 #### toolkit_scroll_bars to yes by default.
18027 if test "${HAVE_GTK}" = "yes"; then
18028 USE_X_TOOLKIT=GTK
18031 echo "
18032 Configured for \`${canonical}'.
18034 Where should the build process find the source code? ${srcdir}
18035 What operating system and machine description files should Emacs use?
18036 \`${opsysfile}' and \`${machfile}'
18037 What compiler should emacs be built with? ${CC} ${CFLAGS}
18038 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18039 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18040 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18041 What window system should Emacs use? ${window_system}
18042 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18044 if test -n "${x_includes}"; then
18045 echo " Where do we find X Windows header files? ${x_includes}"
18046 else
18047 echo " Where do we find X Windows header files? Standard dirs"
18049 if test -n "${x_libraries}"; then
18050 echo " Where do we find X Windows libraries? ${x_libraries}"
18051 else
18052 echo " Where do we find X Windows libraries? Standard dirs"
18055 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18056 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18057 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18058 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18059 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18060 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18061 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18062 echo
18064 # Remove any trailing slashes in these variables.
18065 test "${prefix}" != NONE &&
18066 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18067 test "${exec_prefix}" != NONE &&
18068 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18070 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18071 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18072 ## from Makefile.c can correctly provide the arg `-traditional' to the
18073 ## C preprocessor.
18075 cat >conftest.$ac_ext <<_ACEOF
18076 #line $LINENO "configure"
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 yes..yes
18083 _ACEOF
18084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18085 $EGREP "yes..yes" >/dev/null 2>&1; then
18086 CPP_NEED_TRADITIONAL=no
18087 else
18088 CPP_NEED_TRADITIONAL=yes
18090 rm -f conftest*
18093 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"
18094 ac_config_commands="$ac_config_commands default"
18095 cat >confcache <<\_ACEOF
18096 # This file is a shell script that caches the results of configure
18097 # tests run on this system so they can be shared between configure
18098 # scripts and configure runs, see configure's option --config-cache.
18099 # It is not useful on other systems. If it contains results you don't
18100 # want to keep, you may remove or edit it.
18102 # config.status only pays attention to the cache file if you give it
18103 # the --recheck option to rerun configure.
18105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18107 # following values.
18109 _ACEOF
18111 # The following way of writing the cache mishandles newlines in values,
18112 # but we know of no workaround that is simple, portable, and efficient.
18113 # So, don't put newlines in cache variables' values.
18114 # Ultrix sh set writes to stderr and can't be redirected directly,
18115 # and sets the high bit in the cache file unless we assign to the vars.
18117 (set) 2>&1 |
18118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18119 *ac_space=\ *)
18120 # `set' does not quote correctly, so add quotes (double-quote
18121 # substitution turns \\\\ into \\, and sed turns \\ into \).
18122 sed -n \
18123 "s/'/'\\\\''/g;
18124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18127 # `set' quotes correctly as required by POSIX, so do not add quotes.
18128 sed -n \
18129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18131 esac;
18133 sed '
18134 t clear
18135 : clear
18136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18137 t end
18138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18139 : end' >>confcache
18140 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18141 if test -w $cache_file; then
18142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18143 cat confcache >$cache_file
18144 else
18145 echo "not updating unwritable cache $cache_file"
18148 rm -f confcache
18150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18151 # Let make expand exec_prefix.
18152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18156 # trailing colons and then remove the whole line if VPATH becomes empty
18157 # (actually we leave an empty line to preserve line numbers).
18158 if test "x$srcdir" = x.; then
18159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18160 s/:*\$(srcdir):*/:/;
18161 s/:*\${srcdir}:*/:/;
18162 s/:*@srcdir@:*/:/;
18163 s/^\([^=]*=[ ]*\):*/\1/;
18164 s/:*$//;
18165 s/^[^=]*=[ ]*$//;
18169 DEFS=-DHAVE_CONFIG_H
18171 ac_libobjs=
18172 ac_ltlibobjs=
18173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18174 # 1. Remove the extension, and $U if already installed.
18175 ac_i=`echo "$ac_i" |
18176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18177 # 2. Add them.
18178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18180 done
18181 LIBOBJS=$ac_libobjs
18183 LTLIBOBJS=$ac_ltlibobjs
18187 : ${CONFIG_STATUS=./config.status}
18188 ac_clean_files_save=$ac_clean_files
18189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18192 cat >$CONFIG_STATUS <<_ACEOF
18193 #! $SHELL
18194 # Generated by $as_me.
18195 # Run this file to recreate the current configuration.
18196 # Compiler output produced by configure, useful for debugging
18197 # configure, is in config.log if it exists.
18199 debug=false
18200 ac_cs_recheck=false
18201 ac_cs_silent=false
18202 SHELL=\${CONFIG_SHELL-$SHELL}
18203 _ACEOF
18205 cat >>$CONFIG_STATUS <<\_ACEOF
18206 ## --------------------- ##
18207 ## M4sh Initialization. ##
18208 ## --------------------- ##
18210 # Be Bourne compatible
18211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18212 emulate sh
18213 NULLCMD=:
18214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18215 # is contrary to our usage. Disable this feature.
18216 alias -g '${1+"$@"}'='"$@"'
18217 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18218 set -o posix
18221 # Support unset when possible.
18222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18223 as_unset=unset
18224 else
18225 as_unset=false
18229 # Work around bugs in pre-3.0 UWIN ksh.
18230 $as_unset ENV MAIL MAILPATH
18231 PS1='$ '
18232 PS2='> '
18233 PS4='+ '
18235 # NLS nuisances.
18236 for as_var in \
18237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18239 LC_TELEPHONE LC_TIME
18241 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18242 eval $as_var=C; export $as_var
18243 else
18244 $as_unset $as_var
18246 done
18248 # Required to use basename.
18249 if expr a : '\(a\)' >/dev/null 2>&1; then
18250 as_expr=expr
18251 else
18252 as_expr=false
18255 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18256 as_basename=basename
18257 else
18258 as_basename=false
18262 # Name of the executable.
18263 as_me=`$as_basename "$0" ||
18264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)$' \| \
18267 . : '\(.\)' 2>/dev/null ||
18268 echo X/"$0" |
18269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18270 /^X\/\(\/\/\)$/{ s//\1/; q; }
18271 /^X\/\(\/\).*/{ s//\1/; q; }
18272 s/.*/./; q'`
18275 # PATH needs CR, and LINENO needs CR and PATH.
18276 # Avoid depending upon Character Ranges.
18277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18280 as_cr_digits='0123456789'
18281 as_cr_alnum=$as_cr_Letters$as_cr_digits
18283 # The user is always right.
18284 if test "${PATH_SEPARATOR+set}" != set; then
18285 echo "#! /bin/sh" >conf$$.sh
18286 echo "exit 0" >>conf$$.sh
18287 chmod +x conf$$.sh
18288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18289 PATH_SEPARATOR=';'
18290 else
18291 PATH_SEPARATOR=:
18293 rm -f conf$$.sh
18297 as_lineno_1=$LINENO
18298 as_lineno_2=$LINENO
18299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18300 test "x$as_lineno_1" != "x$as_lineno_2" &&
18301 test "x$as_lineno_3" = "x$as_lineno_2" || {
18302 # Find who we are. Look in the path if we contain no path at all
18303 # relative or not.
18304 case $0 in
18305 *[\\/]* ) as_myself=$0 ;;
18306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18309 IFS=$as_save_IFS
18310 test -z "$as_dir" && as_dir=.
18311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18312 done
18315 esac
18316 # We did not find ourselves, most probably we were run as `sh COMMAND'
18317 # in which case we are not to be found in the path.
18318 if test "x$as_myself" = x; then
18319 as_myself=$0
18321 if test ! -f "$as_myself"; then
18322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18324 { (exit 1); exit 1; }; }
18326 case $CONFIG_SHELL in
18328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18331 IFS=$as_save_IFS
18332 test -z "$as_dir" && as_dir=.
18333 for as_base in sh bash ksh sh5; do
18334 case $as_dir in
18336 if ("$as_dir/$as_base" -c '
18337 as_lineno_1=$LINENO
18338 as_lineno_2=$LINENO
18339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18340 test "x$as_lineno_1" != "x$as_lineno_2" &&
18341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18342 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18343 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18344 CONFIG_SHELL=$as_dir/$as_base
18345 export CONFIG_SHELL
18346 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18347 fi;;
18348 esac
18349 done
18350 done
18352 esac
18354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18355 # uniformly replaced by the line number. The first 'sed' inserts a
18356 # line-number line before each line; the second 'sed' does the real
18357 # work. The second script uses 'N' to pair each line-number line
18358 # with the numbered line, and appends trailing '-' during
18359 # substitution so that $LINENO is not a special case at line end.
18360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18362 sed '=' <$as_myself |
18363 sed '
18365 s,$,-,
18366 : loop
18367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18368 t loop
18369 s,-$,,
18370 s,^['$as_cr_digits']*\n,,
18371 ' >$as_me.lineno &&
18372 chmod +x $as_me.lineno ||
18373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18375 { (exit 1); exit 1; }; }
18377 # Don't try to exec as it changes $[0], causing all sort of problems
18378 # (the dirname of $[0] is not the place where we might find the
18379 # original and so on. Autoconf is especially sensible to this).
18380 . ./$as_me.lineno
18381 # Exit status is that of the last command.
18382 exit
18386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18387 *c*,-n*) ECHO_N= ECHO_C='
18388 ' ECHO_T=' ' ;;
18389 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18390 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18391 esac
18393 if expr a : '\(a\)' >/dev/null 2>&1; then
18394 as_expr=expr
18395 else
18396 as_expr=false
18399 rm -f conf$$ conf$$.exe conf$$.file
18400 echo >conf$$.file
18401 if ln -s conf$$.file conf$$ 2>/dev/null; then
18402 # We could just check for DJGPP; but this test a) works b) is more generic
18403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18404 if test -f conf$$.exe; then
18405 # Don't use ln at all; we don't have any links
18406 as_ln_s='cp -p'
18407 else
18408 as_ln_s='ln -s'
18410 elif ln conf$$.file conf$$ 2>/dev/null; then
18411 as_ln_s=ln
18412 else
18413 as_ln_s='cp -p'
18415 rm -f conf$$ conf$$.exe conf$$.file
18417 if mkdir -p . 2>/dev/null; then
18418 as_mkdir_p=:
18419 else
18420 as_mkdir_p=false
18423 as_executable_p="test -f"
18425 # Sed expression to map a string onto a valid CPP name.
18426 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18428 # Sed expression to map a string onto a valid variable name.
18429 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18432 # IFS
18433 # We need space, tab and new line, in precisely that order.
18434 as_nl='
18436 IFS=" $as_nl"
18438 # CDPATH.
18439 $as_unset CDPATH
18441 exec 6>&1
18443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18444 # report actual input values of CONFIG_FILES etc. instead of their
18445 # values after options handling. Logging --version etc. is OK.
18446 exec 5>>config.log
18448 echo
18449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18450 ## Running $as_me. ##
18451 _ASBOX
18452 } >&5
18453 cat >&5 <<_CSEOF
18455 This file was extended by $as_me, which was
18456 generated by GNU Autoconf 2.57. Invocation command line was
18458 CONFIG_FILES = $CONFIG_FILES
18459 CONFIG_HEADERS = $CONFIG_HEADERS
18460 CONFIG_LINKS = $CONFIG_LINKS
18461 CONFIG_COMMANDS = $CONFIG_COMMANDS
18462 $ $0 $@
18464 _CSEOF
18465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18466 echo >&5
18467 _ACEOF
18469 # Files that config.status was made for.
18470 if test -n "$ac_config_files"; then
18471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18474 if test -n "$ac_config_headers"; then
18475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18478 if test -n "$ac_config_links"; then
18479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18482 if test -n "$ac_config_commands"; then
18483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18488 ac_cs_usage="\
18489 \`$as_me' instantiates files from templates according to the
18490 current configuration.
18492 Usage: $0 [OPTIONS] [FILE]...
18494 -h, --help print this help, then exit
18495 -V, --version print version number, then exit
18496 -q, --quiet do not print progress messages
18497 -d, --debug don't remove temporary files
18498 --recheck update $as_me by reconfiguring in the same conditions
18499 --file=FILE[:TEMPLATE]
18500 instantiate the configuration file FILE
18501 --header=FILE[:TEMPLATE]
18502 instantiate the configuration header FILE
18504 Configuration files:
18505 $config_files
18507 Configuration headers:
18508 $config_headers
18510 Configuration commands:
18511 $config_commands
18513 Report bugs to <bug-autoconf@gnu.org>."
18514 _ACEOF
18516 cat >>$CONFIG_STATUS <<_ACEOF
18517 ac_cs_version="\\
18518 config.status
18519 configured by $0, generated by GNU Autoconf 2.57,
18520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18522 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18523 Free Software Foundation, Inc.
18524 This config.status script is free software; the Free Software Foundation
18525 gives unlimited permission to copy, distribute and modify it."
18526 srcdir=$srcdir
18527 INSTALL="$INSTALL"
18528 _ACEOF
18530 cat >>$CONFIG_STATUS <<\_ACEOF
18531 # If no file are specified by the user, then we need to provide default
18532 # value. By we need to know if files were specified by the user.
18533 ac_need_defaults=:
18534 while test $# != 0
18536 case $1 in
18537 --*=*)
18538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18540 ac_shift=:
18543 ac_option=$1
18544 ac_optarg=$2
18545 ac_shift=shift
18547 *) # This is not an option, so the user has probably given explicit
18548 # arguments.
18549 ac_option=$1
18550 ac_need_defaults=false;;
18551 esac
18553 case $ac_option in
18554 # Handling of the options.
18555 _ACEOF
18556 cat >>$CONFIG_STATUS <<\_ACEOF
18557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18558 ac_cs_recheck=: ;;
18559 --version | --vers* | -V )
18560 echo "$ac_cs_version"; exit 0 ;;
18561 --he | --h)
18562 # Conflict between --help and --header
18563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18564 Try \`$0 --help' for more information." >&5
18565 echo "$as_me: error: ambiguous option: $1
18566 Try \`$0 --help' for more information." >&2;}
18567 { (exit 1); exit 1; }; };;
18568 --help | --hel | -h )
18569 echo "$ac_cs_usage"; exit 0 ;;
18570 --debug | --d* | -d )
18571 debug=: ;;
18572 --file | --fil | --fi | --f )
18573 $ac_shift
18574 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18575 ac_need_defaults=false;;
18576 --header | --heade | --head | --hea )
18577 $ac_shift
18578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18579 ac_need_defaults=false;;
18580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18582 ac_cs_silent=: ;;
18584 # This is an error.
18585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18586 Try \`$0 --help' for more information." >&5
18587 echo "$as_me: error: unrecognized option: $1
18588 Try \`$0 --help' for more information." >&2;}
18589 { (exit 1); exit 1; }; } ;;
18591 *) ac_config_targets="$ac_config_targets $1" ;;
18593 esac
18594 shift
18595 done
18597 ac_configure_extra_args=
18599 if $ac_cs_silent; then
18600 exec 6>/dev/null
18601 ac_configure_extra_args="$ac_configure_extra_args --silent"
18604 _ACEOF
18605 cat >>$CONFIG_STATUS <<_ACEOF
18606 if \$ac_cs_recheck; then
18607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18611 _ACEOF
18613 cat >>$CONFIG_STATUS <<_ACEOF
18615 # INIT-COMMANDS section.
18618 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18620 _ACEOF
18624 cat >>$CONFIG_STATUS <<\_ACEOF
18625 for ac_config_target in $ac_config_targets
18627 case "$ac_config_target" in
18628 # Handling of arguments.
18629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18630 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18631 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18632 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18633 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18634 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18635 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18636 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18637 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18638 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18639 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18640 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18643 { (exit 1); exit 1; }; };;
18644 esac
18645 done
18647 # If the user did not use the arguments to specify the items to instantiate,
18648 # then the envvar interface is used. Set only those that are not.
18649 # We use the long form for the default assignment because of an extremely
18650 # bizarre bug on SunOS 4.1.3.
18651 if $ac_need_defaults; then
18652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18657 # Have a temporary directory for convenience. Make it in the build tree
18658 # simply because there is no reason to put it here, and in addition,
18659 # creating and moving files from /tmp can sometimes cause problems.
18660 # Create a temporary directory, and hook for its removal unless debugging.
18661 $debug ||
18663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18664 trap '{ (exit 1); exit 1; }' 1 2 13 15
18667 # Create a (secure) tmp directory for tmp files.
18670 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18671 test -n "$tmp" && test -d "$tmp"
18672 } ||
18674 tmp=./confstat$$-$RANDOM
18675 (umask 077 && mkdir $tmp)
18676 } ||
18678 echo "$me: cannot create a temporary directory in ." >&2
18679 { (exit 1); exit 1; }
18682 _ACEOF
18684 cat >>$CONFIG_STATUS <<_ACEOF
18687 # CONFIG_FILES section.
18690 # No need to generate the scripts if there are no CONFIG_FILES.
18691 # This happens for instance when ./config.status config.h
18692 if test -n "\$CONFIG_FILES"; then
18693 # Protect against being on the right side of a sed subst in config.status.
18694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18696 s,@SHELL@,$SHELL,;t t
18697 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18698 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18699 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18700 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18701 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18702 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18703 s,@exec_prefix@,$exec_prefix,;t t
18704 s,@prefix@,$prefix,;t t
18705 s,@program_transform_name@,$program_transform_name,;t t
18706 s,@bindir@,$bindir,;t t
18707 s,@sbindir@,$sbindir,;t t
18708 s,@libexecdir@,$libexecdir,;t t
18709 s,@datadir@,$datadir,;t t
18710 s,@sysconfdir@,$sysconfdir,;t t
18711 s,@sharedstatedir@,$sharedstatedir,;t t
18712 s,@localstatedir@,$localstatedir,;t t
18713 s,@libdir@,$libdir,;t t
18714 s,@includedir@,$includedir,;t t
18715 s,@oldincludedir@,$oldincludedir,;t t
18716 s,@infodir@,$infodir,;t t
18717 s,@mandir@,$mandir,;t t
18718 s,@build_alias@,$build_alias,;t t
18719 s,@host_alias@,$host_alias,;t t
18720 s,@target_alias@,$target_alias,;t t
18721 s,@DEFS@,$DEFS,;t t
18722 s,@ECHO_C@,$ECHO_C,;t t
18723 s,@ECHO_N@,$ECHO_N,;t t
18724 s,@ECHO_T@,$ECHO_T,;t t
18725 s,@LIBS@,$LIBS,;t t
18726 s,@build@,$build,;t t
18727 s,@build_cpu@,$build_cpu,;t t
18728 s,@build_vendor@,$build_vendor,;t t
18729 s,@build_os@,$build_os,;t t
18730 s,@host@,$host,;t t
18731 s,@host_cpu@,$host_cpu,;t t
18732 s,@host_vendor@,$host_vendor,;t t
18733 s,@host_os@,$host_os,;t t
18734 s,@CC@,$CC,;t t
18735 s,@CFLAGS@,$CFLAGS,;t t
18736 s,@LDFLAGS@,$LDFLAGS,;t t
18737 s,@CPPFLAGS@,$CPPFLAGS,;t t
18738 s,@ac_ct_CC@,$ac_ct_CC,;t t
18739 s,@EXEEXT@,$EXEEXT,;t t
18740 s,@OBJEXT@,$OBJEXT,;t t
18741 s,@LN_S@,$LN_S,;t t
18742 s,@CPP@,$CPP,;t t
18743 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18744 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18745 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18746 s,@RANLIB@,$RANLIB,;t t
18747 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18748 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18749 s,@EGREP@,$EGREP,;t t
18750 s,@LIBSOUND@,$LIBSOUND,;t t
18751 s,@SET_MAKE@,$SET_MAKE,;t t
18752 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18753 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18754 s,@GTK_LIBS@,$GTK_LIBS,;t t
18755 s,@ALLOCA@,$ALLOCA,;t t
18756 s,@liblockfile@,$liblockfile,;t t
18757 s,@LIBOBJS@,$LIBOBJS,;t t
18758 s,@NEED_SETGID@,$NEED_SETGID,;t t
18759 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18760 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18761 s,@version@,$version,;t t
18762 s,@configuration@,$configuration,;t t
18763 s,@canonical@,$canonical,;t t
18764 s,@srcdir@,$srcdir,;t t
18765 s,@lispdir@,$lispdir,;t t
18766 s,@locallisppath@,$locallisppath,;t t
18767 s,@lisppath@,$lisppath,;t t
18768 s,@x_default_search_path@,$x_default_search_path,;t t
18769 s,@etcdir@,$etcdir,;t t
18770 s,@archlibdir@,$archlibdir,;t t
18771 s,@docdir@,$docdir,;t t
18772 s,@bitmapdir@,$bitmapdir,;t t
18773 s,@gamedir@,$gamedir,;t t
18774 s,@gameuser@,$gameuser,;t t
18775 s,@c_switch_system@,$c_switch_system,;t t
18776 s,@c_switch_machine@,$c_switch_machine,;t t
18777 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18778 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18779 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18780 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18781 s,@machfile@,$machfile,;t t
18782 s,@opsysfile@,$opsysfile,;t t
18783 s,@carbon_appdir@,$carbon_appdir,;t t
18784 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18785 CEOF
18787 _ACEOF
18789 cat >>$CONFIG_STATUS <<\_ACEOF
18790 # Split the substitutions into bite-sized pieces for seds with
18791 # small command number limits, like on Digital OSF/1 and HP-UX.
18792 ac_max_sed_lines=48
18793 ac_sed_frag=1 # Number of current file.
18794 ac_beg=1 # First line for current file.
18795 ac_end=$ac_max_sed_lines # Line after last line for current file.
18796 ac_more_lines=:
18797 ac_sed_cmds=
18798 while $ac_more_lines; do
18799 if test $ac_beg -gt 1; then
18800 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18801 else
18802 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18804 if test ! -s $tmp/subs.frag; then
18805 ac_more_lines=false
18806 else
18807 # The purpose of the label and of the branching condition is to
18808 # speed up the sed processing (if there are no `@' at all, there
18809 # is no need to browse any of the substitutions).
18810 # These are the two extra sed commands mentioned above.
18811 (echo ':t
18812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18813 if test -z "$ac_sed_cmds"; then
18814 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18815 else
18816 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18818 ac_sed_frag=`expr $ac_sed_frag + 1`
18819 ac_beg=$ac_end
18820 ac_end=`expr $ac_end + $ac_max_sed_lines`
18822 done
18823 if test -z "$ac_sed_cmds"; then
18824 ac_sed_cmds=cat
18826 fi # test -n "$CONFIG_FILES"
18828 _ACEOF
18829 cat >>$CONFIG_STATUS <<\_ACEOF
18830 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18832 case $ac_file in
18833 - | *:- | *:-:* ) # input from stdin
18834 cat >$tmp/stdin
18835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18839 * ) ac_file_in=$ac_file.in ;;
18840 esac
18842 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18843 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845 X"$ac_file" : 'X\(//\)[^/]' \| \
18846 X"$ac_file" : 'X\(//\)$' \| \
18847 X"$ac_file" : 'X\(/\)' \| \
18848 . : '\(.\)' 2>/dev/null ||
18849 echo X"$ac_file" |
18850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18852 /^X\(\/\/\)$/{ s//\1/; q; }
18853 /^X\(\/\).*/{ s//\1/; q; }
18854 s/.*/./; q'`
18855 { if $as_mkdir_p; then
18856 mkdir -p "$ac_dir"
18857 else
18858 as_dir="$ac_dir"
18859 as_dirs=
18860 while test ! -d "$as_dir"; do
18861 as_dirs="$as_dir $as_dirs"
18862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18864 X"$as_dir" : 'X\(//\)[^/]' \| \
18865 X"$as_dir" : 'X\(//\)$' \| \
18866 X"$as_dir" : 'X\(/\)' \| \
18867 . : '\(.\)' 2>/dev/null ||
18868 echo X"$as_dir" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18871 /^X\(\/\/\)$/{ s//\1/; q; }
18872 /^X\(\/\).*/{ s//\1/; q; }
18873 s/.*/./; q'`
18874 done
18875 test ! -n "$as_dirs" || mkdir $as_dirs
18876 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18877 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18878 { (exit 1); exit 1; }; }; }
18880 ac_builddir=.
18882 if test "$ac_dir" != .; then
18883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18884 # A "../" for each directory in $ac_dir_suffix.
18885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18886 else
18887 ac_dir_suffix= ac_top_builddir=
18890 case $srcdir in
18891 .) # No --srcdir option. We are building in place.
18892 ac_srcdir=.
18893 if test -z "$ac_top_builddir"; then
18894 ac_top_srcdir=.
18895 else
18896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18897 fi ;;
18898 [\\/]* | ?:[\\/]* ) # Absolute path.
18899 ac_srcdir=$srcdir$ac_dir_suffix;
18900 ac_top_srcdir=$srcdir ;;
18901 *) # Relative path.
18902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18904 esac
18905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18906 # absolute.
18907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18913 case $INSTALL in
18914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18915 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18916 esac
18918 if test x"$ac_file" != x-; then
18919 { echo "$as_me:$LINENO: creating $ac_file" >&5
18920 echo "$as_me: creating $ac_file" >&6;}
18921 rm -f "$ac_file"
18923 # Let's still pretend it is `configure' which instantiates (i.e., don't
18924 # use $as_me), people would be surprised to read:
18925 # /* config.h. Generated by config.status. */
18926 if test x"$ac_file" = x-; then
18927 configure_input=
18928 else
18929 configure_input="$ac_file. "
18931 configure_input=$configure_input"Generated from `echo $ac_file_in |
18932 sed 's,.*/,,'` by configure."
18934 # First look for the input files in the build tree, otherwise in the
18935 # src tree.
18936 ac_file_inputs=`IFS=:
18937 for f in $ac_file_in; do
18938 case $f in
18939 -) echo $tmp/stdin ;;
18940 [\\/$]*)
18941 # Absolute (can't be DOS-style, as IFS=:)
18942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18943 echo "$as_me: error: cannot find input file: $f" >&2;}
18944 { (exit 1); exit 1; }; }
18945 echo $f;;
18946 *) # Relative
18947 if test -f "$f"; then
18948 # Build tree
18949 echo $f
18950 elif test -f "$srcdir/$f"; then
18951 # Source tree
18952 echo $srcdir/$f
18953 else
18954 # /dev/null tree
18955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18956 echo "$as_me: error: cannot find input file: $f" >&2;}
18957 { (exit 1); exit 1; }; }
18958 fi;;
18959 esac
18960 done` || { (exit 1); exit 1; }
18961 _ACEOF
18962 cat >>$CONFIG_STATUS <<_ACEOF
18963 sed "$ac_vpsub
18964 $extrasub
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<\_ACEOF
18968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18969 s,@configure_input@,$configure_input,;t t
18970 s,@srcdir@,$ac_srcdir,;t t
18971 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18972 s,@top_srcdir@,$ac_top_srcdir,;t t
18973 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18974 s,@builddir@,$ac_builddir,;t t
18975 s,@abs_builddir@,$ac_abs_builddir,;t t
18976 s,@top_builddir@,$ac_top_builddir,;t t
18977 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18978 s,@INSTALL@,$ac_INSTALL,;t t
18979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18980 rm -f $tmp/stdin
18981 if test x"$ac_file" != x-; then
18982 mv $tmp/out $ac_file
18983 else
18984 cat $tmp/out
18985 rm -f $tmp/out
18988 done
18989 _ACEOF
18990 cat >>$CONFIG_STATUS <<\_ACEOF
18993 # CONFIG_HEADER section.
18996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18999 # ac_d sets the value in "#define NAME VALUE" lines.
19000 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19001 ac_dB='[ ].*$,\1#\2'
19002 ac_dC=' '
19003 ac_dD=',;t'
19004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19005 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19006 ac_uB='$,\1#\2define\3'
19007 ac_uC=' '
19008 ac_uD=',;t'
19010 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19012 case $ac_file in
19013 - | *:- | *:-:* ) # input from stdin
19014 cat >$tmp/stdin
19015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19019 * ) ac_file_in=$ac_file.in ;;
19020 esac
19022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19023 echo "$as_me: creating $ac_file" >&6;}
19025 # First look for the input files in the build tree, otherwise in the
19026 # src tree.
19027 ac_file_inputs=`IFS=:
19028 for f in $ac_file_in; do
19029 case $f in
19030 -) echo $tmp/stdin ;;
19031 [\\/$]*)
19032 # Absolute (can't be DOS-style, as IFS=:)
19033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19034 echo "$as_me: error: cannot find input file: $f" >&2;}
19035 { (exit 1); exit 1; }; }
19036 echo $f;;
19037 *) # Relative
19038 if test -f "$f"; then
19039 # Build tree
19040 echo $f
19041 elif test -f "$srcdir/$f"; then
19042 # Source tree
19043 echo $srcdir/$f
19044 else
19045 # /dev/null tree
19046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19047 echo "$as_me: error: cannot find input file: $f" >&2;}
19048 { (exit 1); exit 1; }; }
19049 fi;;
19050 esac
19051 done` || { (exit 1); exit 1; }
19052 # Remove the trailing spaces.
19053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19055 _ACEOF
19057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19058 # `conftest.undefs', that substitutes the proper values into
19059 # config.h.in to produce config.h. The first handles `#define'
19060 # templates, and the second `#undef' templates.
19061 # And first: Protect against being on the right side of a sed subst in
19062 # config.status. Protect against being in an unquoted here document
19063 # in config.status.
19064 rm -f conftest.defines conftest.undefs
19065 # Using a here document instead of a string reduces the quoting nightmare.
19066 # Putting comments in sed scripts is not portable.
19068 # `end' is used to avoid that the second main sed command (meant for
19069 # 0-ary CPP macros) applies to n-ary macro definitions.
19070 # See the Autoconf documentation for `clear'.
19071 cat >confdef2sed.sed <<\_ACEOF
19072 s/[\\&,]/\\&/g
19073 s,[\\$`],\\&,g
19074 t clear
19075 : clear
19076 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19077 t end
19078 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19079 : end
19080 _ACEOF
19081 # If some macros were called several times there might be several times
19082 # the same #defines, which is useless. Nevertheless, we may not want to
19083 # sort them, since we want the *last* AC-DEFINE to be honored.
19084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19086 rm -f confdef2sed.sed
19088 # This sed command replaces #undef with comments. This is necessary, for
19089 # example, in the case of _POSIX_SOURCE, which is predefined and required
19090 # on some systems where configure will not decide to define it.
19091 cat >>conftest.undefs <<\_ACEOF
19092 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19093 _ACEOF
19095 # Break up conftest.defines because some shells have a limit on the size
19096 # of here documents, and old seds have small limits too (100 cmds).
19097 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19098 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19099 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19100 echo ' :' >>$CONFIG_STATUS
19101 rm -f conftest.tail
19102 while grep . conftest.defines >/dev/null
19104 # Write a limited-size here document to $tmp/defines.sed.
19105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19106 # Speed up: don't consider the non `#define' lines.
19107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19108 # Work around the forget-to-reset-the-flag bug.
19109 echo 't clr' >>$CONFIG_STATUS
19110 echo ': clr' >>$CONFIG_STATUS
19111 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19112 echo 'CEOF
19113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19114 rm -f $tmp/in
19115 mv $tmp/out $tmp/in
19116 ' >>$CONFIG_STATUS
19117 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19118 rm -f conftest.defines
19119 mv conftest.tail conftest.defines
19120 done
19121 rm -f conftest.defines
19122 echo ' fi # grep' >>$CONFIG_STATUS
19123 echo >>$CONFIG_STATUS
19125 # Break up conftest.undefs because some shells have a limit on the size
19126 # of here documents, and old seds have small limits too (100 cmds).
19127 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19128 rm -f conftest.tail
19129 while grep . conftest.undefs >/dev/null
19131 # Write a limited-size here document to $tmp/undefs.sed.
19132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19133 # Speed up: don't consider the non `#undef'
19134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19135 # Work around the forget-to-reset-the-flag bug.
19136 echo 't clr' >>$CONFIG_STATUS
19137 echo ': clr' >>$CONFIG_STATUS
19138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19139 echo 'CEOF
19140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19141 rm -f $tmp/in
19142 mv $tmp/out $tmp/in
19143 ' >>$CONFIG_STATUS
19144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19145 rm -f conftest.undefs
19146 mv conftest.tail conftest.undefs
19147 done
19148 rm -f conftest.undefs
19150 cat >>$CONFIG_STATUS <<\_ACEOF
19151 # Let's still pretend it is `configure' which instantiates (i.e., don't
19152 # use $as_me), people would be surprised to read:
19153 # /* config.h. Generated by config.status. */
19154 if test x"$ac_file" = x-; then
19155 echo "/* Generated by configure. */" >$tmp/config.h
19156 else
19157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19159 cat $tmp/in >>$tmp/config.h
19160 rm -f $tmp/in
19161 if test x"$ac_file" != x-; then
19162 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19164 echo "$as_me: $ac_file is unchanged" >&6;}
19165 else
19166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19168 X"$ac_file" : 'X\(//\)[^/]' \| \
19169 X"$ac_file" : 'X\(//\)$' \| \
19170 X"$ac_file" : 'X\(/\)' \| \
19171 . : '\(.\)' 2>/dev/null ||
19172 echo X"$ac_file" |
19173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19175 /^X\(\/\/\)$/{ s//\1/; q; }
19176 /^X\(\/\).*/{ s//\1/; q; }
19177 s/.*/./; q'`
19178 { if $as_mkdir_p; then
19179 mkdir -p "$ac_dir"
19180 else
19181 as_dir="$ac_dir"
19182 as_dirs=
19183 while test ! -d "$as_dir"; do
19184 as_dirs="$as_dir $as_dirs"
19185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19187 X"$as_dir" : 'X\(//\)[^/]' \| \
19188 X"$as_dir" : 'X\(//\)$' \| \
19189 X"$as_dir" : 'X\(/\)' \| \
19190 . : '\(.\)' 2>/dev/null ||
19191 echo X"$as_dir" |
19192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19194 /^X\(\/\/\)$/{ s//\1/; q; }
19195 /^X\(\/\).*/{ s//\1/; q; }
19196 s/.*/./; q'`
19197 done
19198 test ! -n "$as_dirs" || mkdir $as_dirs
19199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19201 { (exit 1); exit 1; }; }; }
19203 rm -f $ac_file
19204 mv $tmp/config.h $ac_file
19206 else
19207 cat $tmp/config.h
19208 rm -f $tmp/config.h
19210 done
19211 _ACEOF
19212 cat >>$CONFIG_STATUS <<\_ACEOF
19215 # CONFIG_COMMANDS section.
19217 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19218 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19219 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19220 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19221 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19222 X"$ac_dest" : 'X\(//\)[^/]' \| \
19223 X"$ac_dest" : 'X\(//\)$' \| \
19224 X"$ac_dest" : 'X\(/\)' \| \
19225 . : '\(.\)' 2>/dev/null ||
19226 echo X"$ac_dest" |
19227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19229 /^X\(\/\/\)$/{ s//\1/; q; }
19230 /^X\(\/\).*/{ s//\1/; q; }
19231 s/.*/./; q'`
19232 ac_builddir=.
19234 if test "$ac_dir" != .; then
19235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19236 # A "../" for each directory in $ac_dir_suffix.
19237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19238 else
19239 ac_dir_suffix= ac_top_builddir=
19242 case $srcdir in
19243 .) # No --srcdir option. We are building in place.
19244 ac_srcdir=.
19245 if test -z "$ac_top_builddir"; then
19246 ac_top_srcdir=.
19247 else
19248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19249 fi ;;
19250 [\\/]* | ?:[\\/]* ) # Absolute path.
19251 ac_srcdir=$srcdir$ac_dir_suffix;
19252 ac_top_srcdir=$srcdir ;;
19253 *) # Relative path.
19254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19256 esac
19257 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19258 # absolute.
19259 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19260 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19261 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19262 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19266 echo "$as_me: executing $ac_dest commands" >&6;}
19267 case $ac_dest in
19268 default )
19270 ### Make the necessary directories, if they don't exist.
19271 for dir in etc lisp ; do
19272 test -d ${dir} || mkdir ${dir}
19273 done
19275 # Build src/Makefile from ${srcdir}/src/Makefile.c
19276 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19277 # This must be done after src/config.h is built, since we rely on that file.
19279 # Now get this: Some word that is part of the ${srcdir} directory name
19280 # or the ${configuration} value might, just might, happen to be an
19281 # identifier like `sun4' or `i386' or something, and be predefined by
19282 # the C preprocessor to some helpful value like 1, or maybe the empty
19283 # string. Needless to say consequent macro substitutions are less
19284 # than conducive to the makefile finding the correct directory.
19285 undefs="`echo $top_srcdir $configuration $canonical |
19286 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19287 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19290 echo creating src/epaths.h
19291 ${MAKE-make} epaths-force
19293 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19294 # `..' to `. .' unless invoked with -traditional
19296 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19297 CPPFLAGS="$CPPFLAGS -traditional"
19300 echo creating lib-src/Makefile
19301 ( cd lib-src
19302 rm -f junk.c junk1.c junk2.c
19303 sed -e '/start of cpp stuff/q' \
19304 < Makefile.c > junk1.c
19305 sed -e '1,/start of cpp stuff/d'\
19306 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19307 < Makefile.c > junk.c
19308 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19309 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19310 cat junk1.c junk2.c > Makefile.new
19311 rm -f junk.c junk1.c junk2.c
19312 chmod 444 Makefile.new
19313 mv -f Makefile.new Makefile
19316 echo creating src/Makefile
19317 ( cd src
19318 rm -f junk.c junk1.c junk2.c
19319 sed -e '/start of cpp stuff/q' \
19320 < Makefile.c > junk1.c
19321 sed -e '1,/start of cpp stuff/d'\
19322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19323 < Makefile.c > junk.c
19324 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19326 cat junk1.c junk2.c > Makefile.new
19327 rm -f junk.c junk1.c junk2.c
19328 chmod 444 Makefile.new
19329 mv -f Makefile.new Makefile
19332 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19333 echo creating src/.gdbinit
19334 echo source $srcdir/src/.gdbinit > src/.gdbinit
19337 # This is how we know whether to re-run configure in certain cases.
19338 touch src/config.stamp
19341 esac
19342 done
19343 _ACEOF
19345 cat >>$CONFIG_STATUS <<\_ACEOF
19347 { (exit 0); exit 0; }
19348 _ACEOF
19349 chmod +x $CONFIG_STATUS
19350 ac_clean_files=$ac_clean_files_save
19353 # configure is writing to config.log, and then calls config.status.
19354 # config.status does its own redirection, appending to config.log.
19355 # Unfortunately, on DOS this fails, as config.log is still kept open
19356 # by configure, so config.status won't be able to write to it; its
19357 # output is simply discarded. So we exec the FD to /dev/null,
19358 # effectively closing config.log, so it can be properly (re)opened and
19359 # appended to by config.status. When coming back to configure, we
19360 # need to make the FD available again.
19361 if test "$no_create" != yes; then
19362 ac_cs_success=:
19363 ac_config_status_args=
19364 test "$silent" = yes &&
19365 ac_config_status_args="$ac_config_status_args --quiet"
19366 exec 5>/dev/null
19367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19368 exec 5>>config.log
19369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19370 # would make configure fail if this is the last instruction.
19371 $ac_cs_success || { (exit 1); exit 1; }